Api-Roll 50: 2017-06-12 R=vegorov@google.com Review-Url: https://codereview.chromium.org//2936613002 .
diff --git a/generated/googleapis/CHANGELOG.md b/generated/googleapis/CHANGELOG.md index 50f5bee..74622c3 100644 --- a/generated/googleapis/CHANGELOG.md +++ b/generated/googleapis/CHANGELOG.md
@@ -1,3 +1,29 @@ +## 0.40.0 + +* [api] appengine:v1 +* [api] bigquerydatatransfer:v1 +* [api] classroom:v1 +* [api] cloudkms:v1 +* [api] compute:v1 +* [api] content:v2 +* [api] firebasedynamiclinks:v1 +* [api] firebaserules:v1 +* [api] ml:v1 +* [api] partners:v2 +* [api] servicemanagement:v1 +* [api] serviceuser:v1 +* [api] sheets:v4 +* [api] slides:v1 +* [api] sourcerepo:v1 +* [api] storage:v1 +* [api] translate:v2 +* [api-breaking] bigquerydatatransfer:v1 +* [api-breaking] customsearch:v1 +* [api-breaking] customsearch:v1 +* [api-breaking] dataproc:v1 +* [api-removed] dfareporting:v2_6 +* [api-removed] dfareporting:v2_7 + ## 0.39.0 * [api-new] dfareporting:v2_8
diff --git a/generated/googleapis/README.md b/generated/googleapis/README.md index a55a55f..e9fc420 100644 --- a/generated/googleapis/README.md +++ b/generated/googleapis/README.md
@@ -241,7 +241,7 @@ ####  Google Cloud Key Management Service (KMS) API - cloudkms v1 -Manages encryption for your cloud services the same way you do on-premise. You can generate, use, rotate, and destroy AES256 encryption keys. +Manages encryption for your cloud services the same way you do on-premises. You can generate, use, rotate, and destroy AES256 encryption keys. Official API documentation: https://cloud.google.com/kms/ @@ -288,7 +288,7 @@ ####  CustomSearch API - customsearch v1 -Lets you search over a website or collection of websites +Searches over a website or collection of websites Official API documentation: https://developers.google.com/custom-search/v1/using_rest @@ -311,18 +311,6 @@ Official API documentation: https://cloud.google.com/deployment-manager/ -####  DCM/DFA Reporting And Trafficking API - dfareporting v2.6 - -Manages your DoubleClick Campaign Manager ad campaigns and reports. - -Official API documentation: https://developers.google.com/doubleclick-advertisers/ - -####  DCM/DFA Reporting And Trafficking API - dfareporting v2.7 - -Manages your DoubleClick Campaign Manager ad campaigns and reports. - -Official API documentation: https://developers.google.com/doubleclick-advertisers/ - ####  DCM/DFA Reporting And Trafficking API - dfareporting v2.8 Manages your DoubleClick Campaign Manager ad campaigns and reports. @@ -426,7 +414,7 @@ Official API documentation: https://developers.google.com/gmail/api/ -####  Groups Migration API - groupsmigration v1 +####  Groups Migration API - groupsmigration v1 Groups Migration Api. @@ -690,11 +678,12 @@ Official API documentation: https://cloud.google.com/trace -####  Translate API - translate v2 +####  Google Cloud Translation API - translate v2 -Translates text from one language to another. +The Google Cloud Translation API lets websites and programs integrate with + Google Translate programmatically. -Official API documentation: https://developers.google.com/translate/v2/using_rest +Official API documentation: https://code.google.com/apis/language/translate/v2/getting_started.html ####  URL Shortener API - urlshortener v1
diff --git a/generated/googleapis/lib/acceleratedmobilepageurl/v1.dart b/generated/googleapis/lib/acceleratedmobilepageurl/v1.dart index 3e4634e..1d21d41 100644 --- a/generated/googleapis/lib/acceleratedmobilepageurl/v1.dart +++ b/generated/googleapis/lib/acceleratedmobilepageurl/v1.dart
@@ -105,8 +105,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ampUrl != null) { _json["ampUrl"] = ampUrl; } @@ -164,8 +164,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errorCode != null) { _json["errorCode"] = errorCode; } @@ -215,8 +215,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (lookupStrategy != null) { _json["lookupStrategy"] = lookupStrategy; } @@ -250,8 +250,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ampUrls != null) { _json["ampUrls"] = ampUrls.map((value) => (value).toJson()).toList(); }
diff --git a/generated/googleapis/lib/adexchangebuyer/v1_3.dart b/generated/googleapis/lib/adexchangebuyer/v1_3.dart index 4b535ea..9c45f00 100644 --- a/generated/googleapis/lib/adexchangebuyer/v1_3.dart +++ b/generated/googleapis/lib/adexchangebuyer/v1_3.dart
@@ -1079,8 +1079,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (maximumQps != null) { _json["maximumQps"] = maximumQps; } @@ -1155,8 +1155,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bidderLocation != null) { _json["bidderLocation"] = bidderLocation.map((value) => (value).toJson()).toList(); } @@ -1206,8 +1206,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -1250,8 +1250,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -1289,8 +1289,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -1345,8 +1345,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -1386,8 +1386,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (details != null) { _json["details"] = details; } @@ -1415,8 +1415,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (details != null) { _json["details"] = details; } @@ -1450,8 +1450,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filteringCount != null) { _json["filteringCount"] = filteringCount; } @@ -1486,8 +1486,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (date != null) { _json["date"] = date; } @@ -1518,8 +1518,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -1553,8 +1553,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -1588,8 +1588,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -1670,8 +1670,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (advertiser != null) { _json["advertiser"] = advertiser; } @@ -1879,8 +1879,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (HTMLSnippet != null) { _json["HTMLSnippet"] = HTMLSnippet; } @@ -1987,8 +1987,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -2112,8 +2112,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -2185,8 +2185,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (directDeals != null) { _json["directDeals"] = directDeals.map((value) => (value).toJson()).toList(); } @@ -2355,8 +2355,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bidRate != null) { _json["bidRate"] = bidRate; } @@ -2445,8 +2445,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2474,8 +2474,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -2507,8 +2507,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (token != null) { _json["token"] = token; } @@ -2540,8 +2540,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (token != null) { _json["token"] = token; } @@ -2713,8 +2713,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (billingId != null) { _json["billingId"] = billingId; } @@ -2805,8 +2805,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); }
diff --git a/generated/googleapis/lib/adexchangebuyer/v1_4.dart b/generated/googleapis/lib/adexchangebuyer/v1_4.dart index db60fbc..98ae473 100644 --- a/generated/googleapis/lib/adexchangebuyer/v1_4.dart +++ b/generated/googleapis/lib/adexchangebuyer/v1_4.dart
@@ -1959,8 +1959,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bidProtocol != null) { _json["bidProtocol"] = bidProtocol; } @@ -2038,8 +2038,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bidderLocation != null) { _json["bidderLocation"] = bidderLocation.map((value) => (value).toJson()).toList(); } @@ -2089,8 +2089,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -2123,8 +2123,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deals != null) { _json["deals"] = deals.map((value) => (value).toJson()).toList(); } @@ -2155,8 +2155,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deals != null) { _json["deals"] = deals.map((value) => (value).toJson()).toList(); } @@ -2179,8 +2179,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (notes != null) { _json["notes"] = notes.map((value) => (value).toJson()).toList(); } @@ -2199,8 +2199,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (notes != null) { _json["notes"] = notes.map((value) => (value).toJson()).toList(); } @@ -2240,8 +2240,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -2279,8 +2279,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -2335,8 +2335,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -2371,8 +2371,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -2397,8 +2397,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (email != null) { _json["email"] = email; } @@ -2426,8 +2426,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (proposals != null) { _json["proposals"] = proposals.map((value) => (value).toJson()).toList(); } @@ -2450,8 +2450,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (proposals != null) { _json["proposals"] = proposals.map((value) => (value).toJson()).toList(); } @@ -2497,8 +2497,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (auctionType != null) { _json["auctionType"] = auctionType; } @@ -2537,8 +2537,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contexts != null) { _json["contexts"] = contexts.map((value) => (value).toJson()).toList(); } @@ -2572,8 +2572,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filteringCount != null) { _json["filteringCount"] = filteringCount; } @@ -2608,8 +2608,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (date != null) { _json["date"] = date; } @@ -2640,8 +2640,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -2675,8 +2675,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -2710,8 +2710,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -2808,8 +2808,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (advertiser != null) { _json["advertiser"] = advertiser; } @@ -2896,8 +2896,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (auctionType != null) { _json["auctionType"] = auctionType; } @@ -2931,8 +2931,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (details != null) { _json["details"] = details; } @@ -2974,8 +2974,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contexts != null) { _json["contexts"] = contexts.map((value) => (value).toJson()).toList(); } @@ -3211,8 +3211,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (HTMLSnippet != null) { _json["HTMLSnippet"] = HTMLSnippet; } @@ -3323,8 +3323,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (arcStatus != null) { _json["arcStatus"] = arcStatus; } @@ -3356,8 +3356,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dealStatuses != null) { _json["dealStatuses"] = dealStatuses.map((value) => (value).toJson()).toList(); } @@ -3398,8 +3398,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -3437,8 +3437,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alcoholAdsAllowed != null) { _json["alcoholAdsAllowed"] = alcoholAdsAllowed; } @@ -3482,8 +3482,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (buyerPauseReason != null) { _json["buyerPauseReason"] = buyerPauseReason; } @@ -3573,8 +3573,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (brandingType != null) { _json["brandingType"] = brandingType; } @@ -3653,8 +3653,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (billingInfo != null) { _json["billingInfo"] = (billingInfo).toJson(); } @@ -3716,8 +3716,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currencyConversionTimeMs != null) { _json["currencyConversionTimeMs"] = currencyConversionTimeMs; } @@ -3754,8 +3754,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoOptimizePrivateAuction != null) { _json["autoOptimizePrivateAuction"] = autoOptimizePrivateAuction; } @@ -3778,8 +3778,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fixedPrices != null) { _json["fixedPrices"] = fixedPrices.map((value) => (value).toJson()).toList(); } @@ -3804,8 +3804,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (priorityPrice != null) { _json["priorityPrice"] = (priorityPrice).toJson(); } @@ -3838,8 +3838,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dealIds != null) { _json["dealIds"] = dealIds; } @@ -3870,8 +3870,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deals != null) { _json["deals"] = deals.map((value) => (value).toJson()).toList(); } @@ -3901,8 +3901,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creativeBlockingLevel != null) { _json["creativeBlockingLevel"] = creativeBlockingLevel; } @@ -3935,8 +3935,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (maxImpressions != null) { _json["maxImpressions"] = maxImpressions; } @@ -3970,8 +3970,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimensionType != null) { _json["dimensionType"] = dimensionType; } @@ -4012,8 +4012,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -4070,8 +4070,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deals != null) { _json["deals"] = deals.map((value) => (value).toJson()).toList(); } @@ -4105,8 +4105,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deals != null) { _json["deals"] = deals.map((value) => (value).toJson()).toList(); } @@ -4129,8 +4129,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (products != null) { _json["products"] = products.map((value) => (value).toJson()).toList(); } @@ -4150,8 +4150,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deals != null) { _json["deals"] = deals.map((value) => (value).toJson()).toList(); } @@ -4176,8 +4176,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (notes != null) { _json["notes"] = notes.map((value) => (value).toJson()).toList(); } @@ -4197,8 +4197,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (proposals != null) { _json["proposals"] = proposals.map((value) => (value).toJson()).toList(); } @@ -4218,8 +4218,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (profiles != null) { _json["profiles"] = profiles.map((value) => (value).toJson()).toList(); } @@ -4405,8 +4405,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (buyerPrivateData != null) { _json["buyerPrivateData"] = (buyerPrivateData).toJson(); } @@ -4509,8 +4509,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (buyer != null) { _json["buyer"] = (buyer).toJson(); } @@ -4548,8 +4548,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -4626,8 +4626,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creatorRole != null) { _json["creatorRole"] = creatorRole; } @@ -4814,8 +4814,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bidRate != null) { _json["bidRate"] = bidRate; } @@ -4904,8 +4904,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -4933,8 +4933,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -4966,8 +4966,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (token != null) { _json["token"] = token; } @@ -4999,8 +4999,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (token != null) { _json["token"] = token; } @@ -5042,8 +5042,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aspectRatio != null) { _json["aspectRatio"] = aspectRatio; } @@ -5245,8 +5245,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (billingId != null) { _json["billingId"] = billingId; } @@ -5346,8 +5346,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -5385,8 +5385,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (amountMicros != null) { _json["amountMicros"] = amountMicros; } @@ -5441,8 +5441,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (auctionTier != null) { _json["auctionTier"] = auctionTier; } @@ -5481,8 +5481,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (referenceId != null) { _json["referenceId"] = referenceId; } @@ -5698,8 +5698,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (billedBuyer != null) { _json["billedBuyer"] = (billedBuyer).toJson(); } @@ -5943,8 +5943,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (billedBuyer != null) { _json["billedBuyer"] = (billedBuyer).toJson(); } @@ -6153,8 +6153,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -6251,8 +6251,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimensions != null) { _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList(); } @@ -6286,8 +6286,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -6325,8 +6325,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (exclusions != null) { _json["exclusions"] = exclusions.map((value) => (value).toJson()).toList(); } @@ -6370,8 +6370,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creativeSizeValue != null) { _json["creativeSizeValue"] = (creativeSizeValue).toJson(); } @@ -6423,8 +6423,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (companionSizes != null) { _json["companionSizes"] = companionSizes.map((value) => (value).toJson()).toList(); } @@ -6459,8 +6459,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dayParts != null) { _json["dayParts"] = dayParts.map((value) => (value).toJson()).toList(); } @@ -6498,8 +6498,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dayOfWeek != null) { _json["dayOfWeek"] = dayOfWeek; } @@ -6536,8 +6536,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -6575,8 +6575,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (externalDealId != null) { _json["externalDealId"] = externalDealId; }
diff --git a/generated/googleapis/lib/adexchangeseller/v1_1.dart b/generated/googleapis/lib/adexchangeseller/v1_1.dart index b15ea55..9e88165 100644 --- a/generated/googleapis/lib/adexchangeseller/v1_1.dart +++ b/generated/googleapis/lib/adexchangeseller/v1_1.dart
@@ -1067,8 +1067,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -1117,8 +1117,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (arcOptIn != null) { _json["arcOptIn"] = arcOptIn; } @@ -1168,8 +1168,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -1233,8 +1233,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -1284,8 +1284,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -1341,8 +1341,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -1379,8 +1379,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -1425,8 +1425,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adsAppearOn != null) { _json["adsAppearOn"] = adsAppearOn; } @@ -1479,8 +1479,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -1530,8 +1530,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -1564,8 +1564,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -1637,8 +1637,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (advertiserName != null) { _json["advertiserName"] = advertiserName; } @@ -1684,8 +1684,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -1724,8 +1724,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currency != null) { _json["currency"] = currency; } @@ -1799,8 +1799,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (averages != null) { _json["averages"] = averages; } @@ -1894,8 +1894,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (compatibleDimensions != null) { _json["compatibleDimensions"] = compatibleDimensions; } @@ -1943,8 +1943,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -1988,8 +1988,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -2034,8 +2034,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -2079,8 +2079,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; }
diff --git a/generated/googleapis/lib/adexchangeseller/v2_0.dart b/generated/googleapis/lib/adexchangeseller/v2_0.dart index 77c6a15..41d8532 100644 --- a/generated/googleapis/lib/adexchangeseller/v2_0.dart +++ b/generated/googleapis/lib/adexchangeseller/v2_0.dart
@@ -921,8 +921,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -966,8 +966,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -1019,8 +1019,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (arcOptIn != null) { _json["arcOptIn"] = arcOptIn; } @@ -1070,8 +1070,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -1127,8 +1127,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -1165,8 +1165,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -1211,8 +1211,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adsAppearOn != null) { _json["adsAppearOn"] = adsAppearOn; } @@ -1265,8 +1265,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -1316,8 +1316,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -1350,8 +1350,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -1423,8 +1423,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (advertiserName != null) { _json["advertiserName"] = advertiserName; } @@ -1470,8 +1470,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -1510,8 +1510,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currency != null) { _json["currency"] = currency; } @@ -1585,8 +1585,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (averages != null) { _json["averages"] = averages; } @@ -1680,8 +1680,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (compatibleDimensions != null) { _json["compatibleDimensions"] = compatibleDimensions; } @@ -1729,8 +1729,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -1774,8 +1774,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -1820,8 +1820,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -1865,8 +1865,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; }
diff --git a/generated/googleapis/lib/admin/datatransfer_v1.dart b/generated/googleapis/lib/admin/datatransfer_v1.dart index c52fc0c..dbf3170 100644 --- a/generated/googleapis/lib/admin/datatransfer_v1.dart +++ b/generated/googleapis/lib/admin/datatransfer_v1.dart
@@ -323,8 +323,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -370,8 +370,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (applicationId != null) { _json["applicationId"] = applicationId; } @@ -406,8 +406,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -451,8 +451,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (applications != null) { _json["applications"] = applications.map((value) => (value).toJson()).toList(); } @@ -522,8 +522,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (applicationDataTransfers != null) { _json["applicationDataTransfers"] = applicationDataTransfers.map((value) => (value).toJson()).toList(); } @@ -582,8 +582,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dataTransfers != null) { _json["dataTransfers"] = dataTransfers.map((value) => (value).toJson()).toList(); }
diff --git a/generated/googleapis/lib/admin/directory_v1.dart b/generated/googleapis/lib/admin/directory_v1.dart index cfec803..a5427b6 100644 --- a/generated/googleapis/lib/admin/directory_v1.dart +++ b/generated/googleapis/lib/admin/directory_v1.dart
@@ -5022,8 +5022,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alias != null) { _json["alias"] = alias; } @@ -5071,8 +5071,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aliases != null) { _json["aliases"] = aliases; } @@ -5132,8 +5132,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (codeId != null) { _json["codeId"] = codeId; } @@ -5181,8 +5181,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -5248,8 +5248,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etags != null) { _json["etags"] = etags; } @@ -5311,8 +5311,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -5399,8 +5399,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (address != null) { _json["address"] = address; } @@ -5452,8 +5452,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (activeTime != null) { _json["activeTime"] = activeTime; } @@ -5481,8 +5481,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (email != null) { _json["email"] = email; } @@ -5635,8 +5635,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (activeTimeRanges != null) { _json["activeTimeRanges"] = activeTimeRanges.map((value) => (value).toJson()).toList(); } @@ -5736,8 +5736,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (action != null) { _json["action"] = action; } @@ -5778,8 +5778,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (chromeosdevices != null) { _json["chromeosdevices"] = chromeosdevices.map((value) => (value).toJson()).toList(); } @@ -5855,8 +5855,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alternateEmail != null) { _json["alternateEmail"] = alternateEmail; } @@ -5957,8 +5957,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (addressLine1 != null) { _json["addressLine1"] = addressLine1; } @@ -6031,8 +6031,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTime != null) { _json["creationTime"] = creationTime; } @@ -6078,8 +6078,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (domainAliases != null) { _json["domainAliases"] = domainAliases.map((value) => (value).toJson()).toList(); } @@ -6136,8 +6136,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTime != null) { _json["creationTime"] = creationTime; } @@ -6186,8 +6186,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (domains != null) { _json["domains"] = domains.map((value) => (value).toJson()).toList(); } @@ -6259,8 +6259,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adminCreated != null) { _json["adminCreated"] = adminCreated; } @@ -6323,8 +6323,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -6387,8 +6387,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (email != null) { _json["email"] = email; } @@ -6442,8 +6442,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -6492,8 +6492,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -6730,8 +6730,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adbStatus != null) { _json["adbStatus"] = adbStatus; } @@ -6872,8 +6872,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (action != null) { _json["action"] = action; } @@ -6911,8 +6911,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -6976,8 +6976,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (body != null) { _json["body"] = body; } @@ -7039,8 +7039,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -7113,8 +7113,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (blockInheritance != null) { _json["blockInheritance"] = blockInheritance; } @@ -7172,8 +7172,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -7236,8 +7236,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (childPrivileges != null) { _json["childPrivileges"] = childPrivileges.map((value) => (value).toJson()).toList(); } @@ -7288,8 +7288,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -7320,8 +7320,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (privilegeName != null) { _json["privilegeName"] = privilegeName; } @@ -7380,8 +7380,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -7463,8 +7463,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (assignedTo != null) { _json["assignedTo"] = assignedTo; } @@ -7522,8 +7522,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -7567,8 +7567,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -7618,8 +7618,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -7669,8 +7669,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (maxValue != null) { _json["maxValue"] = maxValue; } @@ -7741,8 +7741,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -7797,8 +7797,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -7866,8 +7866,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (anonymous != null) { _json["anonymous"] = anonymous; } @@ -7921,8 +7921,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -8097,7 +8097,7 @@ creationTime = core.DateTime.parse(_json["creationTime"]); } if (_json.containsKey("customSchemas")) { - customSchemas = commons.mapMap(_json["customSchemas"], (item) => new UserCustomProperties.fromJson(item)); + customSchemas = commons.mapMap<core.Map<core.String, core.Object>, UserCustomProperties>(_json["customSchemas"], (core.Map<core.String, core.Object> item) => new UserCustomProperties.fromJson(item)); } if (_json.containsKey("customerId")) { customerId = _json["customerId"]; @@ -8203,8 +8203,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (addresses != null) { _json["addresses"] = addresses; } @@ -8351,8 +8351,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contentType != null) { _json["contentType"] = contentType; } @@ -8448,8 +8448,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (country != null) { _json["country"] = country; } @@ -8509,8 +8509,8 @@ }); } - core.Map toJson() { - var _json = {}; + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = <core.String, core.Object>{}; this.forEach((core.String key, value) { _json[key] = value; }); @@ -8568,8 +8568,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (address != null) { _json["address"] = address; } @@ -8609,8 +8609,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (customType != null) { _json["customType"] = customType; } @@ -8674,8 +8674,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (customProtocol != null) { _json["customProtocol"] = customProtocol; } @@ -8754,8 +8754,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (area != null) { _json["area"] = area; } @@ -8797,8 +8797,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (status != null) { _json["status"] = status; } @@ -8829,8 +8829,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (familyName != null) { _json["familyName"] = familyName; } @@ -8915,8 +8915,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (costCenter != null) { _json["costCenter"] = costCenter; } @@ -8988,8 +8988,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (customType != null) { _json["customType"] = customType; } @@ -9061,8 +9061,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -9142,8 +9142,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (gecos != null) { _json["gecos"] = gecos; } @@ -9198,8 +9198,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (customType != null) { _json["customType"] = customType; } @@ -9236,8 +9236,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (expirationTimeUsec != null) { _json["expirationTimeUsec"] = expirationTimeUsec; } @@ -9264,8 +9264,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (orgUnitPath != null) { _json["orgUnitPath"] = orgUnitPath; } @@ -9307,8 +9307,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (customType != null) { _json["customType"] = customType; } @@ -9360,8 +9360,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -9414,8 +9414,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -9461,8 +9461,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; }
diff --git a/generated/googleapis/lib/admin/reports_v1.dart b/generated/googleapis/lib/admin/reports_v1.dart index b22a764..a49417d 100644 --- a/generated/googleapis/lib/admin/reports_v1.dart +++ b/generated/googleapis/lib/admin/reports_v1.dart
@@ -486,8 +486,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -532,8 +532,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (callerType != null) { _json["callerType"] = callerType; } @@ -587,8 +587,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (boolValue != null) { _json["boolValue"] = boolValue; } @@ -633,8 +633,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -676,8 +676,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (applicationName != null) { _json["applicationName"] = applicationName; } @@ -737,8 +737,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (actor != null) { _json["actor"] = (actor).toJson(); } @@ -834,8 +834,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (address != null) { _json["address"] = address; } @@ -898,8 +898,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (customerId != null) { _json["customerId"] = customerId; } @@ -958,8 +958,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (boolValue != null) { _json["boolValue"] = boolValue; } @@ -1015,8 +1015,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (date != null) { _json["date"] = date; } @@ -1059,8 +1059,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -1093,8 +1093,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -1141,8 +1141,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; }
diff --git a/generated/googleapis/lib/adsense/v1_4.dart b/generated/googleapis/lib/adsense/v1_4.dart index 2b6fef1..9b2ee7a 100644 --- a/generated/googleapis/lib/adsense/v1_4.dart +++ b/generated/googleapis/lib/adsense/v1_4.dart
@@ -2403,8 +2403,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTime != null) { _json["creation_time"] = creationTime; } @@ -2460,8 +2460,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -2513,8 +2513,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (arcOptIn != null) { _json["arcOptIn"] = arcOptIn; } @@ -2564,8 +2564,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -2599,8 +2599,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adCode != null) { _json["adCode"] = adCode; } @@ -2648,8 +2648,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (background != null) { _json["background"] = background; } @@ -2687,8 +2687,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (family != null) { _json["family"] = family; } @@ -2732,8 +2732,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (colors != null) { _json["colors"] = (colors).toJson(); } @@ -2773,8 +2773,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (color != null) { _json["color"] = color; } @@ -2814,8 +2814,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (backupOption != null) { _json["backupOption"] = (backupOption).toJson(); } @@ -2860,8 +2860,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adPosition != null) { _json["adPosition"] = adPosition; } @@ -2906,8 +2906,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (markupLanguage != null) { _json["markupLanguage"] = markupLanguage; } @@ -2999,8 +2999,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -3065,8 +3065,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -3111,8 +3111,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currency != null) { _json["currency"] = currency; } @@ -3196,8 +3196,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (averages != null) { _json["averages"] = averages; } @@ -3273,8 +3273,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -3314,8 +3314,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -3361,8 +3361,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adsAppearOn != null) { _json["adsAppearOn"] = adsAppearOn; } @@ -3415,8 +3415,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -3466,8 +3466,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -3500,8 +3500,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -3547,8 +3547,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -3588,8 +3588,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -3665,8 +3665,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (compatibleDimensions != null) { _json["compatibleDimensions"] = compatibleDimensions; } @@ -3723,8 +3723,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adStyle != null) { _json["adStyle"] = (adStyle).toJson(); } @@ -3771,8 +3771,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -3811,8 +3811,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -3856,8 +3856,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -3902,8 +3902,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -3947,8 +3947,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; }
diff --git a/generated/googleapis/lib/adsensehost/v4_1.dart b/generated/googleapis/lib/adsensehost/v4_1.dart index 3495164..0350ad1 100644 --- a/generated/googleapis/lib/adsensehost/v4_1.dart +++ b/generated/googleapis/lib/adsensehost/v4_1.dart
@@ -1506,8 +1506,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -1546,8 +1546,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -1596,8 +1596,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (arcOptIn != null) { _json["arcOptIn"] = arcOptIn; } @@ -1647,8 +1647,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -1682,8 +1682,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adCode != null) { _json["adCode"] = adCode; } @@ -1730,8 +1730,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (background != null) { _json["background"] = background; } @@ -1775,8 +1775,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (family != null) { _json["family"] = family; } @@ -1819,8 +1819,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (colors != null) { _json["colors"] = (colors).toJson(); } @@ -1864,8 +1864,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (color != null) { _json["color"] = color; } @@ -1909,8 +1909,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (backupOption != null) { _json["backupOption"] = (backupOption).toJson(); } @@ -1952,8 +1952,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (markupLanguage != null) { _json["markupLanguage"] = markupLanguage; } @@ -2035,8 +2035,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -2095,8 +2095,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -2180,8 +2180,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -2244,8 +2244,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -2292,8 +2292,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -2338,8 +2338,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currency != null) { _json["currency"] = currency; } @@ -2413,8 +2413,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (averages != null) { _json["averages"] = averages; } @@ -2468,8 +2468,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -2513,8 +2513,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; }
diff --git a/generated/googleapis/lib/analytics/v3.dart b/generated/googleapis/lib/analytics/v3.dart index 2491f25..f4a24a3 100644 --- a/generated/googleapis/lib/analytics/v3.dart +++ b/generated/googleapis/lib/analytics/v3.dart
@@ -5079,8 +5079,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (href != null) { _json["href"] = href; } @@ -5107,8 +5107,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (effective != null) { _json["effective"] = effective; } @@ -5172,8 +5172,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (childLink != null) { _json["childLink"] = (childLink).toJson(); } @@ -5233,8 +5233,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (href != null) { _json["href"] = href; } @@ -5314,8 +5314,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -5380,8 +5380,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -5446,8 +5446,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (account != null) { _json["account"] = (account).toJson(); } @@ -5534,8 +5534,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -5590,8 +5590,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoTaggingEnabled != null) { _json["autoTaggingEnabled"] = autoTaggingEnabled; } @@ -5618,8 +5618,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (customDataImportUids != null) { _json["customDataImportUids"] = customDataImportUids; } @@ -5650,8 +5650,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attributes != null) { _json["attributes"] = attributes; } @@ -5701,8 +5701,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attributeNames != null) { _json["attributeNames"] = attributeNames; } @@ -5742,8 +5742,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (href != null) { _json["href"] = href; } @@ -5775,8 +5775,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (href != null) { _json["href"] = href; } @@ -5873,8 +5873,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -5987,8 +5987,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -6038,8 +6038,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (href != null) { _json["href"] = href; } @@ -6124,8 +6124,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -6229,8 +6229,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -6280,8 +6280,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (href != null) { _json["href"] = href; } @@ -6381,8 +6381,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -6495,8 +6495,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -6537,8 +6537,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (webPropertyRef != null) { _json["webPropertyRef"] = (webPropertyRef).toJson(); } @@ -6594,8 +6594,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adWordsAccounts != null) { _json["adWordsAccounts"] = adWordsAccounts.map((value) => (value).toJson()).toList(); } @@ -6678,8 +6678,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -6731,8 +6731,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountRef != null) { _json["accountRef"] = (accountRef).toJson(); } @@ -6773,8 +6773,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (effective != null) { _json["effective"] = effective; } @@ -6829,8 +6829,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entity != null) { _json["entity"] = (entity).toJson(); } @@ -6910,8 +6910,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -6961,8 +6961,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (href != null) { _json["href"] = href; } @@ -7023,8 +7023,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -7285,8 +7285,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -7438,8 +7438,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -7550,8 +7550,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (caseSensitive != null) { _json["caseSensitive"] = caseSensitive; } @@ -7615,8 +7615,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (field != null) { _json["field"] = field; } @@ -7648,8 +7648,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (href != null) { _json["href"] = href; } @@ -7695,8 +7695,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (caseSensitive != null) { _json["caseSensitive"] = caseSensitive; } @@ -7736,8 +7736,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (field != null) { _json["field"] = field; } @@ -7837,8 +7837,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -8022,8 +8022,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (caseSensitive != null) { _json["caseSensitive"] = caseSensitive; } @@ -8079,8 +8079,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -8162,8 +8162,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -8218,8 +8218,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnType != null) { _json["columnType"] = columnType; } @@ -8252,8 +8252,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -8278,8 +8278,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (v != null) { _json["v"] = v; } @@ -8298,8 +8298,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (c != null) { _json["c"] = c.map((value) => (value).toJson()).toList(); } @@ -8322,8 +8322,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cols != null) { _json["cols"] = cols.map((value) => (value).toJson()).toList(); } @@ -8375,8 +8375,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -8462,8 +8462,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimensions != null) { _json["dimensions"] = dimensions; } @@ -8615,8 +8615,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnHeaders != null) { _json["columnHeaders"] = columnHeaders.map((value) => (value).toJson()).toList(); } @@ -8712,8 +8712,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (comparisonType != null) { _json["comparisonType"] = comparisonType; } @@ -8753,8 +8753,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (eventConditions != null) { _json["eventConditions"] = eventConditions.map((value) => (value).toJson()).toList(); } @@ -8786,8 +8786,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (href != null) { _json["href"] = href; } @@ -8820,8 +8820,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -8873,8 +8873,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (caseSensitive != null) { _json["caseSensitive"] = caseSensitive; } @@ -8914,8 +8914,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (comparisonType != null) { _json["comparisonType"] = comparisonType; } @@ -8944,8 +8944,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (comparisonType != null) { _json["comparisonType"] = comparisonType; } @@ -9063,8 +9063,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -9186,8 +9186,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -9261,8 +9261,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (daysToLookBack != null) { _json["daysToLookBack"] = daysToLookBack; } @@ -9349,8 +9349,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -9410,8 +9410,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnType != null) { _json["columnType"] = columnType; } @@ -9466,8 +9466,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -9553,8 +9553,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimensions != null) { _json["dimensions"] = dimensions; } @@ -9614,8 +9614,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (interactionType != null) { _json["interactionType"] = interactionType; } @@ -9650,8 +9650,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (conversionPathValue != null) { _json["conversionPathValue"] = conversionPathValue.map((value) => (value).toJson()).toList(); } @@ -9767,8 +9767,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnHeaders != null) { _json["columnHeaders"] = columnHeaders.map((value) => (value).toJson()).toList(); } @@ -9839,8 +9839,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (href != null) { _json["href"] = href; } @@ -9872,8 +9872,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (href != null) { _json["href"] = href; } @@ -9901,8 +9901,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (effective != null) { _json["effective"] = effective; } @@ -10079,8 +10079,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -10213,8 +10213,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filterRef != null) { _json["filterRef"] = (filterRef).toJson(); } @@ -10300,8 +10300,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -10376,8 +10376,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -10439,8 +10439,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -10523,8 +10523,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -10579,8 +10579,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnType != null) { _json["columnType"] = columnType; } @@ -10635,8 +10635,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -10697,8 +10697,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimensions != null) { _json["dimensions"] = dimensions; } @@ -10791,8 +10791,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnHeaders != null) { _json["columnHeaders"] = columnHeaders.map((value) => (value).toJson()).toList(); } @@ -10840,8 +10840,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (includeConditions != null) { _json["includeConditions"] = (includeConditions).toJson(); } @@ -10870,8 +10870,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (exclusionDuration != null) { _json["exclusionDuration"] = exclusionDuration; } @@ -10903,8 +10903,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (excludeConditions != null) { _json["excludeConditions"] = (excludeConditions).toJson(); } @@ -11008,8 +11008,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -11119,8 +11119,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -11204,8 +11204,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (created != null) { _json["created"] = (created).toIso8601String(); } @@ -11299,8 +11299,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -11347,8 +11347,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bucketId != null) { _json["bucketId"] = bucketId; } @@ -11372,8 +11372,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (documentId != null) { _json["documentId"] = documentId; } @@ -11495,8 +11495,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -11622,8 +11622,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -11693,8 +11693,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -11775,8 +11775,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -11824,8 +11824,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (email != null) { _json["email"] = email; } @@ -11877,8 +11877,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -11952,8 +11952,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -12045,8 +12045,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -12096,8 +12096,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (href != null) { _json["href"] = href; } @@ -12129,8 +12129,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (href != null) { _json["href"] = href; } @@ -12158,8 +12158,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (effective != null) { _json["effective"] = effective; } @@ -12266,8 +12266,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; }
diff --git a/generated/googleapis/lib/analyticsreporting/v4.dart b/generated/googleapis/lib/analyticsreporting/v4.dart index 1d0b96f..a4c02c3 100644 --- a/generated/googleapis/lib/analyticsreporting/v4.dart +++ b/generated/googleapis/lib/analyticsreporting/v4.dart
@@ -131,8 +131,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dateRange != null) { _json["dateRange"] = (dateRange).toJson(); } @@ -210,8 +210,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cohorts != null) { _json["cohorts"] = cohorts.map((value) => (value).toJson()).toList(); } @@ -240,8 +240,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimensions != null) { _json["dimensions"] = dimensions; } @@ -274,8 +274,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endDate != null) { _json["endDate"] = endDate; } @@ -307,8 +307,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (pivotValueRegions != null) { _json["pivotValueRegions"] = pivotValueRegions.map((value) => (value).toJson()).toList(); } @@ -374,8 +374,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (histogramBuckets != null) { _json["histogramBuckets"] = histogramBuckets; } @@ -468,8 +468,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (caseSensitive != null) { _json["caseSensitive"] = caseSensitive; } @@ -520,8 +520,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filters != null) { _json["filters"] = filters.map((value) => (value).toJson()).toList(); } @@ -558,8 +558,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -590,8 +590,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (reportRequests != null) { _json["reportRequests"] = reportRequests.map((value) => (value).toJson()).toList(); } @@ -615,8 +615,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (reports != null) { _json["reports"] = reports.map((value) => (value).toJson()).toList(); } @@ -676,8 +676,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alias != null) { _json["alias"] = alias; } @@ -742,8 +742,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (comparisonValue != null) { _json["comparisonValue"] = comparisonValue; } @@ -791,8 +791,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filters != null) { _json["filters"] = filters.map((value) => (value).toJson()).toList(); } @@ -821,8 +821,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metricHeaderEntries != null) { _json["metricHeaderEntries"] = metricHeaderEntries.map((value) => (value).toJson()).toList(); } @@ -860,8 +860,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -888,8 +888,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (segmentFilterClauses != null) { _json["segmentFilterClauses"] = segmentFilterClauses.map((value) => (value).toJson()).toList(); } @@ -958,8 +958,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fieldName != null) { _json["fieldName"] = fieldName; } @@ -1042,8 +1042,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimensionFilterClauses != null) { _json["dimensionFilterClauses"] = dimensionFilterClauses.map((value) => (value).toJson()).toList(); } @@ -1081,8 +1081,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (pivotHeaderEntries != null) { _json["pivotHeaderEntries"] = pivotHeaderEntries.map((value) => (value).toJson()).toList(); } @@ -1119,8 +1119,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimensionNames != null) { _json["dimensionNames"] = dimensionNames; } @@ -1147,8 +1147,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (values != null) { _json["values"] = values; } @@ -1179,8 +1179,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnHeader != null) { _json["columnHeader"] = (columnHeader).toJson(); } @@ -1286,8 +1286,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dataLastRefreshed != null) { _json["dataLastRefreshed"] = dataLastRefreshed; } @@ -1512,8 +1512,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cohortGroup != null) { _json["cohortGroup"] = (cohortGroup).toJson(); } @@ -1587,8 +1587,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimensions != null) { _json["dimensions"] = dimensions; } @@ -1623,8 +1623,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dynamicSegment != null) { _json["dynamicSegment"] = (dynamicSegment).toJson(); } @@ -1654,8 +1654,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (segmentFilters != null) { _json["segmentFilters"] = segmentFilters.map((value) => (value).toJson()).toList(); } @@ -1744,8 +1744,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (caseSensitive != null) { _json["caseSensitive"] = caseSensitive; } @@ -1823,8 +1823,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (not != null) { _json["not"] = not; } @@ -1864,8 +1864,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimensionFilter != null) { _json["dimensionFilter"] = (dimensionFilter).toJson(); } @@ -1945,8 +1945,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (comparisonValue != null) { _json["comparisonValue"] = comparisonValue; } @@ -1997,8 +1997,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (matchType != null) { _json["matchType"] = matchType; } @@ -2034,8 +2034,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (firstStepShouldMatchFirstHit != null) { _json["firstStepShouldMatchFirstHit"] = firstStepShouldMatchFirstHit; } @@ -2065,8 +2065,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (orFiltersForSegment != null) { _json["orFiltersForSegment"] = orFiltersForSegment.map((value) => (value).toJson()).toList(); }
diff --git a/generated/googleapis/lib/androidenterprise/v1.dart b/generated/googleapis/lib/androidenterprise/v1.dart index 21e8835..9b265bb 100644 --- a/generated/googleapis/lib/androidenterprise/v1.dart +++ b/generated/googleapis/lib/androidenterprise/v1.dart
@@ -4017,8 +4017,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (email != null) { _json["email"] = email; } @@ -4049,8 +4049,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -4099,8 +4099,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -4138,8 +4138,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -4170,8 +4170,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (productId != null) { _json["productId"] = productId; } @@ -4251,8 +4251,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (defaultValue != null) { _json["defaultValue"] = (defaultValue).toJson(); } @@ -4320,8 +4320,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (type != null) { _json["type"] = type; } @@ -4362,8 +4362,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (productId != null) { _json["productId"] = productId; } @@ -4393,8 +4393,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (versionCode != null) { _json["versionCode"] = versionCode; } @@ -4429,8 +4429,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (approvalUrl != null) { _json["approvalUrl"] = approvalUrl; } @@ -4469,8 +4469,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -4530,8 +4530,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (androidId != null) { _json["androidId"] = androidId; } @@ -4574,8 +4574,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountState != null) { _json["accountState"] = accountState; } @@ -4607,8 +4607,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (device != null) { _json["device"] = device.map((value) => (value).toJson()).toList(); } @@ -4671,8 +4671,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (administrator != null) { _json["administrator"] = administrator.map((value) => (value).toJson()).toList(); } @@ -4716,8 +4716,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountEmail != null) { _json["accountEmail"] = accountEmail; } @@ -4749,8 +4749,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (enterprise != null) { _json["enterprise"] = enterprise.map((value) => (value).toJson()).toList(); } @@ -4781,8 +4781,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (messageId != null) { _json["messageId"] = messageId; } @@ -4851,8 +4851,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -4891,8 +4891,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entitlement != null) { _json["entitlement"] = entitlement.map((value) => (value).toJson()).toList(); } @@ -5002,8 +5002,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (acquisitionKind != null) { _json["acquisitionKind"] = acquisitionKind; } @@ -5050,8 +5050,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -5083,8 +5083,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (groupLicense != null) { _json["groupLicense"] = groupLicense.map((value) => (value).toJson()).toList(); } @@ -5162,8 +5162,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (installState != null) { _json["installState"] = installState; } @@ -5218,8 +5218,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deviceId != null) { _json["deviceId"] = deviceId; } @@ -5263,8 +5263,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (install != null) { _json["install"] = install.map((value) => (value).toJson()).toList(); } @@ -5293,8 +5293,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (locale != null) { _json["locale"] = locale; } @@ -5338,8 +5338,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -5374,8 +5374,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -5407,8 +5407,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -5485,8 +5485,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -5525,8 +5525,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (managedProperty != null) { _json["managedProperty"] = managedProperty.map((value) => (value).toJson()).toList(); } @@ -5564,8 +5564,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deviceId != null) { _json["deviceId"] = deviceId; } @@ -5612,8 +5612,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (approvedPermissions != null) { _json["approvedPermissions"] = approvedPermissions; } @@ -5691,8 +5691,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (appRestrictionsSchemaChangeEvent != null) { _json["appRestrictionsSchemaChangeEvent"] = (appRestrictionsSchemaChangeEvent).toJson(); } @@ -5761,8 +5761,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -5795,8 +5795,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resultPerPage != null) { _json["resultPerPage"] = resultPerPage; } @@ -5853,8 +5853,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -5979,8 +5979,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (appVersion != null) { _json["appVersion"] = appVersion.map((value) => (value).toJson()).toList(); } @@ -6045,8 +6045,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (approved != null) { _json["approved"] = approved; } @@ -6078,8 +6078,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (availabilityStatus != null) { _json["availabilityStatus"] = availabilityStatus; } @@ -6115,8 +6115,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissionId != null) { _json["permissionId"] = permissionId; } @@ -6159,8 +6159,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -6210,8 +6210,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -6255,8 +6255,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (approvalUrlInfo != null) { _json["approvalUrlInfo"] = (approvalUrlInfo).toJson(); } @@ -6288,8 +6288,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (url != null) { _json["url"] = url; } @@ -6331,8 +6331,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -6381,8 +6381,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = (key).toJson(); } @@ -6444,8 +6444,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (data != null) { _json["data"] = data; } @@ -6477,8 +6477,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (serviceAccountKey != null) { _json["serviceAccountKey"] = serviceAccountKey.map((value) => (value).toJson()).toList(); } @@ -6521,8 +6521,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (completionToken != null) { _json["completionToken"] = completionToken; } @@ -6592,8 +6592,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -6653,8 +6653,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (homepageId != null) { _json["homepageId"] = homepageId; } @@ -6689,8 +6689,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cluster != null) { _json["cluster"] = cluster.map((value) => (value).toJson()).toList(); } @@ -6722,8 +6722,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -6784,8 +6784,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -6817,8 +6817,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -6909,8 +6909,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountIdentifier != null) { _json["accountIdentifier"] = accountIdentifier; } @@ -6970,8 +6970,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -7006,8 +7006,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; }
diff --git a/generated/googleapis/lib/androidpublisher/v2.dart b/generated/googleapis/lib/androidpublisher/v2.dart index 3ca53e2..07df54e 100644 --- a/generated/googleapis/lib/androidpublisher/v2.dart +++ b/generated/googleapis/lib/androidpublisher/v2.dart
@@ -3392,8 +3392,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (binary != null) { _json["binary"] = (binary).toJson(); } @@ -3420,8 +3420,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (sha1 != null) { _json["sha1"] = sha1; } @@ -3446,8 +3446,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (language != null) { _json["language"] = language; } @@ -3477,8 +3477,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -3501,8 +3501,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (externallyHostedApk != null) { _json["externallyHostedApk"] = (externallyHostedApk).toJson(); } @@ -3522,8 +3522,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (externallyHostedApk != null) { _json["externallyHostedApk"] = (externallyHostedApk).toJson(); } @@ -3550,8 +3550,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (apks != null) { _json["apks"] = apks.map((value) => (value).toJson()).toList(); } @@ -3589,8 +3589,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contactEmail != null) { _json["contactEmail"] = contactEmail; } @@ -3631,8 +3631,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (expiryTimeSeconds != null) { _json["expiryTimeSeconds"] = expiryTimeSeconds; } @@ -3660,8 +3660,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (developerComment != null) { _json["developerComment"] = (developerComment).toJson(); } @@ -3685,8 +3685,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (symbolType != null) { _json["symbolType"] = symbolType; } @@ -3705,8 +3705,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deobfuscationFile != null) { _json["deobfuscationFile"] = (deobfuscationFile).toJson(); } @@ -3731,8 +3731,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (lastModified != null) { _json["lastModified"] = (lastModified).toJson(); } @@ -3805,8 +3805,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cpuMake != null) { _json["cpuMake"] = cpuMake; } @@ -3883,8 +3883,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -3920,8 +3920,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (pageInfo != null) { _json["pageInfo"] = (pageInfo).toJson(); } @@ -3959,8 +3959,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fileSize != null) { _json["fileSize"] = fileSize; } @@ -3982,8 +3982,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (expansionFile != null) { _json["expansionFile"] = (expansionFile).toJson(); } @@ -4087,8 +4087,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (applicationLabel != null) { _json["applicationLabel"] = applicationLabel; } @@ -4158,8 +4158,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (maxSdkVersion != null) { _json["maxSdkVersion"] = maxSdkVersion; } @@ -4192,8 +4192,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -4218,8 +4218,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deleted != null) { _json["deleted"] = deleted.map((value) => (value).toJson()).toList(); } @@ -4238,8 +4238,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (images != null) { _json["images"] = images.map((value) => (value).toJson()).toList(); } @@ -4258,8 +4258,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (image != null) { _json["image"] = (image).toJson(); } @@ -4320,13 +4320,13 @@ defaultPrice = new Price.fromJson(_json["defaultPrice"]); } if (_json.containsKey("listings")) { - listings = commons.mapMap(_json["listings"], (item) => new InAppProductListing.fromJson(item)); + listings = commons.mapMap<core.Map<core.String, core.Object>, InAppProductListing>(_json["listings"], (core.Map<core.String, core.Object> item) => new InAppProductListing.fromJson(item)); } if (_json.containsKey("packageName")) { packageName = _json["packageName"]; } if (_json.containsKey("prices")) { - prices = commons.mapMap(_json["prices"], (item) => new Price.fromJson(item)); + prices = commons.mapMap<core.Map<core.String, core.Object>, Price>(_json["prices"], (core.Map<core.String, core.Object> item) => new Price.fromJson(item)); } if (_json.containsKey("purchaseType")) { purchaseType = _json["purchaseType"]; @@ -4348,8 +4348,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (defaultLanguage != null) { _json["defaultLanguage"] = defaultLanguage; } @@ -4357,13 +4357,13 @@ _json["defaultPrice"] = (defaultPrice).toJson(); } if (listings != null) { - _json["listings"] = commons.mapMap(listings, (item) => (item).toJson()); + _json["listings"] = commons.mapMap<InAppProductListing, core.Map<core.String, core.Object>>(listings, (InAppProductListing item) => (item).toJson()); } if (packageName != null) { _json["packageName"] = packageName; } if (prices != null) { - _json["prices"] = commons.mapMap(prices, (item) => (item).toJson()); + _json["prices"] = commons.mapMap<Price, core.Map<core.String, core.Object>>(prices, (Price item) => (item).toJson()); } if (purchaseType != null) { _json["purchaseType"] = purchaseType; @@ -4402,8 +4402,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -4425,8 +4425,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entrys != null) { _json["entrys"] = entrys.map((value) => (value).toJson()).toList(); } @@ -4457,8 +4457,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (batchId != null) { _json["batchId"] = batchId; } @@ -4494,8 +4494,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entrys != null) { _json["entrys"] = entrys.map((value) => (value).toJson()).toList(); } @@ -4525,8 +4525,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (batchId != null) { _json["batchId"] = batchId; } @@ -4551,8 +4551,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (inappproduct != null) { _json["inappproduct"] = (inappproduct).toJson(); } @@ -4571,8 +4571,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (inappproduct != null) { _json["inappproduct"] = (inappproduct).toJson(); } @@ -4607,8 +4607,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (inappproduct != null) { _json["inappproduct"] = inappproduct.map((value) => (value).toJson()).toList(); } @@ -4636,8 +4636,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (inappproduct != null) { _json["inappproduct"] = (inappproduct).toJson(); } @@ -4656,8 +4656,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (inappproduct != null) { _json["inappproduct"] = (inappproduct).toJson(); } @@ -4702,8 +4702,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fullDescription != null) { _json["fullDescription"] = fullDescription; } @@ -4742,8 +4742,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -4774,8 +4774,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (day != null) { _json["day"] = day; } @@ -4805,8 +4805,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resultPerPage != null) { _json["resultPerPage"] = resultPerPage; } @@ -4839,8 +4839,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currency != null) { _json["currency"] = currency; } @@ -4904,8 +4904,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (consumptionState != null) { _json["consumptionState"] = consumptionState; } @@ -4947,8 +4947,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (defaultPrice != null) { _json["defaultPrice"] = (defaultPrice).toJson(); } @@ -4981,8 +4981,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (authorName != null) { _json["authorName"] = authorName; } @@ -5013,8 +5013,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (lastEdited != null) { _json["lastEdited"] = (lastEdited).toJson(); } @@ -5044,8 +5044,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (pageInfo != null) { _json["pageInfo"] = (pageInfo).toJson(); } @@ -5074,8 +5074,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (replyText != null) { _json["replyText"] = replyText; } @@ -5094,8 +5094,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (result != null) { _json["result"] = (result).toJson(); } @@ -5130,8 +5130,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (end != null) { _json["end"] = (end).toJson(); } @@ -5174,8 +5174,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (desiredExpiryTimeMillis != null) { _json["desiredExpiryTimeMillis"] = desiredExpiryTimeMillis; } @@ -5292,8 +5292,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoRenewing != null) { _json["autoRenewing"] = autoRenewing; } @@ -5345,8 +5345,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deferralInfo != null) { _json["deferralInfo"] = (deferralInfo).toJson(); } @@ -5368,8 +5368,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (newExpiryTimeMillis != null) { _json["newExpiryTimeMillis"] = newExpiryTimeMillis; } @@ -5392,8 +5392,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (googleGroups != null) { _json["googleGroups"] = googleGroups; } @@ -5419,8 +5419,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nanos != null) { _json["nanos"] = nanos; } @@ -5446,8 +5446,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -5477,8 +5477,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (track != null) { _json["track"] = track; } @@ -5511,8 +5511,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -5612,8 +5612,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (androidOsVersion != null) { _json["androidOsVersion"] = androidOsVersion; } @@ -5697,8 +5697,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -5734,8 +5734,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (pageInfo != null) { _json["pageInfo"] = (pageInfo).toJson(); }
diff --git a/generated/googleapis/lib/appengine/v1.dart b/generated/googleapis/lib/appengine/v1.dart index 4c2a3bc..078f510 100644 --- a/generated/googleapis/lib/appengine/v1.dart +++ b/generated/googleapis/lib/appengine/v1.dart
@@ -296,12 +296,12 @@ * [appsId] - Part of `name`. The resource that owns the locations collection, * if applicable. * - * [pageSize] - The standard list page size. - * * [filter] - The standard list filter. * * [pageToken] - The standard list page token. * + * [pageSize] - The standard list page size. + * * Completes with a [ListLocationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -310,7 +310,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListLocationsResponse> list(core.String appsId, {core.int pageSize, core.String filter, core.String pageToken}) { + async.Future<ListLocationsResponse> list(core.String appsId, {core.String filter, core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -321,15 +321,15 @@ if (appsId == null) { throw new core.ArgumentError("Parameter appsId is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (filter != null) { _queryParams["filter"] = [filter]; } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locations'; @@ -401,12 +401,17 @@ /** * Lists operations that match the specified filter in the request. If the * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name - * binding below allows API services to override the binding to use different - * resource name schemes, such as users / * /operations. + * binding allows API services to override the binding to use different + * resource name schemes, such as users / * /operations. To override the + * binding, API services can add a binding such as "/v1/{name=users / * + * }/operations" to their service configuration. For backwards compatibility, + * the default name includes the operations collection id, however overriding + * users must ensure the name binding is the parent resource, without the + * operations collection id. * * Request parameters: * - * [appsId] - Part of `name`. The name of the operation collection. + * [appsId] - Part of `name`. The name of the operation's parent resource. * * [pageSize] - The standard list page size. * @@ -564,10 +569,10 @@ * [appsId] - Part of `parent`. Name of the parent Application resource. * Example: apps/myapp. * - * [pageSize] - Maximum results to return per page. - * * [pageToken] - Continuation token for fetching the next page of results. * + * [pageSize] - Maximum results to return per page. + * * Completes with a [ListServicesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -576,7 +581,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListServicesResponse> list(core.String appsId, {core.int pageSize, core.String pageToken}) { + async.Future<ListServicesResponse> list(core.String appsId, {core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -587,12 +592,12 @@ if (appsId == null) { throw new core.ArgumentError("Parameter appsId is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services'; @@ -1186,10 +1191,10 @@ * * [versionsId] - Part of `parent`. See documentation of `appsId`. * - * [pageSize] - Maximum results to return per page. - * * [pageToken] - Continuation token for fetching the next page of results. * + * [pageSize] - Maximum results to return per page. + * * Completes with a [ListInstancesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1198,7 +1203,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListInstancesResponse> list(core.String appsId, core.String servicesId, core.String versionsId, {core.int pageSize, core.String pageToken}) { + async.Future<ListInstancesResponse> list(core.String appsId, core.String servicesId, core.String versionsId, {core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1215,12 +1220,12 @@ if (versionsId == null) { throw new core.ArgumentError("Parameter versionsId is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Escaper.ecapeVariable('$versionsId') + '/instances'; @@ -1312,8 +1317,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (authFailAction != null) { _json["authFailAction"] = authFailAction; } @@ -1346,8 +1351,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (scriptPath != null) { _json["scriptPath"] = scriptPath; } @@ -1357,7 +1362,7 @@ /** * An Application resource contains the top-level configuration of an App Engine - * application. + * application. Next tag: 19 */ class Application { /** @@ -1465,8 +1470,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (authDomain != null) { _json["authDomain"] = authDomain; } @@ -1600,8 +1605,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (coolDownPeriod != null) { _json["coolDownPeriod"] = coolDownPeriod; } @@ -1668,8 +1673,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (idleTimeout != null) { _json["idleTimeout"] = idleTimeout; } @@ -1701,8 +1706,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (image != null) { _json["image"] = image; } @@ -1731,8 +1736,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aggregationWindowLength != null) { _json["aggregationWindowLength"] = aggregationWindowLength; } @@ -1763,8 +1768,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (sshKey != null) { _json["sshKey"] = sshKey; } @@ -1795,20 +1800,20 @@ container = new ContainerInfo.fromJson(_json["container"]); } if (_json.containsKey("files")) { - files = commons.mapMap(_json["files"], (item) => new FileInfo.fromJson(item)); + files = commons.mapMap<core.Map<core.String, core.Object>, FileInfo>(_json["files"], (core.Map<core.String, core.Object> item) => new FileInfo.fromJson(item)); } if (_json.containsKey("zip")) { zip = new ZipInfo.fromJson(_json["zip"]); } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (container != null) { _json["container"] = (container).toJson(); } if (files != null) { - _json["files"] = commons.mapMap(files, (item) => (item).toJson()); + _json["files"] = commons.mapMap<FileInfo, core.Map<core.String, core.Object>>(files, (FileInfo item) => (item).toJson()); } if (zip != null) { _json["zip"] = (zip).toJson(); @@ -1845,8 +1850,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (targetReadBytesPerSecond != null) { _json["targetReadBytesPerSecond"] = targetReadBytesPerSecond; } @@ -1893,8 +1898,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (configId != null) { _json["configId"] = configId; } @@ -1937,8 +1942,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errorCode != null) { _json["errorCode"] = errorCode; } @@ -1984,8 +1989,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (mimeType != null) { _json["mimeType"] = mimeType; } @@ -2058,8 +2063,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (checkInterval != null) { _json["checkInterval"] = checkInterval; } @@ -2122,8 +2127,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (enabled != null) { _json["enabled"] = enabled; } @@ -2261,8 +2266,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (appEngineRelease != null) { _json["appEngineRelease"] = appEngineRelease; } @@ -2333,8 +2338,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -2363,8 +2368,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instances != null) { _json["instances"] = instances.map((value) => (value).toJson()).toList(); } @@ -2393,8 +2398,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (locations != null) { _json["locations"] = locations.map((value) => (value).toJson()).toList(); } @@ -2423,8 +2428,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -2453,8 +2458,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -2483,8 +2488,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -2550,8 +2555,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (checkInterval != null) { _json["checkInterval"] = checkInterval; } @@ -2617,8 +2622,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (labels != null) { _json["labels"] = labels; } @@ -2659,8 +2664,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (flexibleEnvironmentAvailable != null) { _json["flexibleEnvironmentAvailable"] = flexibleEnvironmentAvailable; } @@ -2692,8 +2697,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instances != null) { _json["instances"] = instances; } @@ -2750,8 +2755,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (forwardedPorts != null) { _json["forwardedPorts"] = forwardedPorts; } @@ -2796,8 +2801,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (targetReceivedBytesPerSecond != null) { _json["targetReceivedBytesPerSecond"] = targetReceivedBytesPerSecond; } @@ -2877,8 +2882,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (done != null) { _json["done"] = done; } @@ -2945,8 +2950,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } @@ -3008,8 +3013,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } @@ -3081,8 +3086,87 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (endTime != null) { + _json["endTime"] = endTime; + } + if (ephemeralMessage != null) { + _json["ephemeralMessage"] = ephemeralMessage; + } + if (insertTime != null) { + _json["insertTime"] = insertTime; + } + if (method != null) { + _json["method"] = method; + } + if (target != null) { + _json["target"] = target; + } + if (user != null) { + _json["user"] = user; + } + if (warning != null) { + _json["warning"] = warning; + } + return _json; + } +} + +/** Metadata for the given google.longrunning.Operation. */ +class OperationMetadataV1Alpha { + /** Time that this operation completed.@OutputOnly */ + core.String endTime; + /** + * Ephemeral message that may change every time the operation is polled. + * @OutputOnly + */ + core.String ephemeralMessage; + /** Time that this operation was created.@OutputOnly */ + core.String insertTime; + /** + * API method that initiated this operation. Example: + * google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly + */ + core.String method; + /** + * Name of the resource that this operation is acting on. Example: + * apps/myapp/services/default.@OutputOnly + */ + core.String target; + /** User who requested this operation.@OutputOnly */ + core.String user; + /** Durable messages that persist on every operation poll. @OutputOnly */ + core.List<core.String> warning; + + OperationMetadataV1Alpha(); + + OperationMetadataV1Alpha.fromJson(core.Map _json) { + if (_json.containsKey("endTime")) { + endTime = _json["endTime"]; + } + if (_json.containsKey("ephemeralMessage")) { + ephemeralMessage = _json["ephemeralMessage"]; + } + if (_json.containsKey("insertTime")) { + insertTime = _json["insertTime"]; + } + if (_json.containsKey("method")) { + method = _json["method"]; + } + if (_json.containsKey("target")) { + target = _json["target"]; + } + if (_json.containsKey("user")) { + user = _json["user"]; + } + if (_json.containsKey("warning")) { + warning = _json["warning"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } @@ -3160,8 +3244,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } @@ -3226,8 +3310,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } @@ -3293,8 +3377,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (checkInterval != null) { _json["checkInterval"] = checkInterval; } @@ -3325,8 +3409,8 @@ RepairApplicationRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -3349,8 +3433,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (targetConcurrentRequests != null) { _json["targetConcurrentRequests"] = targetConcurrentRequests; } @@ -3389,8 +3473,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cpu != null) { _json["cpu"] = cpu; } @@ -3420,8 +3504,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (scriptPath != null) { _json["scriptPath"] = scriptPath; } @@ -3468,8 +3552,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -3554,8 +3638,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (applicationReadable != null) { _json["applicationReadable"] = applicationReadable; } @@ -3594,7 +3678,7 @@ * localized user-facing error message is needed, put the localized message in * the error details or localize it in the client. The optional error details * may contain arbitrary information about the error. There is a predefined set - * of error detail types in the package google.rpc which can be used for common + * of error detail types in the package google.rpc that can be used for common * error conditions.Language mappingThe Status message is the logical * representation of the error model, but it is not necessarily the actual wire * format. When the Status message is exposed in different client libraries and @@ -3607,7 +3691,7 @@ * Partial errors. If a service needs to return partial errors to the client, it * may embed the Status in the normal response to indicate the partial errors. * Workflow errors. A typical workflow has multiple steps. Each step may have a - * Status message for error reporting purpose. + * Status message for error reporting. * Batch operations. If a client uses batch request and batch response, the * Status message should be used directly inside batch response, one for each * error sub-response. @@ -3649,8 +3733,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -3706,8 +3790,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allocations != null) { _json["allocations"] = allocations; } @@ -3751,8 +3835,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (domain != null) { _json["domain"] = domain; } @@ -3870,8 +3954,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (apiEndpoint != null) { _json["apiEndpoint"] = (apiEndpoint).toJson(); } @@ -4041,6 +4125,12 @@ /** Desired runtime. Example: python27. */ core.String runtime; /** + * The version of the API in the given runtime environment. Please see the + * app.yaml reference for valid values at + * https://cloud.google.com/appengine/docs/standard/<language>/config/appref + */ + core.String runtimeApiVersion; + /** * Current serving status of this version. Only the versions with a SERVING * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an * invalid value. Defaults to SERVING. @@ -4146,6 +4236,9 @@ if (_json.containsKey("runtime")) { runtime = _json["runtime"]; } + if (_json.containsKey("runtimeApiVersion")) { + runtimeApiVersion = _json["runtimeApiVersion"]; + } if (_json.containsKey("servingStatus")) { servingStatus = _json["servingStatus"]; } @@ -4160,8 +4253,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (apiConfig != null) { _json["apiConfig"] = (apiConfig).toJson(); } @@ -4243,6 +4336,9 @@ if (runtime != null) { _json["runtime"] = runtime; } + if (runtimeApiVersion != null) { + _json["runtimeApiVersion"] = runtimeApiVersion; + } if (servingStatus != null) { _json["servingStatus"] = servingStatus; } @@ -4284,8 +4380,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -4325,8 +4421,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filesCount != null) { _json["filesCount"] = filesCount; }
diff --git a/generated/googleapis/lib/appsactivity/v1.dart b/generated/googleapis/lib/appsactivity/v1.dart index 7901829..4f98f0a 100644 --- a/generated/googleapis/lib/appsactivity/v1.dart +++ b/generated/googleapis/lib/appsactivity/v1.dart
@@ -158,8 +158,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (combinedEvent != null) { _json["combinedEvent"] = (combinedEvent).toJson(); } @@ -252,8 +252,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (additionalEventTypes != null) { _json["additionalEventTypes"] = additionalEventTypes; } @@ -306,8 +306,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (activities != null) { _json["activities"] = activities.map((value) => (value).toJson()).toList(); } @@ -339,8 +339,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (addedParents != null) { _json["addedParents"] = addedParents.map((value) => (value).toJson()).toList(); } @@ -377,8 +377,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -452,8 +452,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -497,8 +497,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (addedPermissions != null) { _json["addedPermissions"] = addedPermissions.map((value) => (value).toJson()).toList(); } @@ -522,8 +522,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (url != null) { _json["url"] = url; } @@ -549,8 +549,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (newTitle != null) { _json["newTitle"] = newTitle; } @@ -590,8 +590,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -648,8 +648,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (isDeleted != null) { _json["isDeleted"] = isDeleted; }
diff --git a/generated/googleapis/lib/appstate/v1.dart b/generated/googleapis/lib/appstate/v1.dart index 59138df..8a06f9c 100644 --- a/generated/googleapis/lib/appstate/v1.dart +++ b/generated/googleapis/lib/appstate/v1.dart
@@ -299,8 +299,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currentStateVersion != null) { _json["currentStateVersion"] = currentStateVersion; } @@ -343,8 +343,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -379,8 +379,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (data != null) { _json["data"] = data; } @@ -417,8 +417,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currentStateVersion != null) { _json["currentStateVersion"] = currentStateVersion; }
diff --git a/generated/googleapis/lib/bigquery/v2.dart b/generated/googleapis/lib/bigquery/v2.dart index 097f409..9c92f22 100644 --- a/generated/googleapis/lib/bigquery/v2.dart +++ b/generated/googleapis/lib/bigquery/v2.dart
@@ -1315,8 +1315,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (encoding != null) { _json["encoding"] = encoding; } @@ -1395,8 +1395,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columns != null) { _json["columns"] = columns.map((value) => (value).toJson()).toList(); } @@ -1456,8 +1456,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnFamilies != null) { _json["columnFamilies"] = columnFamilies.map((value) => (value).toJson()).toList(); } @@ -1540,8 +1540,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allowJaggedRows != null) { _json["allowJaggedRows"] = allowJaggedRows; } @@ -1622,8 +1622,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (domain != null) { _json["domain"] = domain; } @@ -1759,8 +1759,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (access != null) { _json["access"] = access.map((value) => (value).toJson()).toList(); } @@ -1845,8 +1845,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (datasetReference != null) { _json["datasetReference"] = (datasetReference).toJson(); } @@ -1907,8 +1907,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (datasets != null) { _json["datasets"] = datasets.map((value) => (value).toJson()).toList(); } @@ -1946,8 +1946,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (datasetId != null) { _json["datasetId"] = datasetId; } @@ -1988,8 +1988,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (debugInfo != null) { _json["debugInfo"] = debugInfo; } @@ -2090,8 +2090,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (computeRatioAvg != null) { _json["computeRatioAvg"] = computeRatioAvg; } @@ -2155,8 +2155,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2266,8 +2266,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autodetect != null) { _json["autodetect"] = autodetect; } @@ -2306,9 +2306,10 @@ /** Whether the query result was fetched from the query cache. */ core.bool cacheHit; /** - * [Output-only] All errors and warnings encountered during the running of the - * job. Errors here do not necessarily mean that the job has completed or was - * unsuccessful. + * [Output-only] The first errors or warnings encountered during the running + * of the job. The final message includes the number of errors that caused the + * process to stop. Errors here do not necessarily mean that the job has + * completed or was unsuccessful. */ core.List<ErrorProto> errors; /** A hash of this response. */ @@ -2398,8 +2399,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cacheHit != null) { _json["cacheHit"] = cacheHit; } @@ -2464,8 +2465,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (skipLeadingRows != null) { _json["skipLeadingRows"] = skipLeadingRows; } @@ -2531,8 +2532,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (configuration != null) { _json["configuration"] = (configuration).toJson(); } @@ -2581,8 +2582,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (job != null) { _json["job"] = (job).toJson(); } @@ -2642,8 +2643,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (copy != null) { _json["copy"] = (copy).toJson(); } @@ -2728,8 +2729,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (compression != null) { _json["compression"] = compression; } @@ -2970,8 +2971,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allowJaggedRows != null) { _json["allowJaggedRows"] = allowJaggedRows; } @@ -3041,7 +3042,9 @@ * [Optional] If true and query uses legacy SQL dialect, allows the query to * produce arbitrarily large result tables at a slight cost in performance. * Requires destinationTable to be set. For standard SQL queries, this flag is - * ignored and large results are always allowed. + * ignored and large results are always allowed. However, you must still set + * destinationTable when result size exceeds the allowed maximum response + * size. */ core.bool allowLargeResults; /** @@ -3060,7 +3063,9 @@ DatasetReference defaultDataset; /** * [Optional] Describes the table where the query results should be stored. If - * not present, a new table will be created to store the results. + * not present, a new table will be created to store the results. This + * property must be set for large results that exceed the maximum response + * size. */ TableReference destinationTable; /** @@ -3195,7 +3200,7 @@ schemaUpdateOptions = _json["schemaUpdateOptions"]; } if (_json.containsKey("tableDefinitions")) { - tableDefinitions = commons.mapMap(_json["tableDefinitions"], (item) => new ExternalDataConfiguration.fromJson(item)); + tableDefinitions = commons.mapMap<core.Map<core.String, core.Object>, ExternalDataConfiguration>(_json["tableDefinitions"], (core.Map<core.String, core.Object> item) => new ExternalDataConfiguration.fromJson(item)); } if (_json.containsKey("useLegacySql")) { useLegacySql = _json["useLegacySql"]; @@ -3211,8 +3216,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allowLargeResults != null) { _json["allowLargeResults"] = allowLargeResults; } @@ -3253,7 +3258,7 @@ _json["schemaUpdateOptions"] = schemaUpdateOptions; } if (tableDefinitions != null) { - _json["tableDefinitions"] = commons.mapMap(tableDefinitions, (item) => (item).toJson()); + _json["tableDefinitions"] = commons.mapMap<ExternalDataConfiguration, core.Map<core.String, core.Object>>(tableDefinitions, (ExternalDataConfiguration item) => (item).toJson()); } if (useLegacySql != null) { _json["useLegacySql"] = useLegacySql; @@ -3320,8 +3325,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createDisposition != null) { _json["createDisposition"] = createDisposition; } @@ -3399,8 +3404,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (configuration != null) { _json["configuration"] = (configuration).toJson(); } @@ -3459,8 +3464,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -3498,8 +3503,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (jobId != null) { _json["jobId"] = jobId; } @@ -3565,8 +3570,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTime != null) { _json["creationTime"] = creationTime; } @@ -3663,8 +3668,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (billingTier != null) { _json["billingTier"] = billingTier; } @@ -3732,8 +3737,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (inputFileBytes != null) { _json["inputFileBytes"] = inputFileBytes; } @@ -3766,8 +3771,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (destinationUriFileCounts != null) { _json["destinationUriFileCounts"] = destinationUriFileCounts; } @@ -3782,8 +3787,9 @@ */ ErrorProto errorResult; /** - * [Output-only] All errors encountered during the running of the job. Errors - * here do not necessarily mean that the job has completed or was + * [Output-only] The first errors encountered during the running of the job. + * The final message includes the number of errors that caused the process to + * stop. Errors here do not necessarily mean that the job has completed or was * unsuccessful. */ core.List<ErrorProto> errors; @@ -3804,8 +3810,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errorResult != null) { _json["errorResult"] = (errorResult).toJson(); } @@ -3832,8 +3838,8 @@ }); } - core.Map toJson() { - var _json = {}; + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = <core.String, core.Object>{}; this.forEach((core.String key, value) { _json[key] = value; }); @@ -3888,8 +3894,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (friendlyName != null) { _json["friendlyName"] = friendlyName; } @@ -3941,8 +3947,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -3977,8 +3983,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (projectId != null) { _json["projectId"] = projectId; } @@ -4011,8 +4017,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -4048,8 +4054,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -4088,8 +4094,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (arrayType != null) { _json["arrayType"] = (arrayType).toJson(); } @@ -4121,20 +4127,20 @@ arrayValues = _json["arrayValues"].map((value) => new QueryParameterValue.fromJson(value)).toList(); } if (_json.containsKey("structValues")) { - structValues = commons.mapMap(_json["structValues"], (item) => new QueryParameterValue.fromJson(item)); + structValues = commons.mapMap<core.Map<core.String, core.Object>, QueryParameterValue>(_json["structValues"], (core.Map<core.String, core.Object> item) => new QueryParameterValue.fromJson(item)); } if (_json.containsKey("value")) { value = _json["value"]; } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (arrayValues != null) { _json["arrayValues"] = arrayValues.map((value) => (value).toJson()).toList(); } if (structValues != null) { - _json["structValues"] = commons.mapMap(structValues, (item) => (item).toJson()); + _json["structValues"] = commons.mapMap<QueryParameterValue, core.Map<core.String, core.Object>>(structValues, (QueryParameterValue item) => (item).toJson()); } if (value != null) { _json["value"] = value; @@ -4246,8 +4252,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (defaultDataset != null) { _json["defaultDataset"] = (defaultDataset).toJson(); } @@ -4289,9 +4295,10 @@ /** Whether the query result was fetched from the query cache. */ core.bool cacheHit; /** - * [Output-only] All errors and warnings encountered during the running of the - * job. Errors here do not necessarily mean that the job has completed or was - * unsuccessful. + * [Output-only] The first errors or warnings encountered during the running + * of the job. The final message includes the number of errors that caused the + * process to stop. Errors here do not necessarily mean that the job has + * completed or was unsuccessful. */ core.List<ErrorProto> errors; /** @@ -4378,8 +4385,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cacheHit != null) { _json["cacheHit"] = cacheHit; } @@ -4449,8 +4456,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (estimatedBytes != null) { _json["estimatedBytes"] = estimatedBytes; } @@ -4621,8 +4628,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTime != null) { _json["creationTime"] = creationTime; } @@ -4707,8 +4714,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (v != null) { _json["v"] = v; } @@ -4739,8 +4746,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (insertId != null) { _json["insertId"] = insertId; } @@ -4798,8 +4805,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ignoreUnknownValues != null) { _json["ignoreUnknownValues"] = ignoreUnknownValues; } @@ -4836,8 +4843,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errors != null) { _json["errors"] = errors.map((value) => (value).toJson()).toList(); } @@ -4865,8 +4872,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (insertErrors != null) { _json["insertErrors"] = insertErrors.map((value) => (value).toJson()).toList(); } @@ -4913,8 +4920,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -4936,7 +4943,7 @@ class TableFieldSchema { /** - * [Optional] The field description. The maximum length is 512 characters. + * [Optional] The field description. The maximum length is 1,024 characters. */ core.String description; /** @@ -4984,8 +4991,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -5020,8 +5027,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (useLegacySql != null) { _json["useLegacySql"] = useLegacySql; } @@ -5074,8 +5081,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (friendlyName != null) { _json["friendlyName"] = friendlyName; } @@ -5133,8 +5140,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -5180,8 +5187,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (datasetId != null) { _json["datasetId"] = datasetId; } @@ -5210,8 +5217,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (f != null) { _json["f"] = f.map((value) => (value).toJson()).toList(); } @@ -5231,8 +5238,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields.map((value) => (value).toJson()).toList(); } @@ -5263,8 +5270,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (expirationMs != null) { _json["expirationMs"] = expirationMs; } @@ -5299,8 +5306,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (inlineCode != null) { _json["inlineCode"] = inlineCode; } @@ -5338,8 +5345,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (query != null) { _json["query"] = query; }
diff --git a/generated/googleapis/lib/bigquerydatatransfer/v1.dart b/generated/googleapis/lib/bigquerydatatransfer/v1.dart index b5779f4..1528ade 100644 --- a/generated/googleapis/lib/bigquerydatatransfer/v1.dart +++ b/generated/googleapis/lib/bigquerydatatransfer/v1.dart
@@ -36,6 +36,7 @@ final commons.ApiRequester _requester; ProjectsDataSourcesResourceApi get dataSources => new ProjectsDataSourcesResourceApi(_requester); + ProjectsLocationsResourceApi get locations => new ProjectsLocationsResourceApi(_requester); ProjectsTransferConfigsResourceApi get transferConfigs => new ProjectsTransferConfigsResourceApi(_requester); ProjectsResourceApi(commons.ApiRequester client) : @@ -297,6 +298,873 @@ } +class ProjectsLocationsResourceApi { + final commons.ApiRequester _requester; + + ProjectsLocationsDataSourcesResourceApi get dataSources => new ProjectsLocationsDataSourcesResourceApi(_requester); + ProjectsLocationsTransferConfigsResourceApi get transferConfigs => new ProjectsLocationsTransferConfigsResourceApi(_requester); + + ProjectsLocationsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Returns true if data transfer is enabled for a project. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [name] - The name of the project resource in the form: + * `projects/{project_id}` + * Value must have pattern "^projects/[^/]+/locations/[^/]+$". + * + * Completes with a [IsEnabledResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<IsEnabledResponse> isEnabled(IsEnabledRequest request, core.String name) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':isEnabled'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new IsEnabledResponse.fromJson(data)); + } + + /** + * Enables or disables data transfer for a project. This + * method requires the additional scope of + * 'https://www.googleapis.com/auth/cloudplatformprojects' + * to manage the cloud project permissions. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [name] - The name of the project resource in the form: + * `projects/{project_id}` + * Value must have pattern "^projects/[^/]+/locations/[^/]+$". + * + * Completes with a [Empty]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Empty> setEnabled(SetEnabledRequest request, core.String name) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':setEnabled'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Empty.fromJson(data)); + } + +} + + +class ProjectsLocationsDataSourcesResourceApi { + final commons.ApiRequester _requester; + + ProjectsLocationsDataSourcesResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Returns true if valid credentials exist for the given data source and + * requesting user. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [name] - The data source in the form: + * `projects/{project_id}/dataSources/{data_source_id}` + * Value must have pattern + * "^projects/[^/]+/locations/[^/]+/dataSources/[^/]+$". + * + * Completes with a [CheckValidCredsResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<CheckValidCredsResponse> checkValidCreds(CheckValidCredsRequest request, core.String name) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':checkValidCreds'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new CheckValidCredsResponse.fromJson(data)); + } + + /** + * Retrieves a supported data source and returns its settings, + * which can be used for UI rendering. + * + * Request parameters: + * + * [name] - The field will contain name of the resource requested, for + * example: + * `projects/{project_id}/dataSources/{data_source_id}` + * Value must have pattern + * "^projects/[^/]+/locations/[^/]+/dataSources/[^/]+$". + * + * Completes with a [DataSource]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<DataSource> get(core.String name) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new DataSource.fromJson(data)); + } + + /** + * Lists supported data sources and returns their settings, + * which can be used for UI rendering. + * + * Request parameters: + * + * [parent] - The BigQuery project id for which data sources should be + * returned. + * Must be in the form: `projects/{project_id}` + * Value must have pattern "^projects/[^/]+/locations/[^/]+$". + * + * [pageToken] - Pagination token, which can be used to request a specific + * page + * of `ListDataSourcesRequest` list results. For multiple-page + * results, `ListDataSourcesResponse` outputs + * a `next_page` token, which can be used as the + * `page_token` value to request the next page of list results. + * + * [pageSize] - Page size. The default page size is the maximum value of 1000 + * results. + * + * Completes with a [ListDataSourcesResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ListDataSourcesResponse> list(core.String parent, {core.String pageToken, core.int pageSize}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/dataSources'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListDataSourcesResponse.fromJson(data)); + } + +} + + +class ProjectsLocationsTransferConfigsResourceApi { + final commons.ApiRequester _requester; + + ProjectsLocationsTransferConfigsRunsResourceApi get runs => new ProjectsLocationsTransferConfigsRunsResourceApi(_requester); + + ProjectsLocationsTransferConfigsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Creates a new data transfer configuration. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [parent] - The BigQuery project id where the transfer configuration should + * be created. + * Value must have pattern "^projects/[^/]+/locations/[^/]+$". + * + * [authorizationCode] - Optional OAuth2 authorization code to use with this + * transfer configuration. + * This is required if new credentials are needed, as indicated by + * `CheckValidCreds`. + * In order to obtain authorization_code, please make a + * request to + * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri> + * + * * client_id should be OAuth client_id of BigQuery DTS API for the given + * data source returned by ListDataSources method. + * * data_source_scopes are the scopes returned by ListDataSources method. + * * redirect_uri is an optional parameter. If not specified, then + * authorization code is posted to the opener of authorization flow window. + * Otherwise it will be sent to the redirect uri. A special value of + * urn:ietf:wg:oauth:2.0:oob means that authorization code should be + * returned in the title bar of the browser, with the page text prompting + * the user to copy the code and paste it in the application. + * + * Completes with a [TransferConfig]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<TransferConfig> create(TransferConfig request, core.String parent, {core.String authorizationCode}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); + } + if (authorizationCode != null) { + _queryParams["authorizationCode"] = [authorizationCode]; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/transferConfigs'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new TransferConfig.fromJson(data)); + } + + /** + * Deletes a data transfer configuration, + * including any associated transfer runs and logs. + * + * Request parameters: + * + * [name] - The field will contain name of the resource requested, for + * example: + * `projects/{project_id}/transferConfigs/{config_id}` + * Value must have pattern + * "^projects/[^/]+/locations/[^/]+/transferConfigs/[^/]+$". + * + * Completes with a [Empty]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Empty> delete(core.String name) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "DELETE", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Empty.fromJson(data)); + } + + /** + * Returns information about a data transfer config. + * + * Request parameters: + * + * [name] - The field will contain name of the resource requested, for + * example: + * `projects/{project_id}/transferConfigs/{config_id}` + * Value must have pattern + * "^projects/[^/]+/locations/[^/]+/transferConfigs/[^/]+$". + * + * Completes with a [TransferConfig]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<TransferConfig> get(core.String name) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new TransferConfig.fromJson(data)); + } + + /** + * Returns information about all data transfers in the project. + * + * Request parameters: + * + * [parent] - The BigQuery project id for which data sources + * should be returned: `projects/{project_id}`. + * Value must have pattern "^projects/[^/]+/locations/[^/]+$". + * + * [pageToken] - Pagination token, which can be used to request a specific + * page + * of `ListTransfersRequest` list results. For multiple-page + * results, `ListTransfersResponse` outputs + * a `next_page` token, which can be used as the + * `page_token` value to request the next page of list results. + * + * [pageSize] - Page size. The default page size is the maximum value of 1000 + * results. + * + * [dataSourceIds] - When specified, only configurations of requested data + * sources are returned. + * + * Completes with a [ListTransferConfigsResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ListTransferConfigsResponse> list(core.String parent, {core.String pageToken, core.int pageSize, core.List<core.String> dataSourceIds}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (dataSourceIds != null) { + _queryParams["dataSourceIds"] = dataSourceIds; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/transferConfigs'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListTransferConfigsResponse.fromJson(data)); + } + + /** + * Updates a data transfer configuration. + * All fields must be set, even if they are not updated. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [name] - The resource name of the transfer run. + * Transfer run names have the form + * `projects/{project_id}/transferConfigs/{config_id}`. + * Where `config_id` is usually a uuid, even though it is not + * guaranteed or required. The name is ignored when creating a transfer run. + * Value must have pattern + * "^projects/[^/]+/locations/[^/]+/transferConfigs/[^/]+$". + * + * [authorizationCode] - Optional OAuth2 authorization code to use with this + * transfer configuration. + * If it is provided, the transfer configuration will be associated with the + * gaia id of the authorizing user. + * In order to obtain authorization_code, please make a + * request to + * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri> + * + * * client_id should be OAuth client_id of BigQuery DTS API for the given + * data source returned by ListDataSources method. + * * data_source_scopes are the scopes returned by ListDataSources method. + * * redirect_uri is an optional parameter. If not specified, then + * authorization code is posted to the opener of authorization flow window. + * Otherwise it will be sent to the redirect uri. A special value of + * urn:ietf:wg:oauth:2.0:oob means that authorization code should be + * returned in the title bar of the browser, with the page text prompting + * the user to copy the code and paste it in the application. + * + * [updateMask] - Required list of fields to be updated in this request. + * + * Completes with a [TransferConfig]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<TransferConfig> patch(TransferConfig request, core.String name, {core.String authorizationCode, core.String updateMask}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + if (authorizationCode != null) { + _queryParams["authorizationCode"] = [authorizationCode]; + } + if (updateMask != null) { + _queryParams["updateMask"] = [updateMask]; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "PATCH", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new TransferConfig.fromJson(data)); + } + + /** + * Creates transfer runs for a time range [range_start_time, range_end_time]. + * For each date - or whatever granularity the data source supports - in the + * range, one transfer run is created. + * Note that runs are created per UTC time in the time range. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [parent] - Transfer configuration name in the form: + * `projects/{project_id}/transferConfigs/{config_id}`. + * Value must have pattern + * "^projects/[^/]+/locations/[^/]+/transferConfigs/[^/]+$". + * + * Completes with a [ScheduleTransferRunsResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ScheduleTransferRunsResponse> scheduleRuns(ScheduleTransferRunsRequest request, core.String parent) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + ':scheduleRuns'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ScheduleTransferRunsResponse.fromJson(data)); + } + +} + + +class ProjectsLocationsTransferConfigsRunsResourceApi { + final commons.ApiRequester _requester; + + ProjectsLocationsTransferConfigsRunsTransferLogsResourceApi get transferLogs => new ProjectsLocationsTransferConfigsRunsTransferLogsResourceApi(_requester); + + ProjectsLocationsTransferConfigsRunsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Deletes the specified transfer run. + * + * Request parameters: + * + * [name] - The field will contain name of the resource requested, for + * example: + * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` + * Value must have pattern + * "^projects/[^/]+/locations/[^/]+/transferConfigs/[^/]+/runs/[^/]+$". + * + * Completes with a [Empty]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Empty> delete(core.String name) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "DELETE", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Empty.fromJson(data)); + } + + /** + * Returns information about the particular transfer run. + * + * Request parameters: + * + * [name] - The field will contain name of the resource requested, for + * example: + * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` + * Value must have pattern + * "^projects/[^/]+/locations/[^/]+/transferConfigs/[^/]+/runs/[^/]+$". + * + * Completes with a [TransferRun]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<TransferRun> get(core.String name) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new TransferRun.fromJson(data)); + } + + /** + * Returns information about running and completed jobs. + * + * Request parameters: + * + * [parent] - Name of transfer configuration for which transfer runs should be + * retrieved. + * Format of transfer configuration resource name is: + * `projects/{project_id}/transferConfigs/{config_id}`. + * Value must have pattern + * "^projects/[^/]+/locations/[^/]+/transferConfigs/[^/]+$". + * + * [pageToken] - Pagination token, which can be used to request a specific + * page + * of `ListTransferRunsRequest` list results. For multiple-page + * results, `ListTransferRunsResponse` outputs + * a `next_page` token, which can be used as the + * `page_token` value to request the next page of list results. + * + * [statuses] - When specified, only transfer runs with requested statuses are + * returned. + * + * [pageSize] - Page size. The default page size is the maximum value of 1000 + * results. + * + * [runAttempt] - Indicates how run attempts are to be pulled. + * Possible string values are: + * - "RUN_ATTEMPT_UNSPECIFIED" : A RUN_ATTEMPT_UNSPECIFIED. + * - "LATEST" : A LATEST. + * + * Completes with a [ListTransferRunsResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ListTransferRunsResponse> list(core.String parent, {core.String pageToken, core.List<core.String> statuses, core.int pageSize, core.String runAttempt}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (statuses != null) { + _queryParams["statuses"] = statuses; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (runAttempt != null) { + _queryParams["runAttempt"] = [runAttempt]; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/runs'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListTransferRunsResponse.fromJson(data)); + } + +} + + +class ProjectsLocationsTransferConfigsRunsTransferLogsResourceApi { + final commons.ApiRequester _requester; + + ProjectsLocationsTransferConfigsRunsTransferLogsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Returns user facing log messages for the data transfer run. + * + * Request parameters: + * + * [parent] - Transfer run name in the form: + * `projects/{project_id}/transferConfigs/{config_Id}/runs/{run_id}`. + * Value must have pattern + * "^projects/[^/]+/locations/[^/]+/transferConfigs/[^/]+/runs/[^/]+$". + * + * [pageToken] - Pagination token, which can be used to request a specific + * page + * of `ListTransferLogsRequest` list results. For multiple-page + * results, `ListTransferLogsResponse` outputs + * a `next_page` token, which can be used as the + * `page_token` value to request the next page of list results. + * + * [pageSize] - Page size. The default page size is the maximum value of 1000 + * results. + * + * [messageTypes] - Message types to return. If not populated - INFO, WARNING + * and ERROR + * messages are returned. + * + * Completes with a [ListTransferLogsResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ListTransferLogsResponse> list(core.String parent, {core.String pageToken, core.int pageSize, core.List<core.String> messageTypes}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (messageTypes != null) { + _queryParams["messageTypes"] = messageTypes; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/transferLogs'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListTransferLogsResponse.fromJson(data)); + } + +} + + class ProjectsTransferConfigsResourceApi { final commons.ApiRequester _requester; @@ -466,9 +1334,6 @@ * should be returned: `projects/{project_id}`. * Value must have pattern "^projects/[^/]+$". * - * [dataSourceIds] - When specified, only configurations of requested data - * sources are returned. - * * [pageToken] - Pagination token, which can be used to request a specific * page * of `ListTransfersRequest` list results. For multiple-page @@ -479,6 +1344,9 @@ * [pageSize] - Page size. The default page size is the maximum value of 1000 * results. * + * [dataSourceIds] - When specified, only configurations of requested data + * sources are returned. + * * Completes with a [ListTransferConfigsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -487,7 +1355,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListTransferConfigsResponse> list(core.String parent, {core.List<core.String> dataSourceIds, core.String pageToken, core.int pageSize}) { + async.Future<ListTransferConfigsResponse> list(core.String parent, {core.String pageToken, core.int pageSize, core.List<core.String> dataSourceIds}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -498,15 +1366,15 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (dataSourceIds != null) { - _queryParams["dataSourceIds"] = dataSourceIds; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (dataSourceIds != null) { + _queryParams["dataSourceIds"] = dataSourceIds; + } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/transferConfigs'; @@ -834,10 +1702,6 @@ * Value must have pattern * "^projects/[^/]+/transferConfigs/[^/]+/runs/[^/]+$". * - * [messageTypes] - Message types to return. If not populated - INFO, WARNING - * and ERROR - * messages are returned. - * * [pageToken] - Pagination token, which can be used to request a specific * page * of `ListTransferLogsRequest` list results. For multiple-page @@ -848,6 +1712,10 @@ * [pageSize] - Page size. The default page size is the maximum value of 1000 * results. * + * [messageTypes] - Message types to return. If not populated - INFO, WARNING + * and ERROR + * messages are returned. + * * Completes with a [ListTransferLogsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -856,7 +1724,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListTransferLogsResponse> list(core.String parent, {core.List<core.String> messageTypes, core.String pageToken, core.int pageSize}) { + async.Future<ListTransferLogsResponse> list(core.String parent, {core.String pageToken, core.int pageSize, core.List<core.String> messageTypes}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -867,15 +1735,15 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (messageTypes != null) { - _queryParams["messageTypes"] = messageTypes; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (messageTypes != null) { + _queryParams["messageTypes"] = messageTypes; + } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/transferLogs'; @@ -908,8 +1776,8 @@ CheckValidCredsRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -927,8 +1795,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (hasValidCreds != null) { _json["hasValidCreds"] = hasValidCreds; } @@ -1099,8 +1967,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (authorizationType != null) { _json["authorizationType"] = authorizationType; } @@ -1263,8 +2131,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allowedValues != null) { _json["allowedValues"] = allowedValues; } @@ -1332,8 +2200,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1346,8 +2214,8 @@ IsEnabledRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1365,8 +2233,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (enabled != null) { _json["enabled"] = enabled; } @@ -1398,8 +2266,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dataSources != null) { _json["dataSources"] = dataSources.map((value) => (value).toJson()).toList(); } @@ -1437,8 +2305,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1476,8 +2344,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1515,8 +2383,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1545,8 +2413,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (rangeEndTime != null) { _json["rangeEndTime"] = rangeEndTime; } @@ -1570,8 +2438,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createdRuns != null) { _json["createdRuns"] = createdRuns.map((value) => (value).toJson()).toList(); } @@ -1594,8 +2462,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (enabled != null) { _json["enabled"] = enabled; } @@ -1684,13 +2552,6 @@ * @OutputOnly */ core.String updateTime; - /** - * GaiaID of the user on whose behalf transfer is done. Applicable only - * to data sources that do not support service accounts. When set to 0, - * the data source service account credentials are used. - * @OutputOnly - */ - core.String userId; TransferConfig(); @@ -1728,13 +2589,10 @@ if (_json.containsKey("updateTime")) { updateTime = _json["updateTime"]; } - if (_json.containsKey("userId")) { - userId = _json["userId"]; - } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dataRefreshWindowDays != null) { _json["dataRefreshWindowDays"] = dataRefreshWindowDays; } @@ -1768,9 +2626,6 @@ if (updateTime != null) { _json["updateTime"] = updateTime; } - if (userId != null) { - _json["userId"] = userId; - } return _json; } } @@ -1805,8 +2660,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (messageText != null) { _json["messageText"] = messageText; } @@ -1890,11 +2745,6 @@ * @OutputOnly */ core.String updateTime; - /** - * The user id for this transfer run. - * @OutputOnly - */ - core.String userId; TransferRun(); @@ -1932,13 +2782,10 @@ if (_json.containsKey("updateTime")) { updateTime = _json["updateTime"]; } - if (_json.containsKey("userId")) { - userId = _json["userId"]; - } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dataSourceId != null) { _json["dataSourceId"] = dataSourceId; } @@ -1972,9 +2819,6 @@ if (updateTime != null) { _json["updateTime"] = updateTime; } - if (userId != null) { - _json["userId"] = userId; - } return _json; } }
diff --git a/generated/googleapis/lib/blogger/v3.dart b/generated/googleapis/lib/blogger/v3.dart index 9f58a00..cc68185 100644 --- a/generated/googleapis/lib/blogger/v3.dart +++ b/generated/googleapis/lib/blogger/v3.dart
@@ -2093,8 +2093,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (country != null) { _json["country"] = country; } @@ -2126,8 +2126,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (selfLink != null) { _json["selfLink"] = selfLink; } @@ -2161,8 +2161,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -2248,8 +2248,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (customMetaData != null) { _json["customMetaData"] = customMetaData; } @@ -2315,8 +2315,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (blogUserInfos != null) { _json["blogUserInfos"] = blogUserInfos.map((value) => (value).toJson()).toList(); } @@ -2370,8 +2370,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (blogId != null) { _json["blogId"] = blogId; } @@ -2416,8 +2416,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (blog != null) { _json["blog"] = (blog).toJson(); } @@ -2444,8 +2444,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (url != null) { _json["url"] = url; } @@ -2481,8 +2481,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -2512,8 +2512,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -2534,8 +2534,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -2556,8 +2556,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -2627,8 +2627,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (author != null) { _json["author"] = (author).toJson(); } @@ -2698,8 +2698,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -2732,8 +2732,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (url != null) { _json["url"] = url; } @@ -2769,8 +2769,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -2800,8 +2800,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -2879,8 +2879,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (author != null) { _json["author"] = (author).toJson(); } @@ -2948,8 +2948,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -2983,8 +2983,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (count != null) { _json["count"] = count; } @@ -3017,8 +3017,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (blogId != null) { _json["blogId"] = blogId; } @@ -3045,8 +3045,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (url != null) { _json["url"] = url; } @@ -3082,8 +3082,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -3113,8 +3113,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -3133,8 +3133,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (url != null) { _json["url"] = url; } @@ -3170,8 +3170,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (lat != null) { _json["lat"] = lat; } @@ -3211,8 +3211,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -3328,8 +3328,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (author != null) { _json["author"] = (author).toJson(); } @@ -3418,8 +3418,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -3468,8 +3468,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (blogId != null) { _json["blogId"] = blogId; } @@ -3511,8 +3511,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -3548,8 +3548,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -3576,8 +3576,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (selfLink != null) { _json["selfLink"] = selfLink; } @@ -3608,8 +3608,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (country != null) { _json["country"] = country; } @@ -3677,8 +3677,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (about != null) { _json["about"] = about; }
diff --git a/generated/googleapis/lib/books/v1.dart b/generated/googleapis/lib/books/v1.dart index 69d4fa8..dc5bf04 100644 --- a/generated/googleapis/lib/books/v1.dart +++ b/generated/googleapis/lib/books/v1.dart
@@ -3241,8 +3241,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cfiRange != null) { _json["cfiRange"] = (cfiRange).toJson(); } @@ -3295,8 +3295,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cfiRange != null) { _json["cfiRange"] = (cfiRange).toJson(); } @@ -3346,8 +3346,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allowedCharacterCount != null) { _json["allowedCharacterCount"] = allowedCharacterCount; } @@ -3458,8 +3458,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (afterSelectedText != null) { _json["afterSelectedText"] = afterSelectedText; } @@ -3582,8 +3582,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (annotationType != null) { _json["annotationType"] = annotationType; } @@ -3648,8 +3648,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -3693,8 +3693,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allowedCharacterCount != null) { _json["allowedCharacterCount"] = allowedCharacterCount; } @@ -3729,8 +3729,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -3771,8 +3771,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -3816,8 +3816,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endOffset != null) { _json["endOffset"] = endOffset; } @@ -3857,8 +3857,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (author != null) { _json["author"] = author; } @@ -3886,8 +3886,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (consistencyToken != null) { _json["consistency_token"] = consistencyToken; } @@ -3961,8 +3961,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (access != null) { _json["access"] = access; } @@ -4014,8 +4014,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -4045,8 +4045,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (badgeUrl != null) { _json["badgeUrl"] = badgeUrl; } @@ -4077,8 +4077,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -4156,8 +4156,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deviceAllowed != null) { _json["deviceAllowed"] = deviceAllowed; } @@ -4210,8 +4210,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (title != null) { _json["title"] = title; } @@ -4235,8 +4235,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attribution != null) { _json["attribution"] = attribution; } @@ -4262,8 +4262,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attribution != null) { _json["attribution"] = attribution; } @@ -4289,8 +4289,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (source != null) { _json["source"] = (source).toJson(); } @@ -4316,8 +4316,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attribution != null) { _json["attribution"] = attribution; } @@ -4343,8 +4343,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (source != null) { _json["source"] = (source).toJson(); } @@ -4370,8 +4370,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (type != null) { _json["type"] = type; } @@ -4397,8 +4397,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attribution != null) { _json["attribution"] = attribution; } @@ -4424,8 +4424,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (source != null) { _json["source"] = (source).toJson(); } @@ -4451,8 +4451,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (definition != null) { _json["definition"] = definition; } @@ -4478,8 +4478,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attribution != null) { _json["attribution"] = attribution; } @@ -4505,8 +4505,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attribution != null) { _json["attribution"] = attribution; } @@ -4532,8 +4532,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (source != null) { _json["source"] = (source).toJson(); } @@ -4583,8 +4583,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (conjugations != null) { _json["conjugations"] = conjugations.map((value) => (value).toJson()).toList(); } @@ -4632,8 +4632,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attribution != null) { _json["attribution"] = attribution; } @@ -4671,8 +4671,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (derivatives != null) { _json["derivatives"] = derivatives.map((value) => (value).toJson()).toList(); } @@ -4705,8 +4705,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (source != null) { _json["source"] = (source).toJson(); } @@ -4736,8 +4736,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (common != null) { _json["common"] = (common).toJson(); } @@ -4782,8 +4782,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fillColorArgb != null) { _json["fillColorArgb"] = fillColorArgb; } @@ -4837,8 +4837,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bannerWithContentContainer != null) { _json["banner_with_content_container"] = (bannerWithContentContainer).toJson(); } @@ -4881,8 +4881,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clusters != null) { _json["clusters"] = clusters.map((value) => (value).toJson()).toList(); } @@ -4980,8 +4980,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deviceAllowed != null) { _json["deviceAllowed"] = deviceAllowed; } @@ -5039,8 +5039,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (downloadAccessList != null) { _json["downloadAccessList"] = downloadAccessList.map((value) => (value).toJson()).toList(); } @@ -5086,8 +5086,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (lang != null) { _json["lang"] = lang; } @@ -5122,8 +5122,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (latitude != null) { _json["latitude"] = latitude; } @@ -5149,8 +5149,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (latitude != null) { _json["latitude"] = latitude; } @@ -5176,8 +5176,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (latitude != null) { _json["latitude"] = latitude; } @@ -5207,8 +5207,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (hi != null) { _json["hi"] = (hi).toJson(); } @@ -5282,8 +5282,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (boundary != null) { _json["boundary"] = boundary.map((value) => value.map((value) => (value).toJson()).toList()).toList(); } @@ -5331,8 +5331,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (common != null) { _json["common"] = (common).toJson(); } @@ -5368,8 +5368,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -5462,8 +5462,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (annotationCount != null) { _json["annotationCount"] = annotationCount; } @@ -5534,8 +5534,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (downloadUrl != null) { _json["download_url"] = downloadUrl; } @@ -5572,8 +5572,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -5649,8 +5649,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (body != null) { _json["body"] = body; } @@ -5728,8 +5728,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (author != null) { _json["author"] = author; } @@ -5775,8 +5775,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (artUrl != null) { _json["artUrl"] = artUrl; } @@ -5810,8 +5810,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -5867,8 +5867,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (epubCfiPosition != null) { _json["epubCfiPosition"] = epubCfiPosition; } @@ -5916,8 +5916,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (concurrentAccess != null) { _json["concurrentAccess"] = (concurrentAccess).toJson(); } @@ -5944,8 +5944,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -5979,8 +5979,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -6060,8 +6060,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (author != null) { _json["author"] = (author).toJson(); } @@ -6123,8 +6123,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bannerImageUrl != null) { _json["bannerImageUrl"] = bannerImageUrl; } @@ -6160,8 +6160,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -6192,8 +6192,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -6223,8 +6223,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (folderName != null) { _json["folderName"] = folderName; } @@ -6246,8 +6246,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (optedState != null) { _json["opted_state"] = optedState; } @@ -6266,8 +6266,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (optedState != null) { _json["opted_state"] = optedState; } @@ -6286,8 +6286,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (optedState != null) { _json["opted_state"] = optedState; } @@ -6314,8 +6314,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (moreFromAuthors != null) { _json["moreFromAuthors"] = (moreFromAuthors).toJson(); } @@ -6350,8 +6350,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -6391,8 +6391,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (acsTokenLink != null) { _json["acsTokenLink"] = acsTokenLink; } @@ -6432,8 +6432,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (acsTokenLink != null) { _json["acsTokenLink"] = acsTokenLink; } @@ -6562,8 +6562,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accessViewStatus != null) { _json["accessViewStatus"] = accessViewStatus; } @@ -6631,8 +6631,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (layerId != null) { _json["layerId"] = layerId; } @@ -6658,8 +6658,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (layers != null) { _json["layers"] = layers.map((value) => (value).toJson()).toList(); } @@ -6680,8 +6680,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (explanation != null) { _json["explanation"] = explanation; } @@ -6707,8 +6707,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (amount != null) { _json["amount"] = amount; } @@ -6735,8 +6735,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (amountInMicros != null) { _json["amountInMicros"] = amountInMicros; } @@ -6763,8 +6763,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (count != null) { _json["count"] = count; } @@ -6791,8 +6791,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (amountInMicros != null) { _json["amountInMicros"] = amountInMicros; } @@ -6835,8 +6835,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (finskyOfferType != null) { _json["finskyOfferType"] = finskyOfferType; } @@ -6878,8 +6878,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (amount != null) { _json["amount"] = amount; } @@ -6959,8 +6959,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (buyLink != null) { _json["buyLink"] = buyLink; } @@ -7002,8 +7002,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (textSnippet != null) { _json["textSnippet"] = textSnippet; } @@ -7035,8 +7035,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allowedCharacterCount != null) { _json["allowedCharacterCount"] = allowedCharacterCount; } @@ -7083,8 +7083,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (familyRole != null) { _json["familyRole"] = familyRole; } @@ -7114,8 +7114,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endUtcSec != null) { _json["endUtcSec"] = endUtcSec; } @@ -7137,8 +7137,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (processingState != null) { _json["processingState"] = processingState; } @@ -7268,8 +7268,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (acquiredTime != null) { _json["acquiredTime"] = (acquiredTime).toIso8601String(); } @@ -7354,8 +7354,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -7420,8 +7420,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (extraLarge != null) { _json["extraLarge"] = extraLarge; } @@ -7461,8 +7461,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (identifier != null) { _json["identifier"] = identifier; } @@ -7497,8 +7497,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (containsEpubBubbles != null) { _json["containsEpubBubbles"] = containsEpubBubbles; } @@ -7685,8 +7685,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allowAnonLogging != null) { _json["allowAnonLogging"] = allowAnonLogging; } @@ -7851,8 +7851,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accessInfo != null) { _json["accessInfo"] = (accessInfo).toJson(); } @@ -7911,8 +7911,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -7954,8 +7954,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cfiRange != null) { _json["cfiRange"] = (cfiRange).toJson(); } @@ -8052,8 +8052,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (annotationDataId != null) { _json["annotationDataId"] = annotationDataId; } @@ -8140,8 +8140,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -8186,8 +8186,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -8216,8 +8216,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (issueDisplayNumber != null) { _json["issueDisplayNumber"] = issueDisplayNumber; } @@ -8258,8 +8258,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (issue != null) { _json["issue"] = issue.map((value) => (value).toJson()).toList(); } @@ -8305,8 +8305,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bookDisplayNumber != null) { _json["bookDisplayNumber"] = bookDisplayNumber; }
diff --git a/generated/googleapis/lib/calendar/v3.dart b/generated/googleapis/lib/calendar/v3.dart index 183bd61..c8be0e7 100644 --- a/generated/googleapis/lib/calendar/v3.dart +++ b/generated/googleapis/lib/calendar/v3.dart
@@ -1599,7 +1599,10 @@ * response. If there are more than the specified number of attendees, only * the participant is returned. Optional. * - * [maxResults] - Maximum number of events returned on one result page. By + * [maxResults] - Maximum number of events returned on one result page. The + * number of events in the resulting page may be less than this value, or none + * at all, even if there are more events matching the query. Incomplete pages + * can be detected by a non-empty nextPageToken field in the response. By * default the value is 250 events. The page size can never be larger than * 2500 events. Optional. * @@ -2060,7 +2063,10 @@ * response. If there are more than the specified number of attendees, only * the participant is returned. Optional. * - * [maxResults] - Maximum number of events returned on one result page. By + * [maxResults] - Maximum number of events returned on one result page. The + * number of events in the resulting page may be less than this value, or none + * at all, even if there are more events matching the query. Incomplete pages + * can be detected by a non-empty nextPageToken field in the response. By * default the value is 250 events. The page size can never be larger than * 2500 events. Optional. * @@ -2486,8 +2492,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -2535,8 +2541,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (type != null) { _json["type"] = type; } @@ -2590,8 +2596,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -2659,8 +2665,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -2725,8 +2731,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -2761,8 +2767,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (notifications != null) { _json["notifications"] = notifications.map((value) => (value).toJson()).toList(); } @@ -2915,8 +2921,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accessRole != null) { _json["accessRole"] = accessRole; } @@ -3007,8 +3013,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (method != null) { _json["method"] = method; } @@ -3088,8 +3094,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (address != null) { _json["address"] = address; } @@ -3144,8 +3150,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (background != null) { _json["background"] = background; } @@ -3181,10 +3187,10 @@ Colors.fromJson(core.Map _json) { if (_json.containsKey("calendar")) { - calendar = commons.mapMap(_json["calendar"], (item) => new ColorDefinition.fromJson(item)); + calendar = commons.mapMap<core.Map<core.String, core.Object>, ColorDefinition>(_json["calendar"], (core.Map<core.String, core.Object> item) => new ColorDefinition.fromJson(item)); } if (_json.containsKey("event")) { - event = commons.mapMap(_json["event"], (item) => new ColorDefinition.fromJson(item)); + event = commons.mapMap<core.Map<core.String, core.Object>, ColorDefinition>(_json["event"], (core.Map<core.String, core.Object> item) => new ColorDefinition.fromJson(item)); } if (_json.containsKey("kind")) { kind = _json["kind"]; @@ -3194,13 +3200,13 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (calendar != null) { - _json["calendar"] = commons.mapMap(calendar, (item) => (item).toJson()); + _json["calendar"] = commons.mapMap<ColorDefinition, core.Map<core.String, core.Object>>(calendar, (ColorDefinition item) => (item).toJson()); } if (event != null) { - _json["event"] = commons.mapMap(event, (item) => (item).toJson()); + _json["event"] = commons.mapMap<ColorDefinition, core.Map<core.String, core.Object>>(event, (ColorDefinition item) => (item).toJson()); } if (kind != null) { _json["kind"] = kind; @@ -3227,8 +3233,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (links != null) { _json["links"] = links.map((value) => (value).toJson()).toList(); } @@ -3266,8 +3272,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (appIconUrl != null) { _json["appIconUrl"] = appIconUrl; } @@ -3314,8 +3320,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (domain != null) { _json["domain"] = domain; } @@ -3360,8 +3366,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -3402,8 +3408,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (private != null) { _json["private"] = private; } @@ -3473,8 +3479,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (display != null) { _json["display"] = display; } @@ -3545,8 +3551,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -3585,8 +3591,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (overrides != null) { _json["overrides"] = overrides.map((value) => (value).toJson()).toList(); } @@ -3624,8 +3630,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (title != null) { _json["title"] = title; } @@ -3949,8 +3955,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (anyoneCanAddSelf != null) { _json["anyoneCanAddSelf"] = anyoneCanAddSelf; } @@ -4106,8 +4112,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fileId != null) { _json["fileId"] = fileId; } @@ -4202,8 +4208,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (additionalGuests != null) { _json["additionalGuests"] = additionalGuests; } @@ -4270,8 +4276,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (date != null) { _json["date"] = "${(date).year.toString().padLeft(4, '0')}-${(date).month.toString().padLeft(2, '0')}-${(date).day.toString().padLeft(2, '0')}"; } @@ -4302,8 +4308,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (data != null) { _json["data"] = (data).toJson(); } @@ -4341,8 +4347,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (method != null) { _json["method"] = method; } @@ -4440,8 +4446,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accessRole != null) { _json["accessRole"] = accessRole; } @@ -4498,8 +4504,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (busy != null) { _json["busy"] = busy.map((value) => (value).toJson()).toList(); } @@ -4527,8 +4533,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (calendars != null) { _json["calendars"] = calendars; } @@ -4583,8 +4589,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (calendarExpansionMax != null) { _json["calendarExpansionMax"] = calendarExpansionMax; } @@ -4619,8 +4625,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -4644,10 +4650,10 @@ FreeBusyResponse.fromJson(core.Map _json) { if (_json.containsKey("calendars")) { - calendars = commons.mapMap(_json["calendars"], (item) => new FreeBusyCalendar.fromJson(item)); + calendars = commons.mapMap<core.Map<core.String, core.Object>, FreeBusyCalendar>(_json["calendars"], (core.Map<core.String, core.Object> item) => new FreeBusyCalendar.fromJson(item)); } if (_json.containsKey("groups")) { - groups = commons.mapMap(_json["groups"], (item) => new FreeBusyGroup.fromJson(item)); + groups = commons.mapMap<core.Map<core.String, core.Object>, FreeBusyGroup>(_json["groups"], (core.Map<core.String, core.Object> item) => new FreeBusyGroup.fromJson(item)); } if (_json.containsKey("kind")) { kind = _json["kind"]; @@ -4660,13 +4666,13 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (calendars != null) { - _json["calendars"] = commons.mapMap(calendars, (item) => (item).toJson()); + _json["calendars"] = commons.mapMap<FreeBusyCalendar, core.Map<core.String, core.Object>>(calendars, (FreeBusyCalendar item) => (item).toJson()); } if (groups != null) { - _json["groups"] = commons.mapMap(groups, (item) => (item).toJson()); + _json["groups"] = commons.mapMap<FreeBusyGroup, core.Map<core.String, core.Object>>(groups, (FreeBusyGroup item) => (item).toJson()); } if (kind != null) { _json["kind"] = kind; @@ -4700,8 +4706,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (status != null) { _json["status"] = status; } @@ -4738,8 +4744,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (appId != null) { _json["appId"] = appId; } @@ -4783,8 +4789,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (applinkingSource != null) { _json["applinkingSource"] = applinkingSource; } @@ -4834,8 +4840,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -4891,8 +4897,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -4929,8 +4935,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (end != null) { _json["end"] = (end).toIso8601String(); }
diff --git a/generated/googleapis/lib/civicinfo/v2.dart b/generated/googleapis/lib/civicinfo/v2.dart index 125b081..13573d5 100644 --- a/generated/googleapis/lib/civicinfo/v2.dart +++ b/generated/googleapis/lib/civicinfo/v2.dart
@@ -390,8 +390,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (electionAdministrationBody != null) { _json["electionAdministrationBody"] = (electionAdministrationBody).toJson(); } @@ -511,8 +511,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (absenteeVotingInfoUrl != null) { _json["absenteeVotingInfoUrl"] = absenteeVotingInfoUrl; } @@ -611,8 +611,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (candidateUrl != null) { _json["candidateUrl"] = candidateUrl; } @@ -663,8 +663,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -866,8 +866,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ballotPlacement != null) { _json["ballotPlacement"] = ballotPlacement; } @@ -955,8 +955,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientProfile != null) { _json["clientProfile"] = clientProfile; } @@ -976,8 +976,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contextParams != null) { _json["contextParams"] = (contextParams).toJson(); } @@ -997,8 +997,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contextParams != null) { _json["contextParams"] = (contextParams).toJson(); } @@ -1026,8 +1026,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -1070,8 +1070,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aliases != null) { _json["aliases"] = aliases; } @@ -1119,8 +1119,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (electionDay != null) { _json["electionDay"] = electionDay; } @@ -1170,8 +1170,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (emailAddress != null) { _json["emailAddress"] = emailAddress; } @@ -1202,8 +1202,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contextParams != null) { _json["contextParams"] = (contextParams).toJson(); } @@ -1232,8 +1232,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (elections != null) { _json["elections"] = elections.map((value) => (value).toJson()).toList(); } @@ -1279,8 +1279,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -1337,8 +1337,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alsoKnownAs != null) { _json["alsoKnownAs"] = alsoKnownAs; } @@ -1407,8 +1407,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (divisionId != null) { _json["divisionId"] = divisionId; } @@ -1479,8 +1479,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (address != null) { _json["address"] = address.map((value) => (value).toJson()).toList(); } @@ -1586,8 +1586,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (address != null) { _json["address"] = (address).toJson(); } @@ -1750,8 +1750,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (addressLines != null) { _json["addressLines"] = addressLines; } @@ -1867,7 +1867,7 @@ RepresentativeInfoData.fromJson(core.Map _json) { if (_json.containsKey("divisions")) { - divisions = commons.mapMap(_json["divisions"], (item) => new GeographicDivision.fromJson(item)); + divisions = commons.mapMap<core.Map<core.String, core.Object>, GeographicDivision>(_json["divisions"], (core.Map<core.String, core.Object> item) => new GeographicDivision.fromJson(item)); } if (_json.containsKey("offices")) { offices = _json["offices"].map((value) => new Office.fromJson(value)).toList(); @@ -1877,10 +1877,10 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (divisions != null) { - _json["divisions"] = commons.mapMap(divisions, (item) => (item).toJson()); + _json["divisions"] = commons.mapMap<GeographicDivision, core.Map<core.String, core.Object>>(divisions, (GeographicDivision item) => (item).toJson()); } if (offices != null) { _json["offices"] = offices.map((value) => (value).toJson()).toList(); @@ -1907,8 +1907,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contextParams != null) { _json["contextParams"] = (contextParams).toJson(); } @@ -1942,7 +1942,7 @@ RepresentativeInfoResponse.fromJson(core.Map _json) { if (_json.containsKey("divisions")) { - divisions = commons.mapMap(_json["divisions"], (item) => new GeographicDivision.fromJson(item)); + divisions = commons.mapMap<core.Map<core.String, core.Object>, GeographicDivision>(_json["divisions"], (core.Map<core.String, core.Object> item) => new GeographicDivision.fromJson(item)); } if (_json.containsKey("kind")) { kind = _json["kind"]; @@ -1958,10 +1958,10 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (divisions != null) { - _json["divisions"] = commons.mapMap(divisions, (item) => (item).toJson()); + _json["divisions"] = commons.mapMap<GeographicDivision, core.Map<core.String, core.Object>>(divisions, (GeographicDivision item) => (item).toJson()); } if (kind != null) { _json["kind"] = kind; @@ -2022,8 +2022,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (city != null) { _json["city"] = city; } @@ -2069,8 +2069,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -2097,8 +2097,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contextParams != null) { _json["contextParams"] = (contextParams).toJson(); } @@ -2192,8 +2192,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contests != null) { _json["contests"] = contests.map((value) => (value).toJson()).toList(); } @@ -2254,8 +2254,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (generatedMillis != null) { _json["generatedMillis"] = generatedMillis; }
diff --git a/generated/googleapis/lib/classroom/v1.dart b/generated/googleapis/lib/classroom/v1.dart index bc0996c..119940f 100644 --- a/generated/googleapis/lib/classroom/v1.dart +++ b/generated/googleapis/lib/classroom/v1.dart
@@ -254,18 +254,6 @@ * * Request parameters: * - * [teacherId] - Restricts returned courses to those having a teacher with the - * specified - * identifier. The identifier can be one of the following: - * - * * the numeric identifier for the user - * * the email address of the user - * * the string literal `"me"`, indicating the requesting user - * - * [courseStates] - Restricts returned courses to those in one of the - * specified states - * The default value is ACTIVE, ARCHIVED, PROVISIONED, DECLINED. - * * [studentId] - Restricts returned courses to those having a student with the * specified * identifier. The identifier can be one of the following: @@ -288,6 +276,18 @@ * * The server may return fewer than the specified number of results. * + * [teacherId] - Restricts returned courses to those having a teacher with the + * specified + * identifier. The identifier can be one of the following: + * + * * the numeric identifier for the user + * * the email address of the user + * * the string literal `"me"`, indicating the requesting user + * + * [courseStates] - Restricts returned courses to those in one of the + * specified states + * The default value is ACTIVE, ARCHIVED, PROVISIONED, DECLINED. + * * Completes with a [ListCoursesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -296,7 +296,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListCoursesResponse> list({core.String teacherId, core.List<core.String> courseStates, core.String studentId, core.String pageToken, core.int pageSize}) { + async.Future<ListCoursesResponse> list({core.String studentId, core.String pageToken, core.int pageSize, core.String teacherId, core.List<core.String> courseStates}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -304,12 +304,6 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (teacherId != null) { - _queryParams["teacherId"] = [teacherId]; - } - if (courseStates != null) { - _queryParams["courseStates"] = courseStates; - } if (studentId != null) { _queryParams["studentId"] = [studentId]; } @@ -319,6 +313,12 @@ if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (teacherId != null) { + _queryParams["teacherId"] = [teacherId]; + } + if (courseStates != null) { + _queryParams["courseStates"] = courseStates; + } _url = 'v1/courses'; @@ -1108,6 +1108,23 @@ * This may be set to the string literal `"-"` to request student work for * all course work in the specified course. * + * [late] - Requested lateness value. If specified, returned student + * submissions are + * restricted by the requested value. + * If unspecified, submissions are returned regardless of `late` value. + * Possible string values are: + * - "LATE_VALUES_UNSPECIFIED" : A LATE_VALUES_UNSPECIFIED. + * - "LATE_ONLY" : A LATE_ONLY. + * - "NOT_LATE_ONLY" : A NOT_LATE_ONLY. + * + * [pageToken] - nextPageToken + * value returned from a previous + * list call, + * indicating that the subsequent page of results should be returned. + * + * The list request + * must be otherwise identical to the one that resulted in this token. + * * [pageSize] - Maximum number of items to return. Zero or unspecified * indicates that the * server may assign a maximum. @@ -1127,23 +1144,6 @@ * * the email address of the user * * the string literal `"me"`, indicating the requesting user * - * [late] - Requested lateness value. If specified, returned student - * submissions are - * restricted by the requested value. - * If unspecified, submissions are returned regardless of `late` value. - * Possible string values are: - * - "LATE_VALUES_UNSPECIFIED" : A LATE_VALUES_UNSPECIFIED. - * - "LATE_ONLY" : A LATE_ONLY. - * - "NOT_LATE_ONLY" : A NOT_LATE_ONLY. - * - * [pageToken] - nextPageToken - * value returned from a previous - * list call, - * indicating that the subsequent page of results should be returned. - * - * The list request - * must be otherwise identical to the one that resulted in this token. - * * Completes with a [ListStudentSubmissionsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1152,7 +1152,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListStudentSubmissionsResponse> list(core.String courseId, core.String courseWorkId, {core.int pageSize, core.List<core.String> states, core.String userId, core.String late, core.String pageToken}) { + async.Future<ListStudentSubmissionsResponse> list(core.String courseId, core.String courseWorkId, {core.String late, core.String pageToken, core.int pageSize, core.List<core.String> states, core.String userId}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1166,6 +1166,12 @@ if (courseWorkId == null) { throw new core.ArgumentError("Parameter courseWorkId is required."); } + if (late != null) { + _queryParams["late"] = [late]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } @@ -1175,12 +1181,6 @@ if (userId != null) { _queryParams["userId"] = [userId]; } - if (late != null) { - _queryParams["late"] = [late]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } _url = 'v1/courses/' + commons.Escaper.ecapeVariable('$courseId') + '/courseWork/' + commons.Escaper.ecapeVariable('$courseWorkId') + '/studentSubmissions'; @@ -2607,6 +2607,14 @@ * all students that the requesting user is permitted to view guardian * invitations. * + * [pageToken] - nextPageToken + * value returned from a previous + * list call, + * indicating that the subsequent page of results should be returned. + * + * The list request + * must be otherwise identical to the one that resulted in this token. + * * [invitedEmailAddress] - If specified, only results with the specified * `invited_email_address` * will be returned. @@ -2621,14 +2629,6 @@ * * The server may return fewer than the specified number of results. * - * [pageToken] - nextPageToken - * value returned from a previous - * list call, - * indicating that the subsequent page of results should be returned. - * - * The list request - * must be otherwise identical to the one that resulted in this token. - * * Completes with a [ListGuardianInvitationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -2637,7 +2637,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListGuardianInvitationsResponse> list(core.String studentId, {core.String invitedEmailAddress, core.List<core.String> states, core.int pageSize, core.String pageToken}) { + async.Future<ListGuardianInvitationsResponse> list(core.String studentId, {core.String pageToken, core.String invitedEmailAddress, core.List<core.String> states, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -2648,6 +2648,9 @@ if (studentId == null) { throw new core.ArgumentError("Parameter studentId is required."); } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if (invitedEmailAddress != null) { _queryParams["invitedEmailAddress"] = [invitedEmailAddress]; } @@ -2657,9 +2660,6 @@ if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } _url = 'v1/userProfiles/' + commons.Escaper.ecapeVariable('$studentId') + '/guardianInvitations'; @@ -3004,8 +3004,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (studentWorkFolder != null) { _json["studentWorkFolder"] = (studentWorkFolder).toJson(); } @@ -3035,8 +3035,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attachments != null) { _json["attachments"] = attachments.map((value) => (value).toJson()).toList(); } @@ -3076,8 +3076,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (driveFile != null) { _json["driveFile"] = (driveFile).toJson(); } @@ -3103,6 +3103,13 @@ */ core.String alternateLink; /** + * The Calendar ID for a calendar that all course members can see, to which + * Classroom adds events for course work and announcements in the course. + * + * Read-only. + */ + core.String calendarId; + /** * The email address of a Google group containing all members of the course. * This group does not accept email and can only be used for permissions. * @@ -3262,6 +3269,9 @@ if (_json.containsKey("alternateLink")) { alternateLink = _json["alternateLink"]; } + if (_json.containsKey("calendarId")) { + calendarId = _json["calendarId"]; + } if (_json.containsKey("courseGroupEmail")) { courseGroupEmail = _json["courseGroupEmail"]; } @@ -3312,11 +3322,14 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alternateLink != null) { _json["alternateLink"] = alternateLink; } + if (calendarId != null) { + _json["calendarId"] = calendarId; + } if (courseGroupEmail != null) { _json["courseGroupEmail"] = courseGroupEmail; } @@ -3407,8 +3420,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alias != null) { _json["alias"] = alias; } @@ -3444,8 +3457,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (driveFile != null) { _json["driveFile"] = (driveFile).toJson(); } @@ -3484,8 +3497,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (materials != null) { _json["materials"] = materials.map((value) => (value).toJson()).toList(); } @@ -3578,6 +3591,8 @@ * set otherwise. */ MultipleChoiceQuestion multipleChoiceQuestion; + /** Optional timestamp when this course work is scheduled to be published. */ + core.String scheduledTime; /** * Status of this course work. * If unspecified, the default state is `DRAFT`. @@ -3670,6 +3685,9 @@ if (_json.containsKey("multipleChoiceQuestion")) { multipleChoiceQuestion = new MultipleChoiceQuestion.fromJson(_json["multipleChoiceQuestion"]); } + if (_json.containsKey("scheduledTime")) { + scheduledTime = _json["scheduledTime"]; + } if (_json.containsKey("state")) { state = _json["state"]; } @@ -3687,8 +3705,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alternateLink != null) { _json["alternateLink"] = alternateLink; } @@ -3725,6 +3743,9 @@ if (multipleChoiceQuestion != null) { _json["multipleChoiceQuestion"] = (multipleChoiceQuestion).toJson(); } + if (scheduledTime != null) { + _json["scheduledTime"] = scheduledTime; + } if (state != null) { _json["state"] = state; } @@ -3781,8 +3802,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (day != null) { _json["day"] = day; } @@ -3836,8 +3857,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alternateLink != null) { _json["alternateLink"] = alternateLink; } @@ -3885,8 +3906,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alternateLink != null) { _json["alternateLink"] = alternateLink; } @@ -3918,8 +3939,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -3966,8 +3987,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (formUrl != null) { _json["formUrl"] = formUrl; } @@ -4004,8 +4025,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permission != null) { _json["permission"] = permission; } @@ -4047,8 +4068,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (guardianId != null) { _json["guardianId"] = guardianId; } @@ -4120,8 +4141,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTime != null) { _json["creationTime"] = creationTime; } @@ -4189,8 +4210,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (courseId != null) { _json["courseId"] = courseId; } @@ -4241,8 +4262,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (thumbnailUrl != null) { _json["thumbnailUrl"] = thumbnailUrl; } @@ -4277,8 +4298,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aliases != null) { _json["aliases"] = aliases.map((value) => (value).toJson()).toList(); } @@ -4310,8 +4331,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (courseWork != null) { _json["courseWork"] = courseWork.map((value) => (value).toJson()).toList(); } @@ -4343,8 +4364,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (courses != null) { _json["courses"] = courses.map((value) => (value).toJson()).toList(); } @@ -4376,8 +4397,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (guardianInvitations != null) { _json["guardianInvitations"] = guardianInvitations.map((value) => (value).toJson()).toList(); } @@ -4412,8 +4433,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (guardians != null) { _json["guardians"] = guardians.map((value) => (value).toJson()).toList(); } @@ -4445,8 +4466,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (invitations != null) { _json["invitations"] = invitations.map((value) => (value).toJson()).toList(); } @@ -4478,8 +4499,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -4511,8 +4532,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -4544,8 +4565,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -4591,8 +4612,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (driveFile != null) { _json["driveFile"] = (driveFile).toJson(); } @@ -4627,8 +4648,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (addAttachments != null) { _json["addAttachments"] = addAttachments.map((value) => (value).toJson()).toList(); } @@ -4649,8 +4670,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (choices != null) { _json["choices"] = choices; } @@ -4671,8 +4692,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (answer != null) { _json["answer"] = answer; } @@ -4716,8 +4737,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (familyName != null) { _json["familyName"] = familyName; } @@ -4739,8 +4760,8 @@ ReclaimStudentSubmissionRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -4753,8 +4774,8 @@ ReturnStudentSubmissionRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -4785,8 +4806,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (driveFile != null) { _json["driveFile"] = (driveFile).toJson(); } @@ -4810,8 +4831,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (answer != null) { _json["answer"] = answer; } @@ -4869,8 +4890,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (courseId != null) { _json["courseId"] = courseId; } @@ -5059,8 +5080,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alternateLink != null) { _json["alternateLink"] = alternateLink; } @@ -5153,8 +5174,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (courseId != null) { _json["courseId"] = courseId; } @@ -5206,8 +5227,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (hours != null) { _json["hours"] = hours; } @@ -5232,8 +5253,8 @@ TurnInStudentSubmissionRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -5270,6 +5291,12 @@ * Read-only. */ core.String photoUrl; + /** + * Whether or not the user is a verified teacher + * + * Read-only + */ + core.bool verifiedTeacher; UserProfile(); @@ -5289,10 +5316,13 @@ if (_json.containsKey("photoUrl")) { photoUrl = _json["photoUrl"]; } + if (_json.containsKey("verifiedTeacher")) { + verifiedTeacher = _json["verifiedTeacher"]; + } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (emailAddress != null) { _json["emailAddress"] = emailAddress; } @@ -5308,6 +5338,9 @@ if (photoUrl != null) { _json["photoUrl"] = photoUrl; } + if (verifiedTeacher != null) { + _json["verifiedTeacher"] = verifiedTeacher; + } return _json; } } @@ -5352,8 +5385,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alternateLink != null) { _json["alternateLink"] = alternateLink; }
diff --git a/generated/googleapis/lib/cloudbilling/v1.dart b/generated/googleapis/lib/cloudbilling/v1.dart index 92926aa..bfe7374 100644 --- a/generated/googleapis/lib/cloudbilling/v1.dart +++ b/generated/googleapis/lib/cloudbilling/v1.dart
@@ -375,8 +375,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -412,8 +412,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (billingAccounts != null) { _json["billingAccounts"] = billingAccounts.map((value) => (value).toJson()).toList(); } @@ -449,8 +449,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -510,8 +510,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (billingAccountName != null) { _json["billingAccountName"] = billingAccountName; }
diff --git a/generated/googleapis/lib/cloudbuild/v1.dart b/generated/googleapis/lib/cloudbuild/v1.dart index be80c69..2192951 100644 --- a/generated/googleapis/lib/cloudbuild/v1.dart +++ b/generated/googleapis/lib/cloudbuild/v1.dart
@@ -136,20 +136,25 @@ * Lists operations that match the specified filter in the request. If the * server doesn't support this method, it returns `UNIMPLEMENTED`. * - * NOTE: the `name` binding below allows API services to override the binding - * to use different resource name schemes, such as `users / * /operations`. + * NOTE: the `name` binding allows API services to override the binding + * to use different resource name schemes, such as `users / * /operations`. To + * override the binding, API services can add a binding such as + * `"/v1/{name=users / * }/operations"` to their service configuration. + * For backwards compatibility, the default name includes the operations + * collection id, however overriding users must ensure the name binding + * is the parent resource, without the operations collection id. * * Request parameters: * - * [name] - The name of the operation collection. + * [name] - The name of the operation's parent resource. * Value must have pattern "^operations$". * + * [filter] - The standard list filter. + * * [pageToken] - The standard list page token. * * [pageSize] - The standard list page size. * - * [filter] - The standard list filter. - * * Completes with a [ListOperationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -158,7 +163,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListOperationsResponse> list(core.String name, {core.String pageToken, core.int pageSize, core.String filter}) { + async.Future<ListOperationsResponse> list(core.String name, {core.String filter, core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -169,15 +174,15 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } + if (filter != null) { + _queryParams["filter"] = [filter]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } - if (filter != null) { - _queryParams["filter"] = [filter]; - } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); @@ -842,8 +847,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (buildTriggerId != null) { _json["buildTriggerId"] = buildTriggerId; } @@ -918,8 +923,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (build != null) { _json["build"] = (build).toJson(); } @@ -950,8 +955,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (requestedVerifyOption != null) { _json["requestedVerifyOption"] = requestedVerifyOption; } @@ -1049,8 +1054,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (args != null) { _json["args"] = args; } @@ -1144,8 +1149,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (build != null) { _json["build"] = (build).toJson(); } @@ -1195,8 +1200,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (digest != null) { _json["digest"] = digest; } @@ -1215,8 +1220,8 @@ CancelBuildRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1229,8 +1234,8 @@ CancelOperationRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1253,8 +1258,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1275,8 +1280,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fileHash != null) { _json["fileHash"] = fileHash.map((value) => (value).toJson()).toList(); } @@ -1314,8 +1319,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (type != null) { _json["type"] = type; } @@ -1339,8 +1344,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (triggers != null) { _json["triggers"] = triggers.map((value) => (value).toJson()).toList(); } @@ -1366,8 +1371,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (builds != null) { _json["builds"] = builds.map((value) => (value).toJson()).toList(); } @@ -1396,8 +1401,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1472,8 +1477,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (done != null) { _json["done"] = done; } @@ -1532,8 +1537,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (branchName != null) { _json["branchName"] = branchName; } @@ -1573,8 +1578,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (buildStepImages != null) { _json["buildStepImages"] = buildStepImages; } @@ -1609,8 +1614,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (repoSource != null) { _json["repoSource"] = (repoSource).toJson(); } @@ -1654,7 +1659,7 @@ SourceProvenance.fromJson(core.Map _json) { if (_json.containsKey("fileHashes")) { - fileHashes = commons.mapMap(_json["fileHashes"], (item) => new FileHashes.fromJson(item)); + fileHashes = commons.mapMap<core.Map<core.String, core.Object>, FileHashes>(_json["fileHashes"], (core.Map<core.String, core.Object> item) => new FileHashes.fromJson(item)); } if (_json.containsKey("resolvedRepoSource")) { resolvedRepoSource = new RepoSource.fromJson(_json["resolvedRepoSource"]); @@ -1664,10 +1669,10 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fileHashes != null) { - _json["fileHashes"] = commons.mapMap(fileHashes, (item) => (item).toJson()); + _json["fileHashes"] = commons.mapMap<FileHashes, core.Map<core.String, core.Object>>(fileHashes, (FileHashes item) => (item).toJson()); } if (resolvedRepoSource != null) { _json["resolvedRepoSource"] = (resolvedRepoSource).toJson(); @@ -1767,8 +1772,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -1820,8 +1825,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bucket != null) { _json["bucket"] = bucket; }
diff --git a/generated/googleapis/lib/clouddebugger/v2.dart b/generated/googleapis/lib/clouddebugger/v2.dart index 001656e..1900b61 100644 --- a/generated/googleapis/lib/clouddebugger/v2.dart +++ b/generated/googleapis/lib/clouddebugger/v2.dart
@@ -130,6 +130,11 @@ * * [debuggeeId] - Identifies the debuggee. * + * [waitToken] - A wait token that, if specified, blocks the method call until + * the list + * of active breakpoints has changed, or a server selected timeout has + * expired. The value should be set from the last returned response. + * * [successOnTimeout] - If set to `true`, returns `google.rpc.Code.OK` status * and sets the * `wait_expired` response field to `true` when the server-selected timeout @@ -138,11 +143,6 @@ * If set to `false`, returns `google.rpc.Code.ABORTED` status when the * server-selected timeout has expired (deprecated). * - * [waitToken] - A wait token that, if specified, blocks the method call until - * the list - * of active breakpoints has changed, or a server selected timeout has - * expired. The value should be set from the last returned response. - * * Completes with a [ListActiveBreakpointsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -151,7 +151,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListActiveBreakpointsResponse> list(core.String debuggeeId, {core.bool successOnTimeout, core.String waitToken}) { + async.Future<ListActiveBreakpointsResponse> list(core.String debuggeeId, {core.String waitToken, core.bool successOnTimeout}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -162,12 +162,12 @@ if (debuggeeId == null) { throw new core.ArgumentError("Parameter debuggeeId is required."); } - if (successOnTimeout != null) { - _queryParams["successOnTimeout"] = ["${successOnTimeout}"]; - } if (waitToken != null) { _queryParams["waitToken"] = [waitToken]; } + if (successOnTimeout != null) { + _queryParams["successOnTimeout"] = ["${successOnTimeout}"]; + } _url = 'v2/controller/debuggees/' + commons.Escaper.ecapeVariable('$debuggeeId') + '/breakpoints'; @@ -264,9 +264,6 @@ * * Request parameters: * - * [project] - Project number of a Google Cloud project whose debuggees to - * list. - * * [clientVersion] - The client version making the call. * Following: `domain/type/version` (e.g., `google.com/intellij/v1`). * @@ -274,6 +271,9 @@ * Otherwise, the * result includes only debuggees that are active. * + * [project] - Project number of a Google Cloud project whose debuggees to + * list. + * * Completes with a [ListDebuggeesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -282,7 +282,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListDebuggeesResponse> list({core.String project, core.String clientVersion, core.bool includeInactive}) { + async.Future<ListDebuggeesResponse> list({core.String clientVersion, core.bool includeInactive, core.String project}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -290,15 +290,15 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (project != null) { - _queryParams["project"] = [project]; - } if (clientVersion != null) { _queryParams["clientVersion"] = [clientVersion]; } if (includeInactive != null) { _queryParams["includeInactive"] = ["${includeInactive}"]; } + if (project != null) { + _queryParams["project"] = [project]; + } _url = 'v2/debugger/debuggees'; @@ -428,8 +428,12 @@ * * [debuggeeId] - ID of the debuggee whose breakpoints to list. * - * [clientVersion] - The client version making the call. - * Following: `domain/type/version` (e.g., `google.com/intellij/v1`). + * [waitToken] - A wait token that, if specified, blocks the call until the + * breakpoints + * list has changed, or a server selected timeout has expired. The value + * should be set from the last response. The error code + * `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which + * should be called again with the same `wait_token`. * * [action_value] - Only breakpoints with the specified action will pass the * filter. @@ -437,25 +441,21 @@ * - "CAPTURE" : A CAPTURE. * - "LOG" : A LOG. * - * [includeAllUsers] - When set to `true`, the response includes the list of - * breakpoints set by - * any user. Otherwise, it includes only breakpoints set by the caller. + * [clientVersion] - The client version making the call. + * Following: `domain/type/version` (e.g., `google.com/intellij/v1`). * * [includeInactive] - When set to `true`, the response includes active and * inactive * breakpoints. Otherwise, it includes only active breakpoints. * + * [includeAllUsers] - When set to `true`, the response includes the list of + * breakpoints set by + * any user. Otherwise, it includes only breakpoints set by the caller. + * * [stripResults] - This field is deprecated. The following fields are always * stripped out of * the result: `stack_frames`, `evaluated_expressions` and `variable_table`. * - * [waitToken] - A wait token that, if specified, blocks the call until the - * breakpoints - * list has changed, or a server selected timeout has expired. The value - * should be set from the last response. The error code - * `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which - * should be called again with the same `wait_token`. - * * Completes with a [ListBreakpointsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -464,7 +464,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListBreakpointsResponse> list(core.String debuggeeId, {core.String clientVersion, core.String action_value, core.bool includeAllUsers, core.bool includeInactive, core.bool stripResults, core.String waitToken}) { + async.Future<ListBreakpointsResponse> list(core.String debuggeeId, {core.String waitToken, core.String action_value, core.String clientVersion, core.bool includeInactive, core.bool includeAllUsers, core.bool stripResults}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -475,24 +475,24 @@ if (debuggeeId == null) { throw new core.ArgumentError("Parameter debuggeeId is required."); } - if (clientVersion != null) { - _queryParams["clientVersion"] = [clientVersion]; + if (waitToken != null) { + _queryParams["waitToken"] = [waitToken]; } if (action_value != null) { _queryParams["action.value"] = [action_value]; } - if (includeAllUsers != null) { - _queryParams["includeAllUsers"] = ["${includeAllUsers}"]; + if (clientVersion != null) { + _queryParams["clientVersion"] = [clientVersion]; } if (includeInactive != null) { _queryParams["includeInactive"] = ["${includeInactive}"]; } + if (includeAllUsers != null) { + _queryParams["includeAllUsers"] = ["${includeAllUsers}"]; + } if (stripResults != null) { _queryParams["stripResults"] = ["${stripResults}"]; } - if (waitToken != null) { - _queryParams["waitToken"] = [waitToken]; - } _url = 'v2/debugger/debuggees/' + commons.Escaper.ecapeVariable('$debuggeeId') + '/breakpoints'; @@ -588,8 +588,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -767,8 +767,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (action != null) { _json["action"] = action; } @@ -852,8 +852,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aliasContext != null) { _json["aliasContext"] = (aliasContext).toJson(); } @@ -895,8 +895,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -930,8 +930,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (snapshotId != null) { _json["snapshotId"] = snapshotId; } @@ -1055,8 +1055,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (agentVersion != null) { _json["agentVersion"] = agentVersion; } @@ -1112,8 +1112,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1139,8 +1139,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (context != null) { _json["context"] = (context).toJson(); } @@ -1179,8 +1179,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (format != null) { _json["format"] = format; } @@ -1228,8 +1228,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aliasContext != null) { _json["aliasContext"] = (aliasContext).toJson(); } @@ -1265,8 +1265,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (breakpoint != null) { _json["breakpoint"] = (breakpoint).toJson(); } @@ -1298,8 +1298,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (revisionId != null) { _json["revisionId"] = revisionId; } @@ -1342,8 +1342,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (breakpoints != null) { _json["breakpoints"] = breakpoints.map((value) => (value).toJson()).toList(); } @@ -1383,8 +1383,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (breakpoints != null) { _json["breakpoints"] = breakpoints.map((value) => (value).toJson()).toList(); } @@ -1414,8 +1414,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (debuggees != null) { _json["debuggees"] = debuggees.map((value) => (value).toJson()).toList(); } @@ -1444,8 +1444,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (projectId != null) { _json["projectId"] = projectId; } @@ -1473,8 +1473,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (debuggee != null) { _json["debuggee"] = (debuggee).toJson(); } @@ -1498,8 +1498,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (debuggee != null) { _json["debuggee"] = (debuggee).toJson(); } @@ -1525,8 +1525,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (projectRepoId != null) { _json["projectRepoId"] = (projectRepoId).toJson(); } @@ -1553,8 +1553,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (breakpoint != null) { _json["breakpoint"] = (breakpoint).toJson(); } @@ -1593,8 +1593,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cloudRepo != null) { _json["cloudRepo"] = (cloudRepo).toJson(); } @@ -1631,8 +1631,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (line != null) { _json["line"] = line; } @@ -1677,8 +1677,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (arguments != null) { _json["arguments"] = arguments.map((value) => (value).toJson()).toList(); } @@ -1739,8 +1739,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = (description).toJson(); } @@ -1770,8 +1770,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (breakpoint != null) { _json["breakpoint"] = (breakpoint).toJson(); } @@ -1790,8 +1790,8 @@ UpdateActiveBreakpointResponse.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1973,8 +1973,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (members != null) { _json["members"] = members.map((value) => (value).toJson()).toList(); }
diff --git a/generated/googleapis/lib/cloudfunctions/v1.dart b/generated/googleapis/lib/cloudfunctions/v1.dart index b27c05e..467c190 100644 --- a/generated/googleapis/lib/cloudfunctions/v1.dart +++ b/generated/googleapis/lib/cloudfunctions/v1.dart
@@ -66,8 +66,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (request != null) { _json["request"] = request; }
diff --git a/generated/googleapis/lib/cloudkms/v1.dart b/generated/googleapis/lib/cloudkms/v1.dart index 0b06000..6717b89 100644 --- a/generated/googleapis/lib/cloudkms/v1.dart +++ b/generated/googleapis/lib/cloudkms/v1.dart
@@ -15,7 +15,7 @@ const core.String USER_AGENT = 'dart-api-client cloudkms/v1'; /** - * Manages encryption for your cloud services the same way you do on-premise. + * Manages encryption for your cloud services the same way you do on-premises. * You can generate, use, rotate, and destroy AES256 encryption keys. */ class CloudkmsApi { @@ -98,12 +98,12 @@ * [name] - The resource that owns the locations collection, if applicable. * Value must have pattern "^projects/[^/]+$". * - * [pageToken] - The standard list page token. - * * [pageSize] - The standard list page size. * * [filter] - The standard list filter. * + * [pageToken] - The standard list page token. + * * Completes with a [ListLocationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -112,7 +112,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListLocationsResponse> list(core.String name, {core.String pageToken, core.int pageSize, core.String filter}) { + async.Future<ListLocationsResponse> list(core.String name, {core.int pageSize, core.String filter, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -123,15 +123,15 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } if (filter != null) { _queryParams["filter"] = [filter]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/locations'; @@ -516,7 +516,7 @@ } /** - * Decrypt data that was protected by Encrypt. + * Decrypts data that was protected by Encrypt. * * [request] - The metadata request object. * @@ -564,7 +564,7 @@ } /** - * Encrypt data, so that it can only be recovered by a call to Decrypt. + * Encrypts data, so that it can only be recovered by a call to Decrypt. * * [request] - The metadata request object. * @@ -710,14 +710,14 @@ * `projects / * /locations / * /keyRings / * `. * Value must have pattern "^projects/[^/]+/locations/[^/]+/keyRings/[^/]+$". * - * [pageToken] - Optional pagination token, returned earlier via - * ListCryptoKeysResponse.next_page_token. - * * [pageSize] - Optional limit on the number of CryptoKeys to include in the * response. Further CryptoKeys can subsequently be obtained by * including the ListCryptoKeysResponse.next_page_token in a subsequent * request. If unspecified, the server will pick an appropriate default. * + * [pageToken] - Optional pagination token, returned earlier via + * ListCryptoKeysResponse.next_page_token. + * * Completes with a [ListCryptoKeysResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -726,7 +726,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListCryptoKeysResponse> list(core.String parent, {core.String pageToken, core.int pageSize}) { + async.Future<ListCryptoKeysResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -737,12 +737,12 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/cryptoKeys'; @@ -1370,8 +1370,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (auditLogConfigs != null) { _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson()).toList(); } @@ -1434,8 +1434,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (exemptedMembers != null) { _json["exemptedMembers"] = exemptedMembers; } @@ -1449,6 +1449,14 @@ /** Associates `members` with a `role`. */ class Binding { /** + * The condition that is associated with this binding. + * NOTE: an unsatisfied condition will not allow user access via current + * binding. Different bindings, including their conditions, are examined + * independently. + * This field is GOOGLE_INTERNAL. + */ + Expr condition; + /** * Specifies the identities requesting access for a Cloud Platform resource. * `members` can have the following values: * @@ -1483,6 +1491,9 @@ Binding(); Binding.fromJson(core.Map _json) { + if (_json.containsKey("condition")) { + condition = new Expr.fromJson(_json["condition"]); + } if (_json.containsKey("members")) { members = _json["members"]; } @@ -1491,8 +1502,11 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (condition != null) { + _json["condition"] = (condition).toJson(); + } if (members != null) { _json["members"] = members; } @@ -1522,8 +1536,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (logName != null) { _json["logName"] = logName; } @@ -1549,7 +1563,6 @@ * member of the specified group. Approvers can only grant additional * access, and are thus only used in a strictly positive context * (e.g. ALLOW/IN or DENY/NOT_IN). - * See: go/rpc-security-policy-dynamicauth. * - "JUSTIFICATION_TYPE" : What types of justifications have been supplied * with this request. * String values should match enum names from tech.iam.JustificationType, @@ -1617,8 +1630,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (iam != null) { _json["iam"] = iam; } @@ -1659,8 +1672,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (field != null) { _json["field"] = field; } @@ -1748,8 +1761,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createTime != null) { _json["createTime"] = createTime; } @@ -1841,8 +1854,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createTime != null) { _json["createTime"] = createTime; } @@ -1870,8 +1883,8 @@ DataAccessOptions.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1914,8 +1927,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (additionalAuthenticatedData != null) { _json["additionalAuthenticatedData"] = additionalAuthenticatedData; } @@ -1946,8 +1959,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (plaintext != null) { _json["plaintext"] = plaintext; } @@ -1963,8 +1976,8 @@ DestroyCryptoKeyVersionRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -2005,8 +2018,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (additionalAuthenticatedData != null) { _json["additionalAuthenticatedData"] = additionalAuthenticatedData; } @@ -2042,8 +2055,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ciphertext != null) { _json["ciphertext"] = ciphertext; } @@ -2054,6 +2067,74 @@ } } +/** + * Represents an expression text. Example: + * + * title: "User account presence" + * description: "Determines whether the request has a user account" + * expression: "size(request.user) > 0" + */ +class Expr { + /** + * An optional description of the expression. This is a longer text which + * describes the expression, e.g. when hovered over it in a UI. + */ + core.String description; + /** + * Textual representation of an expression in + * [Common Expression Language](http://go/api-expr) syntax. + * + * The application context of the containing message determines which + * well-known feature set of CEL is supported. + */ + core.String expression; + /** + * An optional string indicating the location of the expression for error + * reporting, e.g. a file name and a position in the file. + */ + core.String location; + /** + * An optional title for the expression, i.e. a short string describing + * its purpose. This can be used e.g. in UIs which allow to enter the + * expression. + */ + core.String title; + + Expr(); + + Expr.fromJson(core.Map _json) { + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("expression")) { + expression = _json["expression"]; + } + if (_json.containsKey("location")) { + location = _json["location"]; + } + if (_json.containsKey("title")) { + title = _json["title"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (description != null) { + _json["description"] = description; + } + if (expression != null) { + _json["expression"] = expression; + } + if (location != null) { + _json["location"] = location; + } + if (title != null) { + _json["title"] = title; + } + return _json; + } +} + /** A KeyRing is a toplevel logical grouping of CryptoKeys. */ class KeyRing { /** Output only. The time at which this KeyRing was created. */ @@ -2075,8 +2156,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createTime != null) { _json["createTime"] = createTime; } @@ -2117,8 +2198,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cryptoKeyVersions != null) { _json["cryptoKeyVersions"] = cryptoKeyVersions.map((value) => (value).toJson()).toList(); } @@ -2158,8 +2239,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cryptoKeys != null) { _json["cryptoKeys"] = cryptoKeys.map((value) => (value).toJson()).toList(); } @@ -2199,8 +2280,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (keyRings != null) { _json["keyRings"] = keyRings.map((value) => (value).toJson()).toList(); } @@ -2232,8 +2313,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (locations != null) { _json["locations"] = locations.map((value) => (value).toJson()).toList(); } @@ -2285,8 +2366,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (labels != null) { _json["labels"] = labels; } @@ -2326,8 +2407,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cloudAudit != null) { _json["cloudAudit"] = (cloudAudit).toJson(); } @@ -2379,7 +2460,6 @@ core.List<AuditConfig> auditConfigs; /** * Associates a list of `members` to a `role`. - * Multiple `bindings` must not be specified for the same `role`. * `bindings` with no members will result in an error. */ core.List<Binding> bindings; @@ -2442,8 +2522,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (auditConfigs != null) { _json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toList(); } @@ -2474,8 +2554,8 @@ RestoreCryptoKeyVersionRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -2551,8 +2631,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (action != null) { _json["action"] = action; } @@ -2607,8 +2687,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (policy != null) { _json["policy"] = (policy).toJson(); } @@ -2637,8 +2717,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; } @@ -2662,8 +2742,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; } @@ -2684,8 +2764,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cryptoKeyVersionId != null) { _json["cryptoKeyVersionId"] = cryptoKeyVersionId; }
diff --git a/generated/googleapis/lib/cloudresourcemanager/v1.dart b/generated/googleapis/lib/cloudresourcemanager/v1.dart index a03887e..6b434ac 100644 --- a/generated/googleapis/lib/cloudresourcemanager/v1.dart +++ b/generated/googleapis/lib/cloudresourcemanager/v1.dart
@@ -1651,12 +1651,13 @@ * + Membership changes that leave the project without any owners that have * accepted the Terms of Service (ToS) will be rejected. * - * + There must be at least one owner who has accepted the Terms of - * Service (ToS) agreement in the policy. Calling `setIamPolicy()` to - * remove the last ToS-accepted owner from the policy will fail. This - * restriction also applies to legacy projects that no longer have owners - * who have accepted the ToS. Edits to IAM policies will be rejected until - * the lack of a ToS-accepting owner is rectified. + * + If the project is not part of an organization, there must be at least + * one owner who has accepted the Terms of Service (ToS) agreement in the + * policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner + * from the policy will fail. This restriction also applies to legacy + * projects that no longer have owners who have accepted the ToS. Edits to + * IAM policies will be rejected until the lack of a ToS-accepting owner is + * rectified. * * + Calling this method requires enabling the App Engine Admin API. * @@ -1921,8 +1922,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resourceId != null) { _json["resourceId"] = (resourceId).toJson(); } @@ -2007,8 +2008,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (auditLogConfigs != null) { _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson()).toList(); } @@ -2068,8 +2069,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (exemptedMembers != null) { _json["exemptedMembers"] = exemptedMembers; } @@ -2125,8 +2126,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (members != null) { _json["members"] = members; } @@ -2151,8 +2152,8 @@ BooleanConstraint.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -2218,8 +2219,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (enforced != null) { _json["enforced"] = enforced; } @@ -2255,8 +2256,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (constraint != null) { _json["constraint"] = constraint; } @@ -2347,8 +2348,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (booleanConstraint != null) { _json["booleanConstraint"] = (booleanConstraint).toJson(); } @@ -2392,8 +2393,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -2438,8 +2439,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (destinationParent != null) { _json["destinationParent"] = destinationParent; } @@ -2493,8 +2494,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errorMessageId != null) { _json["errorMessageId"] = errorMessageId; } @@ -2514,8 +2515,8 @@ GetAncestryRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -2537,8 +2538,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ancestor != null) { _json["ancestor"] = ancestor.map((value) => (value).toJson()).toList(); } @@ -2559,8 +2560,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (constraint != null) { _json["constraint"] = constraint; } @@ -2576,8 +2577,8 @@ GetIamPolicyRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -2595,8 +2596,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (constraint != null) { _json["constraint"] = constraint; } @@ -2673,8 +2674,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createTime != null) { _json["createTime"] = createTime; } @@ -2725,8 +2726,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (pageSize != null) { _json["pageSize"] = pageSize; } @@ -2762,8 +2763,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (constraints != null) { _json["constraints"] = constraints.map((value) => (value).toJson()).toList(); } @@ -2793,8 +2794,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (suggestedValue != null) { _json["suggestedValue"] = suggestedValue; } @@ -2823,8 +2824,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (liens != null) { _json["liens"] = liens.map((value) => (value).toJson()).toList(); } @@ -2860,8 +2861,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (pageSize != null) { _json["pageSize"] = pageSize; } @@ -2899,8 +2900,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -2934,8 +2935,8 @@ */ core.String allValues; /** - * List of values allowed at this resource. an only be set if no values are - * set for `denied_values` and `all_values` is set to + * List of values allowed at this resource. Can only be set if no values + * are set for `denied_values` and `all_values` is set to * `ALL_VALUES_UNSPECIFIED`. */ core.List<core.String> allowedValues; @@ -3058,8 +3059,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allValues != null) { _json["allValues"] = allValues; } @@ -3120,8 +3121,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -3196,8 +3197,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (done != null) { _json["done"] = done; } @@ -3299,8 +3300,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (booleanPolicy != null) { _json["booleanPolicy"] = (booleanPolicy).toJson(); } @@ -3387,8 +3388,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTime != null) { _json["creationTime"] = creationTime; } @@ -3426,8 +3427,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (directoryCustomerId != null) { _json["directoryCustomerId"] = directoryCustomerId; } @@ -3473,7 +3474,6 @@ core.List<AuditConfig> auditConfigs; /** * Associates a list of `members` to a `role`. - * Multiple `bindings` must not be specified for the same `role`. * `bindings` with no members will result in an error. */ core.List<Binding> bindings; @@ -3517,8 +3517,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (auditConfigs != null) { _json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toList(); } @@ -3648,8 +3648,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createTime != null) { _json["createTime"] = createTime; } @@ -3706,8 +3706,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createTime != null) { _json["createTime"] = createTime; } @@ -3750,8 +3750,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -3783,8 +3783,8 @@ RestoreDefault.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -3834,8 +3834,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filter != null) { _json["filter"] = filter; } @@ -3876,8 +3876,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -3917,8 +3917,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (policy != null) { _json["policy"] = (policy).toJson(); } @@ -3942,8 +3942,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (policy != null) { _json["policy"] = (policy).toJson(); } @@ -4039,8 +4039,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -4072,8 +4072,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; } @@ -4097,8 +4097,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; } @@ -4117,8 +4117,8 @@ UndeleteProjectRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } }
diff --git a/generated/googleapis/lib/cloudtrace/v1.dart b/generated/googleapis/lib/cloudtrace/v1.dart index ad73942..276fd4b 100644 --- a/generated/googleapis/lib/cloudtrace/v1.dart +++ b/generated/googleapis/lib/cloudtrace/v1.dart
@@ -156,20 +156,6 @@ * * [projectId] - ID of the Cloud project where the trace data is stored. * - * [orderBy] - Field used to sort the returned traces. Optional. - * Can be one of the following: - * - * * `trace_id` - * * `name` (`name` field of root span in the trace) - * * `duration` (difference between `end_time` and `start_time` fields of - * the root span) - * * `start` (`start_time` field of the root span) - * - * Descending order can be specified by appending `desc` to the sort field - * (for example, `name desc`). - * - * Only one sort field is permitted. - * * [filter] - An optional filter against labels for the request. * * By default, searches use prefix matching. To specify exact match, prepend @@ -226,6 +212,20 @@ * - "ROOTSPAN" : A ROOTSPAN. * - "COMPLETE" : A COMPLETE. * + * [orderBy] - Field used to sort the returned traces. Optional. + * Can be one of the following: + * + * * `trace_id` + * * `name` (`name` field of root span in the trace) + * * `duration` (difference between `end_time` and `start_time` fields of + * the root span) + * * `start` (`start_time` field of the root span) + * + * Descending order can be specified by appending `desc` to the sort field + * (for example, `name desc`). + * + * Only one sort field is permitted. + * * Completes with a [ListTracesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -234,7 +234,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListTracesResponse> list(core.String projectId, {core.String orderBy, core.String filter, core.String endTime, core.String startTime, core.String pageToken, core.int pageSize, core.String view}) { + async.Future<ListTracesResponse> list(core.String projectId, {core.String filter, core.String endTime, core.String startTime, core.String pageToken, core.int pageSize, core.String view, core.String orderBy}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -245,9 +245,6 @@ if (projectId == null) { throw new core.ArgumentError("Parameter projectId is required."); } - if (orderBy != null) { - _queryParams["orderBy"] = [orderBy]; - } if (filter != null) { _queryParams["filter"] = [filter]; } @@ -266,6 +263,9 @@ if (view != null) { _queryParams["view"] = [view]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/traces'; @@ -301,8 +301,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -329,8 +329,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -371,8 +371,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (projectId != null) { _json["projectId"] = projectId; } @@ -492,8 +492,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } @@ -532,8 +532,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (traces != null) { _json["traces"] = traces.map((value) => (value).toJson()).toList(); }
diff --git a/generated/googleapis/lib/compute/v1.dart b/generated/googleapis/lib/compute/v1.dart index 32818aa..5fc0327 100644 --- a/generated/googleapis/lib/compute/v1.dart +++ b/generated/googleapis/lib/compute/v1.dart
@@ -76,6 +76,7 @@ TargetInstancesResourceApi get targetInstances => new TargetInstancesResourceApi(_requester); TargetPoolsResourceApi get targetPools => new TargetPoolsResourceApi(_requester); TargetSslProxiesResourceApi get targetSslProxies => new TargetSslProxiesResourceApi(_requester); + TargetTcpProxiesResourceApi get targetTcpProxies => new TargetTcpProxiesResourceApi(_requester); TargetVpnGatewaysResourceApi get targetVpnGateways => new TargetVpnGatewaysResourceApi(_requester); UrlMapsResourceApi get urlMaps => new UrlMapsResourceApi(_requester); VpnTunnelsResourceApi get vpnTunnels => new VpnTunnelsResourceApi(_requester); @@ -102,9 +103,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -115,7 +116,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -363,9 +364,9 @@ * [region] - Name of the region for this request. * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -376,7 +377,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -474,9 +475,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -487,7 +488,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -736,9 +737,9 @@ * [zone] - Name of the zone for this request. * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -749,7 +750,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -1108,9 +1109,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -1121,7 +1122,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -1323,9 +1324,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -1336,7 +1337,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -1620,9 +1621,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -1633,7 +1634,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -1838,9 +1839,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -1851,7 +1852,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -1994,9 +1995,9 @@ * [zone] - The name of the zone for this request. * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -2007,7 +2008,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -2105,9 +2106,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -2118,7 +2119,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -2440,9 +2441,9 @@ * [zone] - The name of the zone for this request. * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -2453,7 +2454,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -2591,6 +2592,65 @@ return _response.then((data) => new Operation.fromJson(data)); } + /** + * Sets the labels on a disk. To learn more about labels, read the Labeling + * Resources documentation. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [zone] - The name of the zone for this request. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * [resource] - Name of the resource for this request. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * Completes with a [Operation]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Operation> setLabels(ZoneSetLabelsRequest request, core.String project, core.String zone, core.String resource) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (zone == null) { + throw new core.ArgumentError("Parameter zone is required."); + } + if (resource == null) { + throw new core.ArgumentError("Parameter resource is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/disks/' + commons.Escaper.ecapeVariable('$resource') + '/setLabels'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + } @@ -2750,9 +2810,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -2763,7 +2823,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -2967,9 +3027,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -2980,7 +3040,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -3229,9 +3289,9 @@ * [region] - Name of the region scoping this request. * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -3242,7 +3302,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -3542,9 +3602,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -3555,7 +3615,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -3793,9 +3853,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -3806,7 +3866,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -3955,9 +4015,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -3968,7 +4028,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -4150,9 +4210,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -4163,7 +4223,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -4401,9 +4461,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -4414,7 +4474,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -4758,9 +4818,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -4771,7 +4831,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -5115,9 +5175,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -5128,7 +5188,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -5578,9 +5638,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -5591,7 +5651,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -5668,6 +5728,59 @@ return _response.then((data) => new ImageList.fromJson(data)); } + /** + * Sets the labels on an image. To learn more about labels, read the Labeling + * Resources documentation. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [resource] - Name of the resource for this request. + * Value must have pattern "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?". + * + * Completes with a [Operation]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Operation> setLabels(GlobalSetLabelsRequest request, core.String project, core.String resource) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (resource == null) { + throw new core.ArgumentError("Parameter resource is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/images/' + commons.Escaper.ecapeVariable('$resource') + '/setLabels'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + } @@ -5687,6 +5800,10 @@ * not yet been removed from the group. You must separately verify the status * of the abandoning action with the listmanagedinstances method. * + * If the group is part of a backend service that has enabled connection + * draining, it can take up to 60 seconds after the connection draining + * duration has elapsed before the VM instance is removed or deleted. + * * You can specify a maximum of 1000 instances with this method per request. * * [request] - The metadata request object. @@ -5751,9 +5868,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -5764,7 +5881,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -5903,6 +6020,10 @@ * still being deleted. You must separately verify the status of the deleting * action with the listmanagedinstances method. * + * If the group is part of a backend service that has enabled connection + * draining, it can take up to 60 seconds after the connection draining + * duration has elapsed before the VM instance is removed or deleted. + * * You can specify a maximum of 1000 instances with this method per request. * * [request] - The metadata request object. @@ -6018,7 +6139,8 @@ * in the group have not yet been created. You must separately verify the * status of the individual instances with the listmanagedinstances method. * - * A managed instance group can have up to 1000 VM instances per group. + * A managed instance group can have up to 1000 VM instances per group. Please + * contact Cloud Support if you need an increase in this limit. * * [request] - The metadata request object. * @@ -6081,9 +6203,9 @@ * * [zone] - The name of the zone where the managed instance group is located. * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -6094,7 +6216,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -6257,6 +6379,10 @@ * been recreated. You must separately verify the status of the recreating * action with the listmanagedinstances method. * + * If the group is part of a backend service that has enabled connection + * draining, it can take up to 60 seconds after the connection draining + * duration has elapsed before the VM instance is removed or deleted. + * * You can specify a maximum of 1000 instances with this method per request. * * [request] - The metadata request object. @@ -6320,6 +6446,10 @@ * or deleted any instances. You must separately verify the status of the * creating or deleting actions with the listmanagedinstances method. * + * If the group is part of a backend service that has enabled connection + * draining, it can take up to 60 seconds after the connection draining + * duration has elapsed before the VM instance is removed or deleted. + * * Request parameters: * * [project] - Project ID for this request. @@ -6572,9 +6702,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -6585,7 +6715,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -6831,9 +6961,9 @@ * * [zone] - The name of the zone where the instance group is located. * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -6844,7 +6974,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -6940,9 +7070,9 @@ * [instanceGroup] - The name of the instance group from which you want to * generate a list of included instances. * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -6953,7 +7083,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -7043,6 +7173,10 @@ * Removes one or more instances from the specified instance group, but does * not delete those instances. * + * If the group is part of a backend service that has enabled connection + * draining, it can take up to 60 seconds after the connection draining + * duration before the VM instance is removed or deleted. + * * [request] - The metadata request object. * * Request parameters: @@ -7320,9 +7454,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -7333,7 +7467,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -7493,9 +7627,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -7506,7 +7640,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -8009,9 +8143,9 @@ * [zone] - The name of the zone for this request. * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -8022,7 +8156,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -8224,6 +8358,65 @@ } /** + * Sets labels on an instance. To learn more about labels, read the Labeling + * Resources documentation. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [zone] - The name of the zone for this request. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * [instance] - Name of the instance scoping this request. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * Completes with a [Operation]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Operation> setLabels(InstancesSetLabelsRequest request, core.String project, core.String zone, core.String instance) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (zone == null) { + throw new core.ArgumentError("Parameter zone is required."); + } + if (instance == null) { + throw new core.ArgumentError("Parameter instance is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setLabels'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** * Changes the machine type for a stopped instance to the machine type * specified in the request. * @@ -8762,9 +8955,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -8775,7 +8968,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -8918,9 +9111,9 @@ * [zone] - The name of the zone for this request. * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -8931,7 +9124,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -9021,6 +9214,58 @@ _requester = client; /** + * Adds a peering to the specified network. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [network] - Name of the network resource to add peering to. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * Completes with a [Operation]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Operation> addPeering(NetworksAddPeeringRequest request, core.String project, core.String network) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (network == null) { + throw new core.ArgumentError("Parameter network is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/networks/' + commons.Escaper.ecapeVariable('$network') + '/addPeering'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** * Deletes the specified network. * * Request parameters: @@ -9171,9 +9416,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -9184,7 +9429,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -9262,6 +9507,58 @@ } /** + * Removes a peering from the specified network. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [network] - Name of the network resource to remove peering from. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * Completes with a [Operation]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Operation> removePeering(NetworksRemovePeeringRequest request, core.String project, core.String network) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (network == null) { + throw new core.ArgumentError("Parameter network is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/networks/' + commons.Escaper.ecapeVariable('$network') + '/removePeering'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** * Switches the network mode from auto subnet mode to custom subnet mode. * * Request parameters: @@ -9318,6 +9615,182 @@ _requester = client; /** + * Disable this project as an XPN host project. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * Completes with a [Operation]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Operation> disableXpnHost(core.String project) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/disableXpnHost'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** + * Disable an XPN resource associated with this host project. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * Completes with a [Operation]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Operation> disableXpnResource(ProjectsDisableXpnResourceRequest request, core.String project) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/disableXpnResource'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** + * Enable this project as an XPN host project. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * Completes with a [Operation]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Operation> enableXpnHost(core.String project) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/enableXpnHost'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** + * Enable XPN resource (a.k.a service project or service folder in the future) + * for a host project, so that subnetworks in the host project can be used by + * instances in the service project or folder. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * Completes with a [Operation]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Operation> enableXpnResource(ProjectsEnableXpnResourceRequest request, core.String project) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/enableXpnResource'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** * Returns the specified Project resource. * * Request parameters: @@ -9359,6 +9832,175 @@ } /** + * Get the XPN host project that this project links to. May be empty if no + * link exists. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * Completes with a [Project]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Project> getXpnHost(core.String project) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/getXpnHost'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Project.fromJson(data)); + } + + /** + * Get XPN resources associated with this host project. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [filter] - null + * + * [maxResults] - null + * + * [orderBy] - null + * + * [pageToken] - null + * + * Completes with a [ProjectsGetXpnResources]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ProjectsGetXpnResources> getXpnResources(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (filter != null) { + _queryParams["filter"] = [filter]; + } + if (maxResults != null) { + _queryParams["maxResults"] = ["${maxResults}"]; + } + if (orderBy != null) { + _queryParams["order_by"] = [orderBy]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + + _url = commons.Escaper.ecapeVariable('$project') + '/getXpnResources'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ProjectsGetXpnResources.fromJson(data)); + } + + /** + * List all XPN host projects visible to the user in an organization. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [filter] - null + * + * [maxResults] - null + * + * [orderBy] - null + * + * [pageToken] - null + * + * Completes with a [XpnHostList]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<XpnHostList> listXpnHosts(ProjectsListXpnHostsRequest request, core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (filter != null) { + _queryParams["filter"] = [filter]; + } + if (maxResults != null) { + _queryParams["maxResults"] = ["${maxResults}"]; + } + if (orderBy != null) { + _queryParams["order_by"] = [orderBy]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + + _url = commons.Escaper.ecapeVariable('$project') + '/listXpnHosts'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new XpnHostList.fromJson(data)); + } + + /** * Moves a persistent disk from one zone to another. * * [request] - The metadata request object. @@ -9726,9 +10368,9 @@ * [region] - Name of the region scoping this request. * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -9739,7 +10381,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -10179,9 +10821,9 @@ * [region] - Name of the region scoping this request. * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -10192,7 +10834,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -10413,6 +11055,10 @@ * not yet been removed from the group. You must separately verify the status * of the abandoning action with the listmanagedinstances method. * + * If the group is part of a backend service that has enabled connection + * draining, it can take up to 60 seconds after the connection draining + * duration has elapsed before the VM instance is removed or deleted. + * * You can specify a maximum of 1000 instances with this method per request. * * [request] - The metadata request object. @@ -10529,6 +11175,10 @@ * still being deleted. You must separately verify the status of the deleting * action with the listmanagedinstances method. * + * If the group is part of a backend service that has enabled connection + * draining, it can take up to 60 seconds after the connection draining + * duration has elapsed before the VM instance is removed or deleted. + * * You can specify a maximum of 1000 instances with this method per request. * * [request] - The metadata request object. @@ -10705,9 +11355,9 @@ * * [region] - Name of the region scoping this request. * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -10718,7 +11368,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -10879,6 +11529,10 @@ * been recreated. You must separately verify the status of the recreating * action with the listmanagedinstances method. * + * If the group is part of a backend service that has enabled connection + * draining, it can take up to 60 seconds after the connection draining + * duration has elapsed before the VM instance is removed or deleted. + * * You can specify a maximum of 1000 instances with this method per request. * * [request] - The metadata request object. @@ -10943,6 +11597,10 @@ * added or deleted any instances. You must separately verify the status of * the creating or deleting actions with the listmanagedinstances method. * + * If the group is part of a backend service that has enabled connection + * draining, it can take up to 60 seconds after the connection draining + * duration has elapsed before the VM instance is removed or deleted. + * * Request parameters: * * [project] - Project ID for this request. @@ -11184,9 +11842,9 @@ * * [region] - Name of the region scoping this request. * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -11197,7 +11855,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -11295,9 +11953,9 @@ * [instanceGroup] - Name of the regional instance group for which we want to * list the instances. * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -11308,7 +11966,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -11579,9 +12237,9 @@ * [region] - Name of the region for this request. * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -11592,7 +12250,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -11738,9 +12396,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -11751,7 +12409,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -11846,9 +12504,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -11859,7 +12517,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -12161,9 +12819,9 @@ * [region] - Name of the region for this request. * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -12174,7 +12832,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -12591,9 +13249,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -12604,7 +13262,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -12801,9 +13459,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -12814,7 +13472,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -12891,6 +13549,59 @@ return _response.then((data) => new SnapshotList.fromJson(data)); } + /** + * Sets the labels on a snapshot. To learn more about labels, read the + * Labeling Resources documentation. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [resource] - Name of the resource for this request. + * Value must have pattern "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?". + * + * Completes with a [Operation]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Operation> setLabels(GlobalSetLabelsRequest request, core.String project, core.String resource) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (resource == null) { + throw new core.ArgumentError("Parameter resource is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/snapshots/' + commons.Escaper.ecapeVariable('$resource') + '/setLabels'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + } @@ -13052,9 +13763,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -13065,7 +13776,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -13160,9 +13871,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -13173,7 +13884,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -13480,9 +14191,9 @@ * [region] - Name of the region scoping this request. * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -13493,7 +14204,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -13793,9 +14504,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -13806,7 +14517,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -14096,9 +14807,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -14109,7 +14820,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -14310,9 +15021,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -14323,7 +15034,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -14573,9 +15284,9 @@ * [zone] - Name of the zone scoping this request. * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -14586,7 +15297,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -14800,9 +15511,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -14813,7 +15524,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -15123,9 +15834,9 @@ * [region] - Name of the region scoping this request. * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -15136,7 +15847,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -15556,9 +16267,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -15569,7 +16280,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -15808,6 +16519,363 @@ } +class TargetTcpProxiesResourceApi { + final commons.ApiRequester _requester; + + TargetTcpProxiesResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Deletes the specified TargetTcpProxy resource. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [targetTcpProxy] - Name of the TargetTcpProxy resource to delete. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * Completes with a [Operation]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Operation> delete(core.String project, core.String targetTcpProxy) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (targetTcpProxy == null) { + throw new core.ArgumentError("Parameter targetTcpProxy is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetTcpProxies/' + commons.Escaper.ecapeVariable('$targetTcpProxy'); + + var _response = _requester.request(_url, + "DELETE", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** + * Returns the specified TargetTcpProxy resource. Get a list of available + * target TCP proxies by making a list() request. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [targetTcpProxy] - Name of the TargetTcpProxy resource to return. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * Completes with a [TargetTcpProxy]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<TargetTcpProxy> get(core.String project, core.String targetTcpProxy) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (targetTcpProxy == null) { + throw new core.ArgumentError("Parameter targetTcpProxy is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetTcpProxies/' + commons.Escaper.ecapeVariable('$targetTcpProxy'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new TargetTcpProxy.fromJson(data)); + } + + /** + * Creates a TargetTcpProxy resource in the specified project using the data + * included in the request. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * Completes with a [Operation]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Operation> insert(TargetTcpProxy request, core.String project) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetTcpProxies'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** + * Retrieves the list of TargetTcpProxy resources available to the specified + * project. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. + * + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the + * string value to filter to. The literal value must be valid for the type of + * field you are filtering by (string, number, boolean). For string fields, + * the literal value is interpreted as a regular expression using RE2 syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not have a name of + * example-instance, you would use name ne example-instance. + * + * You can filter on nested fields. For example, you could filter on instances + * that have set the scheduling.automaticRestart field to true. Use filtering + * on nested fields to take advantage of labels to organize and search for + * results based on label values. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq + * us-central1-f). Multiple expressions are treated as AND expressions, + * meaning that resources must match all expressions to pass the filters. + * + * [maxResults] - The maximum number of results per page that should be + * returned. If the number of available results is larger than maxResults, + * Compute Engine returns a nextPageToken that can be used to get the next + * page of results in subsequent list requests. Acceptable values are 0 to + * 500, inclusive. (Default: 500) + * + * [orderBy] - Sorts list results by a certain order. By default, results are + * returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using orderBy="creationTimestamp desc". This sorts results based + * on the creationTimestamp field in reverse chronological order (newest + * result first). Use this to sort resources like operations so that the + * newest operation is returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * + * [pageToken] - Specifies a page token to use. Set pageToken to the + * nextPageToken returned by a previous list request to get the next page of + * results. + * + * Completes with a [TargetTcpProxyList]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<TargetTcpProxyList> list(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (filter != null) { + _queryParams["filter"] = [filter]; + } + if (maxResults != null) { + _queryParams["maxResults"] = ["${maxResults}"]; + } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetTcpProxies'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new TargetTcpProxyList.fromJson(data)); + } + + /** + * Changes the BackendService for TargetTcpProxy. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [targetTcpProxy] - Name of the TargetTcpProxy resource whose BackendService + * resource is to be set. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * Completes with a [Operation]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Operation> setBackendService(TargetTcpProxiesSetBackendServiceRequest request, core.String project, core.String targetTcpProxy) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (targetTcpProxy == null) { + throw new core.ArgumentError("Parameter targetTcpProxy is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetTcpProxies/' + commons.Escaper.ecapeVariable('$targetTcpProxy') + '/setBackendService'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** + * Changes the ProxyHeaderType for TargetTcpProxy. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [targetTcpProxy] - Name of the TargetTcpProxy resource whose ProxyHeader is + * to be set. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * Completes with a [Operation]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Operation> setProxyHeader(TargetTcpProxiesSetProxyHeaderRequest request, core.String project, core.String targetTcpProxy) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (targetTcpProxy == null) { + throw new core.ArgumentError("Parameter targetTcpProxy is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetTcpProxies/' + commons.Escaper.ecapeVariable('$targetTcpProxy') + '/setProxyHeader'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + +} + + class TargetVpnGatewaysResourceApi { final commons.ApiRequester _requester; @@ -15823,9 +16891,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -15836,7 +16904,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -16086,9 +17154,9 @@ * [region] - Name of the region for this request. * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -16099,7 +17167,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -16392,9 +17460,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -16405,7 +17473,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -16660,9 +17728,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -16673,7 +17741,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -16923,9 +17991,9 @@ * [region] - Name of the region for this request. * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -16936,7 +18004,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -17144,9 +18212,9 @@ * [zone] - Name of the zone for request. * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -17157,7 +18225,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -17303,9 +18371,9 @@ * Value must have pattern * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". * - * [filter] - Sets a filter expression for filtering listed resources, in the - * form filter={expression}. Your {expression} must be in the format: - * field_name comparison_string literal_string. + * [filter] - Sets a filter {expression} for filtering listed resources. Your + * {expression} must be in the format: field_name comparison_string + * literal_string. * * The field_name is the name of the field you want to compare. Only atomic * field types are supported (string, number, boolean). The comparison_string @@ -17316,7 +18384,7 @@ * The literal value must match the entire field. * * For example, to filter for instances that do not have a name of - * example-instance, you would use filter=name ne example-instance. + * example-instance, you would use name ne example-instance. * * You can filter on nested fields. For example, you could filter on instances * that have set the scheduling.automaticRestart field to true. Use filtering @@ -17445,8 +18513,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -17480,6 +18548,15 @@ */ core.String id; /** + * The IP Version that will be used by this address. Valid options are IPV4 or + * IPV6. This can only be specified for a global address. + * Possible string values are: + * - "IPV4" + * - "IPV6" + * - "UNSPECIFIED_VERSION" + */ + core.String ipVersion; + /** * [Output Only] Type of the resource. Always compute#address for addresses. */ core.String kind; @@ -17528,6 +18605,9 @@ if (_json.containsKey("id")) { id = _json["id"]; } + if (_json.containsKey("ipVersion")) { + ipVersion = _json["ipVersion"]; + } if (_json.containsKey("kind")) { kind = _json["kind"]; } @@ -17548,8 +18628,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (address != null) { _json["address"] = address; } @@ -17562,6 +18642,9 @@ if (id != null) { _json["id"] = id; } + if (ipVersion != null) { + _json["ipVersion"] = ipVersion; + } if (kind != null) { _json["kind"] = kind; } @@ -17614,7 +18697,7 @@ id = _json["id"]; } if (_json.containsKey("items")) { - items = commons.mapMap(_json["items"], (item) => new AddressesScopedList.fromJson(item)); + items = commons.mapMap<core.Map<core.String, core.Object>, AddressesScopedList>(_json["items"], (core.Map<core.String, core.Object> item) => new AddressesScopedList.fromJson(item)); } if (_json.containsKey("kind")) { kind = _json["kind"]; @@ -17627,13 +18710,13 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } if (items != null) { - _json["items"] = commons.mapMap(items, (item) => (item).toJson()); + _json["items"] = commons.mapMap<AddressesScopedList, core.Map<core.String, core.Object>>(items, (AddressesScopedList item) => (item).toJson()); } if (kind != null) { _json["kind"] = kind; @@ -17693,8 +18776,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -17739,8 +18822,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -17802,8 +18885,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -17837,8 +18920,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (addresses != null) { _json["addresses"] = addresses.map((value) => (value).toJson()).toList(); } @@ -17997,8 +19080,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoDelete != null) { _json["autoDelete"] = autoDelete; } @@ -18129,8 +19212,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (diskName != null) { _json["diskName"] = diskName; } @@ -18243,8 +19326,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoscalingPolicy != null) { _json["autoscalingPolicy"] = (autoscalingPolicy).toJson(); } @@ -18310,7 +19393,7 @@ id = _json["id"]; } if (_json.containsKey("items")) { - items = commons.mapMap(_json["items"], (item) => new AutoscalersScopedList.fromJson(item)); + items = commons.mapMap<core.Map<core.String, core.Object>, AutoscalersScopedList>(_json["items"], (core.Map<core.String, core.Object> item) => new AutoscalersScopedList.fromJson(item)); } if (_json.containsKey("kind")) { kind = _json["kind"]; @@ -18323,13 +19406,13 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } if (items != null) { - _json["items"] = commons.mapMap(items, (item) => (item).toJson()); + _json["items"] = commons.mapMap<AutoscalersScopedList, core.Map<core.String, core.Object>>(items, (AutoscalersScopedList item) => (item).toJson()); } if (kind != null) { _json["kind"] = kind; @@ -18389,8 +19472,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -18435,8 +19518,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -18498,8 +19581,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -18533,8 +19616,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoscalers != null) { _json["autoscalers"] = autoscalers.map((value) => (value).toJson()).toList(); } @@ -18604,8 +19687,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (coolDownPeriodSec != null) { _json["coolDownPeriodSec"] = coolDownPeriodSec; } @@ -18653,8 +19736,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (utilizationTarget != null) { _json["utilizationTarget"] = utilizationTarget; } @@ -18707,8 +19790,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metric != null) { _json["metric"] = metric; } @@ -18739,8 +19822,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (utilizationTarget != null) { _json["utilizationTarget"] = utilizationTarget; } @@ -18866,8 +19949,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (balancingMode != null) { _json["balancingMode"] = balancingMode; } @@ -18960,8 +20043,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bucketName != null) { _json["bucketName"] = bucketName; } @@ -19025,8 +20108,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -19259,8 +20342,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (affinityCookieTtlSec != null) { _json["affinityCookieTtlSec"] = affinityCookieTtlSec; } @@ -19350,7 +20433,7 @@ id = _json["id"]; } if (_json.containsKey("items")) { - items = commons.mapMap(_json["items"], (item) => new BackendServicesScopedList.fromJson(item)); + items = commons.mapMap<core.Map<core.String, core.Object>, BackendServicesScopedList>(_json["items"], (core.Map<core.String, core.Object> item) => new BackendServicesScopedList.fromJson(item)); } if (_json.containsKey("kind")) { kind = _json["kind"]; @@ -19363,13 +20446,13 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } if (items != null) { - _json["items"] = commons.mapMap(items, (item) => (item).toJson()); + _json["items"] = commons.mapMap<BackendServicesScopedList, core.Map<core.String, core.Object>>(items, (BackendServicesScopedList item) => (item).toJson()); } if (kind != null) { _json["kind"] = kind; @@ -19397,8 +20480,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cacheKeyPolicy != null) { _json["cacheKeyPolicy"] = (cacheKeyPolicy).toJson(); } @@ -19425,8 +20508,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (healthStatus != null) { _json["healthStatus"] = healthStatus.map((value) => (value).toJson()).toList(); } @@ -19464,8 +20547,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (enabled != null) { _json["enabled"] = enabled; } @@ -19526,8 +20609,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -19572,8 +20655,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -19635,8 +20718,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -19670,8 +20753,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (backendServices != null) { _json["backendServices"] = backendServices.map((value) => (value).toJson()).toList(); } @@ -19701,8 +20784,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (host != null) { _json["host"] = host; } @@ -19764,8 +20847,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (includeHost != null) { _json["includeHost"] = includeHost; } @@ -19801,8 +20884,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (drainingTimeoutSec != null) { _json["drainingTimeoutSec"] = drainingTimeoutSec; } @@ -19834,8 +20917,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (rawKey != null) { _json["rawKey"] = rawKey; } @@ -19869,8 +20952,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (diskEncryptionKey != null) { _json["diskEncryptionKey"] = (diskEncryptionKey).toJson(); } @@ -19940,8 +21023,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deleted != null) { _json["deleted"] = deleted; } @@ -19992,6 +21075,28 @@ core.String id; /** [Output Only] Type of the resource. Always compute#disk for disks. */ core.String kind; + /** + * A fingerprint for the labels being applied to this disk, which is + * essentially a hash of the labels set used for optimistic locking. The + * fingerprint is initially generated by Compute Engine and changes after + * every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make a get() request to retrieve a disk. + */ + core.String labelFingerprint; + core.List<core.int> get labelFingerprintAsBytes { + return convert.BASE64.decode(labelFingerprint); + } + + void set labelFingerprintAsBytes(core.List<core.int> _bytes) { + labelFingerprint = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); + } + /** + * Labels to apply to this disk. These can be later modified by the setLabels + * method. + */ + core.Map<core.String, core.String> labels; /** [Output Only] Last attach timestamp in RFC3339 text format. */ core.String lastAttachTimestamp; /** [Output Only] Last detach timestamp in RFC3339 text format. */ @@ -20124,6 +21229,12 @@ if (_json.containsKey("kind")) { kind = _json["kind"]; } + if (_json.containsKey("labelFingerprint")) { + labelFingerprint = _json["labelFingerprint"]; + } + if (_json.containsKey("labels")) { + labels = _json["labels"]; + } if (_json.containsKey("lastAttachTimestamp")) { lastAttachTimestamp = _json["lastAttachTimestamp"]; } @@ -20177,8 +21288,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTimestamp != null) { _json["creationTimestamp"] = creationTimestamp; } @@ -20194,6 +21305,12 @@ if (kind != null) { _json["kind"] = kind; } + if (labelFingerprint != null) { + _json["labelFingerprint"] = labelFingerprint; + } + if (labels != null) { + _json["labels"] = labels; + } if (lastAttachTimestamp != null) { _json["lastAttachTimestamp"] = lastAttachTimestamp; } @@ -20281,7 +21398,7 @@ id = _json["id"]; } if (_json.containsKey("items")) { - items = commons.mapMap(_json["items"], (item) => new DisksScopedList.fromJson(item)); + items = commons.mapMap<core.Map<core.String, core.Object>, DisksScopedList>(_json["items"], (core.Map<core.String, core.Object> item) => new DisksScopedList.fromJson(item)); } if (_json.containsKey("kind")) { kind = _json["kind"]; @@ -20294,13 +21411,13 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } if (items != null) { - _json["items"] = commons.mapMap(items, (item) => (item).toJson()); + _json["items"] = commons.mapMap<DisksScopedList, core.Map<core.String, core.Object>>(items, (DisksScopedList item) => (item).toJson()); } if (kind != null) { _json["kind"] = kind; @@ -20358,8 +21475,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -20409,8 +21526,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (destinationZone != null) { _json["destinationZone"] = destinationZone; } @@ -20487,8 +21604,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTimestamp != null) { _json["creationTimestamp"] = creationTimestamp; } @@ -20551,7 +21668,7 @@ id = _json["id"]; } if (_json.containsKey("items")) { - items = commons.mapMap(_json["items"], (item) => new DiskTypesScopedList.fromJson(item)); + items = commons.mapMap<core.Map<core.String, core.Object>, DiskTypesScopedList>(_json["items"], (core.Map<core.String, core.Object> item) => new DiskTypesScopedList.fromJson(item)); } if (_json.containsKey("kind")) { kind = _json["kind"]; @@ -20564,13 +21681,13 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } if (items != null) { - _json["items"] = commons.mapMap(items, (item) => (item).toJson()); + _json["items"] = commons.mapMap<DiskTypesScopedList, core.Map<core.String, core.Object>>(items, (DiskTypesScopedList item) => (item).toJson()); } if (kind != null) { _json["kind"] = kind; @@ -20629,8 +21746,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -20675,8 +21792,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -20738,8 +21855,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -20773,8 +21890,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (diskTypes != null) { _json["diskTypes"] = diskTypes.map((value) => (value).toJson()).toList(); } @@ -20797,8 +21914,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (sizeGb != null) { _json["sizeGb"] = sizeGb; } @@ -20831,8 +21948,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -20894,8 +22011,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -20929,8 +22046,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (disks != null) { _json["disks"] = disks.map((value) => (value).toJson()).toList(); } @@ -20970,8 +22087,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (IPProtocol != null) { _json["IPProtocol"] = IPProtocol; } @@ -21098,8 +22215,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allowed != null) { _json["allowed"] = allowed.map((value) => (value).toJson()).toList(); } @@ -21182,8 +22299,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -21214,15 +22331,16 @@ * * For global forwarding rules, the address must be a global IP. For regional * forwarding rules, the address must live in the same region as the - * forwarding rule. By default, this field is empty and an ephemeral IP from - * the same scope (global or regional) will be assigned. + * forwarding rule. By default, this field is empty and an ephemeral IPv4 + * address from the same scope (global or regional) will be assigned. A + * regional forwarding rule supports IPv4 only. A global forwarding rule + * supports either IPv4 or IPv6. * * When the load balancing scheme is INTERNAL, this can only be an RFC 1918 IP * address belonging to the network/subnetwork configured for the forwarding * rule. A reserved address cannot be used. If the field is empty, the IP * address will be automatically allocated from the internal IP range of the - * subnetwork or network configured for this forwarding rule. Only IPv4 is - * supported. + * subnetwork or network configured for this forwarding rule. */ core.String IPAddress; /** @@ -21259,6 +22377,15 @@ */ core.String id; /** + * The IP Version that will be used by this forwarding rule. Valid options are + * IPV4 or IPV6. This can only be specified for a global forwarding rule. + * Possible string values are: + * - "IPV4" + * - "IPV6" + * - "UNSPECIFIED_VERSION" + */ + core.String ipVersion; + /** * [Output Only] Type of the resource. Always compute#forwardingRule for * Forwarding Rule resources. */ @@ -21306,7 +22433,8 @@ * Some types of forwarding target have constraints on the acceptable ports: * - TargetHttpProxy: 80, 8080 * - TargetHttpsProxy: 443 - * - TargetSslProxy: 443 + * - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995 + * - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995 * - TargetVpnGateway: 500, 4500 * - */ @@ -21373,6 +22501,9 @@ if (_json.containsKey("id")) { id = _json["id"]; } + if (_json.containsKey("ipVersion")) { + ipVersion = _json["ipVersion"]; + } if (_json.containsKey("kind")) { kind = _json["kind"]; } @@ -21405,8 +22536,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (IPAddress != null) { _json["IPAddress"] = IPAddress; } @@ -21425,6 +22556,9 @@ if (id != null) { _json["id"] = id; } + if (ipVersion != null) { + _json["ipVersion"] = ipVersion; + } if (kind != null) { _json["kind"] = kind; } @@ -21490,7 +22624,7 @@ id = _json["id"]; } if (_json.containsKey("items")) { - items = commons.mapMap(_json["items"], (item) => new ForwardingRulesScopedList.fromJson(item)); + items = commons.mapMap<core.Map<core.String, core.Object>, ForwardingRulesScopedList>(_json["items"], (core.Map<core.String, core.Object> item) => new ForwardingRulesScopedList.fromJson(item)); } if (_json.containsKey("kind")) { kind = _json["kind"]; @@ -21503,13 +22637,13 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } if (items != null) { - _json["items"] = commons.mapMap(items, (item) => (item).toJson()); + _json["items"] = commons.mapMap<ForwardingRulesScopedList, core.Map<core.String, core.Object>>(items, (ForwardingRulesScopedList item) => (item).toJson()); } if (kind != null) { _json["kind"] = kind; @@ -21563,8 +22697,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -21609,8 +22743,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -21672,8 +22806,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -21707,8 +22841,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (forwardingRules != null) { _json["forwardingRules"] = forwardingRules.map((value) => (value).toJson()).toList(); } @@ -21719,6 +22853,56 @@ } } +class GlobalSetLabelsRequest { + /** + * The fingerprint of the previous set of labels for this resource, used to + * detect conflicts. The fingerprint is initially generated by Compute Engine + * and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash when updating or changing labels. + * Make a get() request to the resource to get the latest fingerprint. + */ + core.String labelFingerprint; + core.List<core.int> get labelFingerprintAsBytes { + return convert.BASE64.decode(labelFingerprint); + } + + void set labelFingerprintAsBytes(core.List<core.int> _bytes) { + labelFingerprint = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); + } + /** + * A list of labels to apply for this resource. Each label key & value must + * comply with RFC1035. Specifically, the name must be 1-63 characters long + * and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the + * first character must be a lowercase letter, and all following characters + * must be a dash, lowercase letter, or digit, except the last character, + * which cannot be a dash. For example, "webserver-frontend": "images". A + * label value can also be empty (e.g. "my-label": ""). + */ + core.Map<core.String, core.String> labels; + + GlobalSetLabelsRequest(); + + GlobalSetLabelsRequest.fromJson(core.Map _json) { + if (_json.containsKey("labelFingerprint")) { + labelFingerprint = _json["labelFingerprint"]; + } + if (_json.containsKey("labels")) { + labels = _json["labels"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (labelFingerprint != null) { + _json["labelFingerprint"] = labelFingerprint; + } + if (labels != null) { + _json["labels"] = labels; + } + return _json; + } +} + /** Guest OS features. */ class GuestOsFeature { /** @@ -21742,8 +22926,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (type != null) { _json["type"] = type; } @@ -21801,8 +22985,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (host != null) { _json["host"] = host; } @@ -21872,8 +23056,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (host != null) { _json["host"] = host; } @@ -22013,8 +23197,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (checkIntervalSec != null) { _json["checkIntervalSec"] = checkIntervalSec; } @@ -22106,8 +23290,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -22146,8 +23330,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (healthCheck != null) { _json["healthCheck"] = healthCheck; } @@ -22187,8 +23371,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (healthState != null) { _json["healthState"] = healthState; } @@ -22241,8 +23425,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -22371,8 +23555,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (checkIntervalSec != null) { _json["checkIntervalSec"] = checkIntervalSec; } @@ -22457,8 +23641,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -22591,8 +23775,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (checkIntervalSec != null) { _json["checkIntervalSec"] = checkIntervalSec; } @@ -22677,8 +23861,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -22733,8 +23917,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (containerType != null) { _json["containerType"] = containerType; } @@ -22807,6 +23991,28 @@ CustomerEncryptionKey imageEncryptionKey; /** [Output Only] Type of the resource. Always compute#image for images. */ core.String kind; + /** + * A fingerprint for the labels being applied to this image, which is + * essentially a hash of the labels used for optimistic locking. The + * fingerprint is initially generated by Compute Engine and changes after + * every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make a get() request to retrieve an image. + */ + core.String labelFingerprint; + core.List<core.int> get labelFingerprintAsBytes { + return convert.BASE64.decode(labelFingerprint); + } + + void set labelFingerprintAsBytes(core.List<core.int> _bytes) { + labelFingerprint = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); + } + /** + * Labels to apply to this image. These can be later modified by the setLabels + * method. + */ + core.Map<core.String, core.String> labels; /** Any applicable license URI. */ core.List<core.String> licenses; /** @@ -22897,6 +24103,12 @@ if (_json.containsKey("kind")) { kind = _json["kind"]; } + if (_json.containsKey("labelFingerprint")) { + labelFingerprint = _json["labelFingerprint"]; + } + if (_json.containsKey("labels")) { + labels = _json["labels"]; + } if (_json.containsKey("licenses")) { licenses = _json["licenses"]; } @@ -22926,8 +24138,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (archiveSizeBytes != null) { _json["archiveSizeBytes"] = archiveSizeBytes; } @@ -22958,6 +24170,12 @@ if (kind != null) { _json["kind"] = kind; } + if (labelFingerprint != null) { + _json["labelFingerprint"] = labelFingerprint; + } + if (labels != null) { + _json["labels"] = labels; + } if (licenses != null) { _json["licenses"] = licenses; } @@ -23031,8 +24249,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -23085,6 +24303,28 @@ */ core.String kind; /** + * A fingerprint for this request, which is essentially a hash of the + * metadata's contents and used for optimistic locking. The fingerprint is + * initially generated by Compute Engine and changes after every request to + * modify or update metadata. You must always provide an up-to-date + * fingerprint hash in order to update or change metadata. + * + * To see the latest fingerprint, make get() request to the instance. + */ + core.String labelFingerprint; + core.List<core.int> get labelFingerprintAsBytes { + return convert.BASE64.decode(labelFingerprint); + } + + void set labelFingerprintAsBytes(core.List<core.int> _bytes) { + labelFingerprint = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); + } + /** + * Labels to apply to this instance. These can be later modified by the + * setLabels method. + */ + core.Map<core.String, core.String> labels; + /** * Full or partial URL of the machine type resource to use for this instance, * in the format: zones/zone/machineTypes/machine-type. This is provided by * the client when the instance is created. For example, the following is a @@ -23141,6 +24381,11 @@ */ core.List<ServiceAccount> serviceAccounts; /** + * [Output Only] Whether a VM has been restricted for start because Compute + * Engine has detected suspicious activity. + */ + core.bool startRestricted; + /** * [Output Only] The status of the instance. One of the following values: * PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and * TERMINATED. @@ -23191,6 +24436,12 @@ if (_json.containsKey("kind")) { kind = _json["kind"]; } + if (_json.containsKey("labelFingerprint")) { + labelFingerprint = _json["labelFingerprint"]; + } + if (_json.containsKey("labels")) { + labels = _json["labels"]; + } if (_json.containsKey("machineType")) { machineType = _json["machineType"]; } @@ -23212,6 +24463,9 @@ if (_json.containsKey("serviceAccounts")) { serviceAccounts = _json["serviceAccounts"].map((value) => new ServiceAccount.fromJson(value)).toList(); } + if (_json.containsKey("startRestricted")) { + startRestricted = _json["startRestricted"]; + } if (_json.containsKey("status")) { status = _json["status"]; } @@ -23226,8 +24480,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (canIpForward != null) { _json["canIpForward"] = canIpForward; } @@ -23249,6 +24503,12 @@ if (kind != null) { _json["kind"] = kind; } + if (labelFingerprint != null) { + _json["labelFingerprint"] = labelFingerprint; + } + if (labels != null) { + _json["labels"] = labels; + } if (machineType != null) { _json["machineType"] = machineType; } @@ -23270,6 +24530,9 @@ if (serviceAccounts != null) { _json["serviceAccounts"] = serviceAccounts.map((value) => (value).toJson()).toList(); } + if (startRestricted != null) { + _json["startRestricted"] = startRestricted; + } if (status != null) { _json["status"] = status; } @@ -23317,7 +24580,7 @@ id = _json["id"]; } if (_json.containsKey("items")) { - items = commons.mapMap(_json["items"], (item) => new InstancesScopedList.fromJson(item)); + items = commons.mapMap<core.Map<core.String, core.Object>, InstancesScopedList>(_json["items"], (core.Map<core.String, core.Object> item) => new InstancesScopedList.fromJson(item)); } if (_json.containsKey("kind")) { kind = _json["kind"]; @@ -23330,13 +24593,13 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } if (items != null) { - _json["items"] = commons.mapMap(items, (item) => (item).toJson()); + _json["items"] = commons.mapMap<InstancesScopedList, core.Map<core.String, core.Object>>(items, (InstancesScopedList item) => (item).toJson()); } if (kind != null) { _json["kind"] = kind; @@ -23471,8 +24734,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTimestamp != null) { _json["creationTimestamp"] = creationTimestamp; } @@ -23551,7 +24814,7 @@ id = _json["id"]; } if (_json.containsKey("items")) { - items = commons.mapMap(_json["items"], (item) => new InstanceGroupsScopedList.fromJson(item)); + items = commons.mapMap<core.Map<core.String, core.Object>, InstanceGroupsScopedList>(_json["items"], (core.Map<core.String, core.Object> item) => new InstanceGroupsScopedList.fromJson(item)); } if (_json.containsKey("kind")) { kind = _json["kind"]; @@ -23564,13 +24827,13 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } if (items != null) { - _json["items"] = commons.mapMap(items, (item) => (item).toJson()); + _json["items"] = commons.mapMap<InstanceGroupsScopedList, core.Map<core.String, core.Object>>(items, (InstanceGroupsScopedList item) => (item).toJson()); } if (kind != null) { _json["kind"] = kind; @@ -23633,8 +24896,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -23799,8 +25062,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (baseInstanceName != null) { _json["baseInstanceName"] = baseInstanceName; } @@ -23936,8 +25199,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (abandoning != null) { _json["abandoning"] = abandoning; } @@ -24001,7 +25264,7 @@ id = _json["id"]; } if (_json.containsKey("items")) { - items = commons.mapMap(_json["items"], (item) => new InstanceGroupManagersScopedList.fromJson(item)); + items = commons.mapMap<core.Map<core.String, core.Object>, InstanceGroupManagersScopedList>(_json["items"], (core.Map<core.String, core.Object> item) => new InstanceGroupManagersScopedList.fromJson(item)); } if (_json.containsKey("kind")) { kind = _json["kind"]; @@ -24014,13 +25277,13 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } if (items != null) { - _json["items"] = commons.mapMap(items, (item) => (item).toJson()); + _json["items"] = commons.mapMap<InstanceGroupManagersScopedList, core.Map<core.String, core.Object>>(items, (InstanceGroupManagersScopedList item) => (item).toJson()); } if (kind != null) { _json["kind"] = kind; @@ -24080,8 +25343,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -24116,8 +25379,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instances != null) { _json["instances"] = instances; } @@ -24140,8 +25403,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instances != null) { _json["instances"] = instances; } @@ -24161,8 +25424,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (managedInstances != null) { _json["managedInstances"] = managedInstances.map((value) => (value).toJson()).toList(); } @@ -24185,8 +25448,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instances != null) { _json["instances"] = instances; } @@ -24219,8 +25482,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -24282,8 +25545,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -24320,8 +25583,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instanceGroupManagers != null) { _json["instanceGroupManagers"] = instanceGroupManagers.map((value) => (value).toJson()).toList(); } @@ -24348,8 +25611,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instanceTemplate != null) { _json["instanceTemplate"] = instanceTemplate; } @@ -24392,8 +25655,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fingerprint != null) { _json["fingerprint"] = fingerprint; } @@ -24416,8 +25679,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instances != null) { _json["instances"] = instances.map((value) => (value).toJson()).toList(); } @@ -24476,8 +25739,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -24516,8 +25779,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instanceState != null) { _json["instanceState"] = instanceState; } @@ -24537,8 +25800,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instances != null) { _json["instances"] = instances.map((value) => (value).toJson()).toList(); } @@ -24571,8 +25834,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -24634,8 +25897,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -24671,8 +25934,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instanceGroups != null) { _json["instanceGroups"] = instanceGroups.map((value) => (value).toJson()).toList(); } @@ -24714,8 +25977,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fingerprint != null) { _json["fingerprint"] = fingerprint; } @@ -24771,8 +26034,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -24822,8 +26085,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (destinationZone != null) { _json["destinationZone"] = destinationZone; } @@ -24841,7 +26104,7 @@ * destination IP addresses other than their own. If these instances will be * used as an IP gateway or it will be set as the next-hop in a Route * resource, specify true. If unsure, leave this set to false. See the Enable - * IP forwarding for instances documentation for more information. + * IP forwarding documentation for more information. */ core.bool canIpForward; /** @@ -24854,6 +26117,8 @@ * from this template. */ core.List<AttachedDisk> disks; + /** Labels to apply to instances that are created from this template. */ + core.Map<core.String, core.String> labels; /** * The machine type to use for instances that are created from this template. */ @@ -24898,6 +26163,9 @@ if (_json.containsKey("disks")) { disks = _json["disks"].map((value) => new AttachedDisk.fromJson(value)).toList(); } + if (_json.containsKey("labels")) { + labels = _json["labels"]; + } if (_json.containsKey("machineType")) { machineType = _json["machineType"]; } @@ -24918,8 +26186,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (canIpForward != null) { _json["canIpForward"] = canIpForward; } @@ -24929,6 +26197,9 @@ if (disks != null) { _json["disks"] = disks.map((value) => (value).toJson()).toList(); } + if (labels != null) { + _json["labels"] = labels; + } if (machineType != null) { _json["machineType"] = machineType; } @@ -24963,8 +26234,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instance != null) { _json["instance"] = instance; } @@ -25038,8 +26309,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTimestamp != null) { _json["creationTimestamp"] = creationTimestamp; } @@ -25113,8 +26384,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -25167,8 +26438,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instance != null) { _json["instance"] = instance; } @@ -25207,8 +26478,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -25270,8 +26541,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -25305,8 +26576,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instances != null) { _json["instances"] = instances.map((value) => (value).toJson()).toList(); } @@ -25317,6 +26588,45 @@ } } +class InstancesSetLabelsRequest { + /** + * Fingerprint of the previous set of labels for this resource, used to + * prevent conflicts. Provide the latest fingerprint value when making a + * request to add or change labels. + */ + core.String labelFingerprint; + core.List<core.int> get labelFingerprintAsBytes { + return convert.BASE64.decode(labelFingerprint); + } + + void set labelFingerprintAsBytes(core.List<core.int> _bytes) { + labelFingerprint = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); + } + core.Map<core.String, core.String> labels; + + InstancesSetLabelsRequest(); + + InstancesSetLabelsRequest.fromJson(core.Map _json) { + if (_json.containsKey("labelFingerprint")) { + labelFingerprint = _json["labelFingerprint"]; + } + if (_json.containsKey("labels")) { + labels = _json["labels"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (labelFingerprint != null) { + _json["labelFingerprint"] = labelFingerprint; + } + if (labels != null) { + _json["labels"] = labels; + } + return _json; + } +} + class InstancesSetMachineTypeRequest { /** * Full or partial URL of the machine type resource. See Machine Types for a @@ -25333,8 +26643,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (machineType != null) { _json["machineType"] = machineType; } @@ -25359,8 +26669,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (email != null) { _json["email"] = email; } @@ -25392,8 +26702,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (disks != null) { _json["disks"] = disks.map((value) => (value).toJson()).toList(); } @@ -25404,8 +26714,8 @@ /** A license resource. */ class License { /** - * [Output Only] If true, the customer will be charged license fee for running - * software that contains this license on an instance. + * [Output Only] Deprecated. This field no longer reflects whether a license + * charges a usage fee. */ core.bool chargesUseFee; /** [Output Only] Type of resource. Always compute#license for licenses. */ @@ -25435,8 +26745,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (chargesUseFee != null) { _json["chargesUseFee"] = chargesUseFee; } @@ -25465,8 +26775,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (diskGb != null) { _json["diskGb"] = diskGb; } @@ -25580,8 +26890,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTimestamp != null) { _json["creationTimestamp"] = creationTimestamp; } @@ -25662,7 +26972,7 @@ id = _json["id"]; } if (_json.containsKey("items")) { - items = commons.mapMap(_json["items"], (item) => new MachineTypesScopedList.fromJson(item)); + items = commons.mapMap<core.Map<core.String, core.Object>, MachineTypesScopedList>(_json["items"], (core.Map<core.String, core.Object> item) => new MachineTypesScopedList.fromJson(item)); } if (_json.containsKey("kind")) { kind = _json["kind"]; @@ -25675,13 +26985,13 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } if (items != null) { - _json["items"] = commons.mapMap(items, (item) => (item).toJson()); + _json["items"] = commons.mapMap<MachineTypesScopedList, core.Map<core.String, core.Object>>(items, (MachineTypesScopedList item) => (item).toJson()); } if (kind != null) { _json["kind"] = kind; @@ -25741,8 +27051,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -25787,8 +27097,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -25850,8 +27160,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -25885,8 +27195,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (machineTypes != null) { _json["machineTypes"] = machineTypes.map((value) => (value).toJson()).toList(); } @@ -25981,8 +27291,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currentAction != null) { _json["currentAction"] = currentAction; } @@ -26027,8 +27337,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -26061,8 +27371,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errors != null) { _json["errors"] = errors.map((value) => (value).toJson()).toList(); } @@ -26085,8 +27395,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errors != null) { _json["errors"] = (errors).toJson(); } @@ -26121,8 +27431,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -26174,8 +27484,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fingerprint != null) { _json["fingerprint"] = fingerprint; } @@ -26210,8 +27520,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -26273,6 +27583,8 @@ * dash. */ core.String name; + /** [Output Only] List of network peerings for the resource. */ + core.List<NetworkPeering> peerings; /** [Output Only] Server-defined URL for the resource. */ core.String selfLink; /** @@ -26308,6 +27620,9 @@ if (_json.containsKey("name")) { name = _json["name"]; } + if (_json.containsKey("peerings")) { + peerings = _json["peerings"].map((value) => new NetworkPeering.fromJson(value)).toList(); + } if (_json.containsKey("selfLink")) { selfLink = _json["selfLink"]; } @@ -26316,8 +27631,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (IPv4Range != null) { _json["IPv4Range"] = IPv4Range; } @@ -26342,6 +27657,9 @@ if (name != null) { _json["name"] = name; } + if (peerings != null) { + _json["peerings"] = peerings.map((value) => (value).toJson()).toList(); + } if (selfLink != null) { _json["selfLink"] = selfLink; } @@ -26430,8 +27748,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accessConfigs != null) { _json["accessConfigs"] = accessConfigs.map((value) => (value).toJson()).toList(); } @@ -26499,8 +27817,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -26520,6 +27838,149 @@ } } +/** + * A network peering attached to a network resource. The message includes the + * peering name, peer network, peering state, and a flag indicating whether + * Google Compute Engine should automatically create routes for the peering. + */ +class NetworkPeering { + /** + * Whether full mesh connectivity is created and managed automatically. When + * it is set to true, Google Compute Engine will automatically create and + * manage the routes between two networks when the state is ACTIVE. Otherwise, + * user needs to create routes manually to route packets to peer network. + */ + core.bool autoCreateRoutes; + /** + * Name of this peering. Provided by the client when the peering is created. + * The name must comply with RFC1035. Specifically, the name must be 1-63 + * characters long and match regular expression [a-z]([-a-z0-9]*[a-z0-9])? + * which means the first character must be a lowercase letter, and all the + * following characters must be a dash, lowercase letter, or digit, except the + * last character, which cannot be a dash. + */ + core.String name; + /** + * The URL of the peer network. It can be either full URL or partial URL. The + * peer network may belong to a different project. If the partial URL does not + * contain project, it is assumed that the peer network is in the same project + * as the current network. + */ + core.String network; + /** + * [Output Only] State for the peering. + * Possible string values are: + * - "ACTIVE" + * - "INACTIVE" + */ + core.String state; + /** [Output Only] Details about the current state of the peering. */ + core.String stateDetails; + + NetworkPeering(); + + NetworkPeering.fromJson(core.Map _json) { + if (_json.containsKey("autoCreateRoutes")) { + autoCreateRoutes = _json["autoCreateRoutes"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("network")) { + network = _json["network"]; + } + if (_json.containsKey("state")) { + state = _json["state"]; + } + if (_json.containsKey("stateDetails")) { + stateDetails = _json["stateDetails"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (autoCreateRoutes != null) { + _json["autoCreateRoutes"] = autoCreateRoutes; + } + if (name != null) { + _json["name"] = name; + } + if (network != null) { + _json["network"] = network; + } + if (state != null) { + _json["state"] = state; + } + if (stateDetails != null) { + _json["stateDetails"] = stateDetails; + } + return _json; + } +} + +class NetworksAddPeeringRequest { + /** Whether Google Compute Engine manages the routes automatically. */ + core.bool autoCreateRoutes; + /** Name of the peering, which should conform to RFC1035. */ + core.String name; + /** + * URL of the peer network. It can be either full URL or partial URL. The peer + * network may belong to a different project. If the partial URL does not + * contain project, it is assumed that the peer network is in the same project + * as the current network. + */ + core.String peerNetwork; + + NetworksAddPeeringRequest(); + + NetworksAddPeeringRequest.fromJson(core.Map _json) { + if (_json.containsKey("autoCreateRoutes")) { + autoCreateRoutes = _json["autoCreateRoutes"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("peerNetwork")) { + peerNetwork = _json["peerNetwork"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (autoCreateRoutes != null) { + _json["autoCreateRoutes"] = autoCreateRoutes; + } + if (name != null) { + _json["name"] = name; + } + if (peerNetwork != null) { + _json["peerNetwork"] = peerNetwork; + } + return _json; + } +} + +class NetworksRemovePeeringRequest { + /** Name of the peering, which should conform to RFC1035. */ + core.String name; + + NetworksRemovePeeringRequest(); + + NetworksRemovePeeringRequest.fromJson(core.Map _json) { + if (_json.containsKey("name")) { + name = _json["name"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (name != null) { + _json["name"] = name; + } + return _json; + } +} + class OperationErrorErrors { /** [Output Only] The error type identifier for this error. */ core.String code; @@ -26545,8 +28006,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -26579,8 +28040,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errors != null) { _json["errors"] = errors.map((value) => (value).toJson()).toList(); } @@ -26613,8 +28074,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -26672,8 +28133,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -26876,8 +28337,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientOperationId != null) { _json["clientOperationId"] = clientOperationId; } @@ -26982,7 +28443,7 @@ id = _json["id"]; } if (_json.containsKey("items")) { - items = commons.mapMap(_json["items"], (item) => new OperationsScopedList.fromJson(item)); + items = commons.mapMap<core.Map<core.String, core.Object>, OperationsScopedList>(_json["items"], (core.Map<core.String, core.Object> item) => new OperationsScopedList.fromJson(item)); } if (_json.containsKey("kind")) { kind = _json["kind"]; @@ -26995,13 +28456,13 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } if (items != null) { - _json["items"] = commons.mapMap(items, (item) => (item).toJson()); + _json["items"] = commons.mapMap<OperationsScopedList, core.Map<core.String, core.Object>>(items, (OperationsScopedList item) => (item).toJson()); } if (kind != null) { _json["kind"] = kind; @@ -27061,8 +28522,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -27107,8 +28568,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -27170,8 +28631,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -27205,8 +28666,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (operations != null) { _json["operations"] = operations.map((value) => (value).toJson()).toList(); } @@ -27261,8 +28722,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (defaultService != null) { _json["defaultService"] = defaultService; } @@ -27305,8 +28766,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (paths != null) { _json["paths"] = paths; } @@ -27361,6 +28822,14 @@ * bucket where they are stored. */ UsageExportLocation usageExportLocation; + /** + * [Output Only] The role this project has in a Cross Project Network (XPN) + * configuration. Currently only HOST projects are differentiated. + * Possible string values are: + * - "HOST" + * - "UNSPECIFIED_XPN_PROJECT_STATUS" + */ + core.String xpnProjectStatus; Project(); @@ -27398,10 +28867,13 @@ if (_json.containsKey("usageExportLocation")) { usageExportLocation = new UsageExportLocation.fromJson(_json["usageExportLocation"]); } + if (_json.containsKey("xpnProjectStatus")) { + xpnProjectStatus = _json["xpnProjectStatus"]; + } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (commonInstanceMetadata != null) { _json["commonInstanceMetadata"] = (commonInstanceMetadata).toJson(); } @@ -27435,6 +28907,122 @@ if (usageExportLocation != null) { _json["usageExportLocation"] = (usageExportLocation).toJson(); } + if (xpnProjectStatus != null) { + _json["xpnProjectStatus"] = xpnProjectStatus; + } + return _json; + } +} + +class ProjectsDisableXpnResourceRequest { + /** XPN resource ID. */ + XpnResourceId xpnResource; + + ProjectsDisableXpnResourceRequest(); + + ProjectsDisableXpnResourceRequest.fromJson(core.Map _json) { + if (_json.containsKey("xpnResource")) { + xpnResource = new XpnResourceId.fromJson(_json["xpnResource"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (xpnResource != null) { + _json["xpnResource"] = (xpnResource).toJson(); + } + return _json; + } +} + +class ProjectsEnableXpnResourceRequest { + /** XPN resource ID. */ + XpnResourceId xpnResource; + + ProjectsEnableXpnResourceRequest(); + + ProjectsEnableXpnResourceRequest.fromJson(core.Map _json) { + if (_json.containsKey("xpnResource")) { + xpnResource = new XpnResourceId.fromJson(_json["xpnResource"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (xpnResource != null) { + _json["xpnResource"] = (xpnResource).toJson(); + } + return _json; + } +} + +class ProjectsGetXpnResources { + /** + * [Output Only] Type of resource. Always compute#projectsGetXpnResources for + * lists of XPN resources. + */ + core.String kind; + /** + * [Output Only] This token allows you to get the next page of results for + * list requests. If the number of results is larger than maxResults, use the + * nextPageToken as a value for the query parameter pageToken in the next list + * request. Subsequent list requests will have their own nextPageToken to + * continue paging through the results. + */ + core.String nextPageToken; + /** XPN resources attached to this project as their XPN host. */ + core.List<XpnResourceId> resources; + + ProjectsGetXpnResources(); + + ProjectsGetXpnResources.fromJson(core.Map _json) { + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("resources")) { + resources = _json["resources"].map((value) => new XpnResourceId.fromJson(value)).toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (kind != null) { + _json["kind"] = kind; + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + if (resources != null) { + _json["resources"] = resources.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +class ProjectsListXpnHostsRequest { + /** + * Optional organization ID managed by Cloud Resource Manager, for which to + * list XPN host projects. If not specified, the organization will be inferred + * from the project. + */ + core.String organization; + + ProjectsListXpnHostsRequest(); + + ProjectsListXpnHostsRequest.fromJson(core.Map _json) { + if (_json.containsKey("organization")) { + organization = _json["organization"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (organization != null) { + _json["organization"] = organization; + } return _json; } } @@ -27463,6 +29051,7 @@ * - "IN_USE_ADDRESSES" * - "LOCAL_SSD_TOTAL_GB" * - "NETWORKS" + * - "NVIDIA_K80_GPUS" * - "PREEMPTIBLE_CPUS" * - "REGIONAL_AUTOSCALERS" * - "REGIONAL_INSTANCE_GROUP_MANAGERS" @@ -27500,8 +29089,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (limit != null) { _json["limit"] = limit; } @@ -27584,8 +29173,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTimestamp != null) { _json["creationTimestamp"] = creationTimestamp; } @@ -27656,8 +29245,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -27722,8 +29311,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -27786,8 +29375,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -27822,8 +29411,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instances != null) { _json["instances"] = instances; } @@ -27846,8 +29435,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instances != null) { _json["instances"] = instances; } @@ -27867,8 +29456,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (managedInstances != null) { _json["managedInstances"] = managedInstances.map((value) => (value).toJson()).toList(); } @@ -27891,8 +29480,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instances != null) { _json["instances"] = instances; } @@ -27932,8 +29521,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fingerprint != null) { _json["fingerprint"] = fingerprint; } @@ -27959,8 +29548,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instanceTemplate != null) { _json["instanceTemplate"] = instanceTemplate; } @@ -28011,8 +29600,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -28059,8 +29648,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instanceState != null) { _json["instanceState"] = instanceState; } @@ -28102,8 +29691,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fingerprint != null) { _json["fingerprint"] = fingerprint; } @@ -28159,8 +29748,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -28194,8 +29783,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (group != null) { _json["group"] = group; } @@ -28228,8 +29817,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -28287,8 +29876,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -28307,7 +29896,7 @@ * handled by the network. Routes are associated with instances by tags and the * set of routes for a particular instance is called its routing table. * - * For each packet leaving a instance, the system searches that instance's + * For each packet leaving an instance, the system searches that instance's * routing table for a single best matching route. Routes match packets by * destination IP address, preferring smaller or more specific ranges over * larger ones. If there is a tie, the system selects the route with the @@ -28374,6 +29963,11 @@ core.String nextHopIp; /** The URL of the local network if it should handle matching packets. */ core.String nextHopNetwork; + /** + * [Output Only] The network peering name that should handle matching packets, + * which should conform to RFC1035. + */ + core.String nextHopPeering; /** The URL to a VpnTunnel that should handle matching packets. */ core.String nextHopVpnTunnel; /** @@ -28429,6 +30023,9 @@ if (_json.containsKey("nextHopNetwork")) { nextHopNetwork = _json["nextHopNetwork"]; } + if (_json.containsKey("nextHopPeering")) { + nextHopPeering = _json["nextHopPeering"]; + } if (_json.containsKey("nextHopVpnTunnel")) { nextHopVpnTunnel = _json["nextHopVpnTunnel"]; } @@ -28446,8 +30043,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTimestamp != null) { _json["creationTimestamp"] = creationTimestamp; } @@ -28481,6 +30078,9 @@ if (nextHopNetwork != null) { _json["nextHopNetwork"] = nextHopNetwork; } + if (nextHopPeering != null) { + _json["nextHopPeering"] = nextHopPeering; + } if (nextHopVpnTunnel != null) { _json["nextHopVpnTunnel"] = nextHopVpnTunnel; } @@ -28541,8 +30141,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -28647,8 +30247,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bgp != null) { _json["bgp"] = (bgp).toJson(); } @@ -28715,7 +30315,7 @@ id = _json["id"]; } if (_json.containsKey("items")) { - items = commons.mapMap(_json["items"], (item) => new RoutersScopedList.fromJson(item)); + items = commons.mapMap<core.Map<core.String, core.Object>, RoutersScopedList>(_json["items"], (core.Map<core.String, core.Object> item) => new RoutersScopedList.fromJson(item)); } if (_json.containsKey("kind")) { kind = _json["kind"]; @@ -28728,13 +30328,13 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } if (items != null) { - _json["items"] = commons.mapMap(items, (item) => (item).toJson()); + _json["items"] = commons.mapMap<RoutersScopedList, core.Map<core.String, core.Object>>(items, (RoutersScopedList item) => (item).toJson()); } if (kind != null) { _json["kind"] = kind; @@ -28765,8 +30365,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (asn != null) { _json["asn"] = asn; } @@ -28827,8 +30427,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (advertisedRoutePriority != null) { _json["advertisedRoutePriority"] = advertisedRoutePriority; } @@ -28885,8 +30485,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ipRange != null) { _json["ipRange"] = ipRange; } @@ -28942,8 +30542,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -28989,8 +30589,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bestRoutes != null) { _json["bestRoutes"] = bestRoutes.map((value) => (value).toJson()).toList(); } @@ -29073,8 +30673,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (advertisedRoutes != null) { _json["advertisedRoutes"] = advertisedRoutes.map((value) => (value).toJson()).toList(); } @@ -29125,8 +30725,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -29149,8 +30749,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resource != null) { _json["resource"] = (resource).toJson(); } @@ -29183,8 +30783,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -29246,8 +30846,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -29281,8 +30881,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (routers != null) { _json["routers"] = routers.map((value) => (value).toJson()).toList(); } @@ -29346,8 +30946,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (port != null) { _json["port"] = port; } @@ -29410,8 +31010,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (automaticRestart != null) { _json["automaticRestart"] = automaticRestart; } @@ -29469,8 +31069,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contents != null) { _json["contents"] = contents; } @@ -29508,8 +31108,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (email != null) { _json["email"] = email; } @@ -29542,6 +31142,28 @@ */ core.String kind; /** + * A fingerprint for the labels being applied to this snapshot, which is + * essentially a hash of the labels set used for optimistic locking. The + * fingerprint is initially generated by Compute Engine and changes after + * every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make a get() request to retrieve a snapshot. + */ + core.String labelFingerprint; + core.List<core.int> get labelFingerprintAsBytes { + return convert.BASE64.decode(labelFingerprint); + } + + void set labelFingerprintAsBytes(core.List<core.int> _bytes) { + labelFingerprint = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); + } + /** + * Labels to apply to this snapshot. These can be later modified by the + * setLabels method. Label values may be empty. + */ + core.Map<core.String, core.String> labels; + /** * [Output Only] A list of public visible licenses that apply to this * snapshot. This can be because the original image had licenses attached * (such as a Windows image). @@ -29634,6 +31256,12 @@ if (_json.containsKey("kind")) { kind = _json["kind"]; } + if (_json.containsKey("labelFingerprint")) { + labelFingerprint = _json["labelFingerprint"]; + } + if (_json.containsKey("labels")) { + labels = _json["labels"]; + } if (_json.containsKey("licenses")) { licenses = _json["licenses"]; } @@ -29666,8 +31294,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTimestamp != null) { _json["creationTimestamp"] = creationTimestamp; } @@ -29683,6 +31311,12 @@ if (kind != null) { _json["kind"] = kind; } + if (labelFingerprint != null) { + _json["labelFingerprint"] = labelFingerprint; + } + if (labels != null) { + _json["labels"] = labels; + } if (licenses != null) { _json["licenses"] = licenses; } @@ -29759,8 +31393,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -29856,8 +31490,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (certificate != null) { _json["certificate"] = certificate; } @@ -29927,8 +31561,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -29954,12 +31588,13 @@ core.String creationTimestamp; /** * An optional description of this resource. Provide this property when you - * create the resource. + * create the resource. This field can be set only at resource creation time. */ core.String description; /** * [Output Only] The gateway address for default routes to reach destination - * addresses outside this subnetwork. + * addresses outside this subnetwork. This field can be set only at resource + * creation time. */ core.String gatewayAddress; /** @@ -29971,7 +31606,8 @@ * The range of internal addresses that are owned by this subnetwork. Provide * this property when you create the subnetwork. For example, 10.0.0.0/8 or * 192.168.0.0/16. Ranges must be unique and non-overlapping within a network. - * Only IPv4 is supported. + * Only IPv4 is supported. This field can be set only at resource creation + * time. */ core.String ipCidrRange; /** @@ -29992,15 +31628,20 @@ /** * The URL of the network to which this subnetwork belongs, provided by the * client when initially creating the subnetwork. Only networks that are in - * the distributed mode can have subnetworks. + * the distributed mode can have subnetworks. This field can be set only at + * resource creation time. */ core.String network; /** * Whether the VMs in this subnet can access Google services without assigned - * external IP addresses. + * external IP addresses. This field can be both set at resource creation time + * and updated using setPrivateIpGoogleAccess. */ core.bool privateIpGoogleAccess; - /** URL of the region where the Subnetwork resides. */ + /** + * URL of the region where the Subnetwork resides. This field can be set only + * at resource creation time. + */ core.String region; /** [Output Only] Server-defined URL for the resource. */ core.String selfLink; @@ -30043,8 +31684,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTimestamp != null) { _json["creationTimestamp"] = creationTimestamp; } @@ -30113,7 +31754,7 @@ id = _json["id"]; } if (_json.containsKey("items")) { - items = commons.mapMap(_json["items"], (item) => new SubnetworksScopedList.fromJson(item)); + items = commons.mapMap<core.Map<core.String, core.Object>, SubnetworksScopedList>(_json["items"], (core.Map<core.String, core.Object> item) => new SubnetworksScopedList.fromJson(item)); } if (_json.containsKey("kind")) { kind = _json["kind"]; @@ -30126,13 +31767,13 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } if (items != null) { - _json["items"] = commons.mapMap(items, (item) => (item).toJson()); + _json["items"] = commons.mapMap<SubnetworksScopedList, core.Map<core.String, core.Object>>(items, (SubnetworksScopedList item) => (item).toJson()); } if (kind != null) { _json["kind"] = kind; @@ -30192,8 +31833,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -30230,8 +31871,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ipCidrRange != null) { _json["ipCidrRange"] = ipCidrRange; } @@ -30264,8 +31905,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -30326,8 +31967,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -30360,8 +32001,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (subnetworks != null) { _json["subnetworks"] = subnetworks.map((value) => (value).toJson()).toList(); } @@ -30383,8 +32024,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (privateIpGoogleAccess != null) { _json["privateIpGoogleAccess"] = privateIpGoogleAccess; } @@ -30445,8 +32086,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (port != null) { _json["port"] = port; } @@ -30502,8 +32143,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fingerprint != null) { _json["fingerprint"] = fingerprint; } @@ -30577,8 +32218,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTimestamp != null) { _json["creationTimestamp"] = creationTimestamp; } @@ -30649,8 +32290,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -30685,8 +32326,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (sslCertificates != null) { _json["sslCertificates"] = sslCertificates; } @@ -30770,8 +32411,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTimestamp != null) { _json["creationTimestamp"] = creationTimestamp; } @@ -30845,8 +32486,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -30953,8 +32594,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTimestamp != null) { _json["creationTimestamp"] = creationTimestamp; } @@ -31013,7 +32654,7 @@ id = _json["id"]; } if (_json.containsKey("items")) { - items = commons.mapMap(_json["items"], (item) => new TargetInstancesScopedList.fromJson(item)); + items = commons.mapMap<core.Map<core.String, core.Object>, TargetInstancesScopedList>(_json["items"], (core.Map<core.String, core.Object> item) => new TargetInstancesScopedList.fromJson(item)); } if (_json.containsKey("kind")) { kind = _json["kind"]; @@ -31026,13 +32667,13 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } if (items != null) { - _json["items"] = commons.mapMap(items, (item) => (item).toJson()); + _json["items"] = commons.mapMap<TargetInstancesScopedList, core.Map<core.String, core.Object>>(items, (TargetInstancesScopedList item) => (item).toJson()); } if (kind != null) { _json["kind"] = kind; @@ -31089,8 +32730,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -31135,8 +32776,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -31198,8 +32839,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -31233,8 +32874,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (targetInstances != null) { _json["targetInstances"] = targetInstances.map((value) => (value).toJson()).toList(); } @@ -31385,8 +33026,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (backupPool != null) { _json["backupPool"] = backupPool; } @@ -31457,7 +33098,7 @@ id = _json["id"]; } if (_json.containsKey("items")) { - items = commons.mapMap(_json["items"], (item) => new TargetPoolsScopedList.fromJson(item)); + items = commons.mapMap<core.Map<core.String, core.Object>, TargetPoolsScopedList>(_json["items"], (core.Map<core.String, core.Object> item) => new TargetPoolsScopedList.fromJson(item)); } if (_json.containsKey("kind")) { kind = _json["kind"]; @@ -31470,13 +33111,13 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } if (items != null) { - _json["items"] = commons.mapMap(items, (item) => (item).toJson()); + _json["items"] = commons.mapMap<TargetPoolsScopedList, core.Map<core.String, core.Object>>(items, (TargetPoolsScopedList item) => (item).toJson()); } if (kind != null) { _json["kind"] = kind; @@ -31510,8 +33151,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (healthStatus != null) { _json["healthStatus"] = healthStatus.map((value) => (value).toJson()).toList(); } @@ -31566,8 +33207,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -31599,8 +33240,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (healthChecks != null) { _json["healthChecks"] = healthChecks.map((value) => (value).toJson()).toList(); } @@ -31627,8 +33268,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instances != null) { _json["instances"] = instances.map((value) => (value).toJson()).toList(); } @@ -31655,8 +33296,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (healthChecks != null) { _json["healthChecks"] = healthChecks.map((value) => (value).toJson()).toList(); } @@ -31676,8 +33317,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instances != null) { _json["instances"] = instances.map((value) => (value).toJson()).toList(); } @@ -31710,8 +33351,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -31773,8 +33414,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -31808,8 +33449,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (targetPools != null) { _json["targetPools"] = targetPools.map((value) => (value).toJson()).toList(); } @@ -31831,8 +33472,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (target != null) { _json["target"] = target; } @@ -31852,8 +33493,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (service != null) { _json["service"] = service; } @@ -31879,8 +33520,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (proxyHeader != null) { _json["proxyHeader"] = proxyHeader; } @@ -31903,8 +33544,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (sslCertificates != null) { _json["sslCertificates"] = sslCertificates; } @@ -31991,8 +33632,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTimestamp != null) { _json["creationTimestamp"] = creationTimestamp; } @@ -32066,8 +33707,220 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (id != null) { + _json["id"] = id; + } + if (items != null) { + _json["items"] = items.map((value) => (value).toJson()).toList(); + } + if (kind != null) { + _json["kind"] = kind; + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + if (selfLink != null) { + _json["selfLink"] = selfLink; + } + return _json; + } +} + +class TargetTcpProxiesSetBackendServiceRequest { + /** The URL of the new BackendService resource for the targetTcpProxy. */ + core.String service; + + TargetTcpProxiesSetBackendServiceRequest(); + + TargetTcpProxiesSetBackendServiceRequest.fromJson(core.Map _json) { + if (_json.containsKey("service")) { + service = _json["service"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (service != null) { + _json["service"] = service; + } + return _json; + } +} + +class TargetTcpProxiesSetProxyHeaderRequest { + /** + * The new type of proxy header to append before sending data to the backend. + * NONE or PROXY_V1 are allowed. + * Possible string values are: + * - "NONE" + * - "PROXY_V1" + */ + core.String proxyHeader; + + TargetTcpProxiesSetProxyHeaderRequest(); + + TargetTcpProxiesSetProxyHeaderRequest.fromJson(core.Map _json) { + if (_json.containsKey("proxyHeader")) { + proxyHeader = _json["proxyHeader"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (proxyHeader != null) { + _json["proxyHeader"] = proxyHeader; + } + return _json; + } +} + +/** A TargetTcpProxy resource. This resource defines a TCP proxy. */ +class TargetTcpProxy { + /** [Output Only] Creation timestamp in RFC3339 text format. */ + core.String creationTimestamp; + /** + * An optional description of this resource. Provide this property when you + * create the resource. + */ + core.String description; + /** + * [Output Only] The unique identifier for the resource. This identifier is + * defined by the server. + */ + core.String id; + /** + * [Output Only] Type of the resource. Always compute#targetTcpProxy for + * target TCP proxies. + */ + core.String kind; + /** + * Name of the resource. Provided by the client when the resource is created. + * The name must be 1-63 characters long, and comply with RFC1035. + * Specifically, the name must be 1-63 characters long and match the regular + * expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must + * be a lowercase letter, and all following characters must be a dash, + * lowercase letter, or digit, except the last character, which cannot be a + * dash. + */ + core.String name; + /** + * Specifies the type of proxy header to append before sending data to the + * backend, either NONE or PROXY_V1. The default is NONE. + * Possible string values are: + * - "NONE" + * - "PROXY_V1" + */ + core.String proxyHeader; + /** [Output Only] Server-defined URL for the resource. */ + core.String selfLink; + /** URL to the BackendService resource. */ + core.String service; + + TargetTcpProxy(); + + TargetTcpProxy.fromJson(core.Map _json) { + if (_json.containsKey("creationTimestamp")) { + creationTimestamp = _json["creationTimestamp"]; + } + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("proxyHeader")) { + proxyHeader = _json["proxyHeader"]; + } + if (_json.containsKey("selfLink")) { + selfLink = _json["selfLink"]; + } + if (_json.containsKey("service")) { + service = _json["service"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (creationTimestamp != null) { + _json["creationTimestamp"] = creationTimestamp; + } + if (description != null) { + _json["description"] = description; + } + if (id != null) { + _json["id"] = id; + } + if (kind != null) { + _json["kind"] = kind; + } + if (name != null) { + _json["name"] = name; + } + if (proxyHeader != null) { + _json["proxyHeader"] = proxyHeader; + } + if (selfLink != null) { + _json["selfLink"] = selfLink; + } + if (service != null) { + _json["service"] = service; + } + return _json; + } +} + +/** Contains a list of TargetTcpProxy resources. */ +class TargetTcpProxyList { + /** + * [Output Only] The unique identifier for the resource. This identifier is + * defined by the server. + */ + core.String id; + /** A list of TargetTcpProxy resources. */ + core.List<TargetTcpProxy> items; + /** Type of resource. */ + core.String kind; + /** + * [Output Only] This token allows you to get the next page of results for + * list requests. If the number of results is larger than maxResults, use the + * nextPageToken as a value for the query parameter pageToken in the next list + * request. Subsequent list requests will have their own nextPageToken to + * continue paging through the results. + */ + core.String nextPageToken; + /** [Output Only] Server-defined URL for this resource. */ + core.String selfLink; + + TargetTcpProxyList(); + + TargetTcpProxyList.fromJson(core.Map _json) { + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("items")) { + items = _json["items"].map((value) => new TargetTcpProxy.fromJson(value)).toList(); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("selfLink")) { + selfLink = _json["selfLink"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -32184,8 +34037,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTimestamp != null) { _json["creationTimestamp"] = creationTimestamp; } @@ -32254,7 +34107,7 @@ id = _json["id"]; } if (_json.containsKey("items")) { - items = commons.mapMap(_json["items"], (item) => new TargetVpnGatewaysScopedList.fromJson(item)); + items = commons.mapMap<core.Map<core.String, core.Object>, TargetVpnGatewaysScopedList>(_json["items"], (core.Map<core.String, core.Object> item) => new TargetVpnGatewaysScopedList.fromJson(item)); } if (_json.containsKey("kind")) { kind = _json["kind"]; @@ -32267,13 +34120,13 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } if (items != null) { - _json["items"] = commons.mapMap(items, (item) => (item).toJson()); + _json["items"] = commons.mapMap<TargetVpnGatewaysScopedList, core.Map<core.String, core.Object>>(items, (TargetVpnGatewaysScopedList item) => (item).toJson()); } if (kind != null) { _json["kind"] = kind; @@ -32333,8 +34186,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -32379,8 +34232,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -32442,8 +34295,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -32477,8 +34330,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (targetVpnGateways != null) { _json["targetVpnGateways"] = targetVpnGateways.map((value) => (value).toJson()).toList(); } @@ -32512,8 +34365,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (actualService != null) { _json["actualService"] = actualService; } @@ -32628,8 +34481,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTimestamp != null) { _json["creationTimestamp"] = creationTimestamp; } @@ -32706,8 +34559,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -32738,8 +34591,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (urlMap != null) { _json["urlMap"] = urlMap; } @@ -32775,8 +34628,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -32825,8 +34678,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (loadErrors != null) { _json["loadErrors"] = loadErrors; } @@ -32855,8 +34708,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resource != null) { _json["resource"] = (resource).toJson(); } @@ -32875,8 +34728,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (result != null) { _json["result"] = (result).toJson(); } @@ -32918,8 +34771,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bucketName != null) { _json["bucketName"] = bucketName; } @@ -33070,8 +34923,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTimestamp != null) { _json["creationTimestamp"] = creationTimestamp; } @@ -33157,7 +35010,7 @@ id = _json["id"]; } if (_json.containsKey("items")) { - items = commons.mapMap(_json["items"], (item) => new VpnTunnelsScopedList.fromJson(item)); + items = commons.mapMap<core.Map<core.String, core.Object>, VpnTunnelsScopedList>(_json["items"], (core.Map<core.String, core.Object> item) => new VpnTunnelsScopedList.fromJson(item)); } if (_json.containsKey("kind")) { kind = _json["kind"]; @@ -33170,13 +35023,13 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } if (items != null) { - _json["items"] = commons.mapMap(items, (item) => (item).toJson()); + _json["items"] = commons.mapMap<VpnTunnelsScopedList, core.Map<core.String, core.Object>>(items, (VpnTunnelsScopedList item) => (item).toJson()); } if (kind != null) { _json["kind"] = kind; @@ -33235,8 +35088,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -33281,8 +35134,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -33344,8 +35197,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -33379,8 +35232,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (vpnTunnels != null) { _json["vpnTunnels"] = vpnTunnels.map((value) => (value).toJson()).toList(); } @@ -33391,6 +35244,109 @@ } } +class XpnHostList { + /** + * [Output Only] The unique identifier for the resource. This identifier is + * defined by the server. + */ + core.String id; + /** [Output Only] A list of XPN host project URLs. */ + core.List<Project> items; + /** + * [Output Only] Type of resource. Always compute#xpnHostList for lists of XPN + * hosts. + */ + core.String kind; + /** + * [Output Only] This token allows you to get the next page of results for + * list requests. If the number of results is larger than maxResults, use the + * nextPageToken as a value for the query parameter pageToken in the next list + * request. Subsequent list requests will have their own nextPageToken to + * continue paging through the results. + */ + core.String nextPageToken; + /** [Output Only] Server-defined URL for this resource. */ + core.String selfLink; + + XpnHostList(); + + XpnHostList.fromJson(core.Map _json) { + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("items")) { + items = _json["items"].map((value) => new Project.fromJson(value)).toList(); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("selfLink")) { + selfLink = _json["selfLink"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (id != null) { + _json["id"] = id; + } + if (items != null) { + _json["items"] = items.map((value) => (value).toJson()).toList(); + } + if (kind != null) { + _json["kind"] = kind; + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + if (selfLink != null) { + _json["selfLink"] = selfLink; + } + return _json; + } +} + +/** XpnResourceId */ +class XpnResourceId { + /** + * The ID of the XPN resource. In the case of projects, this field matches the + * project's name, not the canonical ID. + */ + core.String id; + /** + * The type of the XPN resource. + * Possible string values are: + * - "PROJECT" + * - "XPN_RESOURCE_TYPE_UNSPECIFIED" + */ + core.String type; + + XpnResourceId(); + + XpnResourceId.fromJson(core.Map _json) { + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (id != null) { + _json["id"] = id; + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + /** A Zone resource. */ class Zone { /** [Output Only] Creation timestamp in RFC3339 text format. */ @@ -33452,8 +35408,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTimestamp != null) { _json["creationTimestamp"] = creationTimestamp; } @@ -33526,8 +35482,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -33546,3 +35502,45 @@ return _json; } } + +class ZoneSetLabelsRequest { + /** + * The fingerprint of the previous set of labels for this resource, used to + * detect conflicts. The fingerprint is initially generated by Compute Engine + * and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels. + * Make a get() request to the resource to get the latest fingerprint. + */ + core.String labelFingerprint; + core.List<core.int> get labelFingerprintAsBytes { + return convert.BASE64.decode(labelFingerprint); + } + + void set labelFingerprintAsBytes(core.List<core.int> _bytes) { + labelFingerprint = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); + } + /** The labels to set for this resource. */ + core.Map<core.String, core.String> labels; + + ZoneSetLabelsRequest(); + + ZoneSetLabelsRequest.fromJson(core.Map _json) { + if (_json.containsKey("labelFingerprint")) { + labelFingerprint = _json["labelFingerprint"]; + } + if (_json.containsKey("labels")) { + labels = _json["labels"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (labelFingerprint != null) { + _json["labelFingerprint"] = labelFingerprint; + } + if (labels != null) { + _json["labels"] = labels; + } + return _json; + } +}
diff --git a/generated/googleapis/lib/consumersurveys/v2.dart b/generated/googleapis/lib/consumersurveys/v2.dart index da70291..cea73a6 100644 --- a/generated/googleapis/lib/consumersurveys/v2.dart +++ b/generated/googleapis/lib/consumersurveys/v2.dart
@@ -573,8 +573,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields.map((value) => (value).toJson()).toList(); } @@ -616,8 +616,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (country != null) { _json["country"] = country; } @@ -668,8 +668,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (pageInfo != null) { _json["pageInfo"] = (pageInfo).toJson(); } @@ -705,8 +705,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resultPerPage != null) { _json["resultPerPage"] = resultPerPage; } @@ -731,8 +731,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resultMask != null) { _json["resultMask"] = (resultMask).toJson(); } @@ -755,8 +755,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields.map((value) => (value).toJson()).toList(); } @@ -825,8 +825,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (audience != null) { _json["audience"] = (audience).toJson(); } @@ -899,8 +899,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ages != null) { _json["ages"] = ages; } @@ -949,8 +949,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (costPerResponseNanos != null) { _json["costPerResponseNanos"] = costPerResponseNanos; } @@ -1046,8 +1046,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (answerOrder != null) { _json["answerOrder"] = answerOrder; } @@ -1132,8 +1132,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (altText != null) { _json["altText"] = altText; } @@ -1162,8 +1162,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (explanation != null) { _json["explanation"] = explanation; } @@ -1189,8 +1189,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (status != null) { _json["status"] = status; } @@ -1216,8 +1216,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (requestId != null) { _json["requestId"] = requestId; } @@ -1253,8 +1253,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (pageInfo != null) { _json["pageInfo"] = (pageInfo).toJson(); } @@ -1286,8 +1286,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (maxCostPerResponseNanos != null) { _json["maxCostPerResponseNanos"] = maxCostPerResponseNanos; } @@ -1310,8 +1310,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (requestId != null) { _json["requestId"] = requestId; } @@ -1334,8 +1334,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (requestId != null) { _json["requestId"] = requestId; } @@ -1358,8 +1358,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; }
diff --git a/generated/googleapis/lib/container/v1.dart b/generated/googleapis/lib/container/v1.dart index d508909..f7b7a68 100644 --- a/generated/googleapis/lib/container/v1.dart +++ b/generated/googleapis/lib/container/v1.dart
@@ -1230,8 +1230,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (horizontalPodAutoscaling != null) { _json["horizontalPodAutoscaling"] = (horizontalPodAutoscaling).toJson(); } @@ -1270,8 +1270,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoUpgradeStartTime != null) { _json["autoUpgradeStartTime"] = autoUpgradeStartTime; } @@ -1290,8 +1290,8 @@ CancelOperationRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1443,8 +1443,8 @@ */ core.List<NodePool> nodePools; /** - * The resource labels for the cluster to use to annotate any related GCE - * resources. + * The resource labels for the cluster to use to annotate any related + * Google Compute Engine resources. */ core.Map<core.String, core.String> resourceLabels; /** [Output only] Server-defined URL for the resource. */ @@ -1591,8 +1591,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (addonsConfig != null) { _json["addonsConfig"] = (addonsConfig).toJson(); } @@ -1777,8 +1777,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (desiredAddonsConfig != null) { _json["desiredAddonsConfig"] = (desiredAddonsConfig).toJson(); } @@ -1817,8 +1817,8 @@ CompleteIPRotationRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1839,8 +1839,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cluster != null) { _json["cluster"] = (cluster).toJson(); } @@ -1861,8 +1861,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nodePool != null) { _json["nodePool"] = (nodePool).toJson(); } @@ -1888,8 +1888,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1915,8 +1915,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (disabled != null) { _json["disabled"] = disabled; } @@ -1944,8 +1944,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (disabled != null) { _json["disabled"] = disabled; } @@ -1974,8 +1974,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (enabled != null) { _json["enabled"] = enabled; } @@ -2007,8 +2007,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clusters != null) { _json["clusters"] = clusters.map((value) => (value).toJson()).toList(); } @@ -2032,8 +2032,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nodePools != null) { _json["nodePools"] = nodePools.map((value) => (value).toJson()).toList(); } @@ -2062,8 +2062,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (missingZones != null) { _json["missingZones"] = missingZones; } @@ -2129,8 +2129,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientCertificate != null) { _json["clientCertificate"] = clientCertificate; } @@ -2229,7 +2229,7 @@ /** * Whether the nodes are created as preemptible VM instances. See: * https://cloud.google.com/compute/docs/instances/preemptible for more - * inforamtion about preemptible VM instances. + * information about preemptible VM instances. */ core.bool preemptible; /** @@ -2280,8 +2280,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (diskSizeGb != null) { _json["diskSizeGb"] = diskSizeGb; } @@ -2351,8 +2351,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoRepair != null) { _json["autoRepair"] = autoRepair; } @@ -2467,8 +2467,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoscaling != null) { _json["autoscaling"] = (autoscaling).toJson(); } @@ -2535,8 +2535,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (enabled != null) { _json["enabled"] = enabled; } @@ -2630,8 +2630,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (detail != null) { _json["detail"] = detail; } @@ -2672,8 +2672,8 @@ RollbackNodePoolUpgradeRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -2711,8 +2711,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (defaultClusterVersion != null) { _json["defaultClusterVersion"] = defaultClusterVersion; } @@ -2761,8 +2761,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (labelFingerprint != null) { _json["labelFingerprint"] = labelFingerprint; } @@ -2789,8 +2789,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (enabled != null) { _json["enabled"] = enabled; } @@ -2822,8 +2822,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (action != null) { _json["action"] = action; } @@ -2850,8 +2850,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (management != null) { _json["management"] = (management).toJson(); } @@ -2870,8 +2870,8 @@ StartIPRotationRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -2889,8 +2889,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (update != null) { _json["update"] = (update).toJson(); }
diff --git a/generated/googleapis/lib/content/v2.dart b/generated/googleapis/lib/content/v2.dart index 33ff023..c8ad091 100644 --- a/generated/googleapis/lib/content/v2.dart +++ b/generated/googleapis/lib/content/v2.dart
@@ -954,8 +954,8 @@ } /** - * Deletes a datafeed from your Merchant Center account. This method can only - * be called for non-multi-client accounts. + * Deletes a datafeed configuration from your Merchant Center account. This + * method can only be called for non-multi-client accounts. * * Request parameters: * @@ -1004,8 +1004,8 @@ } /** - * Retrieves a datafeed from your Merchant Center account. This method can - * only be called for non-multi-client accounts. + * Retrieves a datafeed configuration from your Merchant Center account. This + * method can only be called for non-multi-client accounts. * * Request parameters: * @@ -1049,8 +1049,8 @@ } /** - * Registers a datafeed with your Merchant Center account. This method can - * only be called for non-multi-client accounts. + * Registers a datafeed configuration with your Merchant Center account. This + * method can only be called for non-multi-client accounts. * * [request] - The metadata request object. * @@ -1150,8 +1150,9 @@ } /** - * Updates a datafeed of your Merchant Center account. This method can only be - * called for non-multi-client accounts. This method supports patch semantics. + * Updates a datafeed configuration of your Merchant Center account. This + * method can only be called for non-multi-client accounts. This method + * supports patch semantics. * * [request] - The metadata request object. * @@ -1205,8 +1206,8 @@ } /** - * Updates a datafeed of your Merchant Center account. This method can only be - * called for non-multi-client accounts. + * Updates a datafeed configuration of your Merchant Center account. This + * method can only be called for non-multi-client accounts. * * [request] - The metadata request object. * @@ -3107,8 +3108,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adultContent != null) { _json["adultContent"] = adultContent; } @@ -3167,8 +3168,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adwordsId != null) { _json["adwordsId"] = adwordsId; } @@ -3199,8 +3200,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aggregatorId != null) { _json["aggregatorId"] = aggregatorId; } @@ -3245,8 +3246,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -3320,8 +3321,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (country != null) { _json["country"] = country; } @@ -3392,8 +3393,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (itemId != null) { _json["itemId"] = itemId; } @@ -3442,8 +3443,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -3499,8 +3500,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (country != null) { _json["country"] = country; } @@ -3537,8 +3538,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (admin != null) { _json["admin"] = admin; } @@ -3575,8 +3576,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountIdentifiers != null) { _json["accountIdentifiers"] = accountIdentifiers.map((value) => (value).toJson()).toList(); } @@ -3602,8 +3603,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -3623,8 +3624,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -3678,8 +3679,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (account != null) { _json["account"] = (account).toJson(); } @@ -3722,8 +3723,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -3768,8 +3769,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (account != null) { _json["account"] = (account).toJson(); } @@ -3810,8 +3811,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -3837,8 +3838,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -3874,8 +3875,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -3912,8 +3913,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -3950,8 +3951,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountStatus != null) { _json["accountStatus"] = (accountStatus).toJson(); } @@ -3989,8 +3990,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -4016,8 +4017,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -4059,8 +4060,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -4100,8 +4101,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -4143,8 +4144,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountTax != null) { _json["accountTax"] = (accountTax).toJson(); } @@ -4185,8 +4186,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -4252,8 +4253,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (carrierName != null) { _json["carrierName"] = carrierName; } @@ -4301,8 +4302,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (country != null) { _json["country"] = country; } @@ -4316,7 +4317,7 @@ } } -/** Datafeed data. */ +/** Datafeed configuration data. */ class Datafeed { /** * The two-letter ISO 639-1 language in which the attributes are defined in @@ -4397,8 +4398,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attributeLanguage != null) { _json["attributeLanguage"] = attributeLanguage; } @@ -4498,8 +4499,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dayOfMonth != null) { _json["dayOfMonth"] = dayOfMonth; } @@ -4560,8 +4561,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnDelimiter != null) { _json["columnDelimiter"] = columnDelimiter; } @@ -4629,8 +4630,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (datafeedId != null) { _json["datafeedId"] = datafeedId; } @@ -4687,8 +4688,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -4728,8 +4729,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (itemId != null) { _json["itemId"] = itemId; } @@ -4755,8 +4756,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -4796,8 +4797,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (batchId != null) { _json["batchId"] = batchId; } @@ -4837,8 +4838,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -4874,8 +4875,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (batchId != null) { _json["batchId"] = batchId; } @@ -4913,8 +4914,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -4940,8 +4941,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -4976,8 +4977,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (batchId != null) { _json["batchId"] = batchId; } @@ -5014,8 +5015,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -5052,8 +5053,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (batchId != null) { _json["batchId"] = batchId; } @@ -5091,8 +5092,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -5130,8 +5131,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (maxTransitTimeInDays != null) { _json["maxTransitTimeInDays"] = maxTransitTimeInDays; } @@ -5165,8 +5166,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (domain != null) { _json["domain"] = domain; } @@ -5203,8 +5204,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -5278,8 +5279,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (locations != null) { _json["locations"] = locations.map((value) => (value).toJson()).toList(); } @@ -5316,8 +5317,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (amount != null) { _json["amount"] = (amount).toJson(); } @@ -5407,8 +5408,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (availability != null) { _json["availability"] = availability; } @@ -5455,8 +5456,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -5500,8 +5501,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (batchId != null) { _json["batchId"] = batchId; } @@ -5541,8 +5542,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -5579,8 +5580,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (batchId != null) { _json["batchId"] = batchId; } @@ -5620,8 +5621,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (pickupMethod != null) { _json["pickupMethod"] = pickupMethod; } @@ -5703,8 +5704,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (availability != null) { _json["availability"] = availability; } @@ -5751,8 +5752,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -5775,8 +5776,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (locationIds != null) { _json["locationIds"] = locationIds; } @@ -5813,8 +5814,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -5944,8 +5945,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (acknowledged != null) { _json["acknowledged"] = acknowledged; } @@ -6067,8 +6068,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (country != null) { _json["country"] = country; } @@ -6133,8 +6134,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (actor != null) { _json["actor"] = actor; } @@ -6181,8 +6182,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (email != null) { _json["email"] = email; } @@ -6213,8 +6214,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (address != null) { _json["address"] = (address).toJson(); } @@ -6308,8 +6309,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cancellations != null) { _json["cancellations"] = cancellations.map((value) => (value).toJson()).toList(); } @@ -6442,8 +6443,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (brand != null) { _json["brand"] = brand; } @@ -6510,8 +6511,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimension != null) { _json["dimension"] = dimension; } @@ -6544,8 +6545,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (daysToReturn != null) { _json["daysToReturn"] = daysToReturn; } @@ -6581,8 +6582,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deliverByDate != null) { _json["deliverByDate"] = deliverByDate; } @@ -6623,8 +6624,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (carrier != null) { _json["carrier"] = carrier; } @@ -6678,8 +6679,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (billingAddress != null) { _json["billingAddress"] = (billingAddress).toJson(); } @@ -6758,8 +6759,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (benefits != null) { _json["benefits"] = benefits.map((value) => (value).toJson()).toList(); } @@ -6826,8 +6827,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (discount != null) { _json["discount"] = (discount).toJson(); } @@ -6879,8 +6880,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (actor != null) { _json["actor"] = actor; } @@ -6932,8 +6933,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (actor != null) { _json["actor"] = actor; } @@ -6998,8 +6999,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (carrier != null) { _json["carrier"] = carrier; } @@ -7042,8 +7043,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (lineItemId != null) { _json["lineItemId"] = lineItemId; } @@ -7068,8 +7069,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (operationId != null) { _json["operationId"] = operationId; } @@ -7097,8 +7098,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (executionStatus != null) { _json["executionStatus"] = executionStatus; } @@ -7124,8 +7125,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -7176,8 +7177,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (amount != null) { _json["amount"] = (amount).toJson(); } @@ -7220,8 +7221,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (executionStatus != null) { _json["executionStatus"] = executionStatus; } @@ -7256,8 +7257,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (operationId != null) { _json["operationId"] = operationId; } @@ -7291,8 +7292,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (executionStatus != null) { _json["executionStatus"] = executionStatus; } @@ -7324,8 +7325,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (templateName != null) { _json["templateName"] = templateName; } @@ -7356,8 +7357,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -7380,8 +7381,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -7464,8 +7465,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (batchId != null) { _json["batchId"] = batchId; } @@ -7523,8 +7524,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (reason != null) { _json["reason"] = reason; } @@ -7571,8 +7572,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (amount != null) { _json["amount"] = (amount).toJson(); } @@ -7614,8 +7615,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (amount != null) { _json["amount"] = (amount).toJson(); } @@ -7656,8 +7657,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (lineItemId != null) { _json["lineItemId"] = lineItemId; } @@ -7701,8 +7702,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (carrier != null) { _json["carrier"] = carrier; } @@ -7746,8 +7747,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (carrier != null) { _json["carrier"] = carrier; } @@ -7784,8 +7785,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -7837,8 +7838,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (batchId != null) { _json["batchId"] = batchId; } @@ -7878,8 +7879,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -7910,8 +7911,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -7946,8 +7947,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -7990,8 +7991,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (amount != null) { _json["amount"] = (amount).toJson(); } @@ -8028,8 +8029,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (executionStatus != null) { _json["executionStatus"] = executionStatus; } @@ -8074,8 +8075,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (lineItemId != null) { _json["lineItemId"] = lineItemId; } @@ -8115,8 +8116,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (executionStatus != null) { _json["executionStatus"] = executionStatus; } @@ -8161,8 +8162,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (carrier != null) { _json["carrier"] = carrier; } @@ -8202,8 +8203,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (executionStatus != null) { _json["executionStatus"] = executionStatus; } @@ -8236,8 +8237,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (merchantOrderId != null) { _json["merchantOrderId"] = merchantOrderId; } @@ -8268,8 +8269,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (executionStatus != null) { _json["executionStatus"] = executionStatus; } @@ -8314,8 +8315,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (carrier != null) { _json["carrier"] = carrier; } @@ -8355,8 +8356,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (executionStatus != null) { _json["executionStatus"] = executionStatus; } @@ -8392,8 +8393,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (country != null) { _json["country"] = country; } @@ -8436,8 +8437,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (postalCodeRangeBegin != null) { _json["postalCodeRangeBegin"] = postalCodeRangeBegin; } @@ -8465,8 +8466,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currency != null) { _json["currency"] = currency; } @@ -8603,6 +8604,10 @@ LoyaltyPoints loyaltyPoints; /** The material of which the item is made. */ core.String material; + /** Maximal product handling time (in business days). */ + core.String maxHandlingTime; + /** Minimal product handling time (in business days). */ + core.String minHandlingTime; /** Link to a mobile-optimized version of the landing page. */ core.String mobileLink; /** Manufacturer Part Number (MPN) of the item. */ @@ -8808,6 +8813,12 @@ if (_json.containsKey("material")) { material = _json["material"]; } + if (_json.containsKey("maxHandlingTime")) { + maxHandlingTime = _json["maxHandlingTime"]; + } + if (_json.containsKey("minHandlingTime")) { + minHandlingTime = _json["minHandlingTime"]; + } if (_json.containsKey("mobileLink")) { mobileLink = _json["mobileLink"]; } @@ -8894,8 +8905,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (additionalImageLinks != null) { _json["additionalImageLinks"] = additionalImageLinks; } @@ -9028,6 +9039,12 @@ if (material != null) { _json["material"] = material; } + if (maxHandlingTime != null) { + _json["maxHandlingTime"] = maxHandlingTime; + } + if (minHandlingTime != null) { + _json["minHandlingTime"] = minHandlingTime; + } if (mobileLink != null) { _json["mobileLink"] = mobileLink; } @@ -9138,8 +9155,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aspectName != null) { _json["aspectName"] = aspectName; } @@ -9186,8 +9203,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -9224,8 +9241,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attributes != null) { _json["attributes"] = attributes.map((value) => (value).toJson()).toList(); } @@ -9253,8 +9270,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (destinationName != null) { _json["destinationName"] = destinationName; } @@ -9319,8 +9336,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (country != null) { _json["country"] = country; } @@ -9372,8 +9389,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (unit != null) { _json["unit"] = unit; } @@ -9403,8 +9420,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (unit != null) { _json["unit"] = unit; } @@ -9474,8 +9491,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationDate != null) { _json["creationDate"] = creationDate; } @@ -9554,8 +9571,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (detail != null) { _json["detail"] = detail; } @@ -9609,8 +9626,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (approvalStatus != null) { _json["approvalStatus"] = approvalStatus; } @@ -9672,8 +9689,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (country != null) { _json["country"] = country; } @@ -9713,8 +9730,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (unit != null) { _json["unit"] = unit; } @@ -9742,8 +9759,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (unit != null) { _json["unit"] = unit; } @@ -9766,8 +9783,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -9810,8 +9827,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (batchId != null) { _json["batchId"] = batchId; } @@ -9851,8 +9868,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -9897,8 +9914,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (batchId != null) { _json["batchId"] = batchId; } @@ -9939,8 +9956,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -9966,8 +9983,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -10002,8 +10019,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (batchId != null) { _json["batchId"] = batchId; } @@ -10040,8 +10057,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -10085,8 +10102,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (batchId != null) { _json["batchId"] = batchId; } @@ -10127,8 +10144,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -10191,8 +10208,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (applicableShippingLabels != null) { _json["applicableShippingLabels"] = applicableShippingLabels; } @@ -10228,8 +10245,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cells != null) { _json["cells"] = cells.map((value) => (value).toJson()).toList(); } @@ -10292,8 +10309,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (active != null) { _json["active"] = active; } @@ -10344,8 +10361,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -10371,8 +10388,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -10417,8 +10434,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -10458,8 +10475,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -10501,8 +10518,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (batchId != null) { _json["batchId"] = batchId; } @@ -10539,8 +10556,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (carriers != null) { _json["carriers"] = carriers.map((value) => (value).toJson()).toList(); } @@ -10575,8 +10592,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -10623,8 +10640,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnHeaders != null) { _json["columnHeaders"] = (columnHeaders).toJson(); } @@ -10701,8 +10718,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (customer != null) { _json["customer"] = (customer).toJson(); } @@ -10762,8 +10779,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (email != null) { _json["email"] = email; } @@ -10809,8 +10826,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (product != null) { _json["product"] = (product).toJson(); } @@ -10902,8 +10919,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (brand != null) { _json["brand"] = brand; } @@ -10982,8 +10999,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (expirationMonth != null) { _json["expirationMonth"] = expirationMonth; } @@ -11052,8 +11069,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (carrierRateName != null) { _json["carrierRateName"] = carrierRateName; } @@ -11090,8 +11107,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (unit != null) { _json["unit"] = unit; }
diff --git a/generated/googleapis/lib/content/v2sandbox.dart b/generated/googleapis/lib/content/v2sandbox.dart index 84d144a..1d66fa8 100644 --- a/generated/googleapis/lib/content/v2sandbox.dart +++ b/generated/googleapis/lib/content/v2sandbox.dart
@@ -834,8 +834,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (domain != null) { _json["domain"] = domain; } @@ -872,8 +872,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -1003,8 +1003,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (acknowledged != null) { _json["acknowledged"] = acknowledged; } @@ -1126,8 +1126,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (country != null) { _json["country"] = country; } @@ -1192,8 +1192,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (actor != null) { _json["actor"] = actor; } @@ -1240,8 +1240,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (email != null) { _json["email"] = email; } @@ -1272,8 +1272,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (address != null) { _json["address"] = (address).toJson(); } @@ -1367,8 +1367,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cancellations != null) { _json["cancellations"] = cancellations.map((value) => (value).toJson()).toList(); } @@ -1501,8 +1501,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (brand != null) { _json["brand"] = brand; } @@ -1569,8 +1569,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimension != null) { _json["dimension"] = dimension; } @@ -1603,8 +1603,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (daysToReturn != null) { _json["daysToReturn"] = daysToReturn; } @@ -1640,8 +1640,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deliverByDate != null) { _json["deliverByDate"] = deliverByDate; } @@ -1682,8 +1682,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (carrier != null) { _json["carrier"] = carrier; } @@ -1737,8 +1737,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (billingAddress != null) { _json["billingAddress"] = (billingAddress).toJson(); } @@ -1817,8 +1817,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (benefits != null) { _json["benefits"] = benefits.map((value) => (value).toJson()).toList(); } @@ -1885,8 +1885,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (discount != null) { _json["discount"] = (discount).toJson(); } @@ -1938,8 +1938,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (actor != null) { _json["actor"] = actor; } @@ -1991,8 +1991,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (actor != null) { _json["actor"] = actor; } @@ -2057,8 +2057,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (carrier != null) { _json["carrier"] = carrier; } @@ -2101,8 +2101,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (lineItemId != null) { _json["lineItemId"] = lineItemId; } @@ -2127,8 +2127,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (operationId != null) { _json["operationId"] = operationId; } @@ -2156,8 +2156,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (executionStatus != null) { _json["executionStatus"] = executionStatus; } @@ -2183,8 +2183,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2235,8 +2235,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (amount != null) { _json["amount"] = (amount).toJson(); } @@ -2279,8 +2279,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (executionStatus != null) { _json["executionStatus"] = executionStatus; } @@ -2315,8 +2315,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (operationId != null) { _json["operationId"] = operationId; } @@ -2350,8 +2350,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (executionStatus != null) { _json["executionStatus"] = executionStatus; } @@ -2383,8 +2383,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (templateName != null) { _json["templateName"] = templateName; } @@ -2415,8 +2415,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2439,8 +2439,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -2523,8 +2523,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (batchId != null) { _json["batchId"] = batchId; } @@ -2582,8 +2582,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (reason != null) { _json["reason"] = reason; } @@ -2630,8 +2630,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (amount != null) { _json["amount"] = (amount).toJson(); } @@ -2673,8 +2673,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (amount != null) { _json["amount"] = (amount).toJson(); } @@ -2715,8 +2715,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (lineItemId != null) { _json["lineItemId"] = lineItemId; } @@ -2760,8 +2760,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (carrier != null) { _json["carrier"] = carrier; } @@ -2805,8 +2805,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (carrier != null) { _json["carrier"] = carrier; } @@ -2843,8 +2843,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -2896,8 +2896,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (batchId != null) { _json["batchId"] = batchId; } @@ -2937,8 +2937,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2969,8 +2969,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -3005,8 +3005,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -3049,8 +3049,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (amount != null) { _json["amount"] = (amount).toJson(); } @@ -3087,8 +3087,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (executionStatus != null) { _json["executionStatus"] = executionStatus; } @@ -3133,8 +3133,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (lineItemId != null) { _json["lineItemId"] = lineItemId; } @@ -3174,8 +3174,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (executionStatus != null) { _json["executionStatus"] = executionStatus; } @@ -3220,8 +3220,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (carrier != null) { _json["carrier"] = carrier; } @@ -3261,8 +3261,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (executionStatus != null) { _json["executionStatus"] = executionStatus; } @@ -3295,8 +3295,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (merchantOrderId != null) { _json["merchantOrderId"] = merchantOrderId; } @@ -3327,8 +3327,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (executionStatus != null) { _json["executionStatus"] = executionStatus; } @@ -3373,8 +3373,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (carrier != null) { _json["carrier"] = carrier; } @@ -3414,8 +3414,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (executionStatus != null) { _json["executionStatus"] = executionStatus; } @@ -3443,8 +3443,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currency != null) { _json["currency"] = currency; } @@ -3515,8 +3515,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (customer != null) { _json["customer"] = (customer).toJson(); } @@ -3576,8 +3576,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (email != null) { _json["email"] = email; } @@ -3623,8 +3623,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (product != null) { _json["product"] = (product).toJson(); } @@ -3716,8 +3716,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (brand != null) { _json["brand"] = brand; } @@ -3796,8 +3796,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (expirationMonth != null) { _json["expirationMonth"] = expirationMonth; }
diff --git a/generated/googleapis/lib/customsearch/v1.dart b/generated/googleapis/lib/customsearch/v1.dart index 2bd7db0..965b9c9 100644 --- a/generated/googleapis/lib/customsearch/v1.dart +++ b/generated/googleapis/lib/customsearch/v1.dart
@@ -14,7 +14,7 @@ const core.String USER_AGENT = 'dart-api-client customsearch/v1'; -/** Lets you search over a website or collection of websites */ +/** Searches over a website or collection of websites */ class CustomsearchApi { final commons.ApiRequester _requester; @@ -44,8 +44,6 @@ * * [cr] - Country restrict(s). * - * [cref] - The URL of a linked custom search engine - * * [cx] - The custom search engine ID to scope this search query * * [dateRestrict] - Specifies all search results are from a time period @@ -204,7 +202,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<Search> list(core.String q, {core.String c2coff, core.String cr, core.String cref, core.String cx, core.String dateRestrict, core.String exactTerms, core.String excludeTerms, core.String fileType, core.String filter, core.String gl, core.String googlehost, core.String highRange, core.String hl, core.String hq, core.String imgColorType, core.String imgDominantColor, core.String imgSize, core.String imgType, core.String linkSite, core.String lowRange, core.String lr, core.int num, core.String orTerms, core.String relatedSite, core.String rights, core.String safe, core.String searchType, core.String siteSearch, core.String siteSearchFilter, core.String sort, core.int start}) { + async.Future<Search> list(core.String q, {core.String c2coff, core.String cr, core.String cx, core.String dateRestrict, core.String exactTerms, core.String excludeTerms, core.String fileType, core.String filter, core.String gl, core.String googlehost, core.String highRange, core.String hl, core.String hq, core.String imgColorType, core.String imgDominantColor, core.String imgSize, core.String imgType, core.String linkSite, core.String lowRange, core.String lr, core.int num, core.String orTerms, core.String relatedSite, core.String rights, core.String safe, core.String searchType, core.String siteSearch, core.String siteSearchFilter, core.String sort, core.int start}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -222,9 +220,6 @@ if (cr != null) { _queryParams["cr"] = [cr]; } - if (cref != null) { - _queryParams["cref"] = [cref]; - } if (cx != null) { _queryParams["cx"] = [cx]; } @@ -345,8 +340,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (anchor != null) { _json["anchor"] = anchor; } @@ -375,8 +370,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (facets != null) { _json["facets"] = facets.map((value) => value.map((value) => (value).toJson()).toList()).toList(); } @@ -410,8 +405,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (htmlTitle != null) { _json["htmlTitle"] = htmlTitle; } @@ -447,8 +442,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -493,8 +488,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bodyLines != null) { _json["bodyLines"] = bodyLines.map((value) => (value).toJson()).toList(); } @@ -520,7 +515,6 @@ class Query { core.int count; core.String cr; - core.String cref; core.String cx; core.String dateRestrict; core.String disableCnTwTranslation; @@ -565,9 +559,6 @@ if (_json.containsKey("cr")) { cr = _json["cr"]; } - if (_json.containsKey("cref")) { - cref = _json["cref"]; - } if (_json.containsKey("cx")) { cx = _json["cx"]; } @@ -672,17 +663,14 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (count != null) { _json["count"] = count; } if (cr != null) { _json["cr"] = cr; } - if (cref != null) { - _json["cref"] = cref; - } if (cx != null) { _json["cx"] = cx; } @@ -824,8 +812,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (byteSize != null) { _json["byteSize"] = byteSize; } @@ -870,8 +858,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -958,8 +946,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cacheId != null) { _json["cacheId"] = cacheId; } @@ -1032,8 +1020,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (formattedSearchTime != null) { _json["formattedSearchTime"] = formattedSearchTime; } @@ -1065,8 +1053,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (correctedQuery != null) { _json["correctedQuery"] = correctedQuery; } @@ -1092,8 +1080,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (template != null) { _json["template"] = template; } @@ -1130,7 +1118,7 @@ promotions = _json["promotions"].map((value) => new Promotion.fromJson(value)).toList(); } if (_json.containsKey("queries")) { - queries = commons.mapMap(_json["queries"], (item) => item.map((value) => new Query.fromJson(value)).toList()); + queries = commons.mapMap<core.List<core.Map<core.String, core.Object>>, core.List<Query>>(_json["queries"], (core.List<core.Map<core.String, core.Object>> item) => item.map((value) => new Query.fromJson(value)).toList()); } if (_json.containsKey("searchInformation")) { searchInformation = new SearchSearchInformation.fromJson(_json["searchInformation"]); @@ -1143,8 +1131,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (context != null) { _json["context"] = (context).toJson(); } @@ -1158,7 +1146,7 @@ _json["promotions"] = promotions.map((value) => (value).toJson()).toList(); } if (queries != null) { - _json["queries"] = commons.mapMap(queries, (item) => item.map((value) => (value).toJson()).toList()); + _json["queries"] = commons.mapMap<core.List<Query>, core.List<core.Map<core.String, core.Object>>>(queries, (core.List<Query> item) => item.map((value) => (value).toJson()).toList()); } if (searchInformation != null) { _json["searchInformation"] = (searchInformation).toJson();
diff --git a/generated/googleapis/lib/dataproc/v1.dart b/generated/googleapis/lib/dataproc/v1.dart index 86da4c6..59c9c3e 100644 --- a/generated/googleapis/lib/dataproc/v1.dart +++ b/generated/googleapis/lib/dataproc/v1.dart
@@ -278,10 +278,6 @@ * [region] - Required. The Cloud Dataproc region in which to handle the * request. * - * [pageToken] - Optional. The standard List page token. - * - * [pageSize] - Optional. The standard List page size. - * * [filter] - Optional. A filter constraining the clusters to list. Filters * are case-sensitive and have the following syntax:field = value AND field = * value ...where field is one of status.state, clusterName, or labels.[KEY], @@ -294,6 +290,10 @@ * implicit AND operator.Example filter:status.state = ACTIVE AND clusterName * = mycluster AND labels.env = staging AND labels.starred = * * + * [pageToken] - Optional. The standard List page token. + * + * [pageSize] - Optional. The standard List page size. + * * Completes with a [ListClustersResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -302,7 +302,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListClustersResponse> list(core.String projectId, core.String region, {core.String pageToken, core.int pageSize, core.String filter}) { + async.Future<ListClustersResponse> list(core.String projectId, core.String region, {core.String filter, core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -316,15 +316,15 @@ if (region == null) { throw new core.ArgumentError("Parameter region is required."); } + if (filter != null) { + _queryParams["filter"] = [filter]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } - if (filter != null) { - _queryParams["filter"] = [filter]; - } _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/clusters'; @@ -945,20 +945,25 @@ /** * Lists operations that match the specified filter in the request. If the * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name - * binding below allows API services to override the binding to use different - * resource name schemes, such as users / * /operations. + * binding allows API services to override the binding to use different + * resource name schemes, such as users / * /operations. To override the + * binding, API services can add a binding such as "/v1/{name=users / * + * }/operations" to their service configuration. For backwards compatibility, + * the default name includes the operations collection id, however overriding + * users must ensure the name binding is the parent resource, without the + * operations collection id. * * Request parameters: * - * [name] - The name of the operation collection. + * [name] - The name of the operation's parent resource. * Value must have pattern "^projects/[^/]+/regions/[^/]+/operations$". * + * [pageToken] - The standard list page token. + * * [pageSize] - The standard list page size. * * [filter] - The standard list filter. * - * [pageToken] - The standard list page token. - * * Completes with a [ListOperationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -967,7 +972,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListOperationsResponse> list(core.String name, {core.int pageSize, core.String filter, core.String pageToken}) { + async.Future<ListOperationsResponse> list(core.String name, {core.String pageToken, core.int pageSize, core.String filter}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -978,15 +983,15 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } if (filter != null) { _queryParams["filter"] = [filter]; } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); @@ -1031,8 +1036,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (acceleratorCount != null) { _json["acceleratorCount"] = acceleratorCount; } @@ -1051,8 +1056,8 @@ CancelJobRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1130,8 +1135,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clusterName != null) { _json["clusterName"] = clusterName; } @@ -1234,8 +1239,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (configBucket != null) { _json["configBucket"] = configBucket; } @@ -1283,8 +1288,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (hdfsMetrics != null) { _json["hdfsMetrics"] = hdfsMetrics; } @@ -1343,8 +1348,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clusterName != null) { _json["clusterName"] = clusterName; } @@ -1408,8 +1413,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (details != null) { _json["details"] = details; } @@ -1476,8 +1481,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (detail != null) { _json["detail"] = detail; } @@ -1494,31 +1499,6 @@ } } -/** The location where output from diagnostic command can be found. */ -class DiagnoseClusterOutputLocation { - /** - * Output-only The Google Cloud Storage URI of the diagnostic output. This - * will be a plain text file with summary of collected diagnostics. - */ - core.String outputUri; - - DiagnoseClusterOutputLocation(); - - DiagnoseClusterOutputLocation.fromJson(core.Map _json) { - if (_json.containsKey("outputUri")) { - outputUri = _json["outputUri"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (outputUri != null) { - _json["outputUri"] = outputUri; - } - return _json; - } -} - /** A request to collect cluster diagnostic information. */ class DiagnoseClusterRequest { @@ -1527,8 +1507,8 @@ DiagnoseClusterRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1549,8 +1529,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (outputUri != null) { _json["outputUri"] = outputUri; } @@ -1582,8 +1562,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bootDiskSizeGb != null) { _json["bootDiskSizeGb"] = bootDiskSizeGb; } @@ -1610,8 +1590,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1717,8 +1697,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (internalIpOnly != null) { _json["internalIpOnly"] = internalIpOnly; } @@ -1828,8 +1808,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (archiveUris != null) { _json["archiveUris"] = archiveUris; } @@ -1914,8 +1894,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (continueOnFailure != null) { _json["continueOnFailure"] = continueOnFailure; } @@ -2013,8 +1993,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accelerators != null) { _json["accelerators"] = accelerators.map((value) => (value).toJson()).toList(); } @@ -2155,8 +2135,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (driverControlFilesUri != null) { _json["driverControlFilesUri"] = driverControlFilesUri; } @@ -2227,8 +2207,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clusterName != null) { _json["clusterName"] = clusterName; } @@ -2266,8 +2246,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (jobId != null) { _json["jobId"] = jobId; } @@ -2299,8 +2279,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (maxFailuresPerHour != null) { _json["maxFailuresPerHour"] = maxFailuresPerHour; } @@ -2369,8 +2349,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (details != null) { _json["details"] = details; } @@ -2409,8 +2389,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clusters != null) { _json["clusters"] = clusters.map((value) => (value).toJson()).toList(); } @@ -2443,8 +2423,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (jobs != null) { _json["jobs"] = jobs.map((value) => (value).toJson()).toList(); } @@ -2473,8 +2453,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -2502,8 +2482,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (driverLogLevels != null) { _json["driverLogLevels"] = driverLogLevels; } @@ -2532,8 +2512,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instanceGroupManagerName != null) { _json["instanceGroupManagerName"] = instanceGroupManagerName; } @@ -2570,8 +2550,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (executableFile != null) { _json["executableFile"] = executableFile; } @@ -2645,8 +2625,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (done != null) { _json["done"] = done; } @@ -2666,184 +2646,6 @@ } } -/** Metadata describing the operation. */ -class OperationMetadata { - /** Name of the cluster for the operation. */ - core.String clusterName; - /** Cluster UUId for the operation. */ - core.String clusterUuid; - /** Output-only Short description of operation. */ - core.String description; - /** A message containing any operation metadata details. */ - core.String details; - /** The time that the operation completed. */ - core.String endTime; - /** A message containing the detailed operation state. */ - core.String innerState; - /** The time that the operation was requested. */ - core.String insertTime; - /** Output-only The operation type. */ - core.String operationType; - /** The time that the operation was started by the server. */ - core.String startTime; - /** - * A message containing the operation state. - * Possible string values are: - * - "UNKNOWN" : Unused. - * - "PENDING" : The operation has been created. - * - "RUNNING" : The operation is currently running. - * - "DONE" : The operation is done, either cancelled or completed. - */ - core.String state; - /** Output-only Current operation status. */ - OperationStatus status; - /** Output-only Previous operation status. */ - core.List<OperationStatus> statusHistory; - /** Output-only Errors encountered during operation execution. */ - core.List<core.String> warnings; - - OperationMetadata(); - - OperationMetadata.fromJson(core.Map _json) { - if (_json.containsKey("clusterName")) { - clusterName = _json["clusterName"]; - } - if (_json.containsKey("clusterUuid")) { - clusterUuid = _json["clusterUuid"]; - } - if (_json.containsKey("description")) { - description = _json["description"]; - } - if (_json.containsKey("details")) { - details = _json["details"]; - } - if (_json.containsKey("endTime")) { - endTime = _json["endTime"]; - } - if (_json.containsKey("innerState")) { - innerState = _json["innerState"]; - } - if (_json.containsKey("insertTime")) { - insertTime = _json["insertTime"]; - } - if (_json.containsKey("operationType")) { - operationType = _json["operationType"]; - } - if (_json.containsKey("startTime")) { - startTime = _json["startTime"]; - } - if (_json.containsKey("state")) { - state = _json["state"]; - } - if (_json.containsKey("status")) { - status = new OperationStatus.fromJson(_json["status"]); - } - if (_json.containsKey("statusHistory")) { - statusHistory = _json["statusHistory"].map((value) => new OperationStatus.fromJson(value)).toList(); - } - if (_json.containsKey("warnings")) { - warnings = _json["warnings"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (clusterName != null) { - _json["clusterName"] = clusterName; - } - if (clusterUuid != null) { - _json["clusterUuid"] = clusterUuid; - } - if (description != null) { - _json["description"] = description; - } - if (details != null) { - _json["details"] = details; - } - if (endTime != null) { - _json["endTime"] = endTime; - } - if (innerState != null) { - _json["innerState"] = innerState; - } - if (insertTime != null) { - _json["insertTime"] = insertTime; - } - if (operationType != null) { - _json["operationType"] = operationType; - } - if (startTime != null) { - _json["startTime"] = startTime; - } - if (state != null) { - _json["state"] = state; - } - if (status != null) { - _json["status"] = (status).toJson(); - } - if (statusHistory != null) { - _json["statusHistory"] = statusHistory.map((value) => (value).toJson()).toList(); - } - if (warnings != null) { - _json["warnings"] = warnings; - } - return _json; - } -} - -/** The status of the operation. */ -class OperationStatus { - /** A message containing any operation metadata details. */ - core.String details; - /** A message containing the detailed operation state. */ - core.String innerState; - /** - * A message containing the operation state. - * Possible string values are: - * - "UNKNOWN" : Unused. - * - "PENDING" : The operation has been created. - * - "RUNNING" : The operation is running. - * - "DONE" : The operation is done; either cancelled or completed. - */ - core.String state; - /** The time this state was entered. */ - core.String stateStartTime; - - OperationStatus(); - - OperationStatus.fromJson(core.Map _json) { - if (_json.containsKey("details")) { - details = _json["details"]; - } - if (_json.containsKey("innerState")) { - innerState = _json["innerState"]; - } - if (_json.containsKey("state")) { - state = _json["state"]; - } - if (_json.containsKey("stateStartTime")) { - stateStartTime = _json["stateStartTime"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (details != null) { - _json["details"] = details; - } - if (innerState != null) { - _json["innerState"] = innerState; - } - if (state != null) { - _json["state"] = state; - } - if (stateStartTime != null) { - _json["stateStartTime"] = stateStartTime; - } - return _json; - } -} - /** * A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries * on YARN. @@ -2905,8 +2707,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (continueOnFailure != null) { _json["continueOnFailure"] = continueOnFailure; } @@ -3008,8 +2810,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (archiveUris != null) { _json["archiveUris"] = archiveUris; } @@ -3065,8 +2867,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (queries != null) { _json["queries"] = queries; } @@ -3109,8 +2911,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (imageVersion != null) { _json["imageVersion"] = imageVersion; } @@ -3194,8 +2996,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (archiveUris != null) { _json["archiveUris"] = archiveUris; } @@ -3272,8 +3074,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (jarFileUris != null) { _json["jarFileUris"] = jarFileUris; } @@ -3364,8 +3166,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -3392,8 +3194,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (job != null) { _json["job"] = (job).toJson(); } @@ -3451,8 +3253,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; }
diff --git a/generated/googleapis/lib/datastore/v1.dart b/generated/googleapis/lib/datastore/v1.dart index 8cc30f4..6dfc2dd 100644 --- a/generated/googleapis/lib/datastore/v1.dart +++ b/generated/googleapis/lib/datastore/v1.dart
@@ -327,8 +327,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (keys != null) { _json["keys"] = keys.map((value) => (value).toJson()).toList(); } @@ -352,8 +352,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (keys != null) { _json["keys"] = keys.map((value) => (value).toJson()).toList(); } @@ -378,8 +378,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (values != null) { _json["values"] = values.map((value) => (value).toJson()).toList(); } @@ -395,8 +395,8 @@ BeginTransactionRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -421,8 +421,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (transaction != null) { _json["transaction"] = transaction; } @@ -488,8 +488,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (mode != null) { _json["mode"] = mode; } @@ -527,8 +527,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (indexUpdates != null) { _json["indexUpdates"] = indexUpdates; } @@ -565,8 +565,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filters != null) { _json["filters"] = filters.map((value) => (value).toJson()).toList(); } @@ -611,17 +611,17 @@ key = new Key.fromJson(_json["key"]); } if (_json.containsKey("properties")) { - properties = commons.mapMap(_json["properties"], (item) => new Value.fromJson(item)); + properties = commons.mapMap<core.Map<core.String, core.Object>, Value>(_json["properties"], (core.Map<core.String, core.Object> item) => new Value.fromJson(item)); } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = (key).toJson(); } if (properties != null) { - _json["properties"] = commons.mapMap(properties, (item) => (item).toJson()); + _json["properties"] = commons.mapMap<Value, core.Map<core.String, core.Object>>(properties, (Value item) => (item).toJson()); } return _json; } @@ -670,8 +670,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cursor != null) { _json["cursor"] = cursor; } @@ -703,8 +703,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (compositeFilter != null) { _json["compositeFilter"] = (compositeFilter).toJson(); } @@ -756,7 +756,7 @@ allowLiterals = _json["allowLiterals"]; } if (_json.containsKey("namedBindings")) { - namedBindings = commons.mapMap(_json["namedBindings"], (item) => new GqlQueryParameter.fromJson(item)); + namedBindings = commons.mapMap<core.Map<core.String, core.Object>, GqlQueryParameter>(_json["namedBindings"], (core.Map<core.String, core.Object> item) => new GqlQueryParameter.fromJson(item)); } if (_json.containsKey("positionalBindings")) { positionalBindings = _json["positionalBindings"].map((value) => new GqlQueryParameter.fromJson(value)).toList(); @@ -766,13 +766,13 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allowLiterals != null) { _json["allowLiterals"] = allowLiterals; } if (namedBindings != null) { - _json["namedBindings"] = commons.mapMap(namedBindings, (item) => (item).toJson()); + _json["namedBindings"] = commons.mapMap<GqlQueryParameter, core.Map<core.String, core.Object>>(namedBindings, (GqlQueryParameter item) => (item).toJson()); } if (positionalBindings != null) { _json["positionalBindings"] = positionalBindings.map((value) => (value).toJson()).toList(); @@ -812,8 +812,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cursor != null) { _json["cursor"] = cursor; } @@ -868,8 +868,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (partitionId != null) { _json["partitionId"] = (partitionId).toJson(); } @@ -893,8 +893,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -960,8 +960,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (latitude != null) { _json["latitude"] = latitude; } @@ -990,8 +990,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (keys != null) { _json["keys"] = keys.map((value) => (value).toJson()).toList(); } @@ -1037,8 +1037,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deferred != null) { _json["deferred"] = deferred.map((value) => (value).toJson()).toList(); } @@ -1100,8 +1100,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (baseVersion != null) { _json["baseVersion"] = baseVersion; } @@ -1156,8 +1156,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (conflictDetected != null) { _json["conflictDetected"] = conflictDetected; } @@ -1210,8 +1210,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (namespaceId != null) { _json["namespaceId"] = namespaceId; } @@ -1264,8 +1264,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -1292,8 +1292,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (property != null) { _json["property"] = (property).toJson(); } @@ -1334,8 +1334,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (op != null) { _json["op"] = op; } @@ -1373,8 +1373,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (direction != null) { _json["direction"] = direction; } @@ -1401,8 +1401,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -1504,8 +1504,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (distinctOn != null) { _json["distinctOn"] = distinctOn.map((value) => (value).toJson()).toList(); } @@ -1629,8 +1629,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endCursor != null) { _json["endCursor"] = endCursor; } @@ -1693,8 +1693,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (readConsistency != null) { _json["readConsistency"] = readConsistency; } @@ -1728,8 +1728,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (transaction != null) { _json["transaction"] = transaction; } @@ -1748,8 +1748,8 @@ RollbackResponse.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1787,8 +1787,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (gqlQuery != null) { _json["gqlQuery"] = (gqlQuery).toJson(); } @@ -1823,8 +1823,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (batch != null) { _json["batch"] = (batch).toJson(); } @@ -1952,8 +1952,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (arrayValue != null) { _json["arrayValue"] = (arrayValue).toJson(); }
diff --git a/generated/googleapis/lib/deploymentmanager/v2.dart b/generated/googleapis/lib/deploymentmanager/v2.dart index 7f8804f..c85ffeb 100644 --- a/generated/googleapis/lib/deploymentmanager/v2.dart +++ b/generated/googleapis/lib/deploymentmanager/v2.dart
@@ -1387,8 +1387,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (auditLogConfigs != null) { _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson()).toList(); } @@ -1431,8 +1431,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (exemptedMembers != null) { _json["exemptedMembers"] = exemptedMembers; } @@ -1487,8 +1487,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (members != null) { _json["members"] = members; } @@ -1540,8 +1540,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (iam != null) { _json["iam"] = iam; } @@ -1576,8 +1576,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (content != null) { _json["content"] = content; } @@ -1696,8 +1696,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -1750,8 +1750,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -1797,8 +1797,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -1827,8 +1827,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -1869,8 +1869,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fingerprint != null) { _json["fingerprint"] = fingerprint; } @@ -1899,8 +1899,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deployments != null) { _json["deployments"] = deployments.map((value) => (value).toJson()).toList(); } @@ -1941,8 +1941,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fingerprint != null) { _json["fingerprint"] = fingerprint; } @@ -1967,8 +1967,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (content != null) { _json["content"] = content; } @@ -1992,8 +1992,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (counter != null) { _json["counter"] = (counter).toJson(); } @@ -2019,8 +2019,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (field != null) { _json["field"] = field; } @@ -2086,8 +2086,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (config != null) { _json["config"] = (config).toJson(); } @@ -2137,8 +2137,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (manifests != null) { _json["manifests"] = manifests.map((value) => (value).toJson()).toList(); } @@ -2174,8 +2174,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -2208,8 +2208,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errors != null) { _json["errors"] = errors.map((value) => (value).toJson()).toList(); } @@ -2242,8 +2242,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -2283,8 +2283,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -2483,8 +2483,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientOperationId != null) { _json["clientOperationId"] = clientOperationId; } @@ -2579,8 +2579,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -2678,8 +2678,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (auditConfigs != null) { _json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toList(); } @@ -2727,8 +2727,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -2768,8 +2768,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -2878,8 +2878,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accessControl != null) { _json["accessControl"] = (accessControl).toJson(); } @@ -2933,8 +2933,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (gcpIamPolicy != null) { _json["gcpIamPolicy"] = gcpIamPolicy; } @@ -2967,8 +2967,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -3001,8 +3001,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errors != null) { _json["errors"] = errors.map((value) => (value).toJson()).toList(); } @@ -3035,8 +3035,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -3076,8 +3076,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -3156,8 +3156,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accessControl != null) { _json["accessControl"] = (accessControl).toJson(); } @@ -3207,8 +3207,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -3275,8 +3275,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (action != null) { _json["action"] = action; } @@ -3323,8 +3323,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (config != null) { _json["config"] = (config).toJson(); } @@ -3350,8 +3350,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; } @@ -3374,8 +3374,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; } @@ -3423,8 +3423,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -3464,8 +3464,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; }
diff --git a/generated/googleapis/lib/dfareporting/v2_6.dart b/generated/googleapis/lib/dfareporting/v2_6.dart deleted file mode 100644 index e624ef0..0000000 --- a/generated/googleapis/lib/dfareporting/v2_6.dart +++ /dev/null
@@ -1,28579 +0,0 @@ -// This is a generated file (see the discoveryapis_generator project). - -library googleapis.dfareporting.v2_6; - -import 'dart:core' as core; -import 'dart:async' as async; -import 'dart:convert' as convert; - -import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; -import 'package:http/http.dart' as http; - -export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show - ApiRequestError, DetailedApiRequestError, Media, UploadOptions, - ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, - ByteRange; - -const core.String USER_AGENT = 'dart-api-client dfareporting/v2.6'; - -/** Manages your DoubleClick Campaign Manager ad campaigns and reports. */ -class DfareportingApi { - /** Manage DoubleClick Digital Marketing conversions */ - static const DdmconversionsScope = "https://www.googleapis.com/auth/ddmconversions"; - - /** View and manage DoubleClick for Advertisers reports */ - static const DfareportingScope = "https://www.googleapis.com/auth/dfareporting"; - - /** - * View and manage your DoubleClick Campaign Manager's (DCM) display ad - * campaigns - */ - static const DfatraffickingScope = "https://www.googleapis.com/auth/dfatrafficking"; - - - final commons.ApiRequester _requester; - - AccountActiveAdSummariesResourceApi get accountActiveAdSummaries => new AccountActiveAdSummariesResourceApi(_requester); - AccountPermissionGroupsResourceApi get accountPermissionGroups => new AccountPermissionGroupsResourceApi(_requester); - AccountPermissionsResourceApi get accountPermissions => new AccountPermissionsResourceApi(_requester); - AccountUserProfilesResourceApi get accountUserProfiles => new AccountUserProfilesResourceApi(_requester); - AccountsResourceApi get accounts => new AccountsResourceApi(_requester); - AdsResourceApi get ads => new AdsResourceApi(_requester); - AdvertiserGroupsResourceApi get advertiserGroups => new AdvertiserGroupsResourceApi(_requester); - AdvertisersResourceApi get advertisers => new AdvertisersResourceApi(_requester); - BrowsersResourceApi get browsers => new BrowsersResourceApi(_requester); - CampaignCreativeAssociationsResourceApi get campaignCreativeAssociations => new CampaignCreativeAssociationsResourceApi(_requester); - CampaignsResourceApi get campaigns => new CampaignsResourceApi(_requester); - ChangeLogsResourceApi get changeLogs => new ChangeLogsResourceApi(_requester); - CitiesResourceApi get cities => new CitiesResourceApi(_requester); - ConnectionTypesResourceApi get connectionTypes => new ConnectionTypesResourceApi(_requester); - ContentCategoriesResourceApi get contentCategories => new ContentCategoriesResourceApi(_requester); - ConversionsResourceApi get conversions => new ConversionsResourceApi(_requester); - CountriesResourceApi get countries => new CountriesResourceApi(_requester); - CreativeAssetsResourceApi get creativeAssets => new CreativeAssetsResourceApi(_requester); - CreativeFieldValuesResourceApi get creativeFieldValues => new CreativeFieldValuesResourceApi(_requester); - CreativeFieldsResourceApi get creativeFields => new CreativeFieldsResourceApi(_requester); - CreativeGroupsResourceApi get creativeGroups => new CreativeGroupsResourceApi(_requester); - CreativesResourceApi get creatives => new CreativesResourceApi(_requester); - DimensionValuesResourceApi get dimensionValues => new DimensionValuesResourceApi(_requester); - DirectorySiteContactsResourceApi get directorySiteContacts => new DirectorySiteContactsResourceApi(_requester); - DirectorySitesResourceApi get directorySites => new DirectorySitesResourceApi(_requester); - DynamicTargetingKeysResourceApi get dynamicTargetingKeys => new DynamicTargetingKeysResourceApi(_requester); - EventTagsResourceApi get eventTags => new EventTagsResourceApi(_requester); - FilesResourceApi get files => new FilesResourceApi(_requester); - FloodlightActivitiesResourceApi get floodlightActivities => new FloodlightActivitiesResourceApi(_requester); - FloodlightActivityGroupsResourceApi get floodlightActivityGroups => new FloodlightActivityGroupsResourceApi(_requester); - FloodlightConfigurationsResourceApi get floodlightConfigurations => new FloodlightConfigurationsResourceApi(_requester); - InventoryItemsResourceApi get inventoryItems => new InventoryItemsResourceApi(_requester); - LandingPagesResourceApi get landingPages => new LandingPagesResourceApi(_requester); - LanguagesResourceApi get languages => new LanguagesResourceApi(_requester); - MetrosResourceApi get metros => new MetrosResourceApi(_requester); - MobileCarriersResourceApi get mobileCarriers => new MobileCarriersResourceApi(_requester); - OperatingSystemVersionsResourceApi get operatingSystemVersions => new OperatingSystemVersionsResourceApi(_requester); - OperatingSystemsResourceApi get operatingSystems => new OperatingSystemsResourceApi(_requester); - OrderDocumentsResourceApi get orderDocuments => new OrderDocumentsResourceApi(_requester); - OrdersResourceApi get orders => new OrdersResourceApi(_requester); - PlacementGroupsResourceApi get placementGroups => new PlacementGroupsResourceApi(_requester); - PlacementStrategiesResourceApi get placementStrategies => new PlacementStrategiesResourceApi(_requester); - PlacementsResourceApi get placements => new PlacementsResourceApi(_requester); - PlatformTypesResourceApi get platformTypes => new PlatformTypesResourceApi(_requester); - PostalCodesResourceApi get postalCodes => new PostalCodesResourceApi(_requester); - ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); - RegionsResourceApi get regions => new RegionsResourceApi(_requester); - RemarketingListSharesResourceApi get remarketingListShares => new RemarketingListSharesResourceApi(_requester); - RemarketingListsResourceApi get remarketingLists => new RemarketingListsResourceApi(_requester); - ReportsResourceApi get reports => new ReportsResourceApi(_requester); - SitesResourceApi get sites => new SitesResourceApi(_requester); - SizesResourceApi get sizes => new SizesResourceApi(_requester); - SubaccountsResourceApi get subaccounts => new SubaccountsResourceApi(_requester); - TargetableRemarketingListsResourceApi get targetableRemarketingLists => new TargetableRemarketingListsResourceApi(_requester); - TargetingTemplatesResourceApi get targetingTemplates => new TargetingTemplatesResourceApi(_requester); - UserProfilesResourceApi get userProfiles => new UserProfilesResourceApi(_requester); - UserRolePermissionGroupsResourceApi get userRolePermissionGroups => new UserRolePermissionGroupsResourceApi(_requester); - UserRolePermissionsResourceApi get userRolePermissions => new UserRolePermissionsResourceApi(_requester); - UserRolesResourceApi get userRoles => new UserRolesResourceApi(_requester); - - DfareportingApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "dfareporting/v2.6/"}) : - _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); -} - - -class AccountActiveAdSummariesResourceApi { - final commons.ApiRequester _requester; - - AccountActiveAdSummariesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets the account's active ad summary by account ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [summaryAccountId] - Account ID. - * - * Completes with a [AccountActiveAdSummary]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AccountActiveAdSummary> get(core.String profileId, core.String summaryAccountId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (summaryAccountId == null) { - throw new core.ArgumentError("Parameter summaryAccountId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountActiveAdSummaries/' + commons.Escaper.ecapeVariable('$summaryAccountId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountActiveAdSummary.fromJson(data)); - } - -} - - -class AccountPermissionGroupsResourceApi { - final commons.ApiRequester _requester; - - AccountPermissionGroupsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one account permission group by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Account permission group ID. - * - * Completes with a [AccountPermissionGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AccountPermissionGroup> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountPermissionGroups/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountPermissionGroup.fromJson(data)); - } - - /** - * Retrieves the list of account permission groups. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [AccountPermissionGroupsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AccountPermissionGroupsListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountPermissionGroups'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountPermissionGroupsListResponse.fromJson(data)); - } - -} - - -class AccountPermissionsResourceApi { - final commons.ApiRequester _requester; - - AccountPermissionsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one account permission by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Account permission ID. - * - * Completes with a [AccountPermission]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AccountPermission> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountPermissions/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountPermission.fromJson(data)); - } - - /** - * Retrieves the list of account permissions. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [AccountPermissionsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AccountPermissionsListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountPermissions'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountPermissionsListResponse.fromJson(data)); - } - -} - - -class AccountUserProfilesResourceApi { - final commons.ApiRequester _requester; - - AccountUserProfilesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one account user profile by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - User profile ID. - * - * Completes with a [AccountUserProfile]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AccountUserProfile> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountUserProfiles/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountUserProfile.fromJson(data)); - } - - /** - * Inserts a new account user profile. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [AccountUserProfile]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AccountUserProfile> insert(AccountUserProfile request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountUserProfiles'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountUserProfile.fromJson(data)); - } - - /** - * Retrieves a list of account user profiles, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [active] - Select only active user profiles. - * - * [ids] - Select only user profiles with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name, ID or email. - * Wildcards (*) are allowed. For example, "user profile*2015" will return - * objects with names like "user profile June 2015", "user profile April - * 2015", or simply "user profile 2015". Most of the searches also add - * wildcards implicitly at the start and the end of the search string. For - * example, a search string of "user profile" will match objects with name "my - * user profile", "user profile 2015", or simply "user profile". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [subaccountId] - Select only user profiles with the specified subaccount - * ID. - * - * [userRoleId] - Select only user profiles with the specified user role ID. - * - * Completes with a [AccountUserProfilesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AccountUserProfilesListResponse> list(core.String profileId, {core.bool active, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder, core.String subaccountId, core.String userRoleId}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (active != null) { - _queryParams["active"] = ["${active}"]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (subaccountId != null) { - _queryParams["subaccountId"] = [subaccountId]; - } - if (userRoleId != null) { - _queryParams["userRoleId"] = [userRoleId]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountUserProfiles'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountUserProfilesListResponse.fromJson(data)); - } - - /** - * Updates an existing account user profile. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - User profile ID. - * - * Completes with a [AccountUserProfile]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AccountUserProfile> patch(AccountUserProfile request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountUserProfiles'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountUserProfile.fromJson(data)); - } - - /** - * Updates an existing account user profile. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [AccountUserProfile]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AccountUserProfile> update(AccountUserProfile request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountUserProfiles'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountUserProfile.fromJson(data)); - } - -} - - -class AccountsResourceApi { - final commons.ApiRequester _requester; - - AccountsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one account by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Account ID. - * - * Completes with a [Account]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Account> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accounts/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Account.fromJson(data)); - } - - /** - * Retrieves the list of accounts, possibly filtered. This method supports - * paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [active] - Select only active accounts. Don't set this field to select both - * active and non-active accounts. - * - * [ids] - Select only accounts with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "account*2015" will return objects with names - * like "account June 2015", "account April 2015", or simply "account 2015". - * Most of the searches also add wildcards implicitly at the start and the end - * of the search string. For example, a search string of "account" will match - * objects with name "my account", "account 2015", or simply "account". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [AccountsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AccountsListResponse> list(core.String profileId, {core.bool active, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (active != null) { - _queryParams["active"] = ["${active}"]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accounts'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountsListResponse.fromJson(data)); - } - - /** - * Updates an existing account. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Account ID. - * - * Completes with a [Account]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Account> patch(Account request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accounts'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Account.fromJson(data)); - } - - /** - * Updates an existing account. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Account]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Account> update(Account request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accounts'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Account.fromJson(data)); - } - -} - - -class AdsResourceApi { - final commons.ApiRequester _requester; - - AdsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one ad by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Ad ID. - * - * Completes with a [Ad]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Ad> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ads/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Ad.fromJson(data)); - } - - /** - * Inserts a new ad. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Ad]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Ad> insert(Ad request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ads'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Ad.fromJson(data)); - } - - /** - * Retrieves a list of ads, possibly filtered. This method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [active] - Select only active ads. - * - * [advertiserId] - Select only ads with this advertiser ID. - * - * [archived] - Select only archived ads. - * - * [audienceSegmentIds] - Select only ads with these audience segment IDs. - * - * [campaignIds] - Select only ads with these campaign IDs. - * - * [compatibility] - Select default ads with the specified compatibility. - * Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and - * DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile - * devices for regular or interstitial ads, respectively. APP and - * APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers - * to rendering an in-stream video ads developed with the VAST standard. - * Possible string values are: - * - "APP" - * - "APP_INTERSTITIAL" - * - "DISPLAY" - * - "DISPLAY_INTERSTITIAL" - * - "IN_STREAM_VIDEO" - * - * [creativeIds] - Select only ads with these creative IDs assigned. - * - * [creativeOptimizationConfigurationIds] - Select only ads with these - * creative optimization configuration IDs. - * - * [creativeType] - Select only ads with the specified creativeType. - * Possible string values are: - * - "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO" - * - "CUSTOM_DISPLAY" - * - "CUSTOM_DISPLAY_INTERSTITIAL" - * - "DISPLAY" - * - "DISPLAY_IMAGE_GALLERY" - * - "DISPLAY_REDIRECT" - * - "FLASH_INPAGE" - * - "HTML5_BANNER" - * - "IMAGE" - * - "INSTREAM_VIDEO" - * - "INSTREAM_VIDEO_REDIRECT" - * - "INTERNAL_REDIRECT" - * - "INTERSTITIAL_INTERNAL_REDIRECT" - * - "RICH_MEDIA_DISPLAY_BANNER" - * - "RICH_MEDIA_DISPLAY_EXPANDING" - * - "RICH_MEDIA_DISPLAY_INTERSTITIAL" - * - "RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL" - * - "RICH_MEDIA_IM_EXPAND" - * - "RICH_MEDIA_INPAGE_FLOATING" - * - "RICH_MEDIA_MOBILE_IN_APP" - * - "RICH_MEDIA_PEEL_DOWN" - * - "TRACKING_TEXT" - * - "VPAID_LINEAR_VIDEO" - * - "VPAID_NON_LINEAR_VIDEO" - * - * [dynamicClickTracker] - Select only dynamic click trackers. Applicable when - * type is AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. - * If false, select static click trackers. Leave unset to select both. - * - * [ids] - Select only ads with these IDs. - * - * [landingPageIds] - Select only ads with these landing page IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [overriddenEventTagId] - Select only ads with this event tag override ID. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [placementIds] - Select only ads with these placement IDs assigned. - * - * [remarketingListIds] - Select only ads whose list targeting expression use - * these remarketing list IDs. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "ad*2015" will return objects with names like "ad - * June 2015", "ad April 2015", or simply "ad 2015". Most of the searches also - * add wildcards implicitly at the start and the end of the search string. For - * example, a search string of "ad" will match objects with name "my ad", "ad - * 2015", or simply "ad". - * - * [sizeIds] - Select only ads with these size IDs. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [sslCompliant] - Select only ads that are SSL-compliant. - * - * [sslRequired] - Select only ads that require SSL. - * - * [type] - Select only ads with these types. - * - * Completes with a [AdsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AdsListResponse> list(core.String profileId, {core.bool active, core.String advertiserId, core.bool archived, core.List<core.String> audienceSegmentIds, core.List<core.String> campaignIds, core.String compatibility, core.List<core.String> creativeIds, core.List<core.String> creativeOptimizationConfigurationIds, core.String creativeType, core.bool dynamicClickTracker, core.List<core.String> ids, core.List<core.String> landingPageIds, core.int maxResults, core.String overriddenEventTagId, core.String pageToken, core.List<core.String> placementIds, core.List<core.String> remarketingListIds, core.String searchString, core.List<core.String> sizeIds, core.String sortField, core.String sortOrder, core.bool sslCompliant, core.bool sslRequired, core.List<core.String> type}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (active != null) { - _queryParams["active"] = ["${active}"]; - } - if (advertiserId != null) { - _queryParams["advertiserId"] = [advertiserId]; - } - if (archived != null) { - _queryParams["archived"] = ["${archived}"]; - } - if (audienceSegmentIds != null) { - _queryParams["audienceSegmentIds"] = audienceSegmentIds; - } - if (campaignIds != null) { - _queryParams["campaignIds"] = campaignIds; - } - if (compatibility != null) { - _queryParams["compatibility"] = [compatibility]; - } - if (creativeIds != null) { - _queryParams["creativeIds"] = creativeIds; - } - if (creativeOptimizationConfigurationIds != null) { - _queryParams["creativeOptimizationConfigurationIds"] = creativeOptimizationConfigurationIds; - } - if (creativeType != null) { - _queryParams["creativeType"] = [creativeType]; - } - if (dynamicClickTracker != null) { - _queryParams["dynamicClickTracker"] = ["${dynamicClickTracker}"]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (landingPageIds != null) { - _queryParams["landingPageIds"] = landingPageIds; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (overriddenEventTagId != null) { - _queryParams["overriddenEventTagId"] = [overriddenEventTagId]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (placementIds != null) { - _queryParams["placementIds"] = placementIds; - } - if (remarketingListIds != null) { - _queryParams["remarketingListIds"] = remarketingListIds; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sizeIds != null) { - _queryParams["sizeIds"] = sizeIds; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (sslCompliant != null) { - _queryParams["sslCompliant"] = ["${sslCompliant}"]; - } - if (sslRequired != null) { - _queryParams["sslRequired"] = ["${sslRequired}"]; - } - if (type != null) { - _queryParams["type"] = type; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ads'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AdsListResponse.fromJson(data)); - } - - /** - * Updates an existing ad. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Ad ID. - * - * Completes with a [Ad]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Ad> patch(Ad request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ads'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Ad.fromJson(data)); - } - - /** - * Updates an existing ad. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Ad]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Ad> update(Ad request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ads'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Ad.fromJson(data)); - } - -} - - -class AdvertiserGroupsResourceApi { - final commons.ApiRequester _requester; - - AdvertiserGroupsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing advertiser group. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Advertiser group ID. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future delete(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertiserGroups/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one advertiser group by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Advertiser group ID. - * - * Completes with a [AdvertiserGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AdvertiserGroup> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertiserGroups/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AdvertiserGroup.fromJson(data)); - } - - /** - * Inserts a new advertiser group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [AdvertiserGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AdvertiserGroup> insert(AdvertiserGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertiserGroups'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AdvertiserGroup.fromJson(data)); - } - - /** - * Retrieves a list of advertiser groups, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [ids] - Select only advertiser groups with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "advertiser*2015" will return objects with names - * like "advertiser group June 2015", "advertiser group April 2015", or simply - * "advertiser group 2015". Most of the searches also add wildcards implicitly - * at the start and the end of the search string. For example, a search string - * of "advertisergroup" will match objects with name "my advertisergroup", - * "advertisergroup 2015", or simply "advertisergroup". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [AdvertiserGroupsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AdvertiserGroupsListResponse> list(core.String profileId, {core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertiserGroups'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AdvertiserGroupsListResponse.fromJson(data)); - } - - /** - * Updates an existing advertiser group. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Advertiser group ID. - * - * Completes with a [AdvertiserGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AdvertiserGroup> patch(AdvertiserGroup request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertiserGroups'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AdvertiserGroup.fromJson(data)); - } - - /** - * Updates an existing advertiser group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [AdvertiserGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AdvertiserGroup> update(AdvertiserGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertiserGroups'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AdvertiserGroup.fromJson(data)); - } - -} - - -class AdvertisersResourceApi { - final commons.ApiRequester _requester; - - AdvertisersResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one advertiser by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Advertiser ID. - * - * Completes with a [Advertiser]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Advertiser> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertisers/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Advertiser.fromJson(data)); - } - - /** - * Inserts a new advertiser. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Advertiser]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Advertiser> insert(Advertiser request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertisers'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Advertiser.fromJson(data)); - } - - /** - * Retrieves a list of advertisers, possibly filtered. This method supports - * paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserGroupIds] - Select only advertisers with these advertiser group - * IDs. - * - * [floodlightConfigurationIds] - Select only advertisers with these - * floodlight configuration IDs. - * - * [ids] - Select only advertisers with these IDs. - * - * [includeAdvertisersWithoutGroupsOnly] - Select only advertisers which do - * not belong to any advertiser group. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [onlyParent] - Select only advertisers which use another advertiser's - * floodlight configuration. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "advertiser*2015" will return objects with names - * like "advertiser June 2015", "advertiser April 2015", or simply "advertiser - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "advertiser" - * will match objects with name "my advertiser", "advertiser 2015", or simply - * "advertiser". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [status] - Select only advertisers with the specified status. - * Possible string values are: - * - "APPROVED" - * - "ON_HOLD" - * - * [subaccountId] - Select only advertisers with these subaccount IDs. - * - * Completes with a [AdvertisersListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AdvertisersListResponse> list(core.String profileId, {core.List<core.String> advertiserGroupIds, core.List<core.String> floodlightConfigurationIds, core.List<core.String> ids, core.bool includeAdvertisersWithoutGroupsOnly, core.int maxResults, core.bool onlyParent, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder, core.String status, core.String subaccountId}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserGroupIds != null) { - _queryParams["advertiserGroupIds"] = advertiserGroupIds; - } - if (floodlightConfigurationIds != null) { - _queryParams["floodlightConfigurationIds"] = floodlightConfigurationIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (includeAdvertisersWithoutGroupsOnly != null) { - _queryParams["includeAdvertisersWithoutGroupsOnly"] = ["${includeAdvertisersWithoutGroupsOnly}"]; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (onlyParent != null) { - _queryParams["onlyParent"] = ["${onlyParent}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (status != null) { - _queryParams["status"] = [status]; - } - if (subaccountId != null) { - _queryParams["subaccountId"] = [subaccountId]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertisers'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AdvertisersListResponse.fromJson(data)); - } - - /** - * Updates an existing advertiser. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Advertiser ID. - * - * Completes with a [Advertiser]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Advertiser> patch(Advertiser request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertisers'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Advertiser.fromJson(data)); - } - - /** - * Updates an existing advertiser. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Advertiser]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Advertiser> update(Advertiser request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertisers'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Advertiser.fromJson(data)); - } - -} - - -class BrowsersResourceApi { - final commons.ApiRequester _requester; - - BrowsersResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves a list of browsers. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [BrowsersListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<BrowsersListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/browsers'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new BrowsersListResponse.fromJson(data)); - } - -} - - -class CampaignCreativeAssociationsResourceApi { - final commons.ApiRequester _requester; - - CampaignCreativeAssociationsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Associates a creative with the specified campaign. This method creates a - * default ad with dimensions matching the creative in the campaign if such a - * default ad does not exist already. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Campaign ID in this association. - * - * Completes with a [CampaignCreativeAssociation]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CampaignCreativeAssociation> insert(CampaignCreativeAssociation request, core.String profileId, core.String campaignId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/campaignCreativeAssociations'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CampaignCreativeAssociation.fromJson(data)); - } - - /** - * Retrieves the list of creative IDs associated with the specified campaign. - * This method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Campaign ID in this association. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [CampaignCreativeAssociationsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CampaignCreativeAssociationsListResponse> list(core.String profileId, core.String campaignId, {core.int maxResults, core.String pageToken, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/campaignCreativeAssociations'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CampaignCreativeAssociationsListResponse.fromJson(data)); - } - -} - - -class CampaignsResourceApi { - final commons.ApiRequester _requester; - - CampaignsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one campaign by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Campaign ID. - * - * Completes with a [Campaign]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Campaign> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Campaign.fromJson(data)); - } - - /** - * Inserts a new campaign. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [defaultLandingPageName] - Default landing page name for this new campaign. - * Must be less than 256 characters long. - * - * [defaultLandingPageUrl] - Default landing page URL for this new campaign. - * - * Completes with a [Campaign]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Campaign> insert(Campaign request, core.String profileId, core.String defaultLandingPageName, core.String defaultLandingPageUrl) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (defaultLandingPageName == null) { - throw new core.ArgumentError("Parameter defaultLandingPageName is required."); - } - _queryParams["defaultLandingPageName"] = [defaultLandingPageName]; - if (defaultLandingPageUrl == null) { - throw new core.ArgumentError("Parameter defaultLandingPageUrl is required."); - } - _queryParams["defaultLandingPageUrl"] = [defaultLandingPageUrl]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Campaign.fromJson(data)); - } - - /** - * Retrieves a list of campaigns, possibly filtered. This method supports - * paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserGroupIds] - Select only campaigns whose advertisers belong to - * these advertiser groups. - * - * [advertiserIds] - Select only campaigns that belong to these advertisers. - * - * [archived] - Select only archived campaigns. Don't set this field to select - * both archived and non-archived campaigns. - * - * [atLeastOneOptimizationActivity] - Select only campaigns that have at least - * one optimization activity. - * - * [excludedIds] - Exclude campaigns with these IDs. - * - * [ids] - Select only campaigns with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [overriddenEventTagId] - Select only campaigns that have overridden this - * event tag ID. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for campaigns by name or ID. Wildcards - * (*) are allowed. For example, "campaign*2015" will return campaigns with - * names like "campaign June 2015", "campaign April 2015", or simply "campaign - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "campaign" - * will match campaigns with name "my campaign", "campaign 2015", or simply - * "campaign". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [subaccountId] - Select only campaigns that belong to this subaccount. - * - * Completes with a [CampaignsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CampaignsListResponse> list(core.String profileId, {core.List<core.String> advertiserGroupIds, core.List<core.String> advertiserIds, core.bool archived, core.bool atLeastOneOptimizationActivity, core.List<core.String> excludedIds, core.List<core.String> ids, core.int maxResults, core.String overriddenEventTagId, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder, core.String subaccountId}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserGroupIds != null) { - _queryParams["advertiserGroupIds"] = advertiserGroupIds; - } - if (advertiserIds != null) { - _queryParams["advertiserIds"] = advertiserIds; - } - if (archived != null) { - _queryParams["archived"] = ["${archived}"]; - } - if (atLeastOneOptimizationActivity != null) { - _queryParams["atLeastOneOptimizationActivity"] = ["${atLeastOneOptimizationActivity}"]; - } - if (excludedIds != null) { - _queryParams["excludedIds"] = excludedIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (overriddenEventTagId != null) { - _queryParams["overriddenEventTagId"] = [overriddenEventTagId]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (subaccountId != null) { - _queryParams["subaccountId"] = [subaccountId]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CampaignsListResponse.fromJson(data)); - } - - /** - * Updates an existing campaign. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Campaign ID. - * - * Completes with a [Campaign]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Campaign> patch(Campaign request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Campaign.fromJson(data)); - } - - /** - * Updates an existing campaign. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Campaign]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Campaign> update(Campaign request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Campaign.fromJson(data)); - } - -} - - -class ChangeLogsResourceApi { - final commons.ApiRequester _requester; - - ChangeLogsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one change log by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Change log ID. - * - * Completes with a [ChangeLog]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ChangeLog> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/changeLogs/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ChangeLog.fromJson(data)); - } - - /** - * Retrieves a list of change logs. This method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [action] - Select only change logs with the specified action. - * Possible string values are: - * - "ACTION_ADD" - * - "ACTION_ASSIGN" - * - "ACTION_ASSOCIATE" - * - "ACTION_CREATE" - * - "ACTION_DELETE" - * - "ACTION_DISABLE" - * - "ACTION_EMAIL_TAGS" - * - "ACTION_ENABLE" - * - "ACTION_LINK" - * - "ACTION_MARK_AS_DEFAULT" - * - "ACTION_PUSH" - * - "ACTION_REMOVE" - * - "ACTION_SEND" - * - "ACTION_SHARE" - * - "ACTION_UNASSIGN" - * - "ACTION_UNLINK" - * - "ACTION_UPDATE" - * - * [ids] - Select only change logs with these IDs. - * - * [maxChangeTime] - Select only change logs whose change time is before the - * specified maxChangeTime.The time should be formatted as an RFC3339 - * date/time string. For example, for 10:54 PM on July 18th, 2015, in the - * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In - * other words, the year, month, day, the letter T, the hour (24-hour clock - * system), minute, second, and then the time zone offset. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [minChangeTime] - Select only change logs whose change time is before the - * specified minChangeTime.The time should be formatted as an RFC3339 - * date/time string. For example, for 10:54 PM on July 18th, 2015, in the - * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In - * other words, the year, month, day, the letter T, the hour (24-hour clock - * system), minute, second, and then the time zone offset. - * - * [objectIds] - Select only change logs with these object IDs. - * - * [objectType] - Select only change logs with the specified object type. - * Possible string values are: - * - "OBJECT_ACCOUNT" - * - "OBJECT_ACCOUNT_BILLING_FEATURE" - * - "OBJECT_AD" - * - "OBJECT_ADVERTISER" - * - "OBJECT_ADVERTISER_GROUP" - * - "OBJECT_BILLING_ACCOUNT_GROUP" - * - "OBJECT_BILLING_FEATURE" - * - "OBJECT_BILLING_MINIMUM_FEE" - * - "OBJECT_BILLING_PROFILE" - * - "OBJECT_CAMPAIGN" - * - "OBJECT_CONTENT_CATEGORY" - * - "OBJECT_CREATIVE" - * - "OBJECT_CREATIVE_ASSET" - * - "OBJECT_CREATIVE_BUNDLE" - * - "OBJECT_CREATIVE_FIELD" - * - "OBJECT_CREATIVE_GROUP" - * - "OBJECT_DFA_SITE" - * - "OBJECT_EVENT_TAG" - * - "OBJECT_FLOODLIGHT_ACTIVITY_GROUP" - * - "OBJECT_FLOODLIGHT_ACTVITY" - * - "OBJECT_FLOODLIGHT_CONFIGURATION" - * - "OBJECT_INSTREAM_CREATIVE" - * - "OBJECT_LANDING_PAGE" - * - "OBJECT_MEDIA_ORDER" - * - "OBJECT_PLACEMENT" - * - "OBJECT_PLACEMENT_STRATEGY" - * - "OBJECT_PLAYSTORE_LINK" - * - "OBJECT_PROVIDED_LIST_CLIENT" - * - "OBJECT_RATE_CARD" - * - "OBJECT_REMARKETING_LIST" - * - "OBJECT_RICHMEDIA_CREATIVE" - * - "OBJECT_SD_SITE" - * - "OBJECT_SEARCH_LIFT_STUDY" - * - "OBJECT_SIZE" - * - "OBJECT_SUBACCOUNT" - * - "OBJECT_TARGETING_TEMPLATE" - * - "OBJECT_USER_PROFILE" - * - "OBJECT_USER_PROFILE_FILTER" - * - "OBJECT_USER_ROLE" - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Select only change logs whose object ID, user name, old or - * new values match the search string. - * - * [userProfileIds] - Select only change logs with these user profile IDs. - * - * Completes with a [ChangeLogsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ChangeLogsListResponse> list(core.String profileId, {core.String action, core.List<core.String> ids, core.String maxChangeTime, core.int maxResults, core.String minChangeTime, core.List<core.String> objectIds, core.String objectType, core.String pageToken, core.String searchString, core.List<core.String> userProfileIds}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (action != null) { - _queryParams["action"] = [action]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxChangeTime != null) { - _queryParams["maxChangeTime"] = [maxChangeTime]; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (minChangeTime != null) { - _queryParams["minChangeTime"] = [minChangeTime]; - } - if (objectIds != null) { - _queryParams["objectIds"] = objectIds; - } - if (objectType != null) { - _queryParams["objectType"] = [objectType]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (userProfileIds != null) { - _queryParams["userProfileIds"] = userProfileIds; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/changeLogs'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ChangeLogsListResponse.fromJson(data)); - } - -} - - -class CitiesResourceApi { - final commons.ApiRequester _requester; - - CitiesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves a list of cities, possibly filtered. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [countryDartIds] - Select only cities from these countries. - * - * [dartIds] - Select only cities with these DART IDs. - * - * [namePrefix] - Select only cities with names starting with this prefix. - * - * [regionDartIds] - Select only cities from these regions. - * - * Completes with a [CitiesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CitiesListResponse> list(core.String profileId, {core.List<core.String> countryDartIds, core.List<core.String> dartIds, core.String namePrefix, core.List<core.String> regionDartIds}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (countryDartIds != null) { - _queryParams["countryDartIds"] = countryDartIds; - } - if (dartIds != null) { - _queryParams["dartIds"] = dartIds; - } - if (namePrefix != null) { - _queryParams["namePrefix"] = [namePrefix]; - } - if (regionDartIds != null) { - _queryParams["regionDartIds"] = regionDartIds; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cities'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CitiesListResponse.fromJson(data)); - } - -} - - -class ConnectionTypesResourceApi { - final commons.ApiRequester _requester; - - ConnectionTypesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one connection type by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Connection type ID. - * - * Completes with a [ConnectionType]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ConnectionType> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/connectionTypes/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ConnectionType.fromJson(data)); - } - - /** - * Retrieves a list of connection types. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [ConnectionTypesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ConnectionTypesListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/connectionTypes'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ConnectionTypesListResponse.fromJson(data)); - } - -} - - -class ContentCategoriesResourceApi { - final commons.ApiRequester _requester; - - ContentCategoriesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing content category. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Content category ID. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future delete(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/contentCategories/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one content category by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Content category ID. - * - * Completes with a [ContentCategory]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ContentCategory> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/contentCategories/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ContentCategory.fromJson(data)); - } - - /** - * Inserts a new content category. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [ContentCategory]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ContentCategory> insert(ContentCategory request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/contentCategories'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ContentCategory.fromJson(data)); - } - - /** - * Retrieves a list of content categories, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [ids] - Select only content categories with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "contentcategory*2015" will return objects with - * names like "contentcategory June 2015", "contentcategory April 2015", or - * simply "contentcategory 2015". Most of the searches also add wildcards - * implicitly at the start and the end of the search string. For example, a - * search string of "contentcategory" will match objects with name "my - * contentcategory", "contentcategory 2015", or simply "contentcategory". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [ContentCategoriesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ContentCategoriesListResponse> list(core.String profileId, {core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/contentCategories'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ContentCategoriesListResponse.fromJson(data)); - } - - /** - * Updates an existing content category. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Content category ID. - * - * Completes with a [ContentCategory]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ContentCategory> patch(ContentCategory request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/contentCategories'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ContentCategory.fromJson(data)); - } - - /** - * Updates an existing content category. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [ContentCategory]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ContentCategory> update(ContentCategory request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/contentCategories'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ContentCategory.fromJson(data)); - } - -} - - -class ConversionsResourceApi { - final commons.ApiRequester _requester; - - ConversionsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Inserts conversions. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [ConversionsBatchInsertResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ConversionsBatchInsertResponse> batchinsert(ConversionsBatchInsertRequest request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/conversions/batchinsert'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ConversionsBatchInsertResponse.fromJson(data)); - } - -} - - -class CountriesResourceApi { - final commons.ApiRequester _requester; - - CountriesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one country by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [dartId] - Country DART ID. - * - * Completes with a [Country]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Country> get(core.String profileId, core.String dartId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (dartId == null) { - throw new core.ArgumentError("Parameter dartId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/countries/' + commons.Escaper.ecapeVariable('$dartId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Country.fromJson(data)); - } - - /** - * Retrieves a list of countries. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [CountriesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CountriesListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/countries'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CountriesListResponse.fromJson(data)); - } - -} - - -class CreativeAssetsResourceApi { - final commons.ApiRequester _requester; - - CreativeAssetsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Inserts a new creative asset. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserId] - Advertiser ID of this creative. This is a required field. - * - * [uploadMedia] - The media to upload. - * - * [uploadOptions] - Options for the media upload. Streaming Media without the - * length being known ahead of time is only supported via resumable uploads. - * - * Completes with a [CreativeAssetMetadata]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeAssetMetadata> insert(CreativeAssetMetadata request, core.String profileId, core.String advertiserId, {commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserId == null) { - throw new core.ArgumentError("Parameter advertiserId is required."); - } - - _uploadMedia = uploadMedia; - _uploadOptions = uploadOptions; - - if (_uploadMedia == null) { - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAssets'; - } else if (_uploadOptions is commons.ResumableUploadOptions) { - _url = '/resumable/upload/dfareporting/v2.6/userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAssets'; - } else { - _url = '/upload/dfareporting/v2.6/userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAssets'; - } - - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeAssetMetadata.fromJson(data)); - } - -} - - -class CreativeFieldValuesResourceApi { - final commons.ApiRequester _requester; - - CreativeFieldValuesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing creative field value. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [creativeFieldId] - Creative field ID for this creative field value. - * - * [id] - Creative Field Value ID - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future delete(core.String profileId, core.String creativeFieldId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (creativeFieldId == null) { - throw new core.ArgumentError("Parameter creativeFieldId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFieldValues/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one creative field value by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [creativeFieldId] - Creative field ID for this creative field value. - * - * [id] - Creative Field Value ID - * - * Completes with a [CreativeFieldValue]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeFieldValue> get(core.String profileId, core.String creativeFieldId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (creativeFieldId == null) { - throw new core.ArgumentError("Parameter creativeFieldId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFieldValues/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeFieldValue.fromJson(data)); - } - - /** - * Inserts a new creative field value. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [creativeFieldId] - Creative field ID for this creative field value. - * - * Completes with a [CreativeFieldValue]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeFieldValue> insert(CreativeFieldValue request, core.String profileId, core.String creativeFieldId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (creativeFieldId == null) { - throw new core.ArgumentError("Parameter creativeFieldId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFieldValues'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeFieldValue.fromJson(data)); - } - - /** - * Retrieves a list of creative field values, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [creativeFieldId] - Creative field ID for this creative field value. - * - * [ids] - Select only creative field values with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for creative field values by their - * values. Wildcards (e.g. *) are not allowed. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "VALUE" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [CreativeFieldValuesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeFieldValuesListResponse> list(core.String profileId, core.String creativeFieldId, {core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (creativeFieldId == null) { - throw new core.ArgumentError("Parameter creativeFieldId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFieldValues'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeFieldValuesListResponse.fromJson(data)); - } - - /** - * Updates an existing creative field value. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [creativeFieldId] - Creative field ID for this creative field value. - * - * [id] - Creative Field Value ID - * - * Completes with a [CreativeFieldValue]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeFieldValue> patch(CreativeFieldValue request, core.String profileId, core.String creativeFieldId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (creativeFieldId == null) { - throw new core.ArgumentError("Parameter creativeFieldId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFieldValues'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeFieldValue.fromJson(data)); - } - - /** - * Updates an existing creative field value. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [creativeFieldId] - Creative field ID for this creative field value. - * - * Completes with a [CreativeFieldValue]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeFieldValue> update(CreativeFieldValue request, core.String profileId, core.String creativeFieldId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (creativeFieldId == null) { - throw new core.ArgumentError("Parameter creativeFieldId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFieldValues'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeFieldValue.fromJson(data)); - } - -} - - -class CreativeFieldsResourceApi { - final commons.ApiRequester _requester; - - CreativeFieldsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing creative field. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Creative Field ID - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future delete(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one creative field by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Creative Field ID - * - * Completes with a [CreativeField]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeField> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeField.fromJson(data)); - } - - /** - * Inserts a new creative field. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [CreativeField]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeField> insert(CreativeField request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeField.fromJson(data)); - } - - /** - * Retrieves a list of creative fields, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserIds] - Select only creative fields that belong to these - * advertisers. - * - * [ids] - Select only creative fields with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for creative fields by name or ID. - * Wildcards (*) are allowed. For example, "creativefield*2015" will return - * creative fields with names like "creativefield June 2015", "creativefield - * April 2015", or simply "creativefield 2015". Most of the searches also add - * wild-cards implicitly at the start and the end of the search string. For - * example, a search string of "creativefield" will match creative fields with - * the name "my creativefield", "creativefield 2015", or simply - * "creativefield". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [CreativeFieldsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeFieldsListResponse> list(core.String profileId, {core.List<core.String> advertiserIds, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserIds != null) { - _queryParams["advertiserIds"] = advertiserIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeFieldsListResponse.fromJson(data)); - } - - /** - * Updates an existing creative field. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Creative Field ID - * - * Completes with a [CreativeField]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeField> patch(CreativeField request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeField.fromJson(data)); - } - - /** - * Updates an existing creative field. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [CreativeField]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeField> update(CreativeField request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeField.fromJson(data)); - } - -} - - -class CreativeGroupsResourceApi { - final commons.ApiRequester _requester; - - CreativeGroupsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one creative group by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Creative group ID. - * - * Completes with a [CreativeGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeGroup> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeGroups/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeGroup.fromJson(data)); - } - - /** - * Inserts a new creative group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [CreativeGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeGroup> insert(CreativeGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeGroups'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeGroup.fromJson(data)); - } - - /** - * Retrieves a list of creative groups, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserIds] - Select only creative groups that belong to these - * advertisers. - * - * [groupNumber] - Select only creative groups that belong to this subgroup. - * Value must be between "1" and "2". - * - * [ids] - Select only creative groups with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for creative groups by name or ID. - * Wildcards (*) are allowed. For example, "creativegroup*2015" will return - * creative groups with names like "creativegroup June 2015", "creativegroup - * April 2015", or simply "creativegroup 2015". Most of the searches also add - * wild-cards implicitly at the start and the end of the search string. For - * example, a search string of "creativegroup" will match creative groups with - * the name "my creativegroup", "creativegroup 2015", or simply - * "creativegroup". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [CreativeGroupsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeGroupsListResponse> list(core.String profileId, {core.List<core.String> advertiserIds, core.int groupNumber, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserIds != null) { - _queryParams["advertiserIds"] = advertiserIds; - } - if (groupNumber != null) { - _queryParams["groupNumber"] = ["${groupNumber}"]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeGroups'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeGroupsListResponse.fromJson(data)); - } - - /** - * Updates an existing creative group. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Creative group ID. - * - * Completes with a [CreativeGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeGroup> patch(CreativeGroup request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeGroups'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeGroup.fromJson(data)); - } - - /** - * Updates an existing creative group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [CreativeGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeGroup> update(CreativeGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeGroups'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeGroup.fromJson(data)); - } - -} - - -class CreativesResourceApi { - final commons.ApiRequester _requester; - - CreativesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one creative by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Creative ID. - * - * Completes with a [Creative]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Creative> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creatives/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Creative.fromJson(data)); - } - - /** - * Inserts a new creative. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Creative]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Creative> insert(Creative request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creatives'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Creative.fromJson(data)); - } - - /** - * Retrieves a list of creatives, possibly filtered. This method supports - * paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [active] - Select only active creatives. Leave blank to select active and - * inactive creatives. - * - * [advertiserId] - Select only creatives with this advertiser ID. - * - * [archived] - Select only archived creatives. Leave blank to select archived - * and unarchived creatives. - * - * [campaignId] - Select only creatives with this campaign ID. - * - * [companionCreativeIds] - Select only in-stream video creatives with these - * companion IDs. - * - * [creativeFieldIds] - Select only creatives with these creative field IDs. - * - * [ids] - Select only creatives with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [renderingIds] - Select only creatives with these rendering IDs. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "creative*2015" will return objects with names - * like "creative June 2015", "creative April 2015", or simply "creative - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "creative" - * will match objects with name "my creative", "creative 2015", or simply - * "creative". - * - * [sizeIds] - Select only creatives with these size IDs. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [studioCreativeId] - Select only creatives corresponding to this Studio - * creative ID. - * - * [types] - Select only creatives with these creative types. - * - * Completes with a [CreativesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativesListResponse> list(core.String profileId, {core.bool active, core.String advertiserId, core.bool archived, core.String campaignId, core.List<core.String> companionCreativeIds, core.List<core.String> creativeFieldIds, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.List<core.String> renderingIds, core.String searchString, core.List<core.String> sizeIds, core.String sortField, core.String sortOrder, core.String studioCreativeId, core.List<core.String> types}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (active != null) { - _queryParams["active"] = ["${active}"]; - } - if (advertiserId != null) { - _queryParams["advertiserId"] = [advertiserId]; - } - if (archived != null) { - _queryParams["archived"] = ["${archived}"]; - } - if (campaignId != null) { - _queryParams["campaignId"] = [campaignId]; - } - if (companionCreativeIds != null) { - _queryParams["companionCreativeIds"] = companionCreativeIds; - } - if (creativeFieldIds != null) { - _queryParams["creativeFieldIds"] = creativeFieldIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (renderingIds != null) { - _queryParams["renderingIds"] = renderingIds; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sizeIds != null) { - _queryParams["sizeIds"] = sizeIds; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (studioCreativeId != null) { - _queryParams["studioCreativeId"] = [studioCreativeId]; - } - if (types != null) { - _queryParams["types"] = types; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creatives'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativesListResponse.fromJson(data)); - } - - /** - * Updates an existing creative. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Creative ID. - * - * Completes with a [Creative]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Creative> patch(Creative request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creatives'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Creative.fromJson(data)); - } - - /** - * Updates an existing creative. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Creative]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Creative> update(Creative request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creatives'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Creative.fromJson(data)); - } - -} - - -class DimensionValuesResourceApi { - final commons.ApiRequester _requester; - - DimensionValuesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves list of report dimension values for a list of filters. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "100". - * - * [pageToken] - The value of the nextToken from the previous result page. - * - * Completes with a [DimensionValueList]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<DimensionValueList> query(DimensionValueRequest request, core.String profileId, {core.int maxResults, core.String pageToken}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/dimensionvalues/query'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new DimensionValueList.fromJson(data)); - } - -} - - -class DirectorySiteContactsResourceApi { - final commons.ApiRequester _requester; - - DirectorySiteContactsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one directory site contact by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Directory site contact ID. - * - * Completes with a [DirectorySiteContact]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<DirectorySiteContact> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/directorySiteContacts/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new DirectorySiteContact.fromJson(data)); - } - - /** - * Retrieves a list of directory site contacts, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [directorySiteIds] - Select only directory site contacts with these - * directory site IDs. This is a required field. - * - * [ids] - Select only directory site contacts with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name, ID or email. - * Wildcards (*) are allowed. For example, "directory site contact*2015" will - * return objects with names like "directory site contact June 2015", - * "directory site contact April 2015", or simply "directory site contact - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "directory - * site contact" will match objects with name "my directory site contact", - * "directory site contact 2015", or simply "directory site contact". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [DirectorySiteContactsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<DirectorySiteContactsListResponse> list(core.String profileId, {core.List<core.String> directorySiteIds, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (directorySiteIds != null) { - _queryParams["directorySiteIds"] = directorySiteIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/directorySiteContacts'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new DirectorySiteContactsListResponse.fromJson(data)); - } - -} - - -class DirectorySitesResourceApi { - final commons.ApiRequester _requester; - - DirectorySitesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one directory site by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Directory site ID. - * - * Completes with a [DirectorySite]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<DirectorySite> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/directorySites/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new DirectorySite.fromJson(data)); - } - - /** - * Inserts a new directory site. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [DirectorySite]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<DirectorySite> insert(DirectorySite request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/directorySites'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new DirectorySite.fromJson(data)); - } - - /** - * Retrieves a list of directory sites, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [acceptsInStreamVideoPlacements] - This search filter is no longer - * supported and will have no effect on the results returned. - * - * [acceptsInterstitialPlacements] - This search filter is no longer supported - * and will have no effect on the results returned. - * - * [acceptsPublisherPaidPlacements] - Select only directory sites that accept - * publisher paid placements. This field can be left blank. - * - * [active] - Select only active directory sites. Leave blank to retrieve both - * active and inactive directory sites. - * - * [countryId] - Select only directory sites with this country ID. - * - * [dfpNetworkCode] - Select only directory sites with this DFP network code. - * - * [ids] - Select only directory sites with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [parentId] - Select only directory sites with this parent ID. - * - * [searchString] - Allows searching for objects by name, ID or URL. Wildcards - * (*) are allowed. For example, "directory site*2015" will return objects - * with names like "directory site June 2015", "directory site April 2015", or - * simply "directory site 2015". Most of the searches also add wildcards - * implicitly at the start and the end of the search string. For example, a - * search string of "directory site" will match objects with name "my - * directory site", "directory site 2015" or simply, "directory site". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [DirectorySitesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<DirectorySitesListResponse> list(core.String profileId, {core.bool acceptsInStreamVideoPlacements, core.bool acceptsInterstitialPlacements, core.bool acceptsPublisherPaidPlacements, core.bool active, core.String countryId, core.String dfpNetworkCode, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String parentId, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (acceptsInStreamVideoPlacements != null) { - _queryParams["acceptsInStreamVideoPlacements"] = ["${acceptsInStreamVideoPlacements}"]; - } - if (acceptsInterstitialPlacements != null) { - _queryParams["acceptsInterstitialPlacements"] = ["${acceptsInterstitialPlacements}"]; - } - if (acceptsPublisherPaidPlacements != null) { - _queryParams["acceptsPublisherPaidPlacements"] = ["${acceptsPublisherPaidPlacements}"]; - } - if (active != null) { - _queryParams["active"] = ["${active}"]; - } - if (countryId != null) { - _queryParams["countryId"] = [countryId]; - } - if (dfpNetworkCode != null) { - _queryParams["dfp_network_code"] = [dfpNetworkCode]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (parentId != null) { - _queryParams["parentId"] = [parentId]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/directorySites'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new DirectorySitesListResponse.fromJson(data)); - } - -} - - -class DynamicTargetingKeysResourceApi { - final commons.ApiRequester _requester; - - DynamicTargetingKeysResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing dynamic targeting key. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [objectId] - ID of the object of this dynamic targeting key. This is a - * required field. - * - * [name] - Name of this dynamic targeting key. This is a required field. Must - * be less than 256 characters long and cannot contain commas. All characters - * are converted to lowercase. - * - * [objectType] - Type of the object of this dynamic targeting key. This is a - * required field. - * Possible string values are: - * - "OBJECT_AD" - * - "OBJECT_ADVERTISER" - * - "OBJECT_CREATIVE" - * - "OBJECT_PLACEMENT" - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future delete(core.String profileId, core.String objectId, core.String name, core.String objectType) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (objectId == null) { - throw new core.ArgumentError("Parameter objectId is required."); - } - if (name == null) { - throw new core.ArgumentError("Parameter name is required."); - } - _queryParams["name"] = [name]; - if (objectType == null) { - throw new core.ArgumentError("Parameter objectType is required."); - } - _queryParams["objectType"] = [objectType]; - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/dynamicTargetingKeys/' + commons.Escaper.ecapeVariable('$objectId'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Inserts a new dynamic targeting key. Keys must be created at the advertiser - * level before being assigned to the advertiser's ads, creatives, or - * placements. There is a maximum of 1000 keys per advertiser, out of which a - * maximum of 20 keys can be assigned per ad, creative, or placement. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [DynamicTargetingKey]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<DynamicTargetingKey> insert(DynamicTargetingKey request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/dynamicTargetingKeys'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new DynamicTargetingKey.fromJson(data)); - } - - /** - * Retrieves a list of dynamic targeting keys. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserId] - Select only dynamic targeting keys whose object has this - * advertiser ID. - * - * [names] - Select only dynamic targeting keys exactly matching these names. - * - * [objectId] - Select only dynamic targeting keys with this object ID. - * - * [objectType] - Select only dynamic targeting keys with this object type. - * Possible string values are: - * - "OBJECT_AD" - * - "OBJECT_ADVERTISER" - * - "OBJECT_CREATIVE" - * - "OBJECT_PLACEMENT" - * - * Completes with a [DynamicTargetingKeysListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<DynamicTargetingKeysListResponse> list(core.String profileId, {core.String advertiserId, core.List<core.String> names, core.String objectId, core.String objectType}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserId != null) { - _queryParams["advertiserId"] = [advertiserId]; - } - if (names != null) { - _queryParams["names"] = names; - } - if (objectId != null) { - _queryParams["objectId"] = [objectId]; - } - if (objectType != null) { - _queryParams["objectType"] = [objectType]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/dynamicTargetingKeys'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new DynamicTargetingKeysListResponse.fromJson(data)); - } - -} - - -class EventTagsResourceApi { - final commons.ApiRequester _requester; - - EventTagsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing event tag. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Event tag ID. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future delete(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eventTags/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one event tag by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Event tag ID. - * - * Completes with a [EventTag]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<EventTag> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eventTags/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new EventTag.fromJson(data)); - } - - /** - * Inserts a new event tag. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [EventTag]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<EventTag> insert(EventTag request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eventTags'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new EventTag.fromJson(data)); - } - - /** - * Retrieves a list of event tags, possibly filtered. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [adId] - Select only event tags that belong to this ad. - * - * [advertiserId] - Select only event tags that belong to this advertiser. - * - * [campaignId] - Select only event tags that belong to this campaign. - * - * [definitionsOnly] - Examine only the specified campaign or advertiser's - * event tags for matching selector criteria. When set to false, the parent - * advertiser and parent campaign of the specified ad or campaign is examined - * as well. In addition, when set to false, the status field is examined as - * well, along with the enabledByDefault field. This parameter can not be set - * to true when adId is specified as ads do not define their own even tags. - * - * [enabled] - Select only enabled event tags. What is considered enabled or - * disabled depends on the definitionsOnly parameter. When definitionsOnly is - * set to true, only the specified advertiser or campaign's event tags' - * enabledByDefault field is examined. When definitionsOnly is set to false, - * the specified ad or specified campaign's parent advertiser's or parent - * campaign's event tags' enabledByDefault and status fields are examined as - * well. - * - * [eventTagTypes] - Select only event tags with the specified event tag - * types. Event tag types can be used to specify whether to use a third-party - * pixel, a third-party JavaScript URL, or a third-party click-through URL for - * either impression or click tracking. - * - * [ids] - Select only event tags with these IDs. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "eventtag*2015" will return objects with names - * like "eventtag June 2015", "eventtag April 2015", or simply "eventtag - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "eventtag" - * will match objects with name "my eventtag", "eventtag 2015", or simply - * "eventtag". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [EventTagsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<EventTagsListResponse> list(core.String profileId, {core.String adId, core.String advertiserId, core.String campaignId, core.bool definitionsOnly, core.bool enabled, core.List<core.String> eventTagTypes, core.List<core.String> ids, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (adId != null) { - _queryParams["adId"] = [adId]; - } - if (advertiserId != null) { - _queryParams["advertiserId"] = [advertiserId]; - } - if (campaignId != null) { - _queryParams["campaignId"] = [campaignId]; - } - if (definitionsOnly != null) { - _queryParams["definitionsOnly"] = ["${definitionsOnly}"]; - } - if (enabled != null) { - _queryParams["enabled"] = ["${enabled}"]; - } - if (eventTagTypes != null) { - _queryParams["eventTagTypes"] = eventTagTypes; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eventTags'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new EventTagsListResponse.fromJson(data)); - } - - /** - * Updates an existing event tag. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Event tag ID. - * - * Completes with a [EventTag]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<EventTag> patch(EventTag request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eventTags'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new EventTag.fromJson(data)); - } - - /** - * Updates an existing event tag. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [EventTag]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<EventTag> update(EventTag request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eventTags'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new EventTag.fromJson(data)); - } - -} - - -class FilesResourceApi { - final commons.ApiRequester _requester; - - FilesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves a report file by its report ID and file ID. - * - * Request parameters: - * - * [reportId] - The ID of the report. - * - * [fileId] - The ID of the report file. - * - * [downloadOptions] - Options for downloading. A download can be either a - * Metadata (default) or Media download. Partial Media downloads are possible - * as well. - * - * Completes with a - * - * - [File] for Metadata downloads (see [downloadOptions]). - * - * - [commons.Media] for Media downloads (see [downloadOptions]). - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future get(core.String reportId, core.String fileId, {commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - if (fileId == null) { - throw new core.ArgumentError("Parameter fileId is required."); - } - - _downloadOptions = downloadOptions; - - _url = 'reports/' + commons.Escaper.ecapeVariable('$reportId') + '/files/' + commons.Escaper.ecapeVariable('$fileId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - if (_downloadOptions == null || - _downloadOptions == commons.DownloadOptions.Metadata) { - return _response.then((data) => new File.fromJson(data)); - } else { - return _response; - } - } - - /** - * Lists files for a user profile. - * - * Request parameters: - * - * [profileId] - The DFA profile ID. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "10". - * - * [pageToken] - The value of the nextToken from the previous result page. - * - * [scope] - The scope that defines which results are returned, default is - * 'MINE'. - * Possible string values are: - * - "ALL" : All files in account. - * - "MINE" : My files. - * - "SHARED_WITH_ME" : Files shared with me. - * - * [sortField] - The field by which to sort the list. - * Possible string values are: - * - "ID" : Sort by file ID. - * - "LAST_MODIFIED_TIME" : Sort by 'lastmodifiedAt' field. - * - * [sortOrder] - Order of sorted results, default is 'DESCENDING'. - * Possible string values are: - * - "ASCENDING" : Ascending order. - * - "DESCENDING" : Descending order. - * - * Completes with a [FileList]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FileList> list(core.String profileId, {core.int maxResults, core.String pageToken, core.String scope, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (scope != null) { - _queryParams["scope"] = [scope]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/files'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FileList.fromJson(data)); - } - -} - - -class FloodlightActivitiesResourceApi { - final commons.ApiRequester _requester; - - FloodlightActivitiesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing floodlight activity. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Floodlight activity ID. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future delete(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivities/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Generates a tag for a floodlight activity. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [floodlightActivityId] - Floodlight activity ID for which we want to - * generate a tag. - * - * Completes with a [FloodlightActivitiesGenerateTagResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightActivitiesGenerateTagResponse> generatetag(core.String profileId, {core.String floodlightActivityId}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (floodlightActivityId != null) { - _queryParams["floodlightActivityId"] = [floodlightActivityId]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivities/generatetag'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivitiesGenerateTagResponse.fromJson(data)); - } - - /** - * Gets one floodlight activity by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Floodlight activity ID. - * - * Completes with a [FloodlightActivity]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightActivity> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivities/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivity.fromJson(data)); - } - - /** - * Inserts a new floodlight activity. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [FloodlightActivity]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightActivity> insert(FloodlightActivity request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivities'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivity.fromJson(data)); - } - - /** - * Retrieves a list of floodlight activities, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserId] - Select only floodlight activities for the specified - * advertiser ID. Must specify either ids, advertiserId, or - * floodlightConfigurationId for a non-empty result. - * - * [floodlightActivityGroupIds] - Select only floodlight activities with the - * specified floodlight activity group IDs. - * - * [floodlightActivityGroupName] - Select only floodlight activities with the - * specified floodlight activity group name. - * - * [floodlightActivityGroupTagString] - Select only floodlight activities with - * the specified floodlight activity group tag string. - * - * [floodlightActivityGroupType] - Select only floodlight activities with the - * specified floodlight activity group type. - * Possible string values are: - * - "COUNTER" - * - "SALE" - * - * [floodlightConfigurationId] - Select only floodlight activities for the - * specified floodlight configuration ID. Must specify either ids, - * advertiserId, or floodlightConfigurationId for a non-empty result. - * - * [ids] - Select only floodlight activities with the specified IDs. Must - * specify either ids, advertiserId, or floodlightConfigurationId for a - * non-empty result. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "floodlightactivity*2015" will return objects - * with names like "floodlightactivity June 2015", "floodlightactivity April - * 2015", or simply "floodlightactivity 2015". Most of the searches also add - * wildcards implicitly at the start and the end of the search string. For - * example, a search string of "floodlightactivity" will match objects with - * name "my floodlightactivity activity", "floodlightactivity 2015", or simply - * "floodlightactivity". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [tagString] - Select only floodlight activities with the specified tag - * string. - * - * Completes with a [FloodlightActivitiesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightActivitiesListResponse> list(core.String profileId, {core.String advertiserId, core.List<core.String> floodlightActivityGroupIds, core.String floodlightActivityGroupName, core.String floodlightActivityGroupTagString, core.String floodlightActivityGroupType, core.String floodlightConfigurationId, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder, core.String tagString}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserId != null) { - _queryParams["advertiserId"] = [advertiserId]; - } - if (floodlightActivityGroupIds != null) { - _queryParams["floodlightActivityGroupIds"] = floodlightActivityGroupIds; - } - if (floodlightActivityGroupName != null) { - _queryParams["floodlightActivityGroupName"] = [floodlightActivityGroupName]; - } - if (floodlightActivityGroupTagString != null) { - _queryParams["floodlightActivityGroupTagString"] = [floodlightActivityGroupTagString]; - } - if (floodlightActivityGroupType != null) { - _queryParams["floodlightActivityGroupType"] = [floodlightActivityGroupType]; - } - if (floodlightConfigurationId != null) { - _queryParams["floodlightConfigurationId"] = [floodlightConfigurationId]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (tagString != null) { - _queryParams["tagString"] = [tagString]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivities'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivitiesListResponse.fromJson(data)); - } - - /** - * Updates an existing floodlight activity. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Floodlight activity ID. - * - * Completes with a [FloodlightActivity]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightActivity> patch(FloodlightActivity request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivities'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivity.fromJson(data)); - } - - /** - * Updates an existing floodlight activity. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [FloodlightActivity]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightActivity> update(FloodlightActivity request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivities'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivity.fromJson(data)); - } - -} - - -class FloodlightActivityGroupsResourceApi { - final commons.ApiRequester _requester; - - FloodlightActivityGroupsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one floodlight activity group by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Floodlight activity Group ID. - * - * Completes with a [FloodlightActivityGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightActivityGroup> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivityGroups/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivityGroup.fromJson(data)); - } - - /** - * Inserts a new floodlight activity group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [FloodlightActivityGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightActivityGroup> insert(FloodlightActivityGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivityGroups'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivityGroup.fromJson(data)); - } - - /** - * Retrieves a list of floodlight activity groups, possibly filtered. This - * method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserId] - Select only floodlight activity groups with the specified - * advertiser ID. Must specify either advertiserId or - * floodlightConfigurationId for a non-empty result. - * - * [floodlightConfigurationId] - Select only floodlight activity groups with - * the specified floodlight configuration ID. Must specify either - * advertiserId, or floodlightConfigurationId for a non-empty result. - * - * [ids] - Select only floodlight activity groups with the specified IDs. Must - * specify either advertiserId or floodlightConfigurationId for a non-empty - * result. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "floodlightactivitygroup*2015" will return - * objects with names like "floodlightactivitygroup June 2015", - * "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of - * "floodlightactivitygroup" will match objects with name "my - * floodlightactivitygroup activity", "floodlightactivitygroup 2015", or - * simply "floodlightactivitygroup". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [type] - Select only floodlight activity groups with the specified - * floodlight activity group type. - * Possible string values are: - * - "COUNTER" - * - "SALE" - * - * Completes with a [FloodlightActivityGroupsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightActivityGroupsListResponse> list(core.String profileId, {core.String advertiserId, core.String floodlightConfigurationId, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder, core.String type}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserId != null) { - _queryParams["advertiserId"] = [advertiserId]; - } - if (floodlightConfigurationId != null) { - _queryParams["floodlightConfigurationId"] = [floodlightConfigurationId]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (type != null) { - _queryParams["type"] = [type]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivityGroups'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivityGroupsListResponse.fromJson(data)); - } - - /** - * Updates an existing floodlight activity group. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Floodlight activity Group ID. - * - * Completes with a [FloodlightActivityGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightActivityGroup> patch(FloodlightActivityGroup request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivityGroups'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivityGroup.fromJson(data)); - } - - /** - * Updates an existing floodlight activity group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [FloodlightActivityGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightActivityGroup> update(FloodlightActivityGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivityGroups'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivityGroup.fromJson(data)); - } - -} - - -class FloodlightConfigurationsResourceApi { - final commons.ApiRequester _requester; - - FloodlightConfigurationsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one floodlight configuration by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Floodlight configuration ID. - * - * Completes with a [FloodlightConfiguration]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightConfiguration> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightConfigurations/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightConfiguration.fromJson(data)); - } - - /** - * Retrieves a list of floodlight configurations, possibly filtered. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [ids] - Set of IDs of floodlight configurations to retrieve. Required - * field; otherwise an empty list will be returned. - * - * Completes with a [FloodlightConfigurationsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightConfigurationsListResponse> list(core.String profileId, {core.List<core.String> ids}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightConfigurations'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightConfigurationsListResponse.fromJson(data)); - } - - /** - * Updates an existing floodlight configuration. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Floodlight configuration ID. - * - * Completes with a [FloodlightConfiguration]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightConfiguration> patch(FloodlightConfiguration request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightConfigurations'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightConfiguration.fromJson(data)); - } - - /** - * Updates an existing floodlight configuration. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [FloodlightConfiguration]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightConfiguration> update(FloodlightConfiguration request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightConfigurations'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightConfiguration.fromJson(data)); - } - -} - - -class InventoryItemsResourceApi { - final commons.ApiRequester _requester; - - InventoryItemsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one inventory item by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [projectId] - Project ID for order documents. - * - * [id] - Inventory item ID. - * - * Completes with a [InventoryItem]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<InventoryItem> get(core.String profileId, core.String projectId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/inventoryItems/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new InventoryItem.fromJson(data)); - } - - /** - * Retrieves a list of inventory items, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [projectId] - Project ID for order documents. - * - * [ids] - Select only inventory items with these IDs. - * - * [inPlan] - Select only inventory items that are in plan. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [orderId] - Select only inventory items that belong to specified orders. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [siteId] - Select only inventory items that are associated with these - * sites. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [type] - Select only inventory items with this type. - * Possible string values are: - * - "PLANNING_PLACEMENT_TYPE_CREDIT" - * - "PLANNING_PLACEMENT_TYPE_REGULAR" - * - * Completes with a [InventoryItemsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<InventoryItemsListResponse> list(core.String profileId, core.String projectId, {core.List<core.String> ids, core.bool inPlan, core.int maxResults, core.List<core.String> orderId, core.String pageToken, core.List<core.String> siteId, core.String sortField, core.String sortOrder, core.String type}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (inPlan != null) { - _queryParams["inPlan"] = ["${inPlan}"]; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (orderId != null) { - _queryParams["orderId"] = orderId; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (siteId != null) { - _queryParams["siteId"] = siteId; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (type != null) { - _queryParams["type"] = [type]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/inventoryItems'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new InventoryItemsListResponse.fromJson(data)); - } - -} - - -class LandingPagesResourceApi { - final commons.ApiRequester _requester; - - LandingPagesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing campaign landing page. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Landing page campaign ID. - * - * [id] - Landing page ID. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future delete(core.String profileId, core.String campaignId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one campaign landing page by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Landing page campaign ID. - * - * [id] - Landing page ID. - * - * Completes with a [LandingPage]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<LandingPage> get(core.String profileId, core.String campaignId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new LandingPage.fromJson(data)); - } - - /** - * Inserts a new landing page for the specified campaign. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Landing page campaign ID. - * - * Completes with a [LandingPage]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<LandingPage> insert(LandingPage request, core.String profileId, core.String campaignId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new LandingPage.fromJson(data)); - } - - /** - * Retrieves the list of landing pages for the specified campaign. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Landing page campaign ID. - * - * Completes with a [LandingPagesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<LandingPagesListResponse> list(core.String profileId, core.String campaignId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new LandingPagesListResponse.fromJson(data)); - } - - /** - * Updates an existing campaign landing page. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Landing page campaign ID. - * - * [id] - Landing page ID. - * - * Completes with a [LandingPage]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<LandingPage> patch(LandingPage request, core.String profileId, core.String campaignId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new LandingPage.fromJson(data)); - } - - /** - * Updates an existing campaign landing page. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Landing page campaign ID. - * - * Completes with a [LandingPage]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<LandingPage> update(LandingPage request, core.String profileId, core.String campaignId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new LandingPage.fromJson(data)); - } - -} - - -class LanguagesResourceApi { - final commons.ApiRequester _requester; - - LanguagesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves a list of languages. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [LanguagesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<LanguagesListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/languages'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new LanguagesListResponse.fromJson(data)); - } - -} - - -class MetrosResourceApi { - final commons.ApiRequester _requester; - - MetrosResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves a list of metros. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [MetrosListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<MetrosListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/metros'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new MetrosListResponse.fromJson(data)); - } - -} - - -class MobileCarriersResourceApi { - final commons.ApiRequester _requester; - - MobileCarriersResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one mobile carrier by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Mobile carrier ID. - * - * Completes with a [MobileCarrier]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<MobileCarrier> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/mobileCarriers/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new MobileCarrier.fromJson(data)); - } - - /** - * Retrieves a list of mobile carriers. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [MobileCarriersListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<MobileCarriersListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/mobileCarriers'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new MobileCarriersListResponse.fromJson(data)); - } - -} - - -class OperatingSystemVersionsResourceApi { - final commons.ApiRequester _requester; - - OperatingSystemVersionsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one operating system version by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Operating system version ID. - * - * Completes with a [OperatingSystemVersion]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<OperatingSystemVersion> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/operatingSystemVersions/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new OperatingSystemVersion.fromJson(data)); - } - - /** - * Retrieves a list of operating system versions. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [OperatingSystemVersionsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<OperatingSystemVersionsListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/operatingSystemVersions'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new OperatingSystemVersionsListResponse.fromJson(data)); - } - -} - - -class OperatingSystemsResourceApi { - final commons.ApiRequester _requester; - - OperatingSystemsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one operating system by DART ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [dartId] - Operating system DART ID. - * - * Completes with a [OperatingSystem]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<OperatingSystem> get(core.String profileId, core.String dartId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (dartId == null) { - throw new core.ArgumentError("Parameter dartId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/operatingSystems/' + commons.Escaper.ecapeVariable('$dartId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new OperatingSystem.fromJson(data)); - } - - /** - * Retrieves a list of operating systems. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [OperatingSystemsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<OperatingSystemsListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/operatingSystems'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new OperatingSystemsListResponse.fromJson(data)); - } - -} - - -class OrderDocumentsResourceApi { - final commons.ApiRequester _requester; - - OrderDocumentsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one order document by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [projectId] - Project ID for order documents. - * - * [id] - Order document ID. - * - * Completes with a [OrderDocument]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<OrderDocument> get(core.String profileId, core.String projectId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/orderDocuments/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new OrderDocument.fromJson(data)); - } - - /** - * Retrieves a list of order documents, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [projectId] - Project ID for order documents. - * - * [approved] - Select only order documents that have been approved by at - * least one user. - * - * [ids] - Select only order documents with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [orderId] - Select only order documents for specified orders. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for order documents by name or ID. - * Wildcards (*) are allowed. For example, "orderdocument*2015" will return - * order documents with names like "orderdocument June 2015", "orderdocument - * April 2015", or simply "orderdocument 2015". Most of the searches also add - * wildcards implicitly at the start and the end of the search string. For - * example, a search string of "orderdocument" will match order documents with - * name "my orderdocument", "orderdocument 2015", or simply "orderdocument". - * - * [siteId] - Select only order documents that are associated with these - * sites. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [OrderDocumentsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<OrderDocumentsListResponse> list(core.String profileId, core.String projectId, {core.bool approved, core.List<core.String> ids, core.int maxResults, core.List<core.String> orderId, core.String pageToken, core.String searchString, core.List<core.String> siteId, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (approved != null) { - _queryParams["approved"] = ["${approved}"]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (orderId != null) { - _queryParams["orderId"] = orderId; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (siteId != null) { - _queryParams["siteId"] = siteId; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/orderDocuments'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new OrderDocumentsListResponse.fromJson(data)); - } - -} - - -class OrdersResourceApi { - final commons.ApiRequester _requester; - - OrdersResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one order by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [projectId] - Project ID for orders. - * - * [id] - Order ID. - * - * Completes with a [Order]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Order> get(core.String profileId, core.String projectId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/orders/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Order.fromJson(data)); - } - - /** - * Retrieves a list of orders, possibly filtered. This method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [projectId] - Project ID for orders. - * - * [ids] - Select only orders with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for orders by name or ID. Wildcards (*) - * are allowed. For example, "order*2015" will return orders with names like - * "order June 2015", "order April 2015", or simply "order 2015". Most of the - * searches also add wildcards implicitly at the start and the end of the - * search string. For example, a search string of "order" will match orders - * with name "my order", "order 2015", or simply "order". - * - * [siteId] - Select only orders that are associated with these site IDs. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [OrdersListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<OrdersListResponse> list(core.String profileId, core.String projectId, {core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.List<core.String> siteId, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (siteId != null) { - _queryParams["siteId"] = siteId; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/orders'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new OrdersListResponse.fromJson(data)); - } - -} - - -class PlacementGroupsResourceApi { - final commons.ApiRequester _requester; - - PlacementGroupsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one placement group by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Placement group ID. - * - * Completes with a [PlacementGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementGroup> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementGroups/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementGroup.fromJson(data)); - } - - /** - * Inserts a new placement group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [PlacementGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementGroup> insert(PlacementGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementGroups'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementGroup.fromJson(data)); - } - - /** - * Retrieves a list of placement groups, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserIds] - Select only placement groups that belong to these - * advertisers. - * - * [archived] - Select only archived placements. Don't set this field to - * select both archived and non-archived placements. - * - * [campaignIds] - Select only placement groups that belong to these - * campaigns. - * - * [contentCategoryIds] - Select only placement groups that are associated - * with these content categories. - * - * [directorySiteIds] - Select only placement groups that are associated with - * these directory sites. - * - * [ids] - Select only placement groups with these IDs. - * - * [maxEndDate] - Select only placements or placement groups whose end date is - * on or before the specified maxEndDate. The date should be formatted as - * "yyyy-MM-dd". - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "800". - * - * [maxStartDate] - Select only placements or placement groups whose start - * date is on or before the specified maxStartDate. The date should be - * formatted as "yyyy-MM-dd". - * - * [minEndDate] - Select only placements or placement groups whose end date is - * on or after the specified minEndDate. The date should be formatted as - * "yyyy-MM-dd". - * - * [minStartDate] - Select only placements or placement groups whose start - * date is on or after the specified minStartDate. The date should be - * formatted as "yyyy-MM-dd". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [placementGroupType] - Select only placement groups belonging with this - * group type. A package is a simple group of placements that acts as a single - * pricing point for a group of tags. A roadblock is a group of placements - * that not only acts as a single pricing point but also assumes that all the - * tags in it will be served at the same time. A roadblock requires one of its - * assigned placements to be marked as primary for reporting. - * Possible string values are: - * - "PLACEMENT_PACKAGE" - * - "PLACEMENT_ROADBLOCK" - * - * [placementStrategyIds] - Select only placement groups that are associated - * with these placement strategies. - * - * [pricingTypes] - Select only placement groups with these pricing types. - * - * [searchString] - Allows searching for placement groups by name or ID. - * Wildcards (*) are allowed. For example, "placement*2015" will return - * placement groups with names like "placement group June 2015", "placement - * group May 2015", or simply "placements 2015". Most of the searches also add - * wildcards implicitly at the start and the end of the search string. For - * example, a search string of "placementgroup" will match placement groups - * with name "my placementgroup", "placementgroup 2015", or simply - * "placementgroup". - * - * [siteIds] - Select only placement groups that are associated with these - * sites. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [PlacementGroupsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementGroupsListResponse> list(core.String profileId, {core.List<core.String> advertiserIds, core.bool archived, core.List<core.String> campaignIds, core.List<core.String> contentCategoryIds, core.List<core.String> directorySiteIds, core.List<core.String> ids, core.String maxEndDate, core.int maxResults, core.String maxStartDate, core.String minEndDate, core.String minStartDate, core.String pageToken, core.String placementGroupType, core.List<core.String> placementStrategyIds, core.List<core.String> pricingTypes, core.String searchString, core.List<core.String> siteIds, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserIds != null) { - _queryParams["advertiserIds"] = advertiserIds; - } - if (archived != null) { - _queryParams["archived"] = ["${archived}"]; - } - if (campaignIds != null) { - _queryParams["campaignIds"] = campaignIds; - } - if (contentCategoryIds != null) { - _queryParams["contentCategoryIds"] = contentCategoryIds; - } - if (directorySiteIds != null) { - _queryParams["directorySiteIds"] = directorySiteIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxEndDate != null) { - _queryParams["maxEndDate"] = [maxEndDate]; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (maxStartDate != null) { - _queryParams["maxStartDate"] = [maxStartDate]; - } - if (minEndDate != null) { - _queryParams["minEndDate"] = [minEndDate]; - } - if (minStartDate != null) { - _queryParams["minStartDate"] = [minStartDate]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (placementGroupType != null) { - _queryParams["placementGroupType"] = [placementGroupType]; - } - if (placementStrategyIds != null) { - _queryParams["placementStrategyIds"] = placementStrategyIds; - } - if (pricingTypes != null) { - _queryParams["pricingTypes"] = pricingTypes; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (siteIds != null) { - _queryParams["siteIds"] = siteIds; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementGroups'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementGroupsListResponse.fromJson(data)); - } - - /** - * Updates an existing placement group. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Placement group ID. - * - * Completes with a [PlacementGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementGroup> patch(PlacementGroup request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementGroups'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementGroup.fromJson(data)); - } - - /** - * Updates an existing placement group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [PlacementGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementGroup> update(PlacementGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementGroups'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementGroup.fromJson(data)); - } - -} - - -class PlacementStrategiesResourceApi { - final commons.ApiRequester _requester; - - PlacementStrategiesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing placement strategy. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Placement strategy ID. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future delete(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementStrategies/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one placement strategy by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Placement strategy ID. - * - * Completes with a [PlacementStrategy]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementStrategy> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementStrategies/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementStrategy.fromJson(data)); - } - - /** - * Inserts a new placement strategy. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [PlacementStrategy]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementStrategy> insert(PlacementStrategy request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementStrategies'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementStrategy.fromJson(data)); - } - - /** - * Retrieves a list of placement strategies, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [ids] - Select only placement strategies with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "placementstrategy*2015" will return objects with - * names like "placementstrategy June 2015", "placementstrategy April 2015", - * or simply "placementstrategy 2015". Most of the searches also add wildcards - * implicitly at the start and the end of the search string. For example, a - * search string of "placementstrategy" will match objects with name "my - * placementstrategy", "placementstrategy 2015", or simply - * "placementstrategy". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [PlacementStrategiesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementStrategiesListResponse> list(core.String profileId, {core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementStrategies'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementStrategiesListResponse.fromJson(data)); - } - - /** - * Updates an existing placement strategy. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Placement strategy ID. - * - * Completes with a [PlacementStrategy]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementStrategy> patch(PlacementStrategy request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementStrategies'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementStrategy.fromJson(data)); - } - - /** - * Updates an existing placement strategy. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [PlacementStrategy]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementStrategy> update(PlacementStrategy request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementStrategies'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementStrategy.fromJson(data)); - } - -} - - -class PlacementsResourceApi { - final commons.ApiRequester _requester; - - PlacementsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Generates tags for a placement. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Generate placements belonging to this campaign. This is a - * required field. - * - * [placementIds] - Generate tags for these placements. - * - * [tagFormats] - Tag formats to generate for these placements. - * - * Completes with a [PlacementsGenerateTagsResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementsGenerateTagsResponse> generatetags(core.String profileId, {core.String campaignId, core.List<core.String> placementIds, core.List<core.String> tagFormats}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId != null) { - _queryParams["campaignId"] = [campaignId]; - } - if (placementIds != null) { - _queryParams["placementIds"] = placementIds; - } - if (tagFormats != null) { - _queryParams["tagFormats"] = tagFormats; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placements/generatetags'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementsGenerateTagsResponse.fromJson(data)); - } - - /** - * Gets one placement by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Placement ID. - * - * Completes with a [Placement]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Placement> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placements/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Placement.fromJson(data)); - } - - /** - * Inserts a new placement. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Placement]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Placement> insert(Placement request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placements'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Placement.fromJson(data)); - } - - /** - * Retrieves a list of placements, possibly filtered. This method supports - * paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserIds] - Select only placements that belong to these advertisers. - * - * [archived] - Select only archived placements. Don't set this field to - * select both archived and non-archived placements. - * - * [campaignIds] - Select only placements that belong to these campaigns. - * - * [compatibilities] - Select only placements that are associated with these - * compatibilities. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either - * on desktop or on mobile devices for regular or interstitial ads - * respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. - * IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with - * the VAST standard. - * - * [contentCategoryIds] - Select only placements that are associated with - * these content categories. - * - * [directorySiteIds] - Select only placements that are associated with these - * directory sites. - * - * [groupIds] - Select only placements that belong to these placement groups. - * - * [ids] - Select only placements with these IDs. - * - * [maxEndDate] - Select only placements or placement groups whose end date is - * on or before the specified maxEndDate. The date should be formatted as - * "yyyy-MM-dd". - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [maxStartDate] - Select only placements or placement groups whose start - * date is on or before the specified maxStartDate. The date should be - * formatted as "yyyy-MM-dd". - * - * [minEndDate] - Select only placements or placement groups whose end date is - * on or after the specified minEndDate. The date should be formatted as - * "yyyy-MM-dd". - * - * [minStartDate] - Select only placements or placement groups whose start - * date is on or after the specified minStartDate. The date should be - * formatted as "yyyy-MM-dd". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [paymentSource] - Select only placements with this payment source. - * Possible string values are: - * - "PLACEMENT_AGENCY_PAID" - * - "PLACEMENT_PUBLISHER_PAID" - * - * [placementStrategyIds] - Select only placements that are associated with - * these placement strategies. - * - * [pricingTypes] - Select only placements with these pricing types. - * - * [searchString] - Allows searching for placements by name or ID. Wildcards - * (*) are allowed. For example, "placement*2015" will return placements with - * names like "placement June 2015", "placement May 2015", or simply - * "placements 2015". Most of the searches also add wildcards implicitly at - * the start and the end of the search string. For example, a search string of - * "placement" will match placements with name "my placement", "placement - * 2015", or simply "placement". - * - * [siteIds] - Select only placements that are associated with these sites. - * - * [sizeIds] - Select only placements that are associated with these sizes. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [PlacementsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementsListResponse> list(core.String profileId, {core.List<core.String> advertiserIds, core.bool archived, core.List<core.String> campaignIds, core.List<core.String> compatibilities, core.List<core.String> contentCategoryIds, core.List<core.String> directorySiteIds, core.List<core.String> groupIds, core.List<core.String> ids, core.String maxEndDate, core.int maxResults, core.String maxStartDate, core.String minEndDate, core.String minStartDate, core.String pageToken, core.String paymentSource, core.List<core.String> placementStrategyIds, core.List<core.String> pricingTypes, core.String searchString, core.List<core.String> siteIds, core.List<core.String> sizeIds, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserIds != null) { - _queryParams["advertiserIds"] = advertiserIds; - } - if (archived != null) { - _queryParams["archived"] = ["${archived}"]; - } - if (campaignIds != null) { - _queryParams["campaignIds"] = campaignIds; - } - if (compatibilities != null) { - _queryParams["compatibilities"] = compatibilities; - } - if (contentCategoryIds != null) { - _queryParams["contentCategoryIds"] = contentCategoryIds; - } - if (directorySiteIds != null) { - _queryParams["directorySiteIds"] = directorySiteIds; - } - if (groupIds != null) { - _queryParams["groupIds"] = groupIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxEndDate != null) { - _queryParams["maxEndDate"] = [maxEndDate]; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (maxStartDate != null) { - _queryParams["maxStartDate"] = [maxStartDate]; - } - if (minEndDate != null) { - _queryParams["minEndDate"] = [minEndDate]; - } - if (minStartDate != null) { - _queryParams["minStartDate"] = [minStartDate]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (paymentSource != null) { - _queryParams["paymentSource"] = [paymentSource]; - } - if (placementStrategyIds != null) { - _queryParams["placementStrategyIds"] = placementStrategyIds; - } - if (pricingTypes != null) { - _queryParams["pricingTypes"] = pricingTypes; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (siteIds != null) { - _queryParams["siteIds"] = siteIds; - } - if (sizeIds != null) { - _queryParams["sizeIds"] = sizeIds; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placements'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementsListResponse.fromJson(data)); - } - - /** - * Updates an existing placement. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Placement ID. - * - * Completes with a [Placement]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Placement> patch(Placement request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placements'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Placement.fromJson(data)); - } - - /** - * Updates an existing placement. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Placement]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Placement> update(Placement request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placements'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Placement.fromJson(data)); - } - -} - - -class PlatformTypesResourceApi { - final commons.ApiRequester _requester; - - PlatformTypesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one platform type by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Platform type ID. - * - * Completes with a [PlatformType]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlatformType> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/platformTypes/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlatformType.fromJson(data)); - } - - /** - * Retrieves a list of platform types. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [PlatformTypesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlatformTypesListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/platformTypes'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlatformTypesListResponse.fromJson(data)); - } - -} - - -class PostalCodesResourceApi { - final commons.ApiRequester _requester; - - PostalCodesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one postal code by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [code] - Postal code ID. - * - * Completes with a [PostalCode]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PostalCode> get(core.String profileId, core.String code) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (code == null) { - throw new core.ArgumentError("Parameter code is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/postalCodes/' + commons.Escaper.ecapeVariable('$code'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PostalCode.fromJson(data)); - } - - /** - * Retrieves a list of postal codes. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [PostalCodesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PostalCodesListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/postalCodes'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PostalCodesListResponse.fromJson(data)); - } - -} - - -class ProjectsResourceApi { - final commons.ApiRequester _requester; - - ProjectsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one project by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Project ID. - * - * Completes with a [Project]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Project> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Project.fromJson(data)); - } - - /** - * Retrieves a list of projects, possibly filtered. This method supports - * paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserIds] - Select only projects with these advertiser IDs. - * - * [ids] - Select only projects with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for projects by name or ID. Wildcards (*) - * are allowed. For example, "project*2015" will return projects with names - * like "project June 2015", "project April 2015", or simply "project 2015". - * Most of the searches also add wildcards implicitly at the start and the end - * of the search string. For example, a search string of "project" will match - * projects with name "my project", "project 2015", or simply "project". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [ProjectsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ProjectsListResponse> list(core.String profileId, {core.List<core.String> advertiserIds, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserIds != null) { - _queryParams["advertiserIds"] = advertiserIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ProjectsListResponse.fromJson(data)); - } - -} - - -class RegionsResourceApi { - final commons.ApiRequester _requester; - - RegionsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves a list of regions. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [RegionsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<RegionsListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/regions'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RegionsListResponse.fromJson(data)); - } - -} - - -class RemarketingListSharesResourceApi { - final commons.ApiRequester _requester; - - RemarketingListSharesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one remarketing list share by remarketing list ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [remarketingListId] - Remarketing list ID. - * - * Completes with a [RemarketingListShare]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<RemarketingListShare> get(core.String profileId, core.String remarketingListId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (remarketingListId == null) { - throw new core.ArgumentError("Parameter remarketingListId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingListShares/' + commons.Escaper.ecapeVariable('$remarketingListId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingListShare.fromJson(data)); - } - - /** - * Updates an existing remarketing list share. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [remarketingListId] - Remarketing list ID. - * - * Completes with a [RemarketingListShare]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<RemarketingListShare> patch(RemarketingListShare request, core.String profileId, core.String remarketingListId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (remarketingListId == null) { - throw new core.ArgumentError("Parameter remarketingListId is required."); - } - _queryParams["remarketingListId"] = [remarketingListId]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingListShares'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingListShare.fromJson(data)); - } - - /** - * Updates an existing remarketing list share. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [RemarketingListShare]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<RemarketingListShare> update(RemarketingListShare request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingListShares'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingListShare.fromJson(data)); - } - -} - - -class RemarketingListsResourceApi { - final commons.ApiRequester _requester; - - RemarketingListsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one remarketing list by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Remarketing list ID. - * - * Completes with a [RemarketingList]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<RemarketingList> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingLists/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingList.fromJson(data)); - } - - /** - * Inserts a new remarketing list. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [RemarketingList]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<RemarketingList> insert(RemarketingList request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingLists'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingList.fromJson(data)); - } - - /** - * Retrieves a list of remarketing lists, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserId] - Select only remarketing lists owned by this advertiser. - * - * [active] - Select only active or only inactive remarketing lists. - * - * [floodlightActivityId] - Select only remarketing lists that have this - * floodlight activity ID. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [name] - Allows searching for objects by name or ID. Wildcards (*) are - * allowed. For example, "remarketing list*2015" will return objects with - * names like "remarketing list June 2015", "remarketing list April 2015", or - * simply "remarketing list 2015". Most of the searches also add wildcards - * implicitly at the start and the end of the search string. For example, a - * search string of "remarketing list" will match objects with name "my - * remarketing list", "remarketing list 2015", or simply "remarketing list". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [RemarketingListsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<RemarketingListsListResponse> list(core.String profileId, core.String advertiserId, {core.bool active, core.String floodlightActivityId, core.int maxResults, core.String name, core.String pageToken, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserId == null) { - throw new core.ArgumentError("Parameter advertiserId is required."); - } - _queryParams["advertiserId"] = [advertiserId]; - if (active != null) { - _queryParams["active"] = ["${active}"]; - } - if (floodlightActivityId != null) { - _queryParams["floodlightActivityId"] = [floodlightActivityId]; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (name != null) { - _queryParams["name"] = [name]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingLists'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingListsListResponse.fromJson(data)); - } - - /** - * Updates an existing remarketing list. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Remarketing list ID. - * - * Completes with a [RemarketingList]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<RemarketingList> patch(RemarketingList request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingLists'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingList.fromJson(data)); - } - - /** - * Updates an existing remarketing list. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [RemarketingList]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<RemarketingList> update(RemarketingList request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingLists'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingList.fromJson(data)); - } - -} - - -class ReportsResourceApi { - final commons.ApiRequester _requester; - - ReportsCompatibleFieldsResourceApi get compatibleFields => new ReportsCompatibleFieldsResourceApi(_requester); - ReportsFilesResourceApi get files => new ReportsFilesResourceApi(_requester); - - ReportsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes a report by its ID. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * [reportId] - The ID of the report. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future delete(core.String profileId, core.String reportId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/' + commons.Escaper.ecapeVariable('$reportId'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Retrieves a report by its ID. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * [reportId] - The ID of the report. - * - * Completes with a [Report]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Report> get(core.String profileId, core.String reportId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/' + commons.Escaper.ecapeVariable('$reportId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Report.fromJson(data)); - } - - /** - * Creates a report. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * Completes with a [Report]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Report> insert(Report request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Report.fromJson(data)); - } - - /** - * Retrieves list of reports. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "10". - * - * [pageToken] - The value of the nextToken from the previous result page. - * - * [scope] - The scope that defines which results are returned, default is - * 'MINE'. - * Possible string values are: - * - "ALL" : All reports in account. - * - "MINE" : My reports. - * - * [sortField] - The field by which to sort the list. - * Possible string values are: - * - "ID" : Sort by report ID. - * - "LAST_MODIFIED_TIME" : Sort by 'lastModifiedTime' field. - * - "NAME" : Sort by name of reports. - * - * [sortOrder] - Order of sorted results, default is 'DESCENDING'. - * Possible string values are: - * - "ASCENDING" : Ascending order. - * - "DESCENDING" : Descending order. - * - * Completes with a [ReportList]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ReportList> list(core.String profileId, {core.int maxResults, core.String pageToken, core.String scope, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (scope != null) { - _queryParams["scope"] = [scope]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ReportList.fromJson(data)); - } - - /** - * Updates a report. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * [reportId] - The ID of the report. - * - * Completes with a [Report]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Report> patch(Report request, core.String profileId, core.String reportId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/' + commons.Escaper.ecapeVariable('$reportId'); - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Report.fromJson(data)); - } - - /** - * Runs a report. - * - * Request parameters: - * - * [profileId] - The DFA profile ID. - * - * [reportId] - The ID of the report. - * - * [synchronous] - If set and true, tries to run the report synchronously. - * - * Completes with a [File]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<File> run(core.String profileId, core.String reportId, {core.bool synchronous}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - if (synchronous != null) { - _queryParams["synchronous"] = ["${synchronous}"]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/' + commons.Escaper.ecapeVariable('$reportId') + '/run'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new File.fromJson(data)); - } - - /** - * Updates a report. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * [reportId] - The ID of the report. - * - * Completes with a [Report]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Report> update(Report request, core.String profileId, core.String reportId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/' + commons.Escaper.ecapeVariable('$reportId'); - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Report.fromJson(data)); - } - -} - - -class ReportsCompatibleFieldsResourceApi { - final commons.ApiRequester _requester; - - ReportsCompatibleFieldsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Returns the fields that are compatible to be selected in the respective - * sections of a report criteria, given the fields already selected in the - * input report and user permissions. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * Completes with a [CompatibleFields]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CompatibleFields> query(Report request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/compatiblefields/query'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CompatibleFields.fromJson(data)); - } - -} - - -class ReportsFilesResourceApi { - final commons.ApiRequester _requester; - - ReportsFilesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves a report file. - * - * Request parameters: - * - * [profileId] - The DFA profile ID. - * - * [reportId] - The ID of the report. - * - * [fileId] - The ID of the report file. - * - * [downloadOptions] - Options for downloading. A download can be either a - * Metadata (default) or Media download. Partial Media downloads are possible - * as well. - * - * Completes with a - * - * - [File] for Metadata downloads (see [downloadOptions]). - * - * - [commons.Media] for Media downloads (see [downloadOptions]). - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future get(core.String profileId, core.String reportId, core.String fileId, {commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - if (fileId == null) { - throw new core.ArgumentError("Parameter fileId is required."); - } - - _downloadOptions = downloadOptions; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/' + commons.Escaper.ecapeVariable('$reportId') + '/files/' + commons.Escaper.ecapeVariable('$fileId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - if (_downloadOptions == null || - _downloadOptions == commons.DownloadOptions.Metadata) { - return _response.then((data) => new File.fromJson(data)); - } else { - return _response; - } - } - - /** - * Lists files for a report. - * - * Request parameters: - * - * [profileId] - The DFA profile ID. - * - * [reportId] - The ID of the parent report. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "10". - * - * [pageToken] - The value of the nextToken from the previous result page. - * - * [sortField] - The field by which to sort the list. - * Possible string values are: - * - "ID" : Sort by file ID. - * - "LAST_MODIFIED_TIME" : Sort by 'lastmodifiedAt' field. - * - * [sortOrder] - Order of sorted results, default is 'DESCENDING'. - * Possible string values are: - * - "ASCENDING" : Ascending order. - * - "DESCENDING" : Descending order. - * - * Completes with a [FileList]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FileList> list(core.String profileId, core.String reportId, {core.int maxResults, core.String pageToken, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/' + commons.Escaper.ecapeVariable('$reportId') + '/files'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FileList.fromJson(data)); - } - -} - - -class SitesResourceApi { - final commons.ApiRequester _requester; - - SitesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one site by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Site ID. - * - * Completes with a [Site]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Site> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sites/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Site.fromJson(data)); - } - - /** - * Inserts a new site. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Site]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Site> insert(Site request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sites'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Site.fromJson(data)); - } - - /** - * Retrieves a list of sites, possibly filtered. This method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [acceptsInStreamVideoPlacements] - This search filter is no longer - * supported and will have no effect on the results returned. - * - * [acceptsInterstitialPlacements] - This search filter is no longer supported - * and will have no effect on the results returned. - * - * [acceptsPublisherPaidPlacements] - Select only sites that accept publisher - * paid placements. - * - * [adWordsSite] - Select only AdWords sites. - * - * [approved] - Select only approved sites. - * - * [campaignIds] - Select only sites with these campaign IDs. - * - * [directorySiteIds] - Select only sites with these directory site IDs. - * - * [ids] - Select only sites with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name, ID or keyName. - * Wildcards (*) are allowed. For example, "site*2015" will return objects - * with names like "site June 2015", "site April 2015", or simply "site 2015". - * Most of the searches also add wildcards implicitly at the start and the end - * of the search string. For example, a search string of "site" will match - * objects with name "my site", "site 2015", or simply "site". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [subaccountId] - Select only sites with this subaccount ID. - * - * [unmappedSite] - Select only sites that have not been mapped to a directory - * site. - * - * Completes with a [SitesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<SitesListResponse> list(core.String profileId, {core.bool acceptsInStreamVideoPlacements, core.bool acceptsInterstitialPlacements, core.bool acceptsPublisherPaidPlacements, core.bool adWordsSite, core.bool approved, core.List<core.String> campaignIds, core.List<core.String> directorySiteIds, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder, core.String subaccountId, core.bool unmappedSite}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (acceptsInStreamVideoPlacements != null) { - _queryParams["acceptsInStreamVideoPlacements"] = ["${acceptsInStreamVideoPlacements}"]; - } - if (acceptsInterstitialPlacements != null) { - _queryParams["acceptsInterstitialPlacements"] = ["${acceptsInterstitialPlacements}"]; - } - if (acceptsPublisherPaidPlacements != null) { - _queryParams["acceptsPublisherPaidPlacements"] = ["${acceptsPublisherPaidPlacements}"]; - } - if (adWordsSite != null) { - _queryParams["adWordsSite"] = ["${adWordsSite}"]; - } - if (approved != null) { - _queryParams["approved"] = ["${approved}"]; - } - if (campaignIds != null) { - _queryParams["campaignIds"] = campaignIds; - } - if (directorySiteIds != null) { - _queryParams["directorySiteIds"] = directorySiteIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (subaccountId != null) { - _queryParams["subaccountId"] = [subaccountId]; - } - if (unmappedSite != null) { - _queryParams["unmappedSite"] = ["${unmappedSite}"]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sites'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new SitesListResponse.fromJson(data)); - } - - /** - * Updates an existing site. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Site ID. - * - * Completes with a [Site]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Site> patch(Site request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sites'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Site.fromJson(data)); - } - - /** - * Updates an existing site. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Site]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Site> update(Site request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sites'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Site.fromJson(data)); - } - -} - - -class SizesResourceApi { - final commons.ApiRequester _requester; - - SizesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one size by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Size ID. - * - * Completes with a [Size]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Size> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sizes/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Size.fromJson(data)); - } - - /** - * Inserts a new size. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Size]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Size> insert(Size request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sizes'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Size.fromJson(data)); - } - - /** - * Retrieves a list of sizes, possibly filtered. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [height] - Select only sizes with this height. - * Value must be between "0" and "32767". - * - * [iabStandard] - Select only IAB standard sizes. - * - * [ids] - Select only sizes with these IDs. - * - * [width] - Select only sizes with this width. - * Value must be between "0" and "32767". - * - * Completes with a [SizesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<SizesListResponse> list(core.String profileId, {core.int height, core.bool iabStandard, core.List<core.String> ids, core.int width}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (height != null) { - _queryParams["height"] = ["${height}"]; - } - if (iabStandard != null) { - _queryParams["iabStandard"] = ["${iabStandard}"]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (width != null) { - _queryParams["width"] = ["${width}"]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sizes'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new SizesListResponse.fromJson(data)); - } - -} - - -class SubaccountsResourceApi { - final commons.ApiRequester _requester; - - SubaccountsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one subaccount by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Subaccount ID. - * - * Completes with a [Subaccount]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Subaccount> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/subaccounts/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Subaccount.fromJson(data)); - } - - /** - * Inserts a new subaccount. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Subaccount]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Subaccount> insert(Subaccount request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/subaccounts'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Subaccount.fromJson(data)); - } - - /** - * Gets a list of subaccounts, possibly filtered. This method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [ids] - Select only subaccounts with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "subaccount*2015" will return objects with names - * like "subaccount June 2015", "subaccount April 2015", or simply "subaccount - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "subaccount" - * will match objects with name "my subaccount", "subaccount 2015", or simply - * "subaccount". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [SubaccountsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<SubaccountsListResponse> list(core.String profileId, {core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/subaccounts'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new SubaccountsListResponse.fromJson(data)); - } - - /** - * Updates an existing subaccount. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Subaccount ID. - * - * Completes with a [Subaccount]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Subaccount> patch(Subaccount request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/subaccounts'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Subaccount.fromJson(data)); - } - - /** - * Updates an existing subaccount. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Subaccount]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Subaccount> update(Subaccount request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/subaccounts'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Subaccount.fromJson(data)); - } - -} - - -class TargetableRemarketingListsResourceApi { - final commons.ApiRequester _requester; - - TargetableRemarketingListsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one remarketing list by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Remarketing list ID. - * - * Completes with a [TargetableRemarketingList]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<TargetableRemarketingList> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/targetableRemarketingLists/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new TargetableRemarketingList.fromJson(data)); - } - - /** - * Retrieves a list of targetable remarketing lists, possibly filtered. This - * method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserId] - Select only targetable remarketing lists targetable by - * these advertisers. - * - * [active] - Select only active or only inactive targetable remarketing - * lists. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [name] - Allows searching for objects by name or ID. Wildcards (*) are - * allowed. For example, "remarketing list*2015" will return objects with - * names like "remarketing list June 2015", "remarketing list April 2015", or - * simply "remarketing list 2015". Most of the searches also add wildcards - * implicitly at the start and the end of the search string. For example, a - * search string of "remarketing list" will match objects with name "my - * remarketing list", "remarketing list 2015", or simply "remarketing list". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [TargetableRemarketingListsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<TargetableRemarketingListsListResponse> list(core.String profileId, core.String advertiserId, {core.bool active, core.int maxResults, core.String name, core.String pageToken, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserId == null) { - throw new core.ArgumentError("Parameter advertiserId is required."); - } - _queryParams["advertiserId"] = [advertiserId]; - if (active != null) { - _queryParams["active"] = ["${active}"]; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (name != null) { - _queryParams["name"] = [name]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/targetableRemarketingLists'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new TargetableRemarketingListsListResponse.fromJson(data)); - } - -} - - -class TargetingTemplatesResourceApi { - final commons.ApiRequester _requester; - - TargetingTemplatesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one targeting template by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Targeting template ID. - * - * Completes with a [TargetingTemplate]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<TargetingTemplate> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/targetingTemplates/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new TargetingTemplate.fromJson(data)); - } - - /** - * Inserts a new targeting template. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [TargetingTemplate]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<TargetingTemplate> insert(TargetingTemplate request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/targetingTemplates'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new TargetingTemplate.fromJson(data)); - } - - /** - * Retrieves a list of targeting templates, optionally filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserId] - Select only targeting templates with this advertiser ID. - * - * [ids] - Select only targeting templates with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "template*2015" will return objects with names - * like "template June 2015", "template April 2015", or simply "template - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "template" - * will match objects with name "my template", "template 2015", or simply - * "template". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [TargetingTemplatesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<TargetingTemplatesListResponse> list(core.String profileId, {core.String advertiserId, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserId != null) { - _queryParams["advertiserId"] = [advertiserId]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/targetingTemplates'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new TargetingTemplatesListResponse.fromJson(data)); - } - - /** - * Updates an existing targeting template. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Targeting template ID. - * - * Completes with a [TargetingTemplate]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<TargetingTemplate> patch(TargetingTemplate request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/targetingTemplates'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new TargetingTemplate.fromJson(data)); - } - - /** - * Updates an existing targeting template. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [TargetingTemplate]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<TargetingTemplate> update(TargetingTemplate request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/targetingTemplates'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new TargetingTemplate.fromJson(data)); - } - -} - - -class UserProfilesResourceApi { - final commons.ApiRequester _requester; - - UserProfilesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one user profile by ID. - * - * Request parameters: - * - * [profileId] - The user profile ID. - * - * Completes with a [UserProfile]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<UserProfile> get(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserProfile.fromJson(data)); - } - - /** - * Retrieves list of user profiles for a user. - * - * Request parameters: - * - * Completes with a [UserProfileList]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<UserProfileList> list() { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - - _url = 'userprofiles'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserProfileList.fromJson(data)); - } - -} - - -class UserRolePermissionGroupsResourceApi { - final commons.ApiRequester _requester; - - UserRolePermissionGroupsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one user role permission group by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - User role permission group ID. - * - * Completes with a [UserRolePermissionGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<UserRolePermissionGroup> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRolePermissionGroups/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRolePermissionGroup.fromJson(data)); - } - - /** - * Gets a list of all supported user role permission groups. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [UserRolePermissionGroupsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<UserRolePermissionGroupsListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRolePermissionGroups'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRolePermissionGroupsListResponse.fromJson(data)); - } - -} - - -class UserRolePermissionsResourceApi { - final commons.ApiRequester _requester; - - UserRolePermissionsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one user role permission by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - User role permission ID. - * - * Completes with a [UserRolePermission]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<UserRolePermission> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRolePermissions/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRolePermission.fromJson(data)); - } - - /** - * Gets a list of user role permissions, possibly filtered. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [ids] - Select only user role permissions with these IDs. - * - * Completes with a [UserRolePermissionsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<UserRolePermissionsListResponse> list(core.String profileId, {core.List<core.String> ids}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRolePermissions'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRolePermissionsListResponse.fromJson(data)); - } - -} - - -class UserRolesResourceApi { - final commons.ApiRequester _requester; - - UserRolesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing user role. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - User role ID. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future delete(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRoles/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one user role by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - User role ID. - * - * Completes with a [UserRole]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<UserRole> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRoles/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRole.fromJson(data)); - } - - /** - * Inserts a new user role. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [UserRole]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<UserRole> insert(UserRole request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRoles'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRole.fromJson(data)); - } - - /** - * Retrieves a list of user roles, possibly filtered. This method supports - * paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [accountUserRoleOnly] - Select only account level user roles not associated - * with any specific subaccount. - * - * [ids] - Select only user roles with the specified IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "userrole*2015" will return objects with names - * like "userrole June 2015", "userrole April 2015", or simply "userrole - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "userrole" - * will match objects with name "my userrole", "userrole 2015", or simply - * "userrole". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [subaccountId] - Select only user roles that belong to this subaccount. - * - * Completes with a [UserRolesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<UserRolesListResponse> list(core.String profileId, {core.bool accountUserRoleOnly, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder, core.String subaccountId}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (accountUserRoleOnly != null) { - _queryParams["accountUserRoleOnly"] = ["${accountUserRoleOnly}"]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (subaccountId != null) { - _queryParams["subaccountId"] = [subaccountId]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRoles'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRolesListResponse.fromJson(data)); - } - - /** - * Updates an existing user role. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - User role ID. - * - * Completes with a [UserRole]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<UserRole> patch(UserRole request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRoles'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRole.fromJson(data)); - } - - /** - * Updates an existing user role. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [UserRole]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<UserRole> update(UserRole request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRoles'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRole.fromJson(data)); - } - -} - - - -/** Contains properties of a DCM account. */ -class Account { - /** Account permissions assigned to this account. */ - core.List<core.String> accountPermissionIds; - /** - * Profile for this account. This is a read-only field that can be left blank. - * Possible string values are: - * - "ACCOUNT_PROFILE_BASIC" - * - "ACCOUNT_PROFILE_STANDARD" - */ - core.String accountProfile; - /** Whether this account is active. */ - core.bool active; - /** - * Maximum number of active ads allowed for this account. - * Possible string values are: - * - "ACTIVE_ADS_TIER_100K" - * - "ACTIVE_ADS_TIER_1M" - * - "ACTIVE_ADS_TIER_200K" - * - "ACTIVE_ADS_TIER_300K" - * - "ACTIVE_ADS_TIER_40K" - * - "ACTIVE_ADS_TIER_500K" - * - "ACTIVE_ADS_TIER_750K" - * - "ACTIVE_ADS_TIER_75K" - */ - core.String activeAdsLimitTier; - /** - * Whether to serve creatives with Active View tags. If disabled, viewability - * data will not be available for any impressions. - */ - core.bool activeViewOptOut; - /** User role permissions available to the user roles of this account. */ - core.List<core.String> availablePermissionIds; - /** ID of the country associated with this account. */ - core.String countryId; - /** - * ID of currency associated with this account. This is a required field. - * Acceptable values are: - * - "1" for USD - * - "2" for GBP - * - "3" for ESP - * - "4" for SEK - * - "5" for CAD - * - "6" for JPY - * - "7" for DEM - * - "8" for AUD - * - "9" for FRF - * - "10" for ITL - * - "11" for DKK - * - "12" for NOK - * - "13" for FIM - * - "14" for ZAR - * - "15" for IEP - * - "16" for NLG - * - "17" for EUR - * - "18" for KRW - * - "19" for TWD - * - "20" for SGD - * - "21" for CNY - * - "22" for HKD - * - "23" for NZD - * - "24" for MYR - * - "25" for BRL - * - "26" for PTE - * - "27" for MXP - * - "28" for CLP - * - "29" for TRY - * - "30" for ARS - * - "31" for PEN - * - "32" for ILS - * - "33" for CHF - * - "34" for VEF - * - "35" for COP - * - "36" for GTQ - * - "37" for PLN - * - "39" for INR - * - "40" for THB - * - "41" for IDR - * - "42" for CZK - * - "43" for RON - * - "44" for HUF - * - "45" for RUB - * - "46" for AED - * - "47" for BGN - * - "48" for HRK - * - "49" for MXN - */ - core.String currencyId; - /** Default placement dimensions for this account. */ - core.String defaultCreativeSizeId; - /** Description of this account. */ - core.String description; - /** ID of this account. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#account". - */ - core.String kind; - /** - * Locale of this account. - * Acceptable values are: - * - "cs" (Czech) - * - "de" (German) - * - "en" (English) - * - "en-GB" (English United Kingdom) - * - "es" (Spanish) - * - "fr" (French) - * - "it" (Italian) - * - "ja" (Japanese) - * - "ko" (Korean) - * - "pl" (Polish) - * - "pt-BR" (Portuguese Brazil) - * - "ru" (Russian) - * - "sv" (Swedish) - * - "tr" (Turkish) - * - "zh-CN" (Chinese Simplified) - * - "zh-TW" (Chinese Traditional) - */ - core.String locale; - /** - * Maximum image size allowed for this account, in kilobytes. Value must be - * greater than or equal to 1. - */ - core.String maximumImageSize; - /** - * Name of this account. This is a required field, and must be less than 128 - * characters long and be globally unique. - */ - core.String name; - /** - * Whether campaigns created in this account will be enabled for Nielsen OCR - * reach ratings by default. - */ - core.bool nielsenOcrEnabled; - /** Reporting configuration of this account. */ - ReportsConfiguration reportsConfiguration; - /** Share Path to Conversion reports with Twitter. */ - core.bool shareReportsWithTwitter; - /** - * File size limit in kilobytes of Rich Media teaser creatives. Acceptable - * values are 1 to 10240, inclusive. - */ - core.String teaserSizeLimit; - - Account(); - - Account.fromJson(core.Map _json) { - if (_json.containsKey("accountPermissionIds")) { - accountPermissionIds = _json["accountPermissionIds"]; - } - if (_json.containsKey("accountProfile")) { - accountProfile = _json["accountProfile"]; - } - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("activeAdsLimitTier")) { - activeAdsLimitTier = _json["activeAdsLimitTier"]; - } - if (_json.containsKey("activeViewOptOut")) { - activeViewOptOut = _json["activeViewOptOut"]; - } - if (_json.containsKey("availablePermissionIds")) { - availablePermissionIds = _json["availablePermissionIds"]; - } - if (_json.containsKey("countryId")) { - countryId = _json["countryId"]; - } - if (_json.containsKey("currencyId")) { - currencyId = _json["currencyId"]; - } - if (_json.containsKey("defaultCreativeSizeId")) { - defaultCreativeSizeId = _json["defaultCreativeSizeId"]; - } - if (_json.containsKey("description")) { - description = _json["description"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("locale")) { - locale = _json["locale"]; - } - if (_json.containsKey("maximumImageSize")) { - maximumImageSize = _json["maximumImageSize"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("nielsenOcrEnabled")) { - nielsenOcrEnabled = _json["nielsenOcrEnabled"]; - } - if (_json.containsKey("reportsConfiguration")) { - reportsConfiguration = new ReportsConfiguration.fromJson(_json["reportsConfiguration"]); - } - if (_json.containsKey("shareReportsWithTwitter")) { - shareReportsWithTwitter = _json["shareReportsWithTwitter"]; - } - if (_json.containsKey("teaserSizeLimit")) { - teaserSizeLimit = _json["teaserSizeLimit"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountPermissionIds != null) { - _json["accountPermissionIds"] = accountPermissionIds; - } - if (accountProfile != null) { - _json["accountProfile"] = accountProfile; - } - if (active != null) { - _json["active"] = active; - } - if (activeAdsLimitTier != null) { - _json["activeAdsLimitTier"] = activeAdsLimitTier; - } - if (activeViewOptOut != null) { - _json["activeViewOptOut"] = activeViewOptOut; - } - if (availablePermissionIds != null) { - _json["availablePermissionIds"] = availablePermissionIds; - } - if (countryId != null) { - _json["countryId"] = countryId; - } - if (currencyId != null) { - _json["currencyId"] = currencyId; - } - if (defaultCreativeSizeId != null) { - _json["defaultCreativeSizeId"] = defaultCreativeSizeId; - } - if (description != null) { - _json["description"] = description; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (locale != null) { - _json["locale"] = locale; - } - if (maximumImageSize != null) { - _json["maximumImageSize"] = maximumImageSize; - } - if (name != null) { - _json["name"] = name; - } - if (nielsenOcrEnabled != null) { - _json["nielsenOcrEnabled"] = nielsenOcrEnabled; - } - if (reportsConfiguration != null) { - _json["reportsConfiguration"] = (reportsConfiguration).toJson(); - } - if (shareReportsWithTwitter != null) { - _json["shareReportsWithTwitter"] = shareReportsWithTwitter; - } - if (teaserSizeLimit != null) { - _json["teaserSizeLimit"] = teaserSizeLimit; - } - return _json; - } -} - -/** Gets a summary of active ads in an account. */ -class AccountActiveAdSummary { - /** ID of the account. */ - core.String accountId; - /** Ads that have been activated for the account */ - core.String activeAds; - /** - * Maximum number of active ads allowed for the account. - * Possible string values are: - * - "ACTIVE_ADS_TIER_100K" - * - "ACTIVE_ADS_TIER_1M" - * - "ACTIVE_ADS_TIER_200K" - * - "ACTIVE_ADS_TIER_300K" - * - "ACTIVE_ADS_TIER_40K" - * - "ACTIVE_ADS_TIER_500K" - * - "ACTIVE_ADS_TIER_750K" - * - "ACTIVE_ADS_TIER_75K" - */ - core.String activeAdsLimitTier; - /** Ads that can be activated for the account. */ - core.String availableAds; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountActiveAdSummary". - */ - core.String kind; - - AccountActiveAdSummary(); - - AccountActiveAdSummary.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("activeAds")) { - activeAds = _json["activeAds"]; - } - if (_json.containsKey("activeAdsLimitTier")) { - activeAdsLimitTier = _json["activeAdsLimitTier"]; - } - if (_json.containsKey("availableAds")) { - availableAds = _json["availableAds"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (activeAds != null) { - _json["activeAds"] = activeAds; - } - if (activeAdsLimitTier != null) { - _json["activeAdsLimitTier"] = activeAdsLimitTier; - } - if (availableAds != null) { - _json["availableAds"] = availableAds; - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** - * AccountPermissions contains information about a particular account - * permission. Some features of DCM require an account permission to be present - * in the account. - */ -class AccountPermission { - /** - * Account profiles associated with this account permission. - * - * Possible values are: - * - "ACCOUNT_PROFILE_BASIC" - * - "ACCOUNT_PROFILE_STANDARD" - */ - core.List<core.String> accountProfiles; - /** ID of this account permission. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountPermission". - */ - core.String kind; - /** - * Administrative level required to enable this account permission. - * Possible string values are: - * - "ADMINISTRATOR" - * - "USER" - */ - core.String level; - /** Name of this account permission. */ - core.String name; - /** Permission group of this account permission. */ - core.String permissionGroupId; - - AccountPermission(); - - AccountPermission.fromJson(core.Map _json) { - if (_json.containsKey("accountProfiles")) { - accountProfiles = _json["accountProfiles"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("level")) { - level = _json["level"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("permissionGroupId")) { - permissionGroupId = _json["permissionGroupId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountProfiles != null) { - _json["accountProfiles"] = accountProfiles; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (level != null) { - _json["level"] = level; - } - if (name != null) { - _json["name"] = name; - } - if (permissionGroupId != null) { - _json["permissionGroupId"] = permissionGroupId; - } - return _json; - } -} - -/** - * AccountPermissionGroups contains a mapping of permission group IDs to names. - * A permission group is a grouping of account permissions. - */ -class AccountPermissionGroup { - /** ID of this account permission group. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountPermissionGroup". - */ - core.String kind; - /** Name of this account permission group. */ - core.String name; - - AccountPermissionGroup(); - - AccountPermissionGroup.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Account Permission Group List Response */ -class AccountPermissionGroupsListResponse { - /** Account permission group collection. */ - core.List<AccountPermissionGroup> accountPermissionGroups; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountPermissionGroupsListResponse". - */ - core.String kind; - - AccountPermissionGroupsListResponse(); - - AccountPermissionGroupsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("accountPermissionGroups")) { - accountPermissionGroups = _json["accountPermissionGroups"].map((value) => new AccountPermissionGroup.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountPermissionGroups != null) { - _json["accountPermissionGroups"] = accountPermissionGroups.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Account Permission List Response */ -class AccountPermissionsListResponse { - /** Account permission collection. */ - core.List<AccountPermission> accountPermissions; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountPermissionsListResponse". - */ - core.String kind; - - AccountPermissionsListResponse(); - - AccountPermissionsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("accountPermissions")) { - accountPermissions = _json["accountPermissions"].map((value) => new AccountPermission.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountPermissions != null) { - _json["accountPermissions"] = accountPermissions.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** - * AccountUserProfiles contains properties of a DCM user profile. This resource - * is specifically for managing user profiles, whereas UserProfiles is for - * accessing the API. - */ -class AccountUserProfile { - /** - * Account ID of the user profile. This is a read-only field that can be left - * blank. - */ - core.String accountId; - /** - * Whether this user profile is active. This defaults to false, and must be - * set true on insert for the user profile to be usable. - */ - core.bool active; - /** - * Filter that describes which advertisers are visible to the user profile. - */ - ObjectFilter advertiserFilter; - /** Filter that describes which campaigns are visible to the user profile. */ - ObjectFilter campaignFilter; - /** Comments for this user profile. */ - core.String comments; - /** - * Email of the user profile. The email addresss must be linked to a Google - * Account. This field is required on insertion and is read-only after - * insertion. - */ - core.String email; - /** ID of the user profile. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountUserProfile". - */ - core.String kind; - /** - * Locale of the user profile. This is a required field. - * Acceptable values are: - * - "cs" (Czech) - * - "de" (German) - * - "en" (English) - * - "en-GB" (English United Kingdom) - * - "es" (Spanish) - * - "fr" (French) - * - "it" (Italian) - * - "ja" (Japanese) - * - "ko" (Korean) - * - "pl" (Polish) - * - "pt-BR" (Portuguese Brazil) - * - "ru" (Russian) - * - "sv" (Swedish) - * - "tr" (Turkish) - * - "zh-CN" (Chinese Simplified) - * - "zh-TW" (Chinese Traditional) - */ - core.String locale; - /** - * Name of the user profile. This is a required field. Must be less than 64 - * characters long, must be globally unique, and cannot contain whitespace or - * any of the following characters: "&;"#%,". - */ - core.String name; - /** Filter that describes which sites are visible to the user profile. */ - ObjectFilter siteFilter; - /** - * Subaccount ID of the user profile. This is a read-only field that can be - * left blank. - */ - core.String subaccountId; - /** - * Trafficker type of this user profile. - * Possible string values are: - * - "EXTERNAL_TRAFFICKER" - * - "INTERNAL_NON_TRAFFICKER" - * - "INTERNAL_TRAFFICKER" - */ - core.String traffickerType; - /** - * User type of the user profile. This is a read-only field that can be left - * blank. - * Possible string values are: - * - "INTERNAL_ADMINISTRATOR" - * - "NORMAL_USER" - * - "READ_ONLY_SUPER_USER" - * - "SUPER_USER" - */ - core.String userAccessType; - /** - * Filter that describes which user roles are visible to the user profile. - */ - ObjectFilter userRoleFilter; - /** User role ID of the user profile. This is a required field. */ - core.String userRoleId; - - AccountUserProfile(); - - AccountUserProfile.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("advertiserFilter")) { - advertiserFilter = new ObjectFilter.fromJson(_json["advertiserFilter"]); - } - if (_json.containsKey("campaignFilter")) { - campaignFilter = new ObjectFilter.fromJson(_json["campaignFilter"]); - } - if (_json.containsKey("comments")) { - comments = _json["comments"]; - } - if (_json.containsKey("email")) { - email = _json["email"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("locale")) { - locale = _json["locale"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("siteFilter")) { - siteFilter = new ObjectFilter.fromJson(_json["siteFilter"]); - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("traffickerType")) { - traffickerType = _json["traffickerType"]; - } - if (_json.containsKey("userAccessType")) { - userAccessType = _json["userAccessType"]; - } - if (_json.containsKey("userRoleFilter")) { - userRoleFilter = new ObjectFilter.fromJson(_json["userRoleFilter"]); - } - if (_json.containsKey("userRoleId")) { - userRoleId = _json["userRoleId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (active != null) { - _json["active"] = active; - } - if (advertiserFilter != null) { - _json["advertiserFilter"] = (advertiserFilter).toJson(); - } - if (campaignFilter != null) { - _json["campaignFilter"] = (campaignFilter).toJson(); - } - if (comments != null) { - _json["comments"] = comments; - } - if (email != null) { - _json["email"] = email; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (locale != null) { - _json["locale"] = locale; - } - if (name != null) { - _json["name"] = name; - } - if (siteFilter != null) { - _json["siteFilter"] = (siteFilter).toJson(); - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (traffickerType != null) { - _json["traffickerType"] = traffickerType; - } - if (userAccessType != null) { - _json["userAccessType"] = userAccessType; - } - if (userRoleFilter != null) { - _json["userRoleFilter"] = (userRoleFilter).toJson(); - } - if (userRoleId != null) { - _json["userRoleId"] = userRoleId; - } - return _json; - } -} - -/** Account User Profile List Response */ -class AccountUserProfilesListResponse { - /** Account user profile collection. */ - core.List<AccountUserProfile> accountUserProfiles; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountUserProfilesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - AccountUserProfilesListResponse(); - - AccountUserProfilesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("accountUserProfiles")) { - accountUserProfiles = _json["accountUserProfiles"].map((value) => new AccountUserProfile.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountUserProfiles != null) { - _json["accountUserProfiles"] = accountUserProfiles.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Account List Response */ -class AccountsListResponse { - /** Account collection. */ - core.List<Account> accounts; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - AccountsListResponse(); - - AccountsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("accounts")) { - accounts = _json["accounts"].map((value) => new Account.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accounts != null) { - _json["accounts"] = accounts.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Represents an activity group. */ -class Activities { - /** - * List of activity filters. The dimension values need to be all either of - * type "dfa:activity" or "dfa:activityGroup". - */ - core.List<DimensionValue> filters; - /** The kind of resource this is, in this case dfareporting#activities. */ - core.String kind; - /** List of names of floodlight activity metrics. */ - core.List<core.String> metricNames; - - Activities(); - - Activities.fromJson(core.Map _json) { - if (_json.containsKey("filters")) { - filters = _json["filters"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metricNames")) { - metricNames = _json["metricNames"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (filters != null) { - _json["filters"] = filters.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (metricNames != null) { - _json["metricNames"] = metricNames; - } - return _json; - } -} - -/** Contains properties of a DCM ad. */ -class Ad { - /** - * Account ID of this ad. This is a read-only field that can be left blank. - */ - core.String accountId; - /** Whether this ad is active. When true, archived must be false. */ - core.bool active; - /** Advertiser ID of this ad. This is a required field on insertion. */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** Whether this ad is archived. When true, active must be false. */ - core.bool archived; - /** - * Audience segment ID that is being targeted for this ad. Applicable when - * type is AD_SERVING_STANDARD_AD. - */ - core.String audienceSegmentId; - /** Campaign ID of this ad. This is a required field on insertion. */ - core.String campaignId; - /** - * Dimension value for the ID of the campaign. This is a read-only, - * auto-generated field. - */ - DimensionValue campaignIdDimensionValue; - /** - * Click-through URL for this ad. This is a required field on insertion. - * Applicable when type is AD_SERVING_CLICK_TRACKER. - */ - ClickThroughUrl clickThroughUrl; - /** - * Click-through URL suffix properties for this ad. Applies to the URL in the - * ad or (if overriding ad properties) the URL in the creative. - */ - ClickThroughUrlSuffixProperties clickThroughUrlSuffixProperties; - /** Comments for this ad. */ - core.String comments; - /** - * Compatibility of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. - * DISPLAY and DISPLAY_INTERSTITIAL refer to either rendering on desktop or on - * mobile devices or in mobile apps for regular or interstitial ads, - * respectively. APP and APP_INTERSTITIAL are only used for existing default - * ads. New mobile placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL - * and default ads created for those placements will be limited to those - * compatibility types. IN_STREAM_VIDEO refers to rendering in-stream video - * ads developed with the VAST standard. - * Possible string values are: - * - "APP" - * - "APP_INTERSTITIAL" - * - "DISPLAY" - * - "DISPLAY_INTERSTITIAL" - * - "IN_STREAM_VIDEO" - */ - core.String compatibility; - /** Information about the creation of this ad. This is a read-only field. */ - LastModifiedInfo createInfo; - /** - * Creative group assignments for this ad. Applicable when type is - * AD_SERVING_CLICK_TRACKER. Only one assignment per creative group number is - * allowed for a maximum of two assignments. - */ - core.List<CreativeGroupAssignment> creativeGroupAssignments; - /** - * Creative rotation for this ad. Applicable when type is - * AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. When - * type is AD_SERVING_DEFAULT_AD, this field should have exactly one - * creativeAssignment. - */ - CreativeRotation creativeRotation; - /** - * Time and day targeting information for this ad. This field must be left - * blank if the ad is using a targeting template. Applicable when type is - * AD_SERVING_STANDARD_AD. - */ - DayPartTargeting dayPartTargeting; - /** Default click-through event tag properties for this ad. */ - DefaultClickThroughEventTagProperties defaultClickThroughEventTagProperties; - /** - * Delivery schedule information for this ad. Applicable when type is - * AD_SERVING_STANDARD_AD or AD_SERVING_TRACKING. This field along with - * subfields priority and impressionRatio are required on insertion when type - * is AD_SERVING_STANDARD_AD. - */ - DeliverySchedule deliverySchedule; - /** - * Whether this ad is a dynamic click tracker. Applicable when type is - * AD_SERVING_CLICK_TRACKER. This is a required field on insert, and is - * read-only after insert. - */ - core.bool dynamicClickTracker; - /** - * Date and time that this ad should stop serving. Must be later than the - * start time. This is a required field on insertion. - */ - core.DateTime endTime; - /** Event tag overrides for this ad. */ - core.List<EventTagOverride> eventTagOverrides; - /** - * Geographical targeting information for this ad. This field must be left - * blank if the ad is using a targeting template. Applicable when type is - * AD_SERVING_STANDARD_AD. - */ - GeoTargeting geoTargeting; - /** ID of this ad. This is a read-only, auto-generated field. */ - core.String id; - /** - * Dimension value for the ID of this ad. This is a read-only, auto-generated - * field. - */ - DimensionValue idDimensionValue; - /** - * Key-value targeting information for this ad. This field must be left blank - * if the ad is using a targeting template. Applicable when type is - * AD_SERVING_STANDARD_AD. - */ - KeyValueTargetingExpression keyValueTargetingExpression; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#ad". - */ - core.String kind; - /** - * Language targeting information for this ad. This field must be left blank - * if the ad is using a targeting template. Applicable when type is - * AD_SERVING_STANDARD_AD. - */ - LanguageTargeting languageTargeting; - /** - * Information about the most recent modification of this ad. This is a - * read-only field. - */ - LastModifiedInfo lastModifiedInfo; - /** - * Name of this ad. This is a required field and must be less than 256 - * characters long. - */ - core.String name; - /** Placement assignments for this ad. */ - core.List<PlacementAssignment> placementAssignments; - /** - * Remarketing list targeting expression for this ad. This field must be left - * blank if the ad is using a targeting template. Applicable when type is - * AD_SERVING_STANDARD_AD. - */ - ListTargetingExpression remarketingListExpression; - /** Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. */ - Size size; - /** - * Whether this ad is ssl compliant. This is a read-only field that is - * auto-generated when the ad is inserted or updated. - */ - core.bool sslCompliant; - /** - * Whether this ad requires ssl. This is a read-only field that is - * auto-generated when the ad is inserted or updated. - */ - core.bool sslRequired; - /** - * Date and time that this ad should start serving. If creating an ad, this - * field must be a time in the future. This is a required field on insertion. - */ - core.DateTime startTime; - /** - * Subaccount ID of this ad. This is a read-only field that can be left blank. - */ - core.String subaccountId; - /** - * Targeting template ID, used to apply preconfigured targeting information to - * this ad. This cannot be set while any of dayPartTargeting, geoTargeting, - * keyValueTargetingExpression, languageTargeting, remarketingListExpression, - * or technologyTargeting are set. Applicable when type is - * AD_SERVING_STANDARD_AD. - */ - core.String targetingTemplateId; - /** - * Technology platform targeting information for this ad. This field must be - * left blank if the ad is using a targeting template. Applicable when type is - * AD_SERVING_STANDARD_AD. - */ - TechnologyTargeting technologyTargeting; - /** - * Type of ad. This is a required field on insertion. Note that default ads - * (AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative resource). - * Possible string values are: - * - "AD_SERVING_CLICK_TRACKER" - * - "AD_SERVING_DEFAULT_AD" - * - "AD_SERVING_STANDARD_AD" - * - "AD_SERVING_TRACKING" - */ - core.String type; - - Ad(); - - Ad.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("archived")) { - archived = _json["archived"]; - } - if (_json.containsKey("audienceSegmentId")) { - audienceSegmentId = _json["audienceSegmentId"]; - } - if (_json.containsKey("campaignId")) { - campaignId = _json["campaignId"]; - } - if (_json.containsKey("campaignIdDimensionValue")) { - campaignIdDimensionValue = new DimensionValue.fromJson(_json["campaignIdDimensionValue"]); - } - if (_json.containsKey("clickThroughUrl")) { - clickThroughUrl = new ClickThroughUrl.fromJson(_json["clickThroughUrl"]); - } - if (_json.containsKey("clickThroughUrlSuffixProperties")) { - clickThroughUrlSuffixProperties = new ClickThroughUrlSuffixProperties.fromJson(_json["clickThroughUrlSuffixProperties"]); - } - if (_json.containsKey("comments")) { - comments = _json["comments"]; - } - if (_json.containsKey("compatibility")) { - compatibility = _json["compatibility"]; - } - if (_json.containsKey("createInfo")) { - createInfo = new LastModifiedInfo.fromJson(_json["createInfo"]); - } - if (_json.containsKey("creativeGroupAssignments")) { - creativeGroupAssignments = _json["creativeGroupAssignments"].map((value) => new CreativeGroupAssignment.fromJson(value)).toList(); - } - if (_json.containsKey("creativeRotation")) { - creativeRotation = new CreativeRotation.fromJson(_json["creativeRotation"]); - } - if (_json.containsKey("dayPartTargeting")) { - dayPartTargeting = new DayPartTargeting.fromJson(_json["dayPartTargeting"]); - } - if (_json.containsKey("defaultClickThroughEventTagProperties")) { - defaultClickThroughEventTagProperties = new DefaultClickThroughEventTagProperties.fromJson(_json["defaultClickThroughEventTagProperties"]); - } - if (_json.containsKey("deliverySchedule")) { - deliverySchedule = new DeliverySchedule.fromJson(_json["deliverySchedule"]); - } - if (_json.containsKey("dynamicClickTracker")) { - dynamicClickTracker = _json["dynamicClickTracker"]; - } - if (_json.containsKey("endTime")) { - endTime = core.DateTime.parse(_json["endTime"]); - } - if (_json.containsKey("eventTagOverrides")) { - eventTagOverrides = _json["eventTagOverrides"].map((value) => new EventTagOverride.fromJson(value)).toList(); - } - if (_json.containsKey("geoTargeting")) { - geoTargeting = new GeoTargeting.fromJson(_json["geoTargeting"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("keyValueTargetingExpression")) { - keyValueTargetingExpression = new KeyValueTargetingExpression.fromJson(_json["keyValueTargetingExpression"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("languageTargeting")) { - languageTargeting = new LanguageTargeting.fromJson(_json["languageTargeting"]); - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("placementAssignments")) { - placementAssignments = _json["placementAssignments"].map((value) => new PlacementAssignment.fromJson(value)).toList(); - } - if (_json.containsKey("remarketingListExpression")) { - remarketingListExpression = new ListTargetingExpression.fromJson(_json["remarketingListExpression"]); - } - if (_json.containsKey("size")) { - size = new Size.fromJson(_json["size"]); - } - if (_json.containsKey("sslCompliant")) { - sslCompliant = _json["sslCompliant"]; - } - if (_json.containsKey("sslRequired")) { - sslRequired = _json["sslRequired"]; - } - if (_json.containsKey("startTime")) { - startTime = core.DateTime.parse(_json["startTime"]); - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("targetingTemplateId")) { - targetingTemplateId = _json["targetingTemplateId"]; - } - if (_json.containsKey("technologyTargeting")) { - technologyTargeting = new TechnologyTargeting.fromJson(_json["technologyTargeting"]); - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (active != null) { - _json["active"] = active; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (archived != null) { - _json["archived"] = archived; - } - if (audienceSegmentId != null) { - _json["audienceSegmentId"] = audienceSegmentId; - } - if (campaignId != null) { - _json["campaignId"] = campaignId; - } - if (campaignIdDimensionValue != null) { - _json["campaignIdDimensionValue"] = (campaignIdDimensionValue).toJson(); - } - if (clickThroughUrl != null) { - _json["clickThroughUrl"] = (clickThroughUrl).toJson(); - } - if (clickThroughUrlSuffixProperties != null) { - _json["clickThroughUrlSuffixProperties"] = (clickThroughUrlSuffixProperties).toJson(); - } - if (comments != null) { - _json["comments"] = comments; - } - if (compatibility != null) { - _json["compatibility"] = compatibility; - } - if (createInfo != null) { - _json["createInfo"] = (createInfo).toJson(); - } - if (creativeGroupAssignments != null) { - _json["creativeGroupAssignments"] = creativeGroupAssignments.map((value) => (value).toJson()).toList(); - } - if (creativeRotation != null) { - _json["creativeRotation"] = (creativeRotation).toJson(); - } - if (dayPartTargeting != null) { - _json["dayPartTargeting"] = (dayPartTargeting).toJson(); - } - if (defaultClickThroughEventTagProperties != null) { - _json["defaultClickThroughEventTagProperties"] = (defaultClickThroughEventTagProperties).toJson(); - } - if (deliverySchedule != null) { - _json["deliverySchedule"] = (deliverySchedule).toJson(); - } - if (dynamicClickTracker != null) { - _json["dynamicClickTracker"] = dynamicClickTracker; - } - if (endTime != null) { - _json["endTime"] = (endTime).toIso8601String(); - } - if (eventTagOverrides != null) { - _json["eventTagOverrides"] = eventTagOverrides.map((value) => (value).toJson()).toList(); - } - if (geoTargeting != null) { - _json["geoTargeting"] = (geoTargeting).toJson(); - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (keyValueTargetingExpression != null) { - _json["keyValueTargetingExpression"] = (keyValueTargetingExpression).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (languageTargeting != null) { - _json["languageTargeting"] = (languageTargeting).toJson(); - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (placementAssignments != null) { - _json["placementAssignments"] = placementAssignments.map((value) => (value).toJson()).toList(); - } - if (remarketingListExpression != null) { - _json["remarketingListExpression"] = (remarketingListExpression).toJson(); - } - if (size != null) { - _json["size"] = (size).toJson(); - } - if (sslCompliant != null) { - _json["sslCompliant"] = sslCompliant; - } - if (sslRequired != null) { - _json["sslRequired"] = sslRequired; - } - if (startTime != null) { - _json["startTime"] = (startTime).toIso8601String(); - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (targetingTemplateId != null) { - _json["targetingTemplateId"] = targetingTemplateId; - } - if (technologyTargeting != null) { - _json["technologyTargeting"] = (technologyTargeting).toJson(); - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** Ad Slot */ -class AdSlot { - /** Comment for this ad slot. */ - core.String comment; - /** - * Ad slot compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering - * either on desktop, mobile devices or in mobile apps for regular or - * interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering - * in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads - * developed with the VAST standard. - * Possible string values are: - * - "APP" - * - "APP_INTERSTITIAL" - * - "DISPLAY" - * - "DISPLAY_INTERSTITIAL" - * - "IN_STREAM_VIDEO" - */ - core.String compatibility; - /** Height of this ad slot. */ - core.String height; - /** - * ID of the placement from an external platform that is linked to this ad - * slot. - */ - core.String linkedPlacementId; - /** Name of this ad slot. */ - core.String name; - /** - * Payment source type of this ad slot. - * Possible string values are: - * - "PLANNING_PAYMENT_SOURCE_TYPE_AGENCY_PAID" - * - "PLANNING_PAYMENT_SOURCE_TYPE_PUBLISHER_PAID" - */ - core.String paymentSourceType; - /** Primary ad slot of a roadblock inventory item. */ - core.bool primary; - /** Width of this ad slot. */ - core.String width; - - AdSlot(); - - AdSlot.fromJson(core.Map _json) { - if (_json.containsKey("comment")) { - comment = _json["comment"]; - } - if (_json.containsKey("compatibility")) { - compatibility = _json["compatibility"]; - } - if (_json.containsKey("height")) { - height = _json["height"]; - } - if (_json.containsKey("linkedPlacementId")) { - linkedPlacementId = _json["linkedPlacementId"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("paymentSourceType")) { - paymentSourceType = _json["paymentSourceType"]; - } - if (_json.containsKey("primary")) { - primary = _json["primary"]; - } - if (_json.containsKey("width")) { - width = _json["width"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (comment != null) { - _json["comment"] = comment; - } - if (compatibility != null) { - _json["compatibility"] = compatibility; - } - if (height != null) { - _json["height"] = height; - } - if (linkedPlacementId != null) { - _json["linkedPlacementId"] = linkedPlacementId; - } - if (name != null) { - _json["name"] = name; - } - if (paymentSourceType != null) { - _json["paymentSourceType"] = paymentSourceType; - } - if (primary != null) { - _json["primary"] = primary; - } - if (width != null) { - _json["width"] = width; - } - return _json; - } -} - -/** Ad List Response */ -class AdsListResponse { - /** Ad collection. */ - core.List<Ad> ads; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#adsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - AdsListResponse(); - - AdsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("ads")) { - ads = _json["ads"].map((value) => new Ad.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (ads != null) { - _json["ads"] = ads.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Contains properties of a DCM advertiser. */ -class Advertiser { - /** - * Account ID of this advertiser.This is a read-only field that can be left - * blank. - */ - core.String accountId; - /** - * ID of the advertiser group this advertiser belongs to. You can group - * advertisers for reporting purposes, allowing you to see aggregated - * information for all advertisers in each group. - */ - core.String advertiserGroupId; - /** - * Suffix added to click-through URL of ad creative associations under this - * advertiser. Must be less than 129 characters long. - */ - core.String clickThroughUrlSuffix; - /** - * ID of the click-through event tag to apply by default to the landing pages - * of this advertiser's campaigns. - */ - core.String defaultClickThroughEventTagId; - /** Default email address used in sender field for tag emails. */ - core.String defaultEmail; - /** - * Floodlight configuration ID of this advertiser. The floodlight - * configuration ID will be created automatically, so on insert this field - * should be left blank. This field can be set to another advertiser's - * floodlight configuration ID in order to share that advertiser's floodlight - * configuration with this advertiser, so long as: - * - This advertiser's original floodlight configuration is not already - * associated with floodlight activities or floodlight activity groups. - * - This advertiser's original floodlight configuration is not already shared - * with another advertiser. - */ - core.String floodlightConfigurationId; - /** - * Dimension value for the ID of the floodlight configuration. This is a - * read-only, auto-generated field. - */ - DimensionValue floodlightConfigurationIdDimensionValue; - /** ID of this advertiser. This is a read-only, auto-generated field. */ - core.String id; - /** - * Dimension value for the ID of this advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue idDimensionValue; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#advertiser". - */ - core.String kind; - /** - * Name of this advertiser. This is a required field and must be less than 256 - * characters long and unique among advertisers of the same account. - */ - core.String name; - /** - * Original floodlight configuration before any sharing occurred. Set the - * floodlightConfigurationId of this advertiser to - * originalFloodlightConfigurationId to unshare the advertiser's current - * floodlight configuration. You cannot unshare an advertiser's floodlight - * configuration if the shared configuration has activities associated with - * any campaign or placement. - */ - core.String originalFloodlightConfigurationId; - /** - * Status of this advertiser. - * Possible string values are: - * - "APPROVED" - * - "ON_HOLD" - */ - core.String status; - /** - * Subaccount ID of this advertiser.This is a read-only field that can be left - * blank. - */ - core.String subaccountId; - /** Suspension status of this advertiser. */ - core.bool suspended; - - Advertiser(); - - Advertiser.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserGroupId")) { - advertiserGroupId = _json["advertiserGroupId"]; - } - if (_json.containsKey("clickThroughUrlSuffix")) { - clickThroughUrlSuffix = _json["clickThroughUrlSuffix"]; - } - if (_json.containsKey("defaultClickThroughEventTagId")) { - defaultClickThroughEventTagId = _json["defaultClickThroughEventTagId"]; - } - if (_json.containsKey("defaultEmail")) { - defaultEmail = _json["defaultEmail"]; - } - if (_json.containsKey("floodlightConfigurationId")) { - floodlightConfigurationId = _json["floodlightConfigurationId"]; - } - if (_json.containsKey("floodlightConfigurationIdDimensionValue")) { - floodlightConfigurationIdDimensionValue = new DimensionValue.fromJson(_json["floodlightConfigurationIdDimensionValue"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("originalFloodlightConfigurationId")) { - originalFloodlightConfigurationId = _json["originalFloodlightConfigurationId"]; - } - if (_json.containsKey("status")) { - status = _json["status"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("suspended")) { - suspended = _json["suspended"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserGroupId != null) { - _json["advertiserGroupId"] = advertiserGroupId; - } - if (clickThroughUrlSuffix != null) { - _json["clickThroughUrlSuffix"] = clickThroughUrlSuffix; - } - if (defaultClickThroughEventTagId != null) { - _json["defaultClickThroughEventTagId"] = defaultClickThroughEventTagId; - } - if (defaultEmail != null) { - _json["defaultEmail"] = defaultEmail; - } - if (floodlightConfigurationId != null) { - _json["floodlightConfigurationId"] = floodlightConfigurationId; - } - if (floodlightConfigurationIdDimensionValue != null) { - _json["floodlightConfigurationIdDimensionValue"] = (floodlightConfigurationIdDimensionValue).toJson(); - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (originalFloodlightConfigurationId != null) { - _json["originalFloodlightConfigurationId"] = originalFloodlightConfigurationId; - } - if (status != null) { - _json["status"] = status; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (suspended != null) { - _json["suspended"] = suspended; - } - return _json; - } -} - -/** - * Groups advertisers together so that reports can be generated for the entire - * group at once. - */ -class AdvertiserGroup { - /** - * Account ID of this advertiser group. This is a read-only field that can be - * left blank. - */ - core.String accountId; - /** - * ID of this advertiser group. This is a read-only, auto-generated field. - */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#advertiserGroup". - */ - core.String kind; - /** - * Name of this advertiser group. This is a required field and must be less - * than 256 characters long and unique among advertiser groups of the same - * account. - */ - core.String name; - - AdvertiserGroup(); - - AdvertiserGroup.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Advertiser Group List Response */ -class AdvertiserGroupsListResponse { - /** Advertiser group collection. */ - core.List<AdvertiserGroup> advertiserGroups; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#advertiserGroupsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - AdvertiserGroupsListResponse(); - - AdvertiserGroupsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("advertiserGroups")) { - advertiserGroups = _json["advertiserGroups"].map((value) => new AdvertiserGroup.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (advertiserGroups != null) { - _json["advertiserGroups"] = advertiserGroups.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Advertiser List Response */ -class AdvertisersListResponse { - /** Advertiser collection. */ - core.List<Advertiser> advertisers; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#advertisersListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - AdvertisersListResponse(); - - AdvertisersListResponse.fromJson(core.Map _json) { - if (_json.containsKey("advertisers")) { - advertisers = _json["advertisers"].map((value) => new Advertiser.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (advertisers != null) { - _json["advertisers"] = advertisers.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Audience Segment. */ -class AudienceSegment { - /** - * Weight allocated to this segment. The weight assigned will be understood in - * proportion to the weights assigned to other segments in the same segment - * group. Acceptable values are 1 to 1000, inclusive. - */ - core.int allocation; - /** - * ID of this audience segment. This is a read-only, auto-generated field. - */ - core.String id; - /** - * Name of this audience segment. This is a required field and must be less - * than 65 characters long. - */ - core.String name; - - AudienceSegment(); - - AudienceSegment.fromJson(core.Map _json) { - if (_json.containsKey("allocation")) { - allocation = _json["allocation"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (allocation != null) { - _json["allocation"] = allocation; - } - if (id != null) { - _json["id"] = id; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Audience Segment Group. */ -class AudienceSegmentGroup { - /** - * Audience segments assigned to this group. The number of segments must be - * between 2 and 100. - */ - core.List<AudienceSegment> audienceSegments; - /** - * ID of this audience segment group. This is a read-only, auto-generated - * field. - */ - core.String id; - /** - * Name of this audience segment group. This is a required field and must be - * less than 65 characters long. - */ - core.String name; - - AudienceSegmentGroup(); - - AudienceSegmentGroup.fromJson(core.Map _json) { - if (_json.containsKey("audienceSegments")) { - audienceSegments = _json["audienceSegments"].map((value) => new AudienceSegment.fromJson(value)).toList(); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (audienceSegments != null) { - _json["audienceSegments"] = audienceSegments.map((value) => (value).toJson()).toList(); - } - if (id != null) { - _json["id"] = id; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Contains information about a browser that can be targeted by ads. */ -class Browser { - /** - * ID referring to this grouping of browser and version numbers. This is the - * ID used for targeting. - */ - core.String browserVersionId; - /** DART ID of this browser. This is the ID used when generating reports. */ - core.String dartId; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#browser". - */ - core.String kind; - /** - * Major version number (leftmost number) of this browser. For example, for - * Chrome 5.0.376.86 beta, this field should be set to 5. An asterisk (*) may - * be used to target any version number, and a question mark (?) may be used - * to target cases where the version number cannot be identified. For example, - * Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome - * 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where - * the ad server knows the browser is Firefox but can't tell which version it - * is. - */ - core.String majorVersion; - /** - * Minor version number (number after first dot on left) of this browser. For - * example, for Chrome 5.0.375.86 beta, this field should be set to 0. An - * asterisk (*) may be used to target any version number, and a question mark - * (?) may be used to target cases where the version number cannot be - * identified. For example, Chrome *.* targets any version of Chrome: 1.2, - * 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. - * Firefox ?.? targets cases where the ad server knows the browser is Firefox - * but can't tell which version it is. - */ - core.String minorVersion; - /** Name of this browser. */ - core.String name; - - Browser(); - - Browser.fromJson(core.Map _json) { - if (_json.containsKey("browserVersionId")) { - browserVersionId = _json["browserVersionId"]; - } - if (_json.containsKey("dartId")) { - dartId = _json["dartId"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("majorVersion")) { - majorVersion = _json["majorVersion"]; - } - if (_json.containsKey("minorVersion")) { - minorVersion = _json["minorVersion"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (browserVersionId != null) { - _json["browserVersionId"] = browserVersionId; - } - if (dartId != null) { - _json["dartId"] = dartId; - } - if (kind != null) { - _json["kind"] = kind; - } - if (majorVersion != null) { - _json["majorVersion"] = majorVersion; - } - if (minorVersion != null) { - _json["minorVersion"] = minorVersion; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Browser List Response */ -class BrowsersListResponse { - /** Browser collection. */ - core.List<Browser> browsers; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#browsersListResponse". - */ - core.String kind; - - BrowsersListResponse(); - - BrowsersListResponse.fromJson(core.Map _json) { - if (_json.containsKey("browsers")) { - browsers = _json["browsers"].map((value) => new Browser.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (browsers != null) { - _json["browsers"] = browsers.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Contains properties of a DCM campaign. */ -class Campaign { - /** - * Account ID of this campaign. This is a read-only field that can be left - * blank. - */ - core.String accountId; - /** Additional creative optimization configurations for the campaign. */ - core.List<CreativeOptimizationConfiguration> additionalCreativeOptimizationConfigurations; - /** Advertiser group ID of the associated advertiser. */ - core.String advertiserGroupId; - /** Advertiser ID of this campaign. This is a required field. */ - core.String advertiserId; - /** - * Dimension value for the advertiser ID of this campaign. This is a - * read-only, auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** Whether this campaign has been archived. */ - core.bool archived; - /** - * Audience segment groups assigned to this campaign. Cannot have more than - * 300 segment groups. - */ - core.List<AudienceSegmentGroup> audienceSegmentGroups; - /** - * Billing invoice code included in the DCM client billing invoices associated - * with the campaign. - */ - core.String billingInvoiceCode; - /** Click-through URL suffix override properties for this campaign. */ - ClickThroughUrlSuffixProperties clickThroughUrlSuffixProperties; - /** - * Arbitrary comments about this campaign. Must be less than 256 characters - * long. - */ - core.String comment; - /** - * Information about the creation of this campaign. This is a read-only field. - */ - LastModifiedInfo createInfo; - /** List of creative group IDs that are assigned to the campaign. */ - core.List<core.String> creativeGroupIds; - /** Creative optimization configuration for the campaign. */ - CreativeOptimizationConfiguration creativeOptimizationConfiguration; - /** Click-through event tag ID override properties for this campaign. */ - DefaultClickThroughEventTagProperties defaultClickThroughEventTagProperties; - /** - * Date on which the campaign will stop running. On insert, the end date must - * be today or a future date. The end date must be later than or be the same - * as the start date. If, for example, you set 6/25/2015 as both the start and - * end dates, the effective campaign run date is just that day only, - * 6/25/2015. The hours, minutes, and seconds of the end date should not be - * set, as doing so will result in an error. This is a required field. - */ - core.DateTime endDate; - /** - * Overrides that can be used to activate or deactivate advertiser event tags. - */ - core.List<EventTagOverride> eventTagOverrides; - /** External ID for this campaign. */ - core.String externalId; - /** ID of this campaign. This is a read-only auto-generated field. */ - core.String id; - /** - * Dimension value for the ID of this campaign. This is a read-only, - * auto-generated field. - */ - DimensionValue idDimensionValue; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#campaign". - */ - core.String kind; - /** - * Information about the most recent modification of this campaign. This is a - * read-only field. - */ - LastModifiedInfo lastModifiedInfo; - /** Lookback window settings for the campaign. */ - LookbackConfiguration lookbackConfiguration; - /** - * Name of this campaign. This is a required field and must be less than 256 - * characters long and unique among campaigns of the same advertiser. - */ - core.String name; - /** Whether Nielsen reports are enabled for this campaign. */ - core.bool nielsenOcrEnabled; - /** - * Date on which the campaign starts running. The start date can be any date. - * The hours, minutes, and seconds of the start date should not be set, as - * doing so will result in an error. This is a required field. - */ - core.DateTime startDate; - /** - * Subaccount ID of this campaign. This is a read-only field that can be left - * blank. - */ - core.String subaccountId; - /** Campaign trafficker contact emails. */ - core.List<core.String> traffickerEmails; - - Campaign(); - - Campaign.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("additionalCreativeOptimizationConfigurations")) { - additionalCreativeOptimizationConfigurations = _json["additionalCreativeOptimizationConfigurations"].map((value) => new CreativeOptimizationConfiguration.fromJson(value)).toList(); - } - if (_json.containsKey("advertiserGroupId")) { - advertiserGroupId = _json["advertiserGroupId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("archived")) { - archived = _json["archived"]; - } - if (_json.containsKey("audienceSegmentGroups")) { - audienceSegmentGroups = _json["audienceSegmentGroups"].map((value) => new AudienceSegmentGroup.fromJson(value)).toList(); - } - if (_json.containsKey("billingInvoiceCode")) { - billingInvoiceCode = _json["billingInvoiceCode"]; - } - if (_json.containsKey("clickThroughUrlSuffixProperties")) { - clickThroughUrlSuffixProperties = new ClickThroughUrlSuffixProperties.fromJson(_json["clickThroughUrlSuffixProperties"]); - } - if (_json.containsKey("comment")) { - comment = _json["comment"]; - } - if (_json.containsKey("createInfo")) { - createInfo = new LastModifiedInfo.fromJson(_json["createInfo"]); - } - if (_json.containsKey("creativeGroupIds")) { - creativeGroupIds = _json["creativeGroupIds"]; - } - if (_json.containsKey("creativeOptimizationConfiguration")) { - creativeOptimizationConfiguration = new CreativeOptimizationConfiguration.fromJson(_json["creativeOptimizationConfiguration"]); - } - if (_json.containsKey("defaultClickThroughEventTagProperties")) { - defaultClickThroughEventTagProperties = new DefaultClickThroughEventTagProperties.fromJson(_json["defaultClickThroughEventTagProperties"]); - } - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("eventTagOverrides")) { - eventTagOverrides = _json["eventTagOverrides"].map((value) => new EventTagOverride.fromJson(value)).toList(); - } - if (_json.containsKey("externalId")) { - externalId = _json["externalId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("lookbackConfiguration")) { - lookbackConfiguration = new LookbackConfiguration.fromJson(_json["lookbackConfiguration"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("nielsenOcrEnabled")) { - nielsenOcrEnabled = _json["nielsenOcrEnabled"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("traffickerEmails")) { - traffickerEmails = _json["traffickerEmails"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (additionalCreativeOptimizationConfigurations != null) { - _json["additionalCreativeOptimizationConfigurations"] = additionalCreativeOptimizationConfigurations.map((value) => (value).toJson()).toList(); - } - if (advertiserGroupId != null) { - _json["advertiserGroupId"] = advertiserGroupId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (archived != null) { - _json["archived"] = archived; - } - if (audienceSegmentGroups != null) { - _json["audienceSegmentGroups"] = audienceSegmentGroups.map((value) => (value).toJson()).toList(); - } - if (billingInvoiceCode != null) { - _json["billingInvoiceCode"] = billingInvoiceCode; - } - if (clickThroughUrlSuffixProperties != null) { - _json["clickThroughUrlSuffixProperties"] = (clickThroughUrlSuffixProperties).toJson(); - } - if (comment != null) { - _json["comment"] = comment; - } - if (createInfo != null) { - _json["createInfo"] = (createInfo).toJson(); - } - if (creativeGroupIds != null) { - _json["creativeGroupIds"] = creativeGroupIds; - } - if (creativeOptimizationConfiguration != null) { - _json["creativeOptimizationConfiguration"] = (creativeOptimizationConfiguration).toJson(); - } - if (defaultClickThroughEventTagProperties != null) { - _json["defaultClickThroughEventTagProperties"] = (defaultClickThroughEventTagProperties).toJson(); - } - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (eventTagOverrides != null) { - _json["eventTagOverrides"] = eventTagOverrides.map((value) => (value).toJson()).toList(); - } - if (externalId != null) { - _json["externalId"] = externalId; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (lookbackConfiguration != null) { - _json["lookbackConfiguration"] = (lookbackConfiguration).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (nielsenOcrEnabled != null) { - _json["nielsenOcrEnabled"] = nielsenOcrEnabled; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (traffickerEmails != null) { - _json["traffickerEmails"] = traffickerEmails; - } - return _json; - } -} - -/** Identifies a creative which has been associated with a given campaign. */ -class CampaignCreativeAssociation { - /** - * ID of the creative associated with the campaign. This is a required field. - */ - core.String creativeId; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#campaignCreativeAssociation". - */ - core.String kind; - - CampaignCreativeAssociation(); - - CampaignCreativeAssociation.fromJson(core.Map _json) { - if (_json.containsKey("creativeId")) { - creativeId = _json["creativeId"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creativeId != null) { - _json["creativeId"] = creativeId; - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Campaign Creative Association List Response */ -class CampaignCreativeAssociationsListResponse { - /** Campaign creative association collection */ - core.List<CampaignCreativeAssociation> campaignCreativeAssociations; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#campaignCreativeAssociationsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - CampaignCreativeAssociationsListResponse(); - - CampaignCreativeAssociationsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("campaignCreativeAssociations")) { - campaignCreativeAssociations = _json["campaignCreativeAssociations"].map((value) => new CampaignCreativeAssociation.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (campaignCreativeAssociations != null) { - _json["campaignCreativeAssociations"] = campaignCreativeAssociations.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Campaign List Response */ -class CampaignsListResponse { - /** Campaign collection. */ - core.List<Campaign> campaigns; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#campaignsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - CampaignsListResponse(); - - CampaignsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("campaigns")) { - campaigns = _json["campaigns"].map((value) => new Campaign.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (campaigns != null) { - _json["campaigns"] = campaigns.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Describes a change that a user has made to a resource. */ -class ChangeLog { - /** Account ID of the modified object. */ - core.String accountId; - /** Action which caused the change. */ - core.String action; - /** Time when the object was modified. */ - core.DateTime changeTime; - /** Field name of the object which changed. */ - core.String fieldName; - /** ID of this change log. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#changeLog". - */ - core.String kind; - /** New value of the object field. */ - core.String newValue; - /** - * ID of the object of this change log. The object could be a campaign, - * placement, ad, or other type. - */ - core.String objectId; - /** Object type of the change log. */ - core.String objectType; - /** Old value of the object field. */ - core.String oldValue; - /** Subaccount ID of the modified object. */ - core.String subaccountId; - /** - * Transaction ID of this change log. When a single API call results in many - * changes, each change will have a separate ID in the change log but will - * share the same transactionId. - */ - core.String transactionId; - /** ID of the user who modified the object. */ - core.String userProfileId; - /** User profile name of the user who modified the object. */ - core.String userProfileName; - - ChangeLog(); - - ChangeLog.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("action")) { - action = _json["action"]; - } - if (_json.containsKey("changeTime")) { - changeTime = core.DateTime.parse(_json["changeTime"]); - } - if (_json.containsKey("fieldName")) { - fieldName = _json["fieldName"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("newValue")) { - newValue = _json["newValue"]; - } - if (_json.containsKey("objectId")) { - objectId = _json["objectId"]; - } - if (_json.containsKey("objectType")) { - objectType = _json["objectType"]; - } - if (_json.containsKey("oldValue")) { - oldValue = _json["oldValue"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("transactionId")) { - transactionId = _json["transactionId"]; - } - if (_json.containsKey("userProfileId")) { - userProfileId = _json["userProfileId"]; - } - if (_json.containsKey("userProfileName")) { - userProfileName = _json["userProfileName"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (action != null) { - _json["action"] = action; - } - if (changeTime != null) { - _json["changeTime"] = (changeTime).toIso8601String(); - } - if (fieldName != null) { - _json["fieldName"] = fieldName; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (newValue != null) { - _json["newValue"] = newValue; - } - if (objectId != null) { - _json["objectId"] = objectId; - } - if (objectType != null) { - _json["objectType"] = objectType; - } - if (oldValue != null) { - _json["oldValue"] = oldValue; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (transactionId != null) { - _json["transactionId"] = transactionId; - } - if (userProfileId != null) { - _json["userProfileId"] = userProfileId; - } - if (userProfileName != null) { - _json["userProfileName"] = userProfileName; - } - return _json; - } -} - -/** Change Log List Response */ -class ChangeLogsListResponse { - /** Change log collection. */ - core.List<ChangeLog> changeLogs; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#changeLogsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - ChangeLogsListResponse(); - - ChangeLogsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("changeLogs")) { - changeLogs = _json["changeLogs"].map((value) => new ChangeLog.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (changeLogs != null) { - _json["changeLogs"] = changeLogs.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** City List Response */ -class CitiesListResponse { - /** City collection. */ - core.List<City> cities; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#citiesListResponse". - */ - core.String kind; - - CitiesListResponse(); - - CitiesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("cities")) { - cities = _json["cities"].map((value) => new City.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (cities != null) { - _json["cities"] = cities.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Contains information about a city that can be targeted by ads. */ -class City { - /** Country code of the country to which this city belongs. */ - core.String countryCode; - /** DART ID of the country to which this city belongs. */ - core.String countryDartId; - /** - * DART ID of this city. This is the ID used for targeting and generating - * reports. - */ - core.String dartId; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#city". - */ - core.String kind; - /** - * Metro region code of the metro region (DMA) to which this city belongs. - */ - core.String metroCode; - /** ID of the metro region (DMA) to which this city belongs. */ - core.String metroDmaId; - /** Name of this city. */ - core.String name; - /** Region code of the region to which this city belongs. */ - core.String regionCode; - /** DART ID of the region to which this city belongs. */ - core.String regionDartId; - - City(); - - City.fromJson(core.Map _json) { - if (_json.containsKey("countryCode")) { - countryCode = _json["countryCode"]; - } - if (_json.containsKey("countryDartId")) { - countryDartId = _json["countryDartId"]; - } - if (_json.containsKey("dartId")) { - dartId = _json["dartId"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metroCode")) { - metroCode = _json["metroCode"]; - } - if (_json.containsKey("metroDmaId")) { - metroDmaId = _json["metroDmaId"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("regionCode")) { - regionCode = _json["regionCode"]; - } - if (_json.containsKey("regionDartId")) { - regionDartId = _json["regionDartId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (countryCode != null) { - _json["countryCode"] = countryCode; - } - if (countryDartId != null) { - _json["countryDartId"] = countryDartId; - } - if (dartId != null) { - _json["dartId"] = dartId; - } - if (kind != null) { - _json["kind"] = kind; - } - if (metroCode != null) { - _json["metroCode"] = metroCode; - } - if (metroDmaId != null) { - _json["metroDmaId"] = metroDmaId; - } - if (name != null) { - _json["name"] = name; - } - if (regionCode != null) { - _json["regionCode"] = regionCode; - } - if (regionDartId != null) { - _json["regionDartId"] = regionDartId; - } - return _json; - } -} - -/** Creative Click Tag. */ -class ClickTag { - /** - * Advertiser event name associated with the click tag. This field is used by - * DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. Applicable to DISPLAY - * when the primary asset type is not HTML_IMAGE. - */ - core.String eventName; - /** - * Parameter name for the specified click tag. For DISPLAY_IMAGE_GALLERY - * creative assets, this field must match the value of the creative asset's - * creativeAssetId.name field. - */ - core.String name; - /** - * Parameter value for the specified click tag. This field contains a - * click-through url. - */ - core.String value; - - ClickTag(); - - ClickTag.fromJson(core.Map _json) { - if (_json.containsKey("eventName")) { - eventName = _json["eventName"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (eventName != null) { - _json["eventName"] = eventName; - } - if (name != null) { - _json["name"] = name; - } - if (value != null) { - _json["value"] = value; - } - return _json; - } -} - -/** Click-through URL */ -class ClickThroughUrl { - /** - * Read-only convenience field representing the actual URL that will be used - * for this click-through. The URL is computed as follows: - * - If defaultLandingPage is enabled then the campaign's default landing page - * URL is assigned to this field. - * - If defaultLandingPage is not enabled and a landingPageId is specified - * then that landing page's URL is assigned to this field. - * - If neither of the above cases apply, then the customClickThroughUrl is - * assigned to this field. - */ - core.String computedClickThroughUrl; - /** - * Custom click-through URL. Applicable if the defaultLandingPage field is set - * to false and the landingPageId field is left unset. - */ - core.String customClickThroughUrl; - /** Whether the campaign default landing page is used. */ - core.bool defaultLandingPage; - /** - * ID of the landing page for the click-through URL. Applicable if the - * defaultLandingPage field is set to false. - */ - core.String landingPageId; - - ClickThroughUrl(); - - ClickThroughUrl.fromJson(core.Map _json) { - if (_json.containsKey("computedClickThroughUrl")) { - computedClickThroughUrl = _json["computedClickThroughUrl"]; - } - if (_json.containsKey("customClickThroughUrl")) { - customClickThroughUrl = _json["customClickThroughUrl"]; - } - if (_json.containsKey("defaultLandingPage")) { - defaultLandingPage = _json["defaultLandingPage"]; - } - if (_json.containsKey("landingPageId")) { - landingPageId = _json["landingPageId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (computedClickThroughUrl != null) { - _json["computedClickThroughUrl"] = computedClickThroughUrl; - } - if (customClickThroughUrl != null) { - _json["customClickThroughUrl"] = customClickThroughUrl; - } - if (defaultLandingPage != null) { - _json["defaultLandingPage"] = defaultLandingPage; - } - if (landingPageId != null) { - _json["landingPageId"] = landingPageId; - } - return _json; - } -} - -/** Click Through URL Suffix settings. */ -class ClickThroughUrlSuffixProperties { - /** - * Click-through URL suffix to apply to all ads in this entity's scope. Must - * be less than 128 characters long. - */ - core.String clickThroughUrlSuffix; - /** - * Whether this entity should override the inherited click-through URL suffix - * with its own defined value. - */ - core.bool overrideInheritedSuffix; - - ClickThroughUrlSuffixProperties(); - - ClickThroughUrlSuffixProperties.fromJson(core.Map _json) { - if (_json.containsKey("clickThroughUrlSuffix")) { - clickThroughUrlSuffix = _json["clickThroughUrlSuffix"]; - } - if (_json.containsKey("overrideInheritedSuffix")) { - overrideInheritedSuffix = _json["overrideInheritedSuffix"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (clickThroughUrlSuffix != null) { - _json["clickThroughUrlSuffix"] = clickThroughUrlSuffix; - } - if (overrideInheritedSuffix != null) { - _json["overrideInheritedSuffix"] = overrideInheritedSuffix; - } - return _json; - } -} - -/** Companion Click-through override. */ -class CompanionClickThroughOverride { - /** Click-through URL of this companion click-through override. */ - ClickThroughUrl clickThroughUrl; - /** ID of the creative for this companion click-through override. */ - core.String creativeId; - - CompanionClickThroughOverride(); - - CompanionClickThroughOverride.fromJson(core.Map _json) { - if (_json.containsKey("clickThroughUrl")) { - clickThroughUrl = new ClickThroughUrl.fromJson(_json["clickThroughUrl"]); - } - if (_json.containsKey("creativeId")) { - creativeId = _json["creativeId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (clickThroughUrl != null) { - _json["clickThroughUrl"] = (clickThroughUrl).toJson(); - } - if (creativeId != null) { - _json["creativeId"] = creativeId; - } - return _json; - } -} - -/** Represents a response to the queryCompatibleFields method. */ -class CompatibleFields { - /** - * Contains items that are compatible to be selected for a report of type - * "CROSS_DIMENSION_REACH". - */ - CrossDimensionReachReportCompatibleFields crossDimensionReachReportCompatibleFields; - /** - * Contains items that are compatible to be selected for a report of type - * "FLOODLIGHT". - */ - FloodlightReportCompatibleFields floodlightReportCompatibleFields; - /** - * The kind of resource this is, in this case dfareporting#compatibleFields. - */ - core.String kind; - /** - * Contains items that are compatible to be selected for a report of type - * "PATH_TO_CONVERSION". - */ - PathToConversionReportCompatibleFields pathToConversionReportCompatibleFields; - /** - * Contains items that are compatible to be selected for a report of type - * "REACH". - */ - ReachReportCompatibleFields reachReportCompatibleFields; - /** - * Contains items that are compatible to be selected for a report of type - * "STANDARD". - */ - ReportCompatibleFields reportCompatibleFields; - - CompatibleFields(); - - CompatibleFields.fromJson(core.Map _json) { - if (_json.containsKey("crossDimensionReachReportCompatibleFields")) { - crossDimensionReachReportCompatibleFields = new CrossDimensionReachReportCompatibleFields.fromJson(_json["crossDimensionReachReportCompatibleFields"]); - } - if (_json.containsKey("floodlightReportCompatibleFields")) { - floodlightReportCompatibleFields = new FloodlightReportCompatibleFields.fromJson(_json["floodlightReportCompatibleFields"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("pathToConversionReportCompatibleFields")) { - pathToConversionReportCompatibleFields = new PathToConversionReportCompatibleFields.fromJson(_json["pathToConversionReportCompatibleFields"]); - } - if (_json.containsKey("reachReportCompatibleFields")) { - reachReportCompatibleFields = new ReachReportCompatibleFields.fromJson(_json["reachReportCompatibleFields"]); - } - if (_json.containsKey("reportCompatibleFields")) { - reportCompatibleFields = new ReportCompatibleFields.fromJson(_json["reportCompatibleFields"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (crossDimensionReachReportCompatibleFields != null) { - _json["crossDimensionReachReportCompatibleFields"] = (crossDimensionReachReportCompatibleFields).toJson(); - } - if (floodlightReportCompatibleFields != null) { - _json["floodlightReportCompatibleFields"] = (floodlightReportCompatibleFields).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (pathToConversionReportCompatibleFields != null) { - _json["pathToConversionReportCompatibleFields"] = (pathToConversionReportCompatibleFields).toJson(); - } - if (reachReportCompatibleFields != null) { - _json["reachReportCompatibleFields"] = (reachReportCompatibleFields).toJson(); - } - if (reportCompatibleFields != null) { - _json["reportCompatibleFields"] = (reportCompatibleFields).toJson(); - } - return _json; - } -} - -/** - * Contains information about an internet connection type that can be targeted - * by ads. Clients can use the connection type to target mobile vs. broadband - * users. - */ -class ConnectionType { - /** ID of this connection type. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#connectionType". - */ - core.String kind; - /** Name of this connection type. */ - core.String name; - - ConnectionType(); - - ConnectionType.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Connection Type List Response */ -class ConnectionTypesListResponse { - /** Collection of connection types such as broadband and mobile. */ - core.List<ConnectionType> connectionTypes; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#connectionTypesListResponse". - */ - core.String kind; - - ConnectionTypesListResponse(); - - ConnectionTypesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("connectionTypes")) { - connectionTypes = _json["connectionTypes"].map((value) => new ConnectionType.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (connectionTypes != null) { - _json["connectionTypes"] = connectionTypes.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Content Category List Response */ -class ContentCategoriesListResponse { - /** Content category collection. */ - core.List<ContentCategory> contentCategories; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#contentCategoriesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - ContentCategoriesListResponse(); - - ContentCategoriesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("contentCategories")) { - contentCategories = _json["contentCategories"].map((value) => new ContentCategory.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (contentCategories != null) { - _json["contentCategories"] = contentCategories.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** - * Organizes placements according to the contents of their associated webpages. - */ -class ContentCategory { - /** - * Account ID of this content category. This is a read-only field that can be - * left blank. - */ - core.String accountId; - /** - * ID of this content category. This is a read-only, auto-generated field. - */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#contentCategory". - */ - core.String kind; - /** - * Name of this content category. This is a required field and must be less - * than 256 characters long and unique among content categories of the same - * account. - */ - core.String name; - - ContentCategory(); - - ContentCategory.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** - * A Conversion represents when a user successfully performs a desired action - * after seeing an ad. - */ -class Conversion { - /** Whether the conversion was directed toward children. */ - core.bool childDirectedTreatment; - /** Custom floodlight variables. */ - core.List<CustomFloodlightVariable> customVariables; - /** - * The alphanumeric encrypted user ID. When set, encryptionInfo should also be - * specified. This field is mutually exclusive with - * encryptedUserIdCandidates[] and mobileDeviceId. This or - * encryptedUserIdCandidates[] or mobileDeviceId is a required field. - */ - core.String encryptedUserId; - /** - * A list of the alphanumeric encrypted user IDs. Any user ID with exposure - * prior to the conversion timestamp will be used in the inserted conversion. - * If no such user ID is found then the conversion will be rejected with - * NO_COOKIE_MATCH_FOUND error. When set, encryptionInfo should also be - * specified. This field should only be used when calling - * conversions.batchinsert. This field is mutually exclusive with - * encryptedUserId and mobileDeviceId. This or encryptedUserId or - * mobileDeviceId is a required field. - */ - core.List<core.String> encryptedUserIdCandidates; - /** Floodlight Activity ID of this conversion. This is a required field. */ - core.String floodlightActivityId; - /** - * Floodlight Configuration ID of this conversion. This is a required field. - */ - core.String floodlightConfigurationId; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#conversion". - */ - core.String kind; - /** - * Whether Limit Ad Tracking is enabled. When set to true, the conversion will - * be used for reporting but not targeting. This will prevent remarketing. - */ - core.bool limitAdTracking; - /** - * The mobile device ID. This field is mutually exclusive with encryptedUserId - * and encryptedUserIdCandidates[]. This or encryptedUserId or - * encryptedUserIdCandidates[] is a required field. - */ - core.String mobileDeviceId; - /** - * The ordinal of the conversion. Use this field to control how conversions of - * the same user and day are de-duplicated. This is a required field. - */ - core.String ordinal; - /** The quantity of the conversion. */ - core.String quantity; - /** - * The timestamp of conversion, in Unix epoch micros. This is a required - * field. - */ - core.String timestampMicros; - /** The value of the conversion. */ - core.double value; - - Conversion(); - - Conversion.fromJson(core.Map _json) { - if (_json.containsKey("childDirectedTreatment")) { - childDirectedTreatment = _json["childDirectedTreatment"]; - } - if (_json.containsKey("customVariables")) { - customVariables = _json["customVariables"].map((value) => new CustomFloodlightVariable.fromJson(value)).toList(); - } - if (_json.containsKey("encryptedUserId")) { - encryptedUserId = _json["encryptedUserId"]; - } - if (_json.containsKey("encryptedUserIdCandidates")) { - encryptedUserIdCandidates = _json["encryptedUserIdCandidates"]; - } - if (_json.containsKey("floodlightActivityId")) { - floodlightActivityId = _json["floodlightActivityId"]; - } - if (_json.containsKey("floodlightConfigurationId")) { - floodlightConfigurationId = _json["floodlightConfigurationId"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("limitAdTracking")) { - limitAdTracking = _json["limitAdTracking"]; - } - if (_json.containsKey("mobileDeviceId")) { - mobileDeviceId = _json["mobileDeviceId"]; - } - if (_json.containsKey("ordinal")) { - ordinal = _json["ordinal"]; - } - if (_json.containsKey("quantity")) { - quantity = _json["quantity"]; - } - if (_json.containsKey("timestampMicros")) { - timestampMicros = _json["timestampMicros"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (childDirectedTreatment != null) { - _json["childDirectedTreatment"] = childDirectedTreatment; - } - if (customVariables != null) { - _json["customVariables"] = customVariables.map((value) => (value).toJson()).toList(); - } - if (encryptedUserId != null) { - _json["encryptedUserId"] = encryptedUserId; - } - if (encryptedUserIdCandidates != null) { - _json["encryptedUserIdCandidates"] = encryptedUserIdCandidates; - } - if (floodlightActivityId != null) { - _json["floodlightActivityId"] = floodlightActivityId; - } - if (floodlightConfigurationId != null) { - _json["floodlightConfigurationId"] = floodlightConfigurationId; - } - if (kind != null) { - _json["kind"] = kind; - } - if (limitAdTracking != null) { - _json["limitAdTracking"] = limitAdTracking; - } - if (mobileDeviceId != null) { - _json["mobileDeviceId"] = mobileDeviceId; - } - if (ordinal != null) { - _json["ordinal"] = ordinal; - } - if (quantity != null) { - _json["quantity"] = quantity; - } - if (timestampMicros != null) { - _json["timestampMicros"] = timestampMicros; - } - if (value != null) { - _json["value"] = value; - } - return _json; - } -} - -/** - * The error code and description for a conversion that failed to insert or - * update. - */ -class ConversionError { - /** - * The error code. - * Possible string values are: - * - "INTERNAL" - * - "INVALID_ARGUMENT" - * - "NOT_FOUND" - * - "PERMISSION_DENIED" - */ - core.String code; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#conversionError". - */ - core.String kind; - /** A description of the error. */ - core.String message; - - ConversionError(); - - ConversionError.fromJson(core.Map _json) { - if (_json.containsKey("code")) { - code = _json["code"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("message")) { - message = _json["message"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (code != null) { - _json["code"] = code; - } - if (kind != null) { - _json["kind"] = kind; - } - if (message != null) { - _json["message"] = message; - } - return _json; - } -} - -/** - * The original conversion that was inserted or updated and whether there were - * any errors. - */ -class ConversionStatus { - /** The original conversion that was inserted or updated. */ - Conversion conversion; - /** A list of errors related to this conversion. */ - core.List<ConversionError> errors; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#conversionStatus". - */ - core.String kind; - - ConversionStatus(); - - ConversionStatus.fromJson(core.Map _json) { - if (_json.containsKey("conversion")) { - conversion = new Conversion.fromJson(_json["conversion"]); - } - if (_json.containsKey("errors")) { - errors = _json["errors"].map((value) => new ConversionError.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (conversion != null) { - _json["conversion"] = (conversion).toJson(); - } - if (errors != null) { - _json["errors"] = errors.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Insert Conversions Request. */ -class ConversionsBatchInsertRequest { - /** The set of conversions to insert. */ - core.List<Conversion> conversions; - /** - * Describes how encryptedUserId or encryptedUserIdCandidates[] is encrypted. - * This is a required field if encryptedUserId or encryptedUserIdCandidates[] - * is used. - */ - EncryptionInfo encryptionInfo; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#conversionsBatchInsertRequest". - */ - core.String kind; - - ConversionsBatchInsertRequest(); - - ConversionsBatchInsertRequest.fromJson(core.Map _json) { - if (_json.containsKey("conversions")) { - conversions = _json["conversions"].map((value) => new Conversion.fromJson(value)).toList(); - } - if (_json.containsKey("encryptionInfo")) { - encryptionInfo = new EncryptionInfo.fromJson(_json["encryptionInfo"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (conversions != null) { - _json["conversions"] = conversions.map((value) => (value).toJson()).toList(); - } - if (encryptionInfo != null) { - _json["encryptionInfo"] = (encryptionInfo).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Insert Conversions Response. */ -class ConversionsBatchInsertResponse { - /** Indicates that some or all conversions failed to insert. */ - core.bool hasFailures; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#conversionsBatchInsertResponse". - */ - core.String kind; - /** - * The insert status of each conversion. Statuses are returned in the same - * order that conversions are inserted. - */ - core.List<ConversionStatus> status; - - ConversionsBatchInsertResponse(); - - ConversionsBatchInsertResponse.fromJson(core.Map _json) { - if (_json.containsKey("hasFailures")) { - hasFailures = _json["hasFailures"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("status")) { - status = _json["status"].map((value) => new ConversionStatus.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (hasFailures != null) { - _json["hasFailures"] = hasFailures; - } - if (kind != null) { - _json["kind"] = kind; - } - if (status != null) { - _json["status"] = status.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Country List Response */ -class CountriesListResponse { - /** Country collection. */ - core.List<Country> countries; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#countriesListResponse". - */ - core.String kind; - - CountriesListResponse(); - - CountriesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("countries")) { - countries = _json["countries"].map((value) => new Country.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (countries != null) { - _json["countries"] = countries.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Contains information about a country that can be targeted by ads. */ -class Country { - /** Country code. */ - core.String countryCode; - /** - * DART ID of this country. This is the ID used for targeting and generating - * reports. - */ - core.String dartId; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#country". - */ - core.String kind; - /** Name of this country. */ - core.String name; - /** Whether ad serving supports secure servers in this country. */ - core.bool sslEnabled; - - Country(); - - Country.fromJson(core.Map _json) { - if (_json.containsKey("countryCode")) { - countryCode = _json["countryCode"]; - } - if (_json.containsKey("dartId")) { - dartId = _json["dartId"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("sslEnabled")) { - sslEnabled = _json["sslEnabled"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (countryCode != null) { - _json["countryCode"] = countryCode; - } - if (dartId != null) { - _json["dartId"] = dartId; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (sslEnabled != null) { - _json["sslEnabled"] = sslEnabled; - } - return _json; - } -} - -/** Contains properties of a Creative. */ -class Creative { - /** - * Account ID of this creative. This field, if left unset, will be - * auto-generated for both insert and update operations. Applicable to all - * creative types. - */ - core.String accountId; - /** Whether the creative is active. Applicable to all creative types. */ - core.bool active; - /** - * Ad parameters user for VPAID creative. This is a read-only field. - * Applicable to the following creative types: all VPAID. - */ - core.String adParameters; - /** - * Keywords for a Rich Media creative. Keywords let you customize the creative - * settings of a Rich Media ad running on your site without having to contact - * the advertiser. You can use keywords to dynamically change the look or - * functionality of a creative. Applicable to the following creative types: - * all RICH_MEDIA, and all VPAID. - */ - core.List<core.String> adTagKeys; - /** - * Advertiser ID of this creative. This is a required field. Applicable to all - * creative types. - */ - core.String advertiserId; - /** - * Whether script access is allowed for this creative. This is a read-only and - * deprecated field which will automatically be set to true on update. - * Applicable to the following creative types: FLASH_INPAGE. - */ - core.bool allowScriptAccess; - /** Whether the creative is archived. Applicable to all creative types. */ - core.bool archived; - /** - * Type of artwork used for the creative. This is a read-only field. - * Applicable to the following creative types: all RICH_MEDIA, and all VPAID. - * Possible string values are: - * - "ARTWORK_TYPE_FLASH" - * - "ARTWORK_TYPE_HTML5" - * - "ARTWORK_TYPE_IMAGE" - * - "ARTWORK_TYPE_MIXED" - */ - core.String artworkType; - /** - * Source application where creative was authored. Presently, only DBM - * authored creatives will have this field set. Applicable to all creative - * types. - * Possible string values are: - * - "CREATIVE_AUTHORING_SOURCE_DBM" - * - "CREATIVE_AUTHORING_SOURCE_DCM" - * - "CREATIVE_AUTHORING_SOURCE_STUDIO" - */ - core.String authoringSource; - /** - * Authoring tool for HTML5 banner creatives. This is a read-only field. - * Applicable to the following creative types: HTML5_BANNER. - * Possible string values are: - * - "NINJA" - * - "SWIFFY" - */ - core.String authoringTool; - /** - * Whether images are automatically advanced for image gallery creatives. - * Applicable to the following creative types: DISPLAY_IMAGE_GALLERY. - */ - core.bool autoAdvanceImages; - /** - * The 6-character HTML color code, beginning with #, for the background of - * the window area where the Flash file is displayed. Default is white. - * Applicable to the following creative types: FLASH_INPAGE. - */ - core.String backgroundColor; - /** - * Click-through URL for backup image. Applicable to the following creative - * types: FLASH_INPAGE and HTML5_BANNER. Applicable to DISPLAY when the - * primary asset type is not HTML_IMAGE. - */ - core.String backupImageClickThroughUrl; - /** - * List of feature dependencies that will cause a backup image to be served if - * the browser that serves the ad does not support them. Feature dependencies - * are features that a browser must be able to support in order to render your - * HTML5 creative asset correctly. This field is initially auto-generated to - * contain all features detected by DCM for all the assets of this creative - * and can then be modified by the client. To reset this field, copy over all - * the creativeAssets' detected features. Applicable to the following creative - * types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is - * not HTML_IMAGE. - */ - core.List<core.String> backupImageFeatures; - /** - * Reporting label used for HTML5 banner backup image. Applicable to the - * following creative types: DISPLAY when the primary asset type is not - * HTML_IMAGE. - */ - core.String backupImageReportingLabel; - /** - * Target window for backup image. Applicable to the following creative types: - * FLASH_INPAGE and HTML5_BANNER. Applicable to DISPLAY when the primary asset - * type is not HTML_IMAGE. - */ - TargetWindow backupImageTargetWindow; - /** - * Click tags of the creative. For DISPLAY, FLASH_INPAGE, and HTML5_BANNER - * creatives, this is a subset of detected click tags for the assets - * associated with this creative. After creating a flash asset, detected click - * tags will be returned in the creativeAssetMetadata. When inserting the - * creative, populate the creative clickTags field using the - * creativeAssetMetadata.clickTags field. For DISPLAY_IMAGE_GALLERY creatives, - * there should be exactly one entry in this list for each image creative - * asset. A click tag is matched with a corresponding creative asset by - * matching the clickTag.name field with the - * creativeAsset.assetIdentifier.name field. Applicable to the following - * creative types: DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER. - * Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. - */ - core.List<ClickTag> clickTags; - /** - * Industry standard ID assigned to creative for reach and frequency. - * Applicable to the following creative types: all INSTREAM_VIDEO and all - * VPAID. - */ - core.String commercialId; - /** - * List of companion creatives assigned to an in-Stream videocreative. - * Acceptable values include IDs of existing flash and image creatives. - * Applicable to the following creative types: all VPAID and all - * INSTREAM_VIDEO with dynamicAssetSelection set to false. - */ - core.List<core.String> companionCreatives; - /** - * Compatibilities associated with this creative. This is a read-only field. - * DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on - * mobile devices or in mobile apps for regular or interstitial ads, - * respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. - * Only pre-existing creatives may have these compatibilities since new - * creatives will either be assigned DISPLAY or DISPLAY_INTERSTITIAL instead. - * IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with - * the VAST standard. Applicable to all creative types. - * - * Acceptable values are: - * - "APP" - * - "APP_INTERSTITIAL" - * - "IN_STREAM_VIDEO" - * - "DISPLAY" - * - "DISPLAY_INTERSTITIAL" - */ - core.List<core.String> compatibility; - /** - * Whether Flash assets associated with the creative need to be automatically - * converted to HTML5. This flag is enabled by default and users can choose to - * disable it if they don't want the system to generate and use HTML5 asset - * for this creative. Applicable to the following creative type: FLASH_INPAGE. - * Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. - */ - core.bool convertFlashToHtml5; - /** - * List of counter events configured for the creative. For - * DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated - * from clickTags. Applicable to the following creative types: - * DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. - */ - core.List<CreativeCustomEvent> counterCustomEvents; - /** Required if dynamicAssetSelection is true. */ - CreativeAssetSelection creativeAssetSelection; - /** - * Assets associated with a creative. Applicable to all but the following - * creative types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and - * REDIRECT - */ - core.List<CreativeAsset> creativeAssets; - /** - * Creative field assignments for this creative. Applicable to all creative - * types. - */ - core.List<CreativeFieldAssignment> creativeFieldAssignments; - /** - * Custom key-values for a Rich Media creative. Key-values let you customize - * the creative settings of a Rich Media ad running on your site without - * having to contact the advertiser. You can use key-values to dynamically - * change the look or functionality of a creative. Applicable to the following - * creative types: all RICH_MEDIA, and all VPAID. - */ - core.List<core.String> customKeyValues; - /** - * Set this to true to enable the use of rules to target individual assets in - * this creative. When set to true creativeAssetSelection must be set. This - * also controls asset-level companions. When this is true, companion - * creatives should be assigned to creative assets. Learn more. Applicable to - * INSTREAM_VIDEO creatives. - */ - core.bool dynamicAssetSelection; - /** - * List of exit events configured for the creative. For DISPLAY and - * DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated - * from clickTags, For DISPLAY, an event is also created from the - * backupImageReportingLabel. Applicable to the following creative types: - * DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY - * when the primary asset type is not HTML_IMAGE. - */ - core.List<CreativeCustomEvent> exitCustomEvents; - /** - * OpenWindow FSCommand of this creative. This lets the SWF file communicate - * with either Flash Player or the program hosting Flash Player, such as a web - * browser. This is only triggered if allowScriptAccess field is true. - * Applicable to the following creative types: FLASH_INPAGE. - */ - FsCommand fsCommand; - /** - * HTML code for the creative. This is a required field when applicable. This - * field is ignored if htmlCodeLocked is false. Applicable to the following - * creative types: all CUSTOM, FLASH_INPAGE, and HTML5_BANNER, and all - * RICH_MEDIA. - */ - core.String htmlCode; - /** - * Whether HTML code is DCM-generated or manually entered. Set to true to - * ignore changes to htmlCode. Applicable to the following creative types: - * FLASH_INPAGE and HTML5_BANNER. - */ - core.bool htmlCodeLocked; - /** - * ID of this creative. This is a read-only, auto-generated field. Applicable - * to all creative types. - */ - core.String id; - /** - * Dimension value for the ID of this creative. This is a read-only field. - * Applicable to all creative types. - */ - DimensionValue idDimensionValue; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creative". - */ - core.String kind; - /** - * Creative last modification information. This is a read-only field. - * Applicable to all creative types. - */ - LastModifiedInfo lastModifiedInfo; - /** - * Latest Studio trafficked creative ID associated with rich media and VPAID - * creatives. This is a read-only field. Applicable to the following creative - * types: all RICH_MEDIA, and all VPAID. - */ - core.String latestTraffickedCreativeId; - /** - * Name of the creative. This is a required field and must be less than 256 - * characters long. Applicable to all creative types. - */ - core.String name; - /** - * Override CSS value for rich media creatives. Applicable to the following - * creative types: all RICH_MEDIA. - */ - core.String overrideCss; - /** - * URL of hosted image or hosted video or another ad tag. For - * INSTREAM_VIDEO_REDIRECT creatives this is the in-stream video redirect URL. - * The standard for a VAST (Video Ad Serving Template) ad response allows for - * a redirect link to another VAST 2.0 or 3.0 call. This is a required field - * when applicable. Applicable to the following creative types: - * DISPLAY_REDIRECT, INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and - * INSTREAM_VIDEO_REDIRECT - */ - core.String redirectUrl; - /** - * ID of current rendering version. This is a read-only field. Applicable to - * all creative types. - */ - core.String renderingId; - /** - * Dimension value for the rendering ID of this creative. This is a read-only - * field. Applicable to all creative types. - */ - DimensionValue renderingIdDimensionValue; - /** - * The minimum required Flash plugin version for this creative. For example, - * 11.2.202.235. This is a read-only field. Applicable to the following - * creative types: all RICH_MEDIA, and all VPAID. - */ - core.String requiredFlashPluginVersion; - /** - * The internal Flash version for this creative as calculated by DoubleClick - * Studio. This is a read-only field. Applicable to the following creative - * types: FLASH_INPAGE all RICH_MEDIA, and all VPAID. Applicable to DISPLAY - * when the primary asset type is not HTML_IMAGE. - */ - core.int requiredFlashVersion; - /** - * Size associated with this creative. When inserting or updating a creative - * either the size ID field or size width and height fields can be used. This - * is a required field when applicable; however for IMAGE, FLASH_INPAGE - * creatives, and for DISPLAY creatives with a primary asset of type - * HTML_IMAGE, if left blank, this field will be automatically set using the - * actual size of the associated image assets. Applicable to the following - * creative types: DISPLAY, DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, - * IMAGE, and all RICH_MEDIA. - */ - Size size; - /** - * Whether the user can choose to skip the creative. Applicable to the - * following creative types: all INSTREAM_VIDEO and all VPAID. - */ - core.bool skippable; - /** - * Whether the creative is SSL-compliant. This is a read-only field. - * Applicable to all creative types. - */ - core.bool sslCompliant; - /** - * Whether creative should be treated as SSL compliant even if the system scan - * shows it's not. Applicable to all creative types. - */ - core.bool sslOverride; - /** - * Studio advertiser ID associated with rich media and VPAID creatives. This - * is a read-only field. Applicable to the following creative types: all - * RICH_MEDIA, and all VPAID. - */ - core.String studioAdvertiserId; - /** - * Studio creative ID associated with rich media and VPAID creatives. This is - * a read-only field. Applicable to the following creative types: all - * RICH_MEDIA, and all VPAID. - */ - core.String studioCreativeId; - /** - * Studio trafficked creative ID associated with rich media and VPAID - * creatives. This is a read-only field. Applicable to the following creative - * types: all RICH_MEDIA, and all VPAID. - */ - core.String studioTraffickedCreativeId; - /** - * Subaccount ID of this creative. This field, if left unset, will be - * auto-generated for both insert and update operations. Applicable to all - * creative types. - */ - core.String subaccountId; - /** - * Third-party URL used to record backup image impressions. Applicable to the - * following creative types: all RICH_MEDIA. - */ - core.String thirdPartyBackupImageImpressionsUrl; - /** - * Third-party URL used to record rich media impressions. Applicable to the - * following creative types: all RICH_MEDIA. - */ - core.String thirdPartyRichMediaImpressionsUrl; - /** - * Third-party URLs for tracking in-stream video creative events. Applicable - * to the following creative types: all INSTREAM_VIDEO and all VPAID. - */ - core.List<ThirdPartyTrackingUrl> thirdPartyUrls; - /** - * List of timer events configured for the creative. For DISPLAY_IMAGE_GALLERY - * creatives, these are read-only and auto-generated from clickTags. - * Applicable to the following creative types: DISPLAY_IMAGE_GALLERY, all - * RICH_MEDIA, and all VPAID. Applicable to DISPLAY when the primary asset is - * not HTML_IMAGE. - */ - core.List<CreativeCustomEvent> timerCustomEvents; - /** - * Combined size of all creative assets. This is a read-only field. Applicable - * to the following creative types: all RICH_MEDIA, and all VPAID. - */ - core.String totalFileSize; - /** - * Type of this creative. This is a required field. Applicable to all creative - * types. - * - * Note: FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for existing - * creatives. New creatives should use DISPLAY as a replacement for these - * types. - * Possible string values are: - * - "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO" - * - "CUSTOM_DISPLAY" - * - "CUSTOM_DISPLAY_INTERSTITIAL" - * - "DISPLAY" - * - "DISPLAY_IMAGE_GALLERY" - * - "DISPLAY_REDIRECT" - * - "FLASH_INPAGE" - * - "HTML5_BANNER" - * - "IMAGE" - * - "INSTREAM_VIDEO" - * - "INSTREAM_VIDEO_REDIRECT" - * - "INTERNAL_REDIRECT" - * - "INTERSTITIAL_INTERNAL_REDIRECT" - * - "RICH_MEDIA_DISPLAY_BANNER" - * - "RICH_MEDIA_DISPLAY_EXPANDING" - * - "RICH_MEDIA_DISPLAY_INTERSTITIAL" - * - "RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL" - * - "RICH_MEDIA_IM_EXPAND" - * - "RICH_MEDIA_INPAGE_FLOATING" - * - "RICH_MEDIA_MOBILE_IN_APP" - * - "RICH_MEDIA_PEEL_DOWN" - * - "TRACKING_TEXT" - * - "VPAID_LINEAR_VIDEO" - * - "VPAID_NON_LINEAR_VIDEO" - */ - core.String type; - /** - * The version number helps you keep track of multiple versions of your - * creative in your reports. The version number will always be auto-generated - * during insert operations to start at 1. For tracking creatives the version - * cannot be incremented and will always remain at 1. For all other creative - * types the version can be incremented only by 1 during update operations. In - * addition, the version will be automatically incremented by 1 when - * undergoing Rich Media creative merging. Applicable to all creative types. - */ - core.int version; - /** - * Description of the video ad. Applicable to the following creative types: - * all INSTREAM_VIDEO and all VPAID. - */ - core.String videoDescription; - /** - * Creative video duration in seconds. This is a read-only field. Applicable - * to the following creative types: INSTREAM_VIDEO, all RICH_MEDIA, and all - * VPAID. - */ - core.double videoDuration; - - Creative(); - - Creative.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("adParameters")) { - adParameters = _json["adParameters"]; - } - if (_json.containsKey("adTagKeys")) { - adTagKeys = _json["adTagKeys"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("allowScriptAccess")) { - allowScriptAccess = _json["allowScriptAccess"]; - } - if (_json.containsKey("archived")) { - archived = _json["archived"]; - } - if (_json.containsKey("artworkType")) { - artworkType = _json["artworkType"]; - } - if (_json.containsKey("authoringSource")) { - authoringSource = _json["authoringSource"]; - } - if (_json.containsKey("authoringTool")) { - authoringTool = _json["authoringTool"]; - } - if (_json.containsKey("auto_advance_images")) { - autoAdvanceImages = _json["auto_advance_images"]; - } - if (_json.containsKey("backgroundColor")) { - backgroundColor = _json["backgroundColor"]; - } - if (_json.containsKey("backupImageClickThroughUrl")) { - backupImageClickThroughUrl = _json["backupImageClickThroughUrl"]; - } - if (_json.containsKey("backupImageFeatures")) { - backupImageFeatures = _json["backupImageFeatures"]; - } - if (_json.containsKey("backupImageReportingLabel")) { - backupImageReportingLabel = _json["backupImageReportingLabel"]; - } - if (_json.containsKey("backupImageTargetWindow")) { - backupImageTargetWindow = new TargetWindow.fromJson(_json["backupImageTargetWindow"]); - } - if (_json.containsKey("clickTags")) { - clickTags = _json["clickTags"].map((value) => new ClickTag.fromJson(value)).toList(); - } - if (_json.containsKey("commercialId")) { - commercialId = _json["commercialId"]; - } - if (_json.containsKey("companionCreatives")) { - companionCreatives = _json["companionCreatives"]; - } - if (_json.containsKey("compatibility")) { - compatibility = _json["compatibility"]; - } - if (_json.containsKey("convertFlashToHtml5")) { - convertFlashToHtml5 = _json["convertFlashToHtml5"]; - } - if (_json.containsKey("counterCustomEvents")) { - counterCustomEvents = _json["counterCustomEvents"].map((value) => new CreativeCustomEvent.fromJson(value)).toList(); - } - if (_json.containsKey("creativeAssetSelection")) { - creativeAssetSelection = new CreativeAssetSelection.fromJson(_json["creativeAssetSelection"]); - } - if (_json.containsKey("creativeAssets")) { - creativeAssets = _json["creativeAssets"].map((value) => new CreativeAsset.fromJson(value)).toList(); - } - if (_json.containsKey("creativeFieldAssignments")) { - creativeFieldAssignments = _json["creativeFieldAssignments"].map((value) => new CreativeFieldAssignment.fromJson(value)).toList(); - } - if (_json.containsKey("customKeyValues")) { - customKeyValues = _json["customKeyValues"]; - } - if (_json.containsKey("dynamicAssetSelection")) { - dynamicAssetSelection = _json["dynamicAssetSelection"]; - } - if (_json.containsKey("exitCustomEvents")) { - exitCustomEvents = _json["exitCustomEvents"].map((value) => new CreativeCustomEvent.fromJson(value)).toList(); - } - if (_json.containsKey("fsCommand")) { - fsCommand = new FsCommand.fromJson(_json["fsCommand"]); - } - if (_json.containsKey("htmlCode")) { - htmlCode = _json["htmlCode"]; - } - if (_json.containsKey("htmlCodeLocked")) { - htmlCodeLocked = _json["htmlCodeLocked"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("latestTraffickedCreativeId")) { - latestTraffickedCreativeId = _json["latestTraffickedCreativeId"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("overrideCss")) { - overrideCss = _json["overrideCss"]; - } - if (_json.containsKey("redirectUrl")) { - redirectUrl = _json["redirectUrl"]; - } - if (_json.containsKey("renderingId")) { - renderingId = _json["renderingId"]; - } - if (_json.containsKey("renderingIdDimensionValue")) { - renderingIdDimensionValue = new DimensionValue.fromJson(_json["renderingIdDimensionValue"]); - } - if (_json.containsKey("requiredFlashPluginVersion")) { - requiredFlashPluginVersion = _json["requiredFlashPluginVersion"]; - } - if (_json.containsKey("requiredFlashVersion")) { - requiredFlashVersion = _json["requiredFlashVersion"]; - } - if (_json.containsKey("size")) { - size = new Size.fromJson(_json["size"]); - } - if (_json.containsKey("skippable")) { - skippable = _json["skippable"]; - } - if (_json.containsKey("sslCompliant")) { - sslCompliant = _json["sslCompliant"]; - } - if (_json.containsKey("sslOverride")) { - sslOverride = _json["sslOverride"]; - } - if (_json.containsKey("studioAdvertiserId")) { - studioAdvertiserId = _json["studioAdvertiserId"]; - } - if (_json.containsKey("studioCreativeId")) { - studioCreativeId = _json["studioCreativeId"]; - } - if (_json.containsKey("studioTraffickedCreativeId")) { - studioTraffickedCreativeId = _json["studioTraffickedCreativeId"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("thirdPartyBackupImageImpressionsUrl")) { - thirdPartyBackupImageImpressionsUrl = _json["thirdPartyBackupImageImpressionsUrl"]; - } - if (_json.containsKey("thirdPartyRichMediaImpressionsUrl")) { - thirdPartyRichMediaImpressionsUrl = _json["thirdPartyRichMediaImpressionsUrl"]; - } - if (_json.containsKey("thirdPartyUrls")) { - thirdPartyUrls = _json["thirdPartyUrls"].map((value) => new ThirdPartyTrackingUrl.fromJson(value)).toList(); - } - if (_json.containsKey("timerCustomEvents")) { - timerCustomEvents = _json["timerCustomEvents"].map((value) => new CreativeCustomEvent.fromJson(value)).toList(); - } - if (_json.containsKey("totalFileSize")) { - totalFileSize = _json["totalFileSize"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - if (_json.containsKey("version")) { - version = _json["version"]; - } - if (_json.containsKey("videoDescription")) { - videoDescription = _json["videoDescription"]; - } - if (_json.containsKey("videoDuration")) { - videoDuration = _json["videoDuration"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (active != null) { - _json["active"] = active; - } - if (adParameters != null) { - _json["adParameters"] = adParameters; - } - if (adTagKeys != null) { - _json["adTagKeys"] = adTagKeys; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (allowScriptAccess != null) { - _json["allowScriptAccess"] = allowScriptAccess; - } - if (archived != null) { - _json["archived"] = archived; - } - if (artworkType != null) { - _json["artworkType"] = artworkType; - } - if (authoringSource != null) { - _json["authoringSource"] = authoringSource; - } - if (authoringTool != null) { - _json["authoringTool"] = authoringTool; - } - if (autoAdvanceImages != null) { - _json["auto_advance_images"] = autoAdvanceImages; - } - if (backgroundColor != null) { - _json["backgroundColor"] = backgroundColor; - } - if (backupImageClickThroughUrl != null) { - _json["backupImageClickThroughUrl"] = backupImageClickThroughUrl; - } - if (backupImageFeatures != null) { - _json["backupImageFeatures"] = backupImageFeatures; - } - if (backupImageReportingLabel != null) { - _json["backupImageReportingLabel"] = backupImageReportingLabel; - } - if (backupImageTargetWindow != null) { - _json["backupImageTargetWindow"] = (backupImageTargetWindow).toJson(); - } - if (clickTags != null) { - _json["clickTags"] = clickTags.map((value) => (value).toJson()).toList(); - } - if (commercialId != null) { - _json["commercialId"] = commercialId; - } - if (companionCreatives != null) { - _json["companionCreatives"] = companionCreatives; - } - if (compatibility != null) { - _json["compatibility"] = compatibility; - } - if (convertFlashToHtml5 != null) { - _json["convertFlashToHtml5"] = convertFlashToHtml5; - } - if (counterCustomEvents != null) { - _json["counterCustomEvents"] = counterCustomEvents.map((value) => (value).toJson()).toList(); - } - if (creativeAssetSelection != null) { - _json["creativeAssetSelection"] = (creativeAssetSelection).toJson(); - } - if (creativeAssets != null) { - _json["creativeAssets"] = creativeAssets.map((value) => (value).toJson()).toList(); - } - if (creativeFieldAssignments != null) { - _json["creativeFieldAssignments"] = creativeFieldAssignments.map((value) => (value).toJson()).toList(); - } - if (customKeyValues != null) { - _json["customKeyValues"] = customKeyValues; - } - if (dynamicAssetSelection != null) { - _json["dynamicAssetSelection"] = dynamicAssetSelection; - } - if (exitCustomEvents != null) { - _json["exitCustomEvents"] = exitCustomEvents.map((value) => (value).toJson()).toList(); - } - if (fsCommand != null) { - _json["fsCommand"] = (fsCommand).toJson(); - } - if (htmlCode != null) { - _json["htmlCode"] = htmlCode; - } - if (htmlCodeLocked != null) { - _json["htmlCodeLocked"] = htmlCodeLocked; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (latestTraffickedCreativeId != null) { - _json["latestTraffickedCreativeId"] = latestTraffickedCreativeId; - } - if (name != null) { - _json["name"] = name; - } - if (overrideCss != null) { - _json["overrideCss"] = overrideCss; - } - if (redirectUrl != null) { - _json["redirectUrl"] = redirectUrl; - } - if (renderingId != null) { - _json["renderingId"] = renderingId; - } - if (renderingIdDimensionValue != null) { - _json["renderingIdDimensionValue"] = (renderingIdDimensionValue).toJson(); - } - if (requiredFlashPluginVersion != null) { - _json["requiredFlashPluginVersion"] = requiredFlashPluginVersion; - } - if (requiredFlashVersion != null) { - _json["requiredFlashVersion"] = requiredFlashVersion; - } - if (size != null) { - _json["size"] = (size).toJson(); - } - if (skippable != null) { - _json["skippable"] = skippable; - } - if (sslCompliant != null) { - _json["sslCompliant"] = sslCompliant; - } - if (sslOverride != null) { - _json["sslOverride"] = sslOverride; - } - if (studioAdvertiserId != null) { - _json["studioAdvertiserId"] = studioAdvertiserId; - } - if (studioCreativeId != null) { - _json["studioCreativeId"] = studioCreativeId; - } - if (studioTraffickedCreativeId != null) { - _json["studioTraffickedCreativeId"] = studioTraffickedCreativeId; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (thirdPartyBackupImageImpressionsUrl != null) { - _json["thirdPartyBackupImageImpressionsUrl"] = thirdPartyBackupImageImpressionsUrl; - } - if (thirdPartyRichMediaImpressionsUrl != null) { - _json["thirdPartyRichMediaImpressionsUrl"] = thirdPartyRichMediaImpressionsUrl; - } - if (thirdPartyUrls != null) { - _json["thirdPartyUrls"] = thirdPartyUrls.map((value) => (value).toJson()).toList(); - } - if (timerCustomEvents != null) { - _json["timerCustomEvents"] = timerCustomEvents.map((value) => (value).toJson()).toList(); - } - if (totalFileSize != null) { - _json["totalFileSize"] = totalFileSize; - } - if (type != null) { - _json["type"] = type; - } - if (version != null) { - _json["version"] = version; - } - if (videoDescription != null) { - _json["videoDescription"] = videoDescription; - } - if (videoDuration != null) { - _json["videoDuration"] = videoDuration; - } - return _json; - } -} - -/** Creative Asset. */ -class CreativeAsset { - /** - * Whether ActionScript3 is enabled for the flash asset. This is a read-only - * field. Applicable to the following creative type: FLASH_INPAGE. Applicable - * to DISPLAY when the primary asset type is not HTML_IMAGE. - */ - core.bool actionScript3; - /** - * Whether the video asset is active. This is a read-only field for - * VPAID_NON_LINEAR_VIDEO assets. Applicable to the following creative types: - * INSTREAM_VIDEO and all VPAID. - */ - core.bool active; - /** - * Possible alignments for an asset. This is a read-only field. Applicable to - * the following creative types: - * RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL. - * Possible string values are: - * - "ALIGNMENT_BOTTOM" - * - "ALIGNMENT_LEFT" - * - "ALIGNMENT_RIGHT" - * - "ALIGNMENT_TOP" - */ - core.String alignment; - /** - * Artwork type of rich media creative. This is a read-only field. Applicable - * to the following creative types: all RICH_MEDIA. - * Possible string values are: - * - "ARTWORK_TYPE_FLASH" - * - "ARTWORK_TYPE_HTML5" - * - "ARTWORK_TYPE_IMAGE" - * - "ARTWORK_TYPE_MIXED" - */ - core.String artworkType; - /** - * Identifier of this asset. This is the same identifier returned during - * creative asset insert operation. This is a required field. Applicable to - * all but the following creative types: all REDIRECT and TRACKING_TEXT. - */ - CreativeAssetId assetIdentifier; - /** - * Exit event configured for the backup image. Applicable to the following - * creative types: all RICH_MEDIA. - */ - CreativeCustomEvent backupImageExit; - /** - * Detected bit-rate for video asset. This is a read-only field. Applicable to - * the following creative types: INSTREAM_VIDEO and all VPAID. - */ - core.int bitRate; - /** - * Rich media child asset type. This is a read-only field. Applicable to the - * following creative types: all VPAID. - * Possible string values are: - * - "CHILD_ASSET_TYPE_DATA" - * - "CHILD_ASSET_TYPE_FLASH" - * - "CHILD_ASSET_TYPE_IMAGE" - * - "CHILD_ASSET_TYPE_VIDEO" - */ - core.String childAssetType; - /** - * Size of an asset when collapsed. This is a read-only field. Applicable to - * the following creative types: all RICH_MEDIA and all VPAID. Additionally, - * applicable to assets whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or - * ASSET_DISPLAY_TYPE_PEEL_DOWN. - */ - Size collapsedSize; - /** - * List of companion creatives assigned to an in-stream video creative asset. - * Acceptable values include IDs of existing flash and image creatives. - * Applicable to INSTREAM_VIDEO creative type with dynamicAssetSelection set - * to true. - */ - core.List<core.String> companionCreativeIds; - /** - * Custom start time in seconds for making the asset visible. Applicable to - * the following creative types: all RICH_MEDIA. Value must be greater than or - * equal to 0. - */ - core.int customStartTimeValue; - /** - * List of feature dependencies for the creative asset that are detected by - * DCM. Feature dependencies are features that a browser must be able to - * support in order to render your HTML5 creative correctly. This is a - * read-only, auto-generated field. Applicable to the following creative - * types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is - * not HTML_IMAGE. - */ - core.List<core.String> detectedFeatures; - /** - * Type of rich media asset. This is a read-only field. Applicable to the - * following creative types: all RICH_MEDIA. - * Possible string values are: - * - "ASSET_DISPLAY_TYPE_BACKDROP" - * - "ASSET_DISPLAY_TYPE_EXPANDING" - * - "ASSET_DISPLAY_TYPE_FLASH_IN_FLASH" - * - "ASSET_DISPLAY_TYPE_FLASH_IN_FLASH_EXPANDING" - * - "ASSET_DISPLAY_TYPE_FLOATING" - * - "ASSET_DISPLAY_TYPE_INPAGE" - * - "ASSET_DISPLAY_TYPE_OVERLAY" - * - "ASSET_DISPLAY_TYPE_PEEL_DOWN" - * - "ASSET_DISPLAY_TYPE_VPAID_LINEAR" - * - "ASSET_DISPLAY_TYPE_VPAID_NON_LINEAR" - */ - core.String displayType; - /** - * Duration in seconds for which an asset will be displayed. Applicable to the - * following creative types: INSTREAM_VIDEO and VPAID_LINEAR_VIDEO. Value must - * be greater than or equal to 1. - */ - core.int duration; - /** - * Duration type for which an asset will be displayed. Applicable to the - * following creative types: all RICH_MEDIA. - * Possible string values are: - * - "ASSET_DURATION_TYPE_AUTO" - * - "ASSET_DURATION_TYPE_CUSTOM" - * - "ASSET_DURATION_TYPE_NONE" - */ - core.String durationType; - /** - * Detected expanded dimension for video asset. This is a read-only field. - * Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. - */ - Size expandedDimension; - /** - * File size associated with this creative asset. This is a read-only field. - * Applicable to all but the following creative types: all REDIRECT and - * TRACKING_TEXT. - */ - core.String fileSize; - /** - * Flash version of the asset. This is a read-only field. Applicable to the - * following creative types: FLASH_INPAGE, all RICH_MEDIA, and all VPAID. - * Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. - */ - core.int flashVersion; - /** - * Whether to hide Flash objects flag for an asset. Applicable to the - * following creative types: all RICH_MEDIA. - */ - core.bool hideFlashObjects; - /** - * Whether to hide selection boxes flag for an asset. Applicable to the - * following creative types: all RICH_MEDIA. - */ - core.bool hideSelectionBoxes; - /** - * Whether the asset is horizontally locked. This is a read-only field. - * Applicable to the following creative types: all RICH_MEDIA. - */ - core.bool horizontallyLocked; - /** - * Numeric ID of this creative asset. This is a required field and should not - * be modified. Applicable to all but the following creative types: all - * REDIRECT and TRACKING_TEXT. - */ - core.String id; - /** - * Dimension value for the ID of the asset. This is a read-only, - * auto-generated field. - */ - DimensionValue idDimensionValue; - /** - * Detected MIME type for video asset. This is a read-only field. Applicable - * to the following creative types: INSTREAM_VIDEO and all VPAID. - */ - core.String mimeType; - /** - * Offset position for an asset in collapsed mode. This is a read-only field. - * Applicable to the following creative types: all RICH_MEDIA and all VPAID. - * Additionally, only applicable to assets whose displayType is - * ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. - */ - OffsetPosition offset; - /** - * Whether the backup asset is original or changed by the user in DCM. - * Applicable to the following creative types: all RICH_MEDIA. - */ - core.bool originalBackup; - /** - * Offset position for an asset. Applicable to the following creative types: - * all RICH_MEDIA. - */ - OffsetPosition position; - /** - * Offset left unit for an asset. This is a read-only field. Applicable to the - * following creative types: all RICH_MEDIA. - * Possible string values are: - * - "OFFSET_UNIT_PERCENT" - * - "OFFSET_UNIT_PIXEL" - * - "OFFSET_UNIT_PIXEL_FROM_CENTER" - */ - core.String positionLeftUnit; - /** - * Offset top unit for an asset. This is a read-only field if the asset - * displayType is ASSET_DISPLAY_TYPE_OVERLAY. Applicable to the following - * creative types: all RICH_MEDIA. - * Possible string values are: - * - "OFFSET_UNIT_PERCENT" - * - "OFFSET_UNIT_PIXEL" - * - "OFFSET_UNIT_PIXEL_FROM_CENTER" - */ - core.String positionTopUnit; - /** - * Progressive URL for video asset. This is a read-only field. Applicable to - * the following creative types: INSTREAM_VIDEO and all VPAID. - */ - core.String progressiveServingUrl; - /** - * Whether the asset pushes down other content. Applicable to the following - * creative types: all RICH_MEDIA. Additionally, only applicable when the - * asset offsets are 0, the collapsedSize.width matches size.width, and the - * collapsedSize.height is less than size.height. - */ - core.bool pushdown; - /** - * Pushdown duration in seconds for an asset. Applicable to the following - * creative types: all RICH_MEDIA.Additionally, only applicable when the asset - * pushdown field is true, the offsets are 0, the collapsedSize.width matches - * size.width, and the collapsedSize.height is less than size.height. - * Acceptable values are 0 to 9.99, inclusive. - */ - core.double pushdownDuration; - /** - * Role of the asset in relation to creative. Applicable to all but the - * following creative types: all REDIRECT and TRACKING_TEXT. This is a - * required field. - * PRIMARY applies to DISPLAY, FLASH_INPAGE, HTML5_BANNER, IMAGE, - * DISPLAY_IMAGE_GALLERY, all RICH_MEDIA (which may contain multiple primary - * assets), and all VPAID creatives. - * BACKUP_IMAGE applies to FLASH_INPAGE, HTML5_BANNER, all RICH_MEDIA, and all - * VPAID creatives. Applicable to DISPLAY when the primary asset type is not - * HTML_IMAGE. - * ADDITIONAL_IMAGE and ADDITIONAL_FLASH apply to FLASH_INPAGE creatives. - * OTHER refers to assets from sources other than DCM, such as Studio uploaded - * assets, applicable to all RICH_MEDIA and all VPAID creatives. - * PARENT_VIDEO refers to videos uploaded by the user in DCM and is applicable - * to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. - * TRANSCODED_VIDEO refers to videos transcoded by DCM from PARENT_VIDEO - * assets and is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO - * creatives. - * ALTERNATE_VIDEO refers to the DCM representation of child asset videos from - * Studio, and is applicable to VPAID_LINEAR_VIDEO creatives. These cannot be - * added or removed within DCM. - * For VPAID_LINEAR_VIDEO creatives, PARENT_VIDEO, TRANSCODED_VIDEO and - * ALTERNATE_VIDEO assets that are marked active serve as backup in case the - * VPAID creative cannot be served. Only PARENT_VIDEO assets can be added or - * removed for an INSTREAM_VIDEO or VPAID_LINEAR_VIDEO creative. - * Possible string values are: - * - "ADDITIONAL_FLASH" - * - "ADDITIONAL_IMAGE" - * - "ALTERNATE_VIDEO" - * - "BACKUP_IMAGE" - * - "OTHER" - * - "PARENT_VIDEO" - * - "PRIMARY" - * - "TRANSCODED_VIDEO" - */ - core.String role; - /** - * Size associated with this creative asset. This is a required field when - * applicable; however for IMAGE and FLASH_INPAGE, creatives if left blank, - * this field will be automatically set using the actual size of the - * associated image asset. Applicable to the following creative types: - * DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all - * RICH_MEDIA. Applicable to DISPLAY when the primary asset type is not - * HTML_IMAGE. - */ - Size size; - /** - * Whether the asset is SSL-compliant. This is a read-only field. Applicable - * to all but the following creative types: all REDIRECT and TRACKING_TEXT. - */ - core.bool sslCompliant; - /** - * Initial wait time type before making the asset visible. Applicable to the - * following creative types: all RICH_MEDIA. - * Possible string values are: - * - "ASSET_START_TIME_TYPE_CUSTOM" - * - "ASSET_START_TIME_TYPE_NONE" - */ - core.String startTimeType; - /** - * Streaming URL for video asset. This is a read-only field. Applicable to the - * following creative types: INSTREAM_VIDEO and all VPAID. - */ - core.String streamingServingUrl; - /** - * Whether the asset is transparent. Applicable to the following creative - * types: all RICH_MEDIA. Additionally, only applicable to HTML5 assets. - */ - core.bool transparency; - /** - * Whether the asset is vertically locked. This is a read-only field. - * Applicable to the following creative types: all RICH_MEDIA. - */ - core.bool verticallyLocked; - /** - * Detected video duration for video asset. This is a read-only field. - * Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. - */ - core.double videoDuration; - /** - * Window mode options for flash assets. Applicable to the following creative - * types: FLASH_INPAGE, RICH_MEDIA_DISPLAY_EXPANDING, RICH_MEDIA_IM_EXPAND, - * RICH_MEDIA_DISPLAY_BANNER, and RICH_MEDIA_INPAGE_FLOATING. - * Possible string values are: - * - "OPAQUE" - * - "TRANSPARENT" - * - "WINDOW" - */ - core.String windowMode; - /** - * zIndex value of an asset. Applicable to the following creative types: all - * RICH_MEDIA.Additionally, only applicable to assets whose displayType is NOT - * one of the following types: ASSET_DISPLAY_TYPE_INPAGE or - * ASSET_DISPLAY_TYPE_OVERLAY. Acceptable values are -999999999 to 999999999, - * inclusive. - */ - core.int zIndex; - /** - * File name of zip file. This is a read-only field. Applicable to the - * following creative types: HTML5_BANNER. - */ - core.String zipFilename; - /** - * Size of zip file. This is a read-only field. Applicable to the following - * creative types: HTML5_BANNER. - */ - core.String zipFilesize; - - CreativeAsset(); - - CreativeAsset.fromJson(core.Map _json) { - if (_json.containsKey("actionScript3")) { - actionScript3 = _json["actionScript3"]; - } - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("alignment")) { - alignment = _json["alignment"]; - } - if (_json.containsKey("artworkType")) { - artworkType = _json["artworkType"]; - } - if (_json.containsKey("assetIdentifier")) { - assetIdentifier = new CreativeAssetId.fromJson(_json["assetIdentifier"]); - } - if (_json.containsKey("backupImageExit")) { - backupImageExit = new CreativeCustomEvent.fromJson(_json["backupImageExit"]); - } - if (_json.containsKey("bitRate")) { - bitRate = _json["bitRate"]; - } - if (_json.containsKey("childAssetType")) { - childAssetType = _json["childAssetType"]; - } - if (_json.containsKey("collapsedSize")) { - collapsedSize = new Size.fromJson(_json["collapsedSize"]); - } - if (_json.containsKey("companionCreativeIds")) { - companionCreativeIds = _json["companionCreativeIds"]; - } - if (_json.containsKey("customStartTimeValue")) { - customStartTimeValue = _json["customStartTimeValue"]; - } - if (_json.containsKey("detectedFeatures")) { - detectedFeatures = _json["detectedFeatures"]; - } - if (_json.containsKey("displayType")) { - displayType = _json["displayType"]; - } - if (_json.containsKey("duration")) { - duration = _json["duration"]; - } - if (_json.containsKey("durationType")) { - durationType = _json["durationType"]; - } - if (_json.containsKey("expandedDimension")) { - expandedDimension = new Size.fromJson(_json["expandedDimension"]); - } - if (_json.containsKey("fileSize")) { - fileSize = _json["fileSize"]; - } - if (_json.containsKey("flashVersion")) { - flashVersion = _json["flashVersion"]; - } - if (_json.containsKey("hideFlashObjects")) { - hideFlashObjects = _json["hideFlashObjects"]; - } - if (_json.containsKey("hideSelectionBoxes")) { - hideSelectionBoxes = _json["hideSelectionBoxes"]; - } - if (_json.containsKey("horizontallyLocked")) { - horizontallyLocked = _json["horizontallyLocked"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("mimeType")) { - mimeType = _json["mimeType"]; - } - if (_json.containsKey("offset")) { - offset = new OffsetPosition.fromJson(_json["offset"]); - } - if (_json.containsKey("originalBackup")) { - originalBackup = _json["originalBackup"]; - } - if (_json.containsKey("position")) { - position = new OffsetPosition.fromJson(_json["position"]); - } - if (_json.containsKey("positionLeftUnit")) { - positionLeftUnit = _json["positionLeftUnit"]; - } - if (_json.containsKey("positionTopUnit")) { - positionTopUnit = _json["positionTopUnit"]; - } - if (_json.containsKey("progressiveServingUrl")) { - progressiveServingUrl = _json["progressiveServingUrl"]; - } - if (_json.containsKey("pushdown")) { - pushdown = _json["pushdown"]; - } - if (_json.containsKey("pushdownDuration")) { - pushdownDuration = _json["pushdownDuration"]; - } - if (_json.containsKey("role")) { - role = _json["role"]; - } - if (_json.containsKey("size")) { - size = new Size.fromJson(_json["size"]); - } - if (_json.containsKey("sslCompliant")) { - sslCompliant = _json["sslCompliant"]; - } - if (_json.containsKey("startTimeType")) { - startTimeType = _json["startTimeType"]; - } - if (_json.containsKey("streamingServingUrl")) { - streamingServingUrl = _json["streamingServingUrl"]; - } - if (_json.containsKey("transparency")) { - transparency = _json["transparency"]; - } - if (_json.containsKey("verticallyLocked")) { - verticallyLocked = _json["verticallyLocked"]; - } - if (_json.containsKey("videoDuration")) { - videoDuration = _json["videoDuration"]; - } - if (_json.containsKey("windowMode")) { - windowMode = _json["windowMode"]; - } - if (_json.containsKey("zIndex")) { - zIndex = _json["zIndex"]; - } - if (_json.containsKey("zipFilename")) { - zipFilename = _json["zipFilename"]; - } - if (_json.containsKey("zipFilesize")) { - zipFilesize = _json["zipFilesize"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (actionScript3 != null) { - _json["actionScript3"] = actionScript3; - } - if (active != null) { - _json["active"] = active; - } - if (alignment != null) { - _json["alignment"] = alignment; - } - if (artworkType != null) { - _json["artworkType"] = artworkType; - } - if (assetIdentifier != null) { - _json["assetIdentifier"] = (assetIdentifier).toJson(); - } - if (backupImageExit != null) { - _json["backupImageExit"] = (backupImageExit).toJson(); - } - if (bitRate != null) { - _json["bitRate"] = bitRate; - } - if (childAssetType != null) { - _json["childAssetType"] = childAssetType; - } - if (collapsedSize != null) { - _json["collapsedSize"] = (collapsedSize).toJson(); - } - if (companionCreativeIds != null) { - _json["companionCreativeIds"] = companionCreativeIds; - } - if (customStartTimeValue != null) { - _json["customStartTimeValue"] = customStartTimeValue; - } - if (detectedFeatures != null) { - _json["detectedFeatures"] = detectedFeatures; - } - if (displayType != null) { - _json["displayType"] = displayType; - } - if (duration != null) { - _json["duration"] = duration; - } - if (durationType != null) { - _json["durationType"] = durationType; - } - if (expandedDimension != null) { - _json["expandedDimension"] = (expandedDimension).toJson(); - } - if (fileSize != null) { - _json["fileSize"] = fileSize; - } - if (flashVersion != null) { - _json["flashVersion"] = flashVersion; - } - if (hideFlashObjects != null) { - _json["hideFlashObjects"] = hideFlashObjects; - } - if (hideSelectionBoxes != null) { - _json["hideSelectionBoxes"] = hideSelectionBoxes; - } - if (horizontallyLocked != null) { - _json["horizontallyLocked"] = horizontallyLocked; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (mimeType != null) { - _json["mimeType"] = mimeType; - } - if (offset != null) { - _json["offset"] = (offset).toJson(); - } - if (originalBackup != null) { - _json["originalBackup"] = originalBackup; - } - if (position != null) { - _json["position"] = (position).toJson(); - } - if (positionLeftUnit != null) { - _json["positionLeftUnit"] = positionLeftUnit; - } - if (positionTopUnit != null) { - _json["positionTopUnit"] = positionTopUnit; - } - if (progressiveServingUrl != null) { - _json["progressiveServingUrl"] = progressiveServingUrl; - } - if (pushdown != null) { - _json["pushdown"] = pushdown; - } - if (pushdownDuration != null) { - _json["pushdownDuration"] = pushdownDuration; - } - if (role != null) { - _json["role"] = role; - } - if (size != null) { - _json["size"] = (size).toJson(); - } - if (sslCompliant != null) { - _json["sslCompliant"] = sslCompliant; - } - if (startTimeType != null) { - _json["startTimeType"] = startTimeType; - } - if (streamingServingUrl != null) { - _json["streamingServingUrl"] = streamingServingUrl; - } - if (transparency != null) { - _json["transparency"] = transparency; - } - if (verticallyLocked != null) { - _json["verticallyLocked"] = verticallyLocked; - } - if (videoDuration != null) { - _json["videoDuration"] = videoDuration; - } - if (windowMode != null) { - _json["windowMode"] = windowMode; - } - if (zIndex != null) { - _json["zIndex"] = zIndex; - } - if (zipFilename != null) { - _json["zipFilename"] = zipFilename; - } - if (zipFilesize != null) { - _json["zipFilesize"] = zipFilesize; - } - return _json; - } -} - -/** Creative Asset ID. */ -class CreativeAssetId { - /** - * Name of the creative asset. This is a required field while inserting an - * asset. After insertion, this assetIdentifier is used to identify the - * uploaded asset. Characters in the name must be alphanumeric or one of the - * following: ".-_ ". Spaces are allowed. - */ - core.String name; - /** - * Type of asset to upload. This is a required field. FLASH and IMAGE are no - * longer supported for new uploads. All image assets should use HTML_IMAGE. - * Possible string values are: - * - "FLASH" - * - "HTML" - * - "HTML_IMAGE" - * - "IMAGE" - * - "VIDEO" - */ - core.String type; - - CreativeAssetId(); - - CreativeAssetId.fromJson(core.Map _json) { - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (name != null) { - _json["name"] = name; - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** - * CreativeAssets contains properties of a creative asset file which will be - * uploaded or has already been uploaded. Refer to the creative sample code for - * how to upload assets and insert a creative. - */ -class CreativeAssetMetadata { - /** ID of the creative asset. This is a required field. */ - CreativeAssetId assetIdentifier; - /** - * List of detected click tags for assets. This is a read-only auto-generated - * field. - */ - core.List<ClickTag> clickTags; - /** - * List of feature dependencies for the creative asset that are detected by - * DCM. Feature dependencies are features that a browser must be able to - * support in order to render your HTML5 creative correctly. This is a - * read-only, auto-generated field. - */ - core.List<core.String> detectedFeatures; - /** Numeric ID of the asset. This is a read-only, auto-generated field. */ - core.String id; - /** - * Dimension value for the numeric ID of the asset. This is a read-only, - * auto-generated field. - */ - DimensionValue idDimensionValue; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativeAssetMetadata". - */ - core.String kind; - /** - * Rules validated during code generation that generated a warning. This is a - * read-only, auto-generated field. - * - * Possible values are: - * - "ADMOB_REFERENCED" - * - "ASSET_FORMAT_UNSUPPORTED_DCM" - * - "ASSET_INVALID" - * - "CLICK_TAG_HARD_CODED" - * - "CLICK_TAG_INVALID" - * - "CLICK_TAG_IN_GWD" - * - "CLICK_TAG_MISSING" - * - "CLICK_TAG_MORE_THAN_ONE" - * - "CLICK_TAG_NON_TOP_LEVEL" - * - "COMPONENT_UNSUPPORTED_DCM" - * - "ENABLER_UNSUPPORTED_METHOD_DCM" - * - "EXTERNAL_FILE_REFERENCED" - * - "FILE_DETAIL_EMPTY" - * - "FILE_TYPE_INVALID" - * - "GWD_PROPERTIES_INVALID" - * - "HTML5_FEATURE_UNSUPPORTED" - * - "LINKED_FILE_NOT_FOUND" - * - "MAX_FLASH_VERSION_11" - * - "MRAID_REFERENCED" - * - "NOT_SSL_COMPLIANT" - * - "ORPHANED_ASSET" - * - "PRIMARY_HTML_MISSING" - * - "SVG_INVALID" - * - "ZIP_INVALID" - */ - core.List<core.String> warnedValidationRules; - - CreativeAssetMetadata(); - - CreativeAssetMetadata.fromJson(core.Map _json) { - if (_json.containsKey("assetIdentifier")) { - assetIdentifier = new CreativeAssetId.fromJson(_json["assetIdentifier"]); - } - if (_json.containsKey("clickTags")) { - clickTags = _json["clickTags"].map((value) => new ClickTag.fromJson(value)).toList(); - } - if (_json.containsKey("detectedFeatures")) { - detectedFeatures = _json["detectedFeatures"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("warnedValidationRules")) { - warnedValidationRules = _json["warnedValidationRules"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (assetIdentifier != null) { - _json["assetIdentifier"] = (assetIdentifier).toJson(); - } - if (clickTags != null) { - _json["clickTags"] = clickTags.map((value) => (value).toJson()).toList(); - } - if (detectedFeatures != null) { - _json["detectedFeatures"] = detectedFeatures; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (warnedValidationRules != null) { - _json["warnedValidationRules"] = warnedValidationRules; - } - return _json; - } -} - -/** - * Encapsulates the list of rules for asset selection and a default asset in - * case none of the rules match. Applicable to INSTREAM_VIDEO creatives. - */ -class CreativeAssetSelection { - /** - * A creativeAssets[].id. This should refer to one of the parent assets in - * this creative, and will be served if none of the rules match. This is a - * required field. - */ - core.String defaultAssetId; - /** - * Rules determine which asset will be served to a viewer. Rules will be - * evaluated in the order in which they are stored in this list. This list - * must contain at least one rule. Applicable to INSTREAM_VIDEO creatives. - */ - core.List<Rule> rules; - - CreativeAssetSelection(); - - CreativeAssetSelection.fromJson(core.Map _json) { - if (_json.containsKey("defaultAssetId")) { - defaultAssetId = _json["defaultAssetId"]; - } - if (_json.containsKey("rules")) { - rules = _json["rules"].map((value) => new Rule.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (defaultAssetId != null) { - _json["defaultAssetId"] = defaultAssetId; - } - if (rules != null) { - _json["rules"] = rules.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Creative Assignment. */ -class CreativeAssignment { - /** - * Whether this creative assignment is active. When true, the creative will be - * included in the ad's rotation. - */ - core.bool active; - /** - * Whether applicable event tags should fire when this creative assignment is - * rendered. If this value is unset when the ad is inserted or updated, it - * will default to true for all creative types EXCEPT for INTERNAL_REDIRECT, - * INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO. - */ - core.bool applyEventTags; - /** Click-through URL of the creative assignment. */ - ClickThroughUrl clickThroughUrl; - /** - * Companion creative overrides for this creative assignment. Applicable to - * video ads. - */ - core.List<CompanionClickThroughOverride> companionCreativeOverrides; - /** - * Creative group assignments for this creative assignment. Only one - * assignment per creative group number is allowed for a maximum of two - * assignments. - */ - core.List<CreativeGroupAssignment> creativeGroupAssignments; - /** ID of the creative to be assigned. This is a required field. */ - core.String creativeId; - /** - * Dimension value for the ID of the creative. This is a read-only, - * auto-generated field. - */ - DimensionValue creativeIdDimensionValue; - /** - * Date and time that the assigned creative should stop serving. Must be later - * than the start time. - */ - core.DateTime endTime; - /** - * Rich media exit overrides for this creative assignment. - * Applicable when the creative type is any of the following: - * - DISPLAY - * - RICH_MEDIA_INPAGE - * - RICH_MEDIA_INPAGE_FLOATING - * - RICH_MEDIA_IM_EXPAND - * - RICH_MEDIA_EXPANDING - * - RICH_MEDIA_INTERSTITIAL_FLOAT - * - RICH_MEDIA_MOBILE_IN_APP - * - RICH_MEDIA_MULTI_FLOATING - * - RICH_MEDIA_PEEL_DOWN - * - VPAID_LINEAR - * - VPAID_NON_LINEAR - */ - core.List<RichMediaExitOverride> richMediaExitOverrides; - /** - * Sequence number of the creative assignment, applicable when the rotation - * type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1 to - * 65535, inclusive. - */ - core.int sequence; - /** - * Whether the creative to be assigned is SSL-compliant. This is a read-only - * field that is auto-generated when the ad is inserted or updated. - */ - core.bool sslCompliant; - /** Date and time that the assigned creative should start serving. */ - core.DateTime startTime; - /** - * Weight of the creative assignment, applicable when the rotation type is - * CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1. - */ - core.int weight; - - CreativeAssignment(); - - CreativeAssignment.fromJson(core.Map _json) { - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("applyEventTags")) { - applyEventTags = _json["applyEventTags"]; - } - if (_json.containsKey("clickThroughUrl")) { - clickThroughUrl = new ClickThroughUrl.fromJson(_json["clickThroughUrl"]); - } - if (_json.containsKey("companionCreativeOverrides")) { - companionCreativeOverrides = _json["companionCreativeOverrides"].map((value) => new CompanionClickThroughOverride.fromJson(value)).toList(); - } - if (_json.containsKey("creativeGroupAssignments")) { - creativeGroupAssignments = _json["creativeGroupAssignments"].map((value) => new CreativeGroupAssignment.fromJson(value)).toList(); - } - if (_json.containsKey("creativeId")) { - creativeId = _json["creativeId"]; - } - if (_json.containsKey("creativeIdDimensionValue")) { - creativeIdDimensionValue = new DimensionValue.fromJson(_json["creativeIdDimensionValue"]); - } - if (_json.containsKey("endTime")) { - endTime = core.DateTime.parse(_json["endTime"]); - } - if (_json.containsKey("richMediaExitOverrides")) { - richMediaExitOverrides = _json["richMediaExitOverrides"].map((value) => new RichMediaExitOverride.fromJson(value)).toList(); - } - if (_json.containsKey("sequence")) { - sequence = _json["sequence"]; - } - if (_json.containsKey("sslCompliant")) { - sslCompliant = _json["sslCompliant"]; - } - if (_json.containsKey("startTime")) { - startTime = core.DateTime.parse(_json["startTime"]); - } - if (_json.containsKey("weight")) { - weight = _json["weight"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (active != null) { - _json["active"] = active; - } - if (applyEventTags != null) { - _json["applyEventTags"] = applyEventTags; - } - if (clickThroughUrl != null) { - _json["clickThroughUrl"] = (clickThroughUrl).toJson(); - } - if (companionCreativeOverrides != null) { - _json["companionCreativeOverrides"] = companionCreativeOverrides.map((value) => (value).toJson()).toList(); - } - if (creativeGroupAssignments != null) { - _json["creativeGroupAssignments"] = creativeGroupAssignments.map((value) => (value).toJson()).toList(); - } - if (creativeId != null) { - _json["creativeId"] = creativeId; - } - if (creativeIdDimensionValue != null) { - _json["creativeIdDimensionValue"] = (creativeIdDimensionValue).toJson(); - } - if (endTime != null) { - _json["endTime"] = (endTime).toIso8601String(); - } - if (richMediaExitOverrides != null) { - _json["richMediaExitOverrides"] = richMediaExitOverrides.map((value) => (value).toJson()).toList(); - } - if (sequence != null) { - _json["sequence"] = sequence; - } - if (sslCompliant != null) { - _json["sslCompliant"] = sslCompliant; - } - if (startTime != null) { - _json["startTime"] = (startTime).toIso8601String(); - } - if (weight != null) { - _json["weight"] = weight; - } - return _json; - } -} - -/** Creative Custom Event. */ -class CreativeCustomEvent { - /** - * Unique ID of this event used by DDM Reporting and Data Transfer. This is a - * read-only field. - */ - core.String advertiserCustomEventId; - /** User-entered name for the event. */ - core.String advertiserCustomEventName; - /** - * Type of the event. This is a read-only field. - * Possible string values are: - * - "ADVERTISER_EVENT_COUNTER" - * - "ADVERTISER_EVENT_EXIT" - * - "ADVERTISER_EVENT_TIMER" - */ - core.String advertiserCustomEventType; - /** - * Artwork label column, used to link events in DCM back to events in Studio. - * This is a required field and should not be modified after insertion. - */ - core.String artworkLabel; - /** - * Artwork type used by the creative.This is a read-only field. - * Possible string values are: - * - "ARTWORK_TYPE_FLASH" - * - "ARTWORK_TYPE_HTML5" - * - "ARTWORK_TYPE_IMAGE" - * - "ARTWORK_TYPE_MIXED" - */ - core.String artworkType; - /** Exit URL of the event. This field is used only for exit events. */ - core.String exitUrl; - /** - * ID of this event. This is a required field and should not be modified after - * insertion. - */ - core.String id; - /** - * Properties for rich media popup windows. This field is used only for exit - * events. - */ - PopupWindowProperties popupWindowProperties; - /** - * Target type used by the event. - * Possible string values are: - * - "TARGET_BLANK" - * - "TARGET_PARENT" - * - "TARGET_POPUP" - * - "TARGET_SELF" - * - "TARGET_TOP" - */ - core.String targetType; - /** - * Video reporting ID, used to differentiate multiple videos in a single - * creative. This is a read-only field. - */ - core.String videoReportingId; - - CreativeCustomEvent(); - - CreativeCustomEvent.fromJson(core.Map _json) { - if (_json.containsKey("advertiserCustomEventId")) { - advertiserCustomEventId = _json["advertiserCustomEventId"]; - } - if (_json.containsKey("advertiserCustomEventName")) { - advertiserCustomEventName = _json["advertiserCustomEventName"]; - } - if (_json.containsKey("advertiserCustomEventType")) { - advertiserCustomEventType = _json["advertiserCustomEventType"]; - } - if (_json.containsKey("artworkLabel")) { - artworkLabel = _json["artworkLabel"]; - } - if (_json.containsKey("artworkType")) { - artworkType = _json["artworkType"]; - } - if (_json.containsKey("exitUrl")) { - exitUrl = _json["exitUrl"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("popupWindowProperties")) { - popupWindowProperties = new PopupWindowProperties.fromJson(_json["popupWindowProperties"]); - } - if (_json.containsKey("targetType")) { - targetType = _json["targetType"]; - } - if (_json.containsKey("videoReportingId")) { - videoReportingId = _json["videoReportingId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (advertiserCustomEventId != null) { - _json["advertiserCustomEventId"] = advertiserCustomEventId; - } - if (advertiserCustomEventName != null) { - _json["advertiserCustomEventName"] = advertiserCustomEventName; - } - if (advertiserCustomEventType != null) { - _json["advertiserCustomEventType"] = advertiserCustomEventType; - } - if (artworkLabel != null) { - _json["artworkLabel"] = artworkLabel; - } - if (artworkType != null) { - _json["artworkType"] = artworkType; - } - if (exitUrl != null) { - _json["exitUrl"] = exitUrl; - } - if (id != null) { - _json["id"] = id; - } - if (popupWindowProperties != null) { - _json["popupWindowProperties"] = (popupWindowProperties).toJson(); - } - if (targetType != null) { - _json["targetType"] = targetType; - } - if (videoReportingId != null) { - _json["videoReportingId"] = videoReportingId; - } - return _json; - } -} - -/** Contains properties of a creative field. */ -class CreativeField { - /** - * Account ID of this creative field. This is a read-only field that can be - * left blank. - */ - core.String accountId; - /** - * Advertiser ID of this creative field. This is a required field on - * insertion. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** ID of this creative field. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativeField". - */ - core.String kind; - /** - * Name of this creative field. This is a required field and must be less than - * 256 characters long and unique among creative fields of the same - * advertiser. - */ - core.String name; - /** - * Subaccount ID of this creative field. This is a read-only field that can be - * left blank. - */ - core.String subaccountId; - - CreativeField(); - - CreativeField.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - return _json; - } -} - -/** Creative Field Assignment. */ -class CreativeFieldAssignment { - /** ID of the creative field. */ - core.String creativeFieldId; - /** ID of the creative field value. */ - core.String creativeFieldValueId; - - CreativeFieldAssignment(); - - CreativeFieldAssignment.fromJson(core.Map _json) { - if (_json.containsKey("creativeFieldId")) { - creativeFieldId = _json["creativeFieldId"]; - } - if (_json.containsKey("creativeFieldValueId")) { - creativeFieldValueId = _json["creativeFieldValueId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creativeFieldId != null) { - _json["creativeFieldId"] = creativeFieldId; - } - if (creativeFieldValueId != null) { - _json["creativeFieldValueId"] = creativeFieldValueId; - } - return _json; - } -} - -/** Contains properties of a creative field value. */ -class CreativeFieldValue { - /** - * ID of this creative field value. This is a read-only, auto-generated field. - */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativeFieldValue". - */ - core.String kind; - /** - * Value of this creative field value. It needs to be less than 256 characters - * in length and unique per creative field. - */ - core.String value; - - CreativeFieldValue(); - - CreativeFieldValue.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (value != null) { - _json["value"] = value; - } - return _json; - } -} - -/** Creative Field Value List Response */ -class CreativeFieldValuesListResponse { - /** Creative field value collection. */ - core.List<CreativeFieldValue> creativeFieldValues; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativeFieldValuesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - CreativeFieldValuesListResponse(); - - CreativeFieldValuesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("creativeFieldValues")) { - creativeFieldValues = _json["creativeFieldValues"].map((value) => new CreativeFieldValue.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creativeFieldValues != null) { - _json["creativeFieldValues"] = creativeFieldValues.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Creative Field List Response */ -class CreativeFieldsListResponse { - /** Creative field collection. */ - core.List<CreativeField> creativeFields; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativeFieldsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - CreativeFieldsListResponse(); - - CreativeFieldsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("creativeFields")) { - creativeFields = _json["creativeFields"].map((value) => new CreativeField.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creativeFields != null) { - _json["creativeFields"] = creativeFields.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Contains properties of a creative group. */ -class CreativeGroup { - /** - * Account ID of this creative group. This is a read-only field that can be - * left blank. - */ - core.String accountId; - /** - * Advertiser ID of this creative group. This is a required field on - * insertion. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** - * Subgroup of the creative group. Assign your creative groups to a subgroup - * in order to filter or manage them more easily. This field is required on - * insertion and is read-only after insertion. Acceptable values are 1 to 2, - * inclusive. - */ - core.int groupNumber; - /** ID of this creative group. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativeGroup". - */ - core.String kind; - /** - * Name of this creative group. This is a required field and must be less than - * 256 characters long and unique among creative groups of the same - * advertiser. - */ - core.String name; - /** - * Subaccount ID of this creative group. This is a read-only field that can be - * left blank. - */ - core.String subaccountId; - - CreativeGroup(); - - CreativeGroup.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("groupNumber")) { - groupNumber = _json["groupNumber"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (groupNumber != null) { - _json["groupNumber"] = groupNumber; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - return _json; - } -} - -/** Creative Group Assignment. */ -class CreativeGroupAssignment { - /** ID of the creative group to be assigned. */ - core.String creativeGroupId; - /** - * Creative group number of the creative group assignment. - * Possible string values are: - * - "CREATIVE_GROUP_ONE" - * - "CREATIVE_GROUP_TWO" - */ - core.String creativeGroupNumber; - - CreativeGroupAssignment(); - - CreativeGroupAssignment.fromJson(core.Map _json) { - if (_json.containsKey("creativeGroupId")) { - creativeGroupId = _json["creativeGroupId"]; - } - if (_json.containsKey("creativeGroupNumber")) { - creativeGroupNumber = _json["creativeGroupNumber"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creativeGroupId != null) { - _json["creativeGroupId"] = creativeGroupId; - } - if (creativeGroupNumber != null) { - _json["creativeGroupNumber"] = creativeGroupNumber; - } - return _json; - } -} - -/** Creative Group List Response */ -class CreativeGroupsListResponse { - /** Creative group collection. */ - core.List<CreativeGroup> creativeGroups; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativeGroupsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - CreativeGroupsListResponse(); - - CreativeGroupsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("creativeGroups")) { - creativeGroups = _json["creativeGroups"].map((value) => new CreativeGroup.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creativeGroups != null) { - _json["creativeGroups"] = creativeGroups.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Creative optimization settings. */ -class CreativeOptimizationConfiguration { - /** - * ID of this creative optimization config. This field is auto-generated when - * the campaign is inserted or updated. It can be null for existing campaigns. - */ - core.String id; - /** - * Name of this creative optimization config. This is a required field and - * must be less than 129 characters long. - */ - core.String name; - /** List of optimization activities associated with this configuration. */ - core.List<OptimizationActivity> optimizationActivitys; - /** - * Optimization model for this configuration. - * Possible string values are: - * - "CLICK" - * - "POST_CLICK" - * - "POST_CLICK_AND_IMPRESSION" - * - "POST_IMPRESSION" - * - "VIDEO_COMPLETION" - */ - core.String optimizationModel; - - CreativeOptimizationConfiguration(); - - CreativeOptimizationConfiguration.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("optimizationActivitys")) { - optimizationActivitys = _json["optimizationActivitys"].map((value) => new OptimizationActivity.fromJson(value)).toList(); - } - if (_json.containsKey("optimizationModel")) { - optimizationModel = _json["optimizationModel"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (name != null) { - _json["name"] = name; - } - if (optimizationActivitys != null) { - _json["optimizationActivitys"] = optimizationActivitys.map((value) => (value).toJson()).toList(); - } - if (optimizationModel != null) { - _json["optimizationModel"] = optimizationModel; - } - return _json; - } -} - -/** Creative Rotation. */ -class CreativeRotation { - /** Creative assignments in this creative rotation. */ - core.List<CreativeAssignment> creativeAssignments; - /** - * Creative optimization configuration that is used by this ad. It should - * refer to one of the existing optimization configurations in the ad's - * campaign. If it is unset or set to 0, then the campaign's default - * optimization configuration will be used for this ad. - */ - core.String creativeOptimizationConfigurationId; - /** - * Type of creative rotation. Can be used to specify whether to use sequential - * or random rotation. - * Possible string values are: - * - "CREATIVE_ROTATION_TYPE_RANDOM" - * - "CREATIVE_ROTATION_TYPE_SEQUENTIAL" - */ - core.String type; - /** - * Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM. - * Possible string values are: - * - "WEIGHT_STRATEGY_CUSTOM" - * - "WEIGHT_STRATEGY_EQUAL" - * - "WEIGHT_STRATEGY_HIGHEST_CTR" - * - "WEIGHT_STRATEGY_OPTIMIZED" - */ - core.String weightCalculationStrategy; - - CreativeRotation(); - - CreativeRotation.fromJson(core.Map _json) { - if (_json.containsKey("creativeAssignments")) { - creativeAssignments = _json["creativeAssignments"].map((value) => new CreativeAssignment.fromJson(value)).toList(); - } - if (_json.containsKey("creativeOptimizationConfigurationId")) { - creativeOptimizationConfigurationId = _json["creativeOptimizationConfigurationId"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - if (_json.containsKey("weightCalculationStrategy")) { - weightCalculationStrategy = _json["weightCalculationStrategy"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creativeAssignments != null) { - _json["creativeAssignments"] = creativeAssignments.map((value) => (value).toJson()).toList(); - } - if (creativeOptimizationConfigurationId != null) { - _json["creativeOptimizationConfigurationId"] = creativeOptimizationConfigurationId; - } - if (type != null) { - _json["type"] = type; - } - if (weightCalculationStrategy != null) { - _json["weightCalculationStrategy"] = weightCalculationStrategy; - } - return _json; - } -} - -/** Creative Settings */ -class CreativeSettings { - /** - * Header text for iFrames for this site. Must be less than or equal to 2000 - * characters long. - */ - core.String iFrameFooter; - /** - * Header text for iFrames for this site. Must be less than or equal to 2000 - * characters long. - */ - core.String iFrameHeader; - - CreativeSettings(); - - CreativeSettings.fromJson(core.Map _json) { - if (_json.containsKey("iFrameFooter")) { - iFrameFooter = _json["iFrameFooter"]; - } - if (_json.containsKey("iFrameHeader")) { - iFrameHeader = _json["iFrameHeader"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (iFrameFooter != null) { - _json["iFrameFooter"] = iFrameFooter; - } - if (iFrameHeader != null) { - _json["iFrameHeader"] = iFrameHeader; - } - return _json; - } -} - -/** Creative List Response */ -class CreativesListResponse { - /** Creative collection. */ - core.List<Creative> creatives; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - CreativesListResponse(); - - CreativesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("creatives")) { - creatives = _json["creatives"].map((value) => new Creative.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creatives != null) { - _json["creatives"] = creatives.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** - * Represents fields that are compatible to be selected for a report of type - * "CROSS_DIMENSION_REACH". - */ -class CrossDimensionReachReportCompatibleFields { - /** - * Dimensions which are compatible to be selected in the "breakdown" section - * of the report. - */ - core.List<Dimension> breakdown; - /** - * Dimensions which are compatible to be selected in the "dimensionFilters" - * section of the report. - */ - core.List<Dimension> dimensionFilters; - /** - * The kind of resource this is, in this case - * dfareporting#crossDimensionReachReportCompatibleFields. - */ - core.String kind; - /** - * Metrics which are compatible to be selected in the "metricNames" section of - * the report. - */ - core.List<Metric> metrics; - /** - * Metrics which are compatible to be selected in the "overlapMetricNames" - * section of the report. - */ - core.List<Metric> overlapMetrics; - - CrossDimensionReachReportCompatibleFields(); - - CrossDimensionReachReportCompatibleFields.fromJson(core.Map _json) { - if (_json.containsKey("breakdown")) { - breakdown = _json["breakdown"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metrics")) { - metrics = _json["metrics"].map((value) => new Metric.fromJson(value)).toList(); - } - if (_json.containsKey("overlapMetrics")) { - overlapMetrics = _json["overlapMetrics"].map((value) => new Metric.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (breakdown != null) { - _json["breakdown"] = breakdown.map((value) => (value).toJson()).toList(); - } - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (metrics != null) { - _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); - } - if (overlapMetrics != null) { - _json["overlapMetrics"] = overlapMetrics.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** A custom floodlight variable. */ -class CustomFloodlightVariable { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#customFloodlightVariable". - */ - core.String kind; - /** - * The type of custom floodlight variable to supply a value for. These map to - * the "u[1-20]=" in the tags. - * Possible string values are: - * - "U1" - * - "U10" - * - "U100" - * - "U11" - * - "U12" - * - "U13" - * - "U14" - * - "U15" - * - "U16" - * - "U17" - * - "U18" - * - "U19" - * - "U2" - * - "U20" - * - "U21" - * - "U22" - * - "U23" - * - "U24" - * - "U25" - * - "U26" - * - "U27" - * - "U28" - * - "U29" - * - "U3" - * - "U30" - * - "U31" - * - "U32" - * - "U33" - * - "U34" - * - "U35" - * - "U36" - * - "U37" - * - "U38" - * - "U39" - * - "U4" - * - "U40" - * - "U41" - * - "U42" - * - "U43" - * - "U44" - * - "U45" - * - "U46" - * - "U47" - * - "U48" - * - "U49" - * - "U5" - * - "U50" - * - "U51" - * - "U52" - * - "U53" - * - "U54" - * - "U55" - * - "U56" - * - "U57" - * - "U58" - * - "U59" - * - "U6" - * - "U60" - * - "U61" - * - "U62" - * - "U63" - * - "U64" - * - "U65" - * - "U66" - * - "U67" - * - "U68" - * - "U69" - * - "U7" - * - "U70" - * - "U71" - * - "U72" - * - "U73" - * - "U74" - * - "U75" - * - "U76" - * - "U77" - * - "U78" - * - "U79" - * - "U8" - * - "U80" - * - "U81" - * - "U82" - * - "U83" - * - "U84" - * - "U85" - * - "U86" - * - "U87" - * - "U88" - * - "U89" - * - "U9" - * - "U90" - * - "U91" - * - "U92" - * - "U93" - * - "U94" - * - "U95" - * - "U96" - * - "U97" - * - "U98" - * - "U99" - */ - core.String type; - /** - * The value of the custom floodlight variable. The length of string must not - * exceed 50 characters. - */ - core.String value; - - CustomFloodlightVariable(); - - CustomFloodlightVariable.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (type != null) { - _json["type"] = type; - } - if (value != null) { - _json["value"] = value; - } - return _json; - } -} - -/** Represents a Custom Rich Media Events group. */ -class CustomRichMediaEvents { - /** - * List of custom rich media event IDs. Dimension values must be all of type - * dfa:richMediaEventTypeIdAndName. - */ - core.List<DimensionValue> filteredEventIds; - /** - * The kind of resource this is, in this case - * dfareporting#customRichMediaEvents. - */ - core.String kind; - - CustomRichMediaEvents(); - - CustomRichMediaEvents.fromJson(core.Map _json) { - if (_json.containsKey("filteredEventIds")) { - filteredEventIds = _json["filteredEventIds"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (filteredEventIds != null) { - _json["filteredEventIds"] = filteredEventIds.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Represents a date range. */ -class DateRange { - /** - * The end date of the date range, inclusive. A string of the format: - * "yyyy-MM-dd". - */ - core.DateTime endDate; - /** The kind of resource this is, in this case dfareporting#dateRange. */ - core.String kind; - /** - * The date range relative to the date of when the report is run. - * Possible string values are: - * - "LAST_24_MONTHS" - * - "LAST_30_DAYS" - * - "LAST_365_DAYS" - * - "LAST_7_DAYS" - * - "LAST_90_DAYS" - * - "MONTH_TO_DATE" - * - "PREVIOUS_MONTH" - * - "PREVIOUS_QUARTER" - * - "PREVIOUS_WEEK" - * - "PREVIOUS_YEAR" - * - "QUARTER_TO_DATE" - * - "TODAY" - * - "WEEK_TO_DATE" - * - "YEAR_TO_DATE" - * - "YESTERDAY" - */ - core.String relativeDateRange; - /** - * The start date of the date range, inclusive. A string of the format: - * "yyyy-MM-dd". - */ - core.DateTime startDate; - - DateRange(); - - DateRange.fromJson(core.Map _json) { - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("relativeDateRange")) { - relativeDateRange = _json["relativeDateRange"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (kind != null) { - _json["kind"] = kind; - } - if (relativeDateRange != null) { - _json["relativeDateRange"] = relativeDateRange; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - return _json; - } -} - -/** Day Part Targeting. */ -class DayPartTargeting { - /** - * Days of the week when the ad will serve. - * - * Acceptable values are: - * - "SUNDAY" - * - "MONDAY" - * - "TUESDAY" - * - "WEDNESDAY" - * - "THURSDAY" - * - "FRIDAY" - * - "SATURDAY" - */ - core.List<core.String> daysOfWeek; - /** - * Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 - * is 11 PM to midnight. Can be specified with days of week, in which case the - * ad would serve during these hours on the specified days. For example if - * Monday, Wednesday, Friday are the days of week specified and 9-10am, 3-5pm - * (hours 9, 15, and 16) is specified, the ad would serve Monday, Wednesdays, - * and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive. - */ - core.List<core.int> hoursOfDay; - /** - * Whether or not to use the user's local time. If false, the America/New York - * time zone applies. - */ - core.bool userLocalTime; - - DayPartTargeting(); - - DayPartTargeting.fromJson(core.Map _json) { - if (_json.containsKey("daysOfWeek")) { - daysOfWeek = _json["daysOfWeek"]; - } - if (_json.containsKey("hoursOfDay")) { - hoursOfDay = _json["hoursOfDay"]; - } - if (_json.containsKey("userLocalTime")) { - userLocalTime = _json["userLocalTime"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (daysOfWeek != null) { - _json["daysOfWeek"] = daysOfWeek; - } - if (hoursOfDay != null) { - _json["hoursOfDay"] = hoursOfDay; - } - if (userLocalTime != null) { - _json["userLocalTime"] = userLocalTime; - } - return _json; - } -} - -/** - * Properties of inheriting and overriding the default click-through event tag. - * A campaign may override the event tag defined at the advertiser level, and an - * ad may also override the campaign's setting further. - */ -class DefaultClickThroughEventTagProperties { - /** - * ID of the click-through event tag to apply to all ads in this entity's - * scope. - */ - core.String defaultClickThroughEventTagId; - /** - * Whether this entity should override the inherited default click-through - * event tag with its own defined value. - */ - core.bool overrideInheritedEventTag; - - DefaultClickThroughEventTagProperties(); - - DefaultClickThroughEventTagProperties.fromJson(core.Map _json) { - if (_json.containsKey("defaultClickThroughEventTagId")) { - defaultClickThroughEventTagId = _json["defaultClickThroughEventTagId"]; - } - if (_json.containsKey("overrideInheritedEventTag")) { - overrideInheritedEventTag = _json["overrideInheritedEventTag"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (defaultClickThroughEventTagId != null) { - _json["defaultClickThroughEventTagId"] = defaultClickThroughEventTagId; - } - if (overrideInheritedEventTag != null) { - _json["overrideInheritedEventTag"] = overrideInheritedEventTag; - } - return _json; - } -} - -/** Delivery Schedule. */ -class DeliverySchedule { - /** - * Limit on the number of times an individual user can be served the ad within - * a specified period of time. - */ - FrequencyCap frequencyCap; - /** - * Whether or not hard cutoff is enabled. If true, the ad will not serve after - * the end date and time. Otherwise the ad will continue to be served until it - * has reached its delivery goals. - */ - core.bool hardCutoff; - /** - * Impression ratio for this ad. This ratio determines how often each ad is - * served relative to the others. For example, if ad A has an impression ratio - * of 1 and ad B has an impression ratio of 3, then DCM will serve ad B three - * times as often as ad A. Acceptable values are 1 to 10, inclusive. - */ - core.String impressionRatio; - /** - * Serving priority of an ad, with respect to other ads. The lower the - * priority number, the greater the priority with which it is served. - * Possible string values are: - * - "AD_PRIORITY_01" - * - "AD_PRIORITY_02" - * - "AD_PRIORITY_03" - * - "AD_PRIORITY_04" - * - "AD_PRIORITY_05" - * - "AD_PRIORITY_06" - * - "AD_PRIORITY_07" - * - "AD_PRIORITY_08" - * - "AD_PRIORITY_09" - * - "AD_PRIORITY_10" - * - "AD_PRIORITY_11" - * - "AD_PRIORITY_12" - * - "AD_PRIORITY_13" - * - "AD_PRIORITY_14" - * - "AD_PRIORITY_15" - * - "AD_PRIORITY_16" - */ - core.String priority; - - DeliverySchedule(); - - DeliverySchedule.fromJson(core.Map _json) { - if (_json.containsKey("frequencyCap")) { - frequencyCap = new FrequencyCap.fromJson(_json["frequencyCap"]); - } - if (_json.containsKey("hardCutoff")) { - hardCutoff = _json["hardCutoff"]; - } - if (_json.containsKey("impressionRatio")) { - impressionRatio = _json["impressionRatio"]; - } - if (_json.containsKey("priority")) { - priority = _json["priority"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (frequencyCap != null) { - _json["frequencyCap"] = (frequencyCap).toJson(); - } - if (hardCutoff != null) { - _json["hardCutoff"] = hardCutoff; - } - if (impressionRatio != null) { - _json["impressionRatio"] = impressionRatio; - } - if (priority != null) { - _json["priority"] = priority; - } - return _json; - } -} - -/** DFP Settings */ -class DfpSettings { - /** DFP network code for this directory site. */ - core.String dfpNetworkCode; - /** DFP network name for this directory site. */ - core.String dfpNetworkName; - /** Whether this directory site accepts programmatic placements. */ - core.bool programmaticPlacementAccepted; - /** Whether this directory site accepts publisher-paid tags. */ - core.bool pubPaidPlacementAccepted; - /** - * Whether this directory site is available only via DoubleClick Publisher - * Portal. - */ - core.bool publisherPortalOnly; - - DfpSettings(); - - DfpSettings.fromJson(core.Map _json) { - if (_json.containsKey("dfp_network_code")) { - dfpNetworkCode = _json["dfp_network_code"]; - } - if (_json.containsKey("dfp_network_name")) { - dfpNetworkName = _json["dfp_network_name"]; - } - if (_json.containsKey("programmaticPlacementAccepted")) { - programmaticPlacementAccepted = _json["programmaticPlacementAccepted"]; - } - if (_json.containsKey("pubPaidPlacementAccepted")) { - pubPaidPlacementAccepted = _json["pubPaidPlacementAccepted"]; - } - if (_json.containsKey("publisherPortalOnly")) { - publisherPortalOnly = _json["publisherPortalOnly"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dfpNetworkCode != null) { - _json["dfp_network_code"] = dfpNetworkCode; - } - if (dfpNetworkName != null) { - _json["dfp_network_name"] = dfpNetworkName; - } - if (programmaticPlacementAccepted != null) { - _json["programmaticPlacementAccepted"] = programmaticPlacementAccepted; - } - if (pubPaidPlacementAccepted != null) { - _json["pubPaidPlacementAccepted"] = pubPaidPlacementAccepted; - } - if (publisherPortalOnly != null) { - _json["publisherPortalOnly"] = publisherPortalOnly; - } - return _json; - } -} - -/** Represents a dimension. */ -class Dimension { - /** The kind of resource this is, in this case dfareporting#dimension. */ - core.String kind; - /** The dimension name, e.g. dfa:advertiser */ - core.String name; - - Dimension(); - - Dimension.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Represents a dimension filter. */ -class DimensionFilter { - /** The name of the dimension to filter. */ - core.String dimensionName; - /** - * The kind of resource this is, in this case dfareporting#dimensionFilter. - */ - core.String kind; - /** The value of the dimension to filter. */ - core.String value; - - DimensionFilter(); - - DimensionFilter.fromJson(core.Map _json) { - if (_json.containsKey("dimensionName")) { - dimensionName = _json["dimensionName"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dimensionName != null) { - _json["dimensionName"] = dimensionName; - } - if (kind != null) { - _json["kind"] = kind; - } - if (value != null) { - _json["value"] = value; - } - return _json; - } -} - -/** Represents a DimensionValue resource. */ -class DimensionValue { - /** The name of the dimension. */ - core.String dimensionName; - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The ID associated with the value if available. */ - core.String id; - /** - * The kind of resource this is, in this case dfareporting#dimensionValue. - */ - core.String kind; - /** - * Determines how the 'value' field is matched when filtering. If not - * specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed - * as a placeholder for variable length character sequences, and it can be - * escaped with a backslash. Note, only paid search dimensions - * ('dfa:paidSearch*') allow a matchType other than EXACT. - * Possible string values are: - * - "BEGINS_WITH" - * - "CONTAINS" - * - "EXACT" - * - "WILDCARD_EXPRESSION" - */ - core.String matchType; - /** The value of the dimension. */ - core.String value; - - DimensionValue(); - - DimensionValue.fromJson(core.Map _json) { - if (_json.containsKey("dimensionName")) { - dimensionName = _json["dimensionName"]; - } - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("matchType")) { - matchType = _json["matchType"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dimensionName != null) { - _json["dimensionName"] = dimensionName; - } - if (etag != null) { - _json["etag"] = etag; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (matchType != null) { - _json["matchType"] = matchType; - } - if (value != null) { - _json["value"] = value; - } - return _json; - } -} - -/** Represents the list of DimensionValue resources. */ -class DimensionValueList { - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The dimension values returned in this response. */ - core.List<DimensionValue> items; - /** - * The kind of list this is, in this case dfareporting#dimensionValueList. - */ - core.String kind; - /** - * Continuation token used to page through dimension values. To retrieve the - * next page of results, set the next request's "pageToken" to the value of - * this field. The page token is only valid for a limited amount of time and - * should not be persisted. - */ - core.String nextPageToken; - - DimensionValueList(); - - DimensionValueList.fromJson(core.Map _json) { - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("items")) { - items = _json["items"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (etag != null) { - _json["etag"] = etag; - } - if (items != null) { - _json["items"] = items.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Represents a DimensionValuesRequest. */ -class DimensionValueRequest { - /** The name of the dimension for which values should be requested. */ - core.String dimensionName; - /** - * The end date of the date range for which to retrieve dimension values. A - * string of the format "yyyy-MM-dd". - */ - core.DateTime endDate; - /** The list of filters by which to filter values. The filters are ANDed. */ - core.List<DimensionFilter> filters; - /** - * The kind of request this is, in this case - * dfareporting#dimensionValueRequest. - */ - core.String kind; - /** - * The start date of the date range for which to retrieve dimension values. A - * string of the format "yyyy-MM-dd". - */ - core.DateTime startDate; - - DimensionValueRequest(); - - DimensionValueRequest.fromJson(core.Map _json) { - if (_json.containsKey("dimensionName")) { - dimensionName = _json["dimensionName"]; - } - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("filters")) { - filters = _json["filters"].map((value) => new DimensionFilter.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dimensionName != null) { - _json["dimensionName"] = dimensionName; - } - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (filters != null) { - _json["filters"] = filters.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - return _json; - } -} - -/** - * DirectorySites contains properties of a website from the Site Directory. - * Sites need to be added to an account via the Sites resource before they can - * be assigned to a placement. - */ -class DirectorySite { - /** Whether this directory site is active. */ - core.bool active; - /** Directory site contacts. */ - core.List<DirectorySiteContactAssignment> contactAssignments; - /** Country ID of this directory site. This is a read-only field. */ - core.String countryId; - /** - * Currency ID of this directory site. This is a read-only field. - * Possible values are: - * - "1" for USD - * - "2" for GBP - * - "3" for ESP - * - "4" for SEK - * - "5" for CAD - * - "6" for JPY - * - "7" for DEM - * - "8" for AUD - * - "9" for FRF - * - "10" for ITL - * - "11" for DKK - * - "12" for NOK - * - "13" for FIM - * - "14" for ZAR - * - "15" for IEP - * - "16" for NLG - * - "17" for EUR - * - "18" for KRW - * - "19" for TWD - * - "20" for SGD - * - "21" for CNY - * - "22" for HKD - * - "23" for NZD - * - "24" for MYR - * - "25" for BRL - * - "26" for PTE - * - "27" for MXP - * - "28" for CLP - * - "29" for TRY - * - "30" for ARS - * - "31" for PEN - * - "32" for ILS - * - "33" for CHF - * - "34" for VEF - * - "35" for COP - * - "36" for GTQ - * - "37" for PLN - * - "39" for INR - * - "40" for THB - * - "41" for IDR - * - "42" for CZK - * - "43" for RON - * - "44" for HUF - * - "45" for RUB - * - "46" for AED - * - "47" for BGN - * - "48" for HRK - * - "49" for MXN - */ - core.String currencyId; - /** Description of this directory site. This is a read-only field. */ - core.String description; - /** ID of this directory site. This is a read-only, auto-generated field. */ - core.String id; - /** - * Dimension value for the ID of this directory site. This is a read-only, - * auto-generated field. - */ - DimensionValue idDimensionValue; - /** - * Tag types for regular placements. - * - * Acceptable values are: - * - "STANDARD" - * - "IFRAME_JAVASCRIPT_INPAGE" - * - "INTERNAL_REDIRECT_INPAGE" - * - "JAVASCRIPT_INPAGE" - */ - core.List<core.String> inpageTagFormats; - /** - * Tag types for interstitial placements. - * - * Acceptable values are: - * - "IFRAME_JAVASCRIPT_INTERSTITIAL" - * - "INTERNAL_REDIRECT_INTERSTITIAL" - * - "JAVASCRIPT_INTERSTITIAL" - */ - core.List<core.String> interstitialTagFormats; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#directorySite". - */ - core.String kind; - /** Name of this directory site. */ - core.String name; - /** Parent directory site ID. */ - core.String parentId; - /** Directory site settings. */ - DirectorySiteSettings settings; - /** URL of this directory site. */ - core.String url; - - DirectorySite(); - - DirectorySite.fromJson(core.Map _json) { - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("contactAssignments")) { - contactAssignments = _json["contactAssignments"].map((value) => new DirectorySiteContactAssignment.fromJson(value)).toList(); - } - if (_json.containsKey("countryId")) { - countryId = _json["countryId"]; - } - if (_json.containsKey("currencyId")) { - currencyId = _json["currencyId"]; - } - if (_json.containsKey("description")) { - description = _json["description"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("inpageTagFormats")) { - inpageTagFormats = _json["inpageTagFormats"]; - } - if (_json.containsKey("interstitialTagFormats")) { - interstitialTagFormats = _json["interstitialTagFormats"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("parentId")) { - parentId = _json["parentId"]; - } - if (_json.containsKey("settings")) { - settings = new DirectorySiteSettings.fromJson(_json["settings"]); - } - if (_json.containsKey("url")) { - url = _json["url"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (active != null) { - _json["active"] = active; - } - if (contactAssignments != null) { - _json["contactAssignments"] = contactAssignments.map((value) => (value).toJson()).toList(); - } - if (countryId != null) { - _json["countryId"] = countryId; - } - if (currencyId != null) { - _json["currencyId"] = currencyId; - } - if (description != null) { - _json["description"] = description; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (inpageTagFormats != null) { - _json["inpageTagFormats"] = inpageTagFormats; - } - if (interstitialTagFormats != null) { - _json["interstitialTagFormats"] = interstitialTagFormats; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (parentId != null) { - _json["parentId"] = parentId; - } - if (settings != null) { - _json["settings"] = (settings).toJson(); - } - if (url != null) { - _json["url"] = url; - } - return _json; - } -} - -/** Contains properties of a Site Directory contact. */ -class DirectorySiteContact { - /** Address of this directory site contact. */ - core.String address; - /** Email address of this directory site contact. */ - core.String email; - /** First name of this directory site contact. */ - core.String firstName; - /** - * ID of this directory site contact. This is a read-only, auto-generated - * field. - */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#directorySiteContact". - */ - core.String kind; - /** Last name of this directory site contact. */ - core.String lastName; - /** Phone number of this directory site contact. */ - core.String phone; - /** - * Directory site contact role. - * Possible string values are: - * - "ADMIN" - * - "EDIT" - * - "VIEW" - */ - core.String role; - /** Title or designation of this directory site contact. */ - core.String title; - /** - * Directory site contact type. - * Possible string values are: - * - "BILLING" - * - "OTHER" - * - "SALES" - * - "TECHNICAL" - */ - core.String type; - - DirectorySiteContact(); - - DirectorySiteContact.fromJson(core.Map _json) { - if (_json.containsKey("address")) { - address = _json["address"]; - } - if (_json.containsKey("email")) { - email = _json["email"]; - } - if (_json.containsKey("firstName")) { - firstName = _json["firstName"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastName")) { - lastName = _json["lastName"]; - } - if (_json.containsKey("phone")) { - phone = _json["phone"]; - } - if (_json.containsKey("role")) { - role = _json["role"]; - } - if (_json.containsKey("title")) { - title = _json["title"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (address != null) { - _json["address"] = address; - } - if (email != null) { - _json["email"] = email; - } - if (firstName != null) { - _json["firstName"] = firstName; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastName != null) { - _json["lastName"] = lastName; - } - if (phone != null) { - _json["phone"] = phone; - } - if (role != null) { - _json["role"] = role; - } - if (title != null) { - _json["title"] = title; - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** Directory Site Contact Assignment */ -class DirectorySiteContactAssignment { - /** - * ID of this directory site contact. This is a read-only, auto-generated - * field. - */ - core.String contactId; - /** - * Visibility of this directory site contact assignment. When set to PUBLIC - * this contact assignment is visible to all account and agency users; when - * set to PRIVATE it is visible only to the site. - * Possible string values are: - * - "PRIVATE" - * - "PUBLIC" - */ - core.String visibility; - - DirectorySiteContactAssignment(); - - DirectorySiteContactAssignment.fromJson(core.Map _json) { - if (_json.containsKey("contactId")) { - contactId = _json["contactId"]; - } - if (_json.containsKey("visibility")) { - visibility = _json["visibility"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (contactId != null) { - _json["contactId"] = contactId; - } - if (visibility != null) { - _json["visibility"] = visibility; - } - return _json; - } -} - -/** Directory Site Contact List Response */ -class DirectorySiteContactsListResponse { - /** Directory site contact collection */ - core.List<DirectorySiteContact> directorySiteContacts; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#directorySiteContactsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - DirectorySiteContactsListResponse(); - - DirectorySiteContactsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("directorySiteContacts")) { - directorySiteContacts = _json["directorySiteContacts"].map((value) => new DirectorySiteContact.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (directorySiteContacts != null) { - _json["directorySiteContacts"] = directorySiteContacts.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Directory Site Settings */ -class DirectorySiteSettings { - /** Whether this directory site has disabled active view creatives. */ - core.bool activeViewOptOut; - /** Directory site DFP settings. */ - DfpSettings dfpSettings; - /** Whether this site accepts in-stream video ads. */ - core.bool instreamVideoPlacementAccepted; - /** Whether this site accepts interstitial ads. */ - core.bool interstitialPlacementAccepted; - /** Whether this directory site has disabled Nielsen OCR reach ratings. */ - core.bool nielsenOcrOptOut; - /** - * Whether this directory site has disabled generation of Verification ins - * tags. - */ - core.bool verificationTagOptOut; - /** - * Whether this directory site has disabled active view for in-stream video - * creatives. - */ - core.bool videoActiveViewOptOut; - - DirectorySiteSettings(); - - DirectorySiteSettings.fromJson(core.Map _json) { - if (_json.containsKey("activeViewOptOut")) { - activeViewOptOut = _json["activeViewOptOut"]; - } - if (_json.containsKey("dfp_settings")) { - dfpSettings = new DfpSettings.fromJson(_json["dfp_settings"]); - } - if (_json.containsKey("instream_video_placement_accepted")) { - instreamVideoPlacementAccepted = _json["instream_video_placement_accepted"]; - } - if (_json.containsKey("interstitialPlacementAccepted")) { - interstitialPlacementAccepted = _json["interstitialPlacementAccepted"]; - } - if (_json.containsKey("nielsenOcrOptOut")) { - nielsenOcrOptOut = _json["nielsenOcrOptOut"]; - } - if (_json.containsKey("verificationTagOptOut")) { - verificationTagOptOut = _json["verificationTagOptOut"]; - } - if (_json.containsKey("videoActiveViewOptOut")) { - videoActiveViewOptOut = _json["videoActiveViewOptOut"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (activeViewOptOut != null) { - _json["activeViewOptOut"] = activeViewOptOut; - } - if (dfpSettings != null) { - _json["dfp_settings"] = (dfpSettings).toJson(); - } - if (instreamVideoPlacementAccepted != null) { - _json["instream_video_placement_accepted"] = instreamVideoPlacementAccepted; - } - if (interstitialPlacementAccepted != null) { - _json["interstitialPlacementAccepted"] = interstitialPlacementAccepted; - } - if (nielsenOcrOptOut != null) { - _json["nielsenOcrOptOut"] = nielsenOcrOptOut; - } - if (verificationTagOptOut != null) { - _json["verificationTagOptOut"] = verificationTagOptOut; - } - if (videoActiveViewOptOut != null) { - _json["videoActiveViewOptOut"] = videoActiveViewOptOut; - } - return _json; - } -} - -/** Directory Site List Response */ -class DirectorySitesListResponse { - /** Directory site collection. */ - core.List<DirectorySite> directorySites; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#directorySitesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - DirectorySitesListResponse(); - - DirectorySitesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("directorySites")) { - directorySites = _json["directorySites"].map((value) => new DirectorySite.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (directorySites != null) { - _json["directorySites"] = directorySites.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** - * Contains properties of a dynamic targeting key. Dynamic targeting keys are - * unique, user-friendly labels, created at the advertiser level in DCM, that - * can be assigned to ads, creatives, and placements and used for targeting with - * DoubleClick Studio dynamic creatives. Use these labels instead of numeric DCM - * IDs (such as placement IDs) to save time and avoid errors in your dynamic - * feeds. - */ -class DynamicTargetingKey { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#dynamicTargetingKey". - */ - core.String kind; - /** - * Name of this dynamic targeting key. This is a required field. Must be less - * than 256 characters long and cannot contain commas. All characters are - * converted to lowercase. - */ - core.String name; - /** - * ID of the object of this dynamic targeting key. This is a required field. - */ - core.String objectId; - /** - * Type of the object of this dynamic targeting key. This is a required field. - * Possible string values are: - * - "OBJECT_AD" - * - "OBJECT_ADVERTISER" - * - "OBJECT_CREATIVE" - * - "OBJECT_PLACEMENT" - */ - core.String objectType; - - DynamicTargetingKey(); - - DynamicTargetingKey.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("objectId")) { - objectId = _json["objectId"]; - } - if (_json.containsKey("objectType")) { - objectType = _json["objectType"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (objectId != null) { - _json["objectId"] = objectId; - } - if (objectType != null) { - _json["objectType"] = objectType; - } - return _json; - } -} - -/** Dynamic Targeting Key List Response */ -class DynamicTargetingKeysListResponse { - /** Dynamic targeting key collection. */ - core.List<DynamicTargetingKey> dynamicTargetingKeys; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#dynamicTargetingKeysListResponse". - */ - core.String kind; - - DynamicTargetingKeysListResponse(); - - DynamicTargetingKeysListResponse.fromJson(core.Map _json) { - if (_json.containsKey("dynamicTargetingKeys")) { - dynamicTargetingKeys = _json["dynamicTargetingKeys"].map((value) => new DynamicTargetingKey.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dynamicTargetingKeys != null) { - _json["dynamicTargetingKeys"] = dynamicTargetingKeys.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** A description of how user IDs are encrypted. */ -class EncryptionInfo { - /** - * The encryption entity ID. This should match the encryption configuration - * for ad serving or Data Transfer. - */ - core.String encryptionEntityId; - /** - * The encryption entity type. This should match the encryption configuration - * for ad serving or Data Transfer. - * Possible string values are: - * - "ADWORDS_CUSTOMER" - * - "DBM_ADVERTISER" - * - "DBM_PARTNER" - * - "DCM_ACCOUNT" - * - "DCM_ADVERTISER" - * - "ENCRYPTION_ENTITY_TYPE_UNKNOWN" - */ - core.String encryptionEntityType; - /** - * Describes whether the encrypted cookie was received from ad serving (the %m - * macro) or from Data Transfer. - * Possible string values are: - * - "AD_SERVING" - * - "DATA_TRANSFER" - * - "ENCRYPTION_SCOPE_UNKNOWN" - */ - core.String encryptionSource; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#encryptionInfo". - */ - core.String kind; - - EncryptionInfo(); - - EncryptionInfo.fromJson(core.Map _json) { - if (_json.containsKey("encryptionEntityId")) { - encryptionEntityId = _json["encryptionEntityId"]; - } - if (_json.containsKey("encryptionEntityType")) { - encryptionEntityType = _json["encryptionEntityType"]; - } - if (_json.containsKey("encryptionSource")) { - encryptionSource = _json["encryptionSource"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (encryptionEntityId != null) { - _json["encryptionEntityId"] = encryptionEntityId; - } - if (encryptionEntityType != null) { - _json["encryptionEntityType"] = encryptionEntityType; - } - if (encryptionSource != null) { - _json["encryptionSource"] = encryptionSource; - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Contains properties of an event tag. */ -class EventTag { - /** - * Account ID of this event tag. This is a read-only field that can be left - * blank. - */ - core.String accountId; - /** - * Advertiser ID of this event tag. This field or the campaignId field is - * required on insertion. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** - * Campaign ID of this event tag. This field or the advertiserId field is - * required on insertion. - */ - core.String campaignId; - /** - * Dimension value for the ID of the campaign. This is a read-only, - * auto-generated field. - */ - DimensionValue campaignIdDimensionValue; - /** - * Whether this event tag should be automatically enabled for all of the - * advertiser's campaigns and ads. - */ - core.bool enabledByDefault; - /** - * Whether to remove this event tag from ads that are trafficked through - * DoubleClick Bid Manager to Ad Exchange. This may be useful if the event tag - * uses a pixel that is unapproved for Ad Exchange bids on one or more - * networks, such as the Google Display Network. - */ - core.bool excludeFromAdxRequests; - /** ID of this event tag. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#eventTag". - */ - core.String kind; - /** - * Name of this event tag. This is a required field and must be less than 256 - * characters long. - */ - core.String name; - /** - * Site filter type for this event tag. If no type is specified then the event - * tag will be applied to all sites. - * Possible string values are: - * - "BLACKLIST" - * - "WHITELIST" - */ - core.String siteFilterType; - /** - * Filter list of site IDs associated with this event tag. The siteFilterType - * determines whether this is a whitelist or blacklist filter. - */ - core.List<core.String> siteIds; - /** Whether this tag is SSL-compliant or not. This is a read-only field. */ - core.bool sslCompliant; - /** - * Status of this event tag. Must be ENABLED for this event tag to fire. This - * is a required field. - * Possible string values are: - * - "DISABLED" - * - "ENABLED" - */ - core.String status; - /** - * Subaccount ID of this event tag. This is a read-only field that can be left - * blank. - */ - core.String subaccountId; - /** - * Event tag type. Can be used to specify whether to use a third-party pixel, - * a third-party JavaScript URL, or a third-party click-through URL for either - * impression or click tracking. This is a required field. - * Possible string values are: - * - "CLICK_THROUGH_EVENT_TAG" - * - "IMPRESSION_IMAGE_EVENT_TAG" - * - "IMPRESSION_JAVASCRIPT_EVENT_TAG" - */ - core.String type; - /** - * Payload URL for this event tag. The URL on a click-through event tag should - * have a landing page URL appended to the end of it. This field is required - * on insertion. - */ - core.String url; - /** - * Number of times the landing page URL should be URL-escaped before being - * appended to the click-through event tag URL. Only applies to click-through - * event tags as specified by the event tag type. - */ - core.int urlEscapeLevels; - - EventTag(); - - EventTag.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("campaignId")) { - campaignId = _json["campaignId"]; - } - if (_json.containsKey("campaignIdDimensionValue")) { - campaignIdDimensionValue = new DimensionValue.fromJson(_json["campaignIdDimensionValue"]); - } - if (_json.containsKey("enabledByDefault")) { - enabledByDefault = _json["enabledByDefault"]; - } - if (_json.containsKey("excludeFromAdxRequests")) { - excludeFromAdxRequests = _json["excludeFromAdxRequests"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("siteFilterType")) { - siteFilterType = _json["siteFilterType"]; - } - if (_json.containsKey("siteIds")) { - siteIds = _json["siteIds"]; - } - if (_json.containsKey("sslCompliant")) { - sslCompliant = _json["sslCompliant"]; - } - if (_json.containsKey("status")) { - status = _json["status"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - if (_json.containsKey("url")) { - url = _json["url"]; - } - if (_json.containsKey("urlEscapeLevels")) { - urlEscapeLevels = _json["urlEscapeLevels"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (campaignId != null) { - _json["campaignId"] = campaignId; - } - if (campaignIdDimensionValue != null) { - _json["campaignIdDimensionValue"] = (campaignIdDimensionValue).toJson(); - } - if (enabledByDefault != null) { - _json["enabledByDefault"] = enabledByDefault; - } - if (excludeFromAdxRequests != null) { - _json["excludeFromAdxRequests"] = excludeFromAdxRequests; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (siteFilterType != null) { - _json["siteFilterType"] = siteFilterType; - } - if (siteIds != null) { - _json["siteIds"] = siteIds; - } - if (sslCompliant != null) { - _json["sslCompliant"] = sslCompliant; - } - if (status != null) { - _json["status"] = status; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (type != null) { - _json["type"] = type; - } - if (url != null) { - _json["url"] = url; - } - if (urlEscapeLevels != null) { - _json["urlEscapeLevels"] = urlEscapeLevels; - } - return _json; - } -} - -/** Event tag override information. */ -class EventTagOverride { - /** Whether this override is enabled. */ - core.bool enabled; - /** - * ID of this event tag override. This is a read-only, auto-generated field. - */ - core.String id; - - EventTagOverride(); - - EventTagOverride.fromJson(core.Map _json) { - if (_json.containsKey("enabled")) { - enabled = _json["enabled"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (enabled != null) { - _json["enabled"] = enabled; - } - if (id != null) { - _json["id"] = id; - } - return _json; - } -} - -/** Event Tag List Response */ -class EventTagsListResponse { - /** Event tag collection. */ - core.List<EventTag> eventTags; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#eventTagsListResponse". - */ - core.String kind; - - EventTagsListResponse(); - - EventTagsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("eventTags")) { - eventTags = _json["eventTags"].map((value) => new EventTag.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (eventTags != null) { - _json["eventTags"] = eventTags.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** The URLs where the completed report file can be downloaded. */ -class FileUrls { - /** The URL for downloading the report data through the API. */ - core.String apiUrl; - /** The URL for downloading the report data through a browser. */ - core.String browserUrl; - - FileUrls(); - - FileUrls.fromJson(core.Map _json) { - if (_json.containsKey("apiUrl")) { - apiUrl = _json["apiUrl"]; - } - if (_json.containsKey("browserUrl")) { - browserUrl = _json["browserUrl"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (apiUrl != null) { - _json["apiUrl"] = apiUrl; - } - if (browserUrl != null) { - _json["browserUrl"] = browserUrl; - } - return _json; - } -} - -/** - * Represents a File resource. A file contains the metadata for a report run. It - * shows the status of the run and holds the URLs to the generated report data - * if the run is finished and the status is "REPORT_AVAILABLE". - */ -class File { - /** - * The date range for which the file has report data. The date range will - * always be the absolute date range for which the report is run. - */ - DateRange dateRange; - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The filename of the file. */ - core.String fileName; - /** - * The output format of the report. Only available once the file is available. - * Possible string values are: - * - "CSV" - * - "EXCEL" - */ - core.String format; - /** The unique ID of this report file. */ - core.String id; - /** The kind of resource this is, in this case dfareporting#file. */ - core.String kind; - /** - * The timestamp in milliseconds since epoch when this file was last modified. - */ - core.String lastModifiedTime; - /** The ID of the report this file was generated from. */ - core.String reportId; - /** - * The status of the report file. - * Possible string values are: - * - "CANCELLED" - * - "FAILED" - * - "PROCESSING" - * - "REPORT_AVAILABLE" - */ - core.String status; - /** The URLs where the completed report file can be downloaded. */ - FileUrls urls; - - File(); - - File.fromJson(core.Map _json) { - if (_json.containsKey("dateRange")) { - dateRange = new DateRange.fromJson(_json["dateRange"]); - } - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("fileName")) { - fileName = _json["fileName"]; - } - if (_json.containsKey("format")) { - format = _json["format"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedTime")) { - lastModifiedTime = _json["lastModifiedTime"]; - } - if (_json.containsKey("reportId")) { - reportId = _json["reportId"]; - } - if (_json.containsKey("status")) { - status = _json["status"]; - } - if (_json.containsKey("urls")) { - urls = new FileUrls.fromJson(_json["urls"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dateRange != null) { - _json["dateRange"] = (dateRange).toJson(); - } - if (etag != null) { - _json["etag"] = etag; - } - if (fileName != null) { - _json["fileName"] = fileName; - } - if (format != null) { - _json["format"] = format; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedTime != null) { - _json["lastModifiedTime"] = lastModifiedTime; - } - if (reportId != null) { - _json["reportId"] = reportId; - } - if (status != null) { - _json["status"] = status; - } - if (urls != null) { - _json["urls"] = (urls).toJson(); - } - return _json; - } -} - -/** Represents the list of File resources. */ -class FileList { - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The files returned in this response. */ - core.List<File> items; - /** The kind of list this is, in this case dfareporting#fileList. */ - core.String kind; - /** - * Continuation token used to page through files. To retrieve the next page of - * results, set the next request's "pageToken" to the value of this field. The - * page token is only valid for a limited amount of time and should not be - * persisted. - */ - core.String nextPageToken; - - FileList(); - - FileList.fromJson(core.Map _json) { - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("items")) { - items = _json["items"].map((value) => new File.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (etag != null) { - _json["etag"] = etag; - } - if (items != null) { - _json["items"] = items.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Flight */ -class Flight { - /** Inventory item flight end date. */ - core.DateTime endDate; - /** Rate or cost of this flight. */ - core.String rateOrCost; - /** Inventory item flight start date. */ - core.DateTime startDate; - /** Units of this flight. */ - core.String units; - - Flight(); - - Flight.fromJson(core.Map _json) { - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("rateOrCost")) { - rateOrCost = _json["rateOrCost"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - if (_json.containsKey("units")) { - units = _json["units"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (rateOrCost != null) { - _json["rateOrCost"] = rateOrCost; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - if (units != null) { - _json["units"] = units; - } - return _json; - } -} - -/** Floodlight Activity GenerateTag Response */ -class FloodlightActivitiesGenerateTagResponse { - /** Generated tag for this floodlight activity. */ - core.String floodlightActivityTag; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#floodlightActivitiesGenerateTagResponse". - */ - core.String kind; - - FloodlightActivitiesGenerateTagResponse(); - - FloodlightActivitiesGenerateTagResponse.fromJson(core.Map _json) { - if (_json.containsKey("floodlightActivityTag")) { - floodlightActivityTag = _json["floodlightActivityTag"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (floodlightActivityTag != null) { - _json["floodlightActivityTag"] = floodlightActivityTag; - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Floodlight Activity List Response */ -class FloodlightActivitiesListResponse { - /** Floodlight activity collection. */ - core.List<FloodlightActivity> floodlightActivities; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#floodlightActivitiesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - FloodlightActivitiesListResponse(); - - FloodlightActivitiesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("floodlightActivities")) { - floodlightActivities = _json["floodlightActivities"].map((value) => new FloodlightActivity.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (floodlightActivities != null) { - _json["floodlightActivities"] = floodlightActivities.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Contains properties of a Floodlight activity. */ -class FloodlightActivity { - /** - * Account ID of this floodlight activity. This is a read-only field that can - * be left blank. - */ - core.String accountId; - /** - * Advertiser ID of this floodlight activity. If this field is left blank, the - * value will be copied over either from the activity group's advertiser or - * the existing activity's advertiser. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** - * Code type used for cache busting in the generated tag. Applicable only when - * floodlightActivityGroupType is COUNTER and countingMethod is - * STANDARD_COUNTING or UNIQUE_COUNTING. - * Possible string values are: - * - "ACTIVE_SERVER_PAGE" - * - "COLD_FUSION" - * - "JAVASCRIPT" - * - "JSP" - * - "PHP" - */ - core.String cacheBustingType; - /** - * Counting method for conversions for this floodlight activity. This is a - * required field. - * Possible string values are: - * - "ITEMS_SOLD_COUNTING" - * - "SESSION_COUNTING" - * - "STANDARD_COUNTING" - * - "TRANSACTIONS_COUNTING" - * - "UNIQUE_COUNTING" - */ - core.String countingMethod; - /** Dynamic floodlight tags. */ - core.List<FloodlightActivityDynamicTag> defaultTags; - /** - * URL where this tag will be deployed. If specified, must be less than 256 - * characters long. - */ - core.String expectedUrl; - /** - * Floodlight activity group ID of this floodlight activity. This is a - * required field. - */ - core.String floodlightActivityGroupId; - /** - * Name of the associated floodlight activity group. This is a read-only - * field. - */ - core.String floodlightActivityGroupName; - /** - * Tag string of the associated floodlight activity group. This is a read-only - * field. - */ - core.String floodlightActivityGroupTagString; - /** - * Type of the associated floodlight activity group. This is a read-only - * field. - * Possible string values are: - * - "COUNTER" - * - "SALE" - */ - core.String floodlightActivityGroupType; - /** - * Floodlight configuration ID of this floodlight activity. If this field is - * left blank, the value will be copied over either from the activity group's - * floodlight configuration or from the existing activity's floodlight - * configuration. - */ - core.String floodlightConfigurationId; - /** - * Dimension value for the ID of the floodlight configuration. This is a - * read-only, auto-generated field. - */ - DimensionValue floodlightConfigurationIdDimensionValue; - /** Whether this activity is archived. */ - core.bool hidden; - /** - * ID of this floodlight activity. This is a read-only, auto-generated field. - */ - core.String id; - /** - * Dimension value for the ID of this floodlight activity. This is a - * read-only, auto-generated field. - */ - DimensionValue idDimensionValue; - /** Whether the image tag is enabled for this activity. */ - core.bool imageTagEnabled; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#floodlightActivity". - */ - core.String kind; - /** - * Name of this floodlight activity. This is a required field. Must be less - * than 129 characters long and cannot contain quotes. - */ - core.String name; - /** General notes or implementation instructions for the tag. */ - core.String notes; - /** Publisher dynamic floodlight tags. */ - core.List<FloodlightActivityPublisherDynamicTag> publisherTags; - /** Whether this tag should use SSL. */ - core.bool secure; - /** - * Whether the floodlight activity is SSL-compliant. This is a read-only - * field, its value detected by the system from the floodlight tags. - */ - core.bool sslCompliant; - /** Whether this floodlight activity must be SSL-compliant. */ - core.bool sslRequired; - /** - * Subaccount ID of this floodlight activity. This is a read-only field that - * can be left blank. - */ - core.String subaccountId; - /** - * Tag format type for the floodlight activity. If left blank, the tag format - * will default to HTML. - * Possible string values are: - * - "HTML" - * - "XHTML" - */ - core.String tagFormat; - /** - * Value of the cat= paramter in the floodlight tag, which the ad servers use - * to identify the activity. This is optional: if empty, a new tag string will - * be generated for you. This string must be 1 to 8 characters long, with - * valid characters being [a-z][A-Z][0-9][-][ _ ]. This tag string must also - * be unique among activities of the same activity group. This field is - * read-only after insertion. - */ - core.String tagString; - /** - * List of the user-defined variables used by this conversion tag. These map - * to the "u[1-20]=" in the tags. Each of these can have a user defined type. - * Acceptable values are: - * - "U1" - * - "U2" - * - "U3" - * - "U4" - * - "U5" - * - "U6" - * - "U7" - * - "U8" - * - "U9" - * - "U10" - * - "U11" - * - "U12" - * - "U13" - * - "U14" - * - "U15" - * - "U16" - * - "U17" - * - "U18" - * - "U19" - * - "U20" - */ - core.List<core.String> userDefinedVariableTypes; - - FloodlightActivity(); - - FloodlightActivity.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("cacheBustingType")) { - cacheBustingType = _json["cacheBustingType"]; - } - if (_json.containsKey("countingMethod")) { - countingMethod = _json["countingMethod"]; - } - if (_json.containsKey("defaultTags")) { - defaultTags = _json["defaultTags"].map((value) => new FloodlightActivityDynamicTag.fromJson(value)).toList(); - } - if (_json.containsKey("expectedUrl")) { - expectedUrl = _json["expectedUrl"]; - } - if (_json.containsKey("floodlightActivityGroupId")) { - floodlightActivityGroupId = _json["floodlightActivityGroupId"]; - } - if (_json.containsKey("floodlightActivityGroupName")) { - floodlightActivityGroupName = _json["floodlightActivityGroupName"]; - } - if (_json.containsKey("floodlightActivityGroupTagString")) { - floodlightActivityGroupTagString = _json["floodlightActivityGroupTagString"]; - } - if (_json.containsKey("floodlightActivityGroupType")) { - floodlightActivityGroupType = _json["floodlightActivityGroupType"]; - } - if (_json.containsKey("floodlightConfigurationId")) { - floodlightConfigurationId = _json["floodlightConfigurationId"]; - } - if (_json.containsKey("floodlightConfigurationIdDimensionValue")) { - floodlightConfigurationIdDimensionValue = new DimensionValue.fromJson(_json["floodlightConfigurationIdDimensionValue"]); - } - if (_json.containsKey("hidden")) { - hidden = _json["hidden"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("imageTagEnabled")) { - imageTagEnabled = _json["imageTagEnabled"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("notes")) { - notes = _json["notes"]; - } - if (_json.containsKey("publisherTags")) { - publisherTags = _json["publisherTags"].map((value) => new FloodlightActivityPublisherDynamicTag.fromJson(value)).toList(); - } - if (_json.containsKey("secure")) { - secure = _json["secure"]; - } - if (_json.containsKey("sslCompliant")) { - sslCompliant = _json["sslCompliant"]; - } - if (_json.containsKey("sslRequired")) { - sslRequired = _json["sslRequired"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("tagFormat")) { - tagFormat = _json["tagFormat"]; - } - if (_json.containsKey("tagString")) { - tagString = _json["tagString"]; - } - if (_json.containsKey("userDefinedVariableTypes")) { - userDefinedVariableTypes = _json["userDefinedVariableTypes"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (cacheBustingType != null) { - _json["cacheBustingType"] = cacheBustingType; - } - if (countingMethod != null) { - _json["countingMethod"] = countingMethod; - } - if (defaultTags != null) { - _json["defaultTags"] = defaultTags.map((value) => (value).toJson()).toList(); - } - if (expectedUrl != null) { - _json["expectedUrl"] = expectedUrl; - } - if (floodlightActivityGroupId != null) { - _json["floodlightActivityGroupId"] = floodlightActivityGroupId; - } - if (floodlightActivityGroupName != null) { - _json["floodlightActivityGroupName"] = floodlightActivityGroupName; - } - if (floodlightActivityGroupTagString != null) { - _json["floodlightActivityGroupTagString"] = floodlightActivityGroupTagString; - } - if (floodlightActivityGroupType != null) { - _json["floodlightActivityGroupType"] = floodlightActivityGroupType; - } - if (floodlightConfigurationId != null) { - _json["floodlightConfigurationId"] = floodlightConfigurationId; - } - if (floodlightConfigurationIdDimensionValue != null) { - _json["floodlightConfigurationIdDimensionValue"] = (floodlightConfigurationIdDimensionValue).toJson(); - } - if (hidden != null) { - _json["hidden"] = hidden; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (imageTagEnabled != null) { - _json["imageTagEnabled"] = imageTagEnabled; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (notes != null) { - _json["notes"] = notes; - } - if (publisherTags != null) { - _json["publisherTags"] = publisherTags.map((value) => (value).toJson()).toList(); - } - if (secure != null) { - _json["secure"] = secure; - } - if (sslCompliant != null) { - _json["sslCompliant"] = sslCompliant; - } - if (sslRequired != null) { - _json["sslRequired"] = sslRequired; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (tagFormat != null) { - _json["tagFormat"] = tagFormat; - } - if (tagString != null) { - _json["tagString"] = tagString; - } - if (userDefinedVariableTypes != null) { - _json["userDefinedVariableTypes"] = userDefinedVariableTypes; - } - return _json; - } -} - -/** Dynamic Tag */ -class FloodlightActivityDynamicTag { - /** ID of this dynamic tag. This is a read-only, auto-generated field. */ - core.String id; - /** Name of this tag. */ - core.String name; - /** Tag code. */ - core.String tag; - - FloodlightActivityDynamicTag(); - - FloodlightActivityDynamicTag.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("tag")) { - tag = _json["tag"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (name != null) { - _json["name"] = name; - } - if (tag != null) { - _json["tag"] = tag; - } - return _json; - } -} - -/** Contains properties of a Floodlight activity group. */ -class FloodlightActivityGroup { - /** - * Account ID of this floodlight activity group. This is a read-only field - * that can be left blank. - */ - core.String accountId; - /** - * Advertiser ID of this floodlight activity group. If this field is left - * blank, the value will be copied over either from the floodlight - * configuration's advertiser or from the existing activity group's - * advertiser. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** - * Floodlight configuration ID of this floodlight activity group. This is a - * required field. - */ - core.String floodlightConfigurationId; - /** - * Dimension value for the ID of the floodlight configuration. This is a - * read-only, auto-generated field. - */ - DimensionValue floodlightConfigurationIdDimensionValue; - /** - * ID of this floodlight activity group. This is a read-only, auto-generated - * field. - */ - core.String id; - /** - * Dimension value for the ID of this floodlight activity group. This is a - * read-only, auto-generated field. - */ - DimensionValue idDimensionValue; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#floodlightActivityGroup". - */ - core.String kind; - /** - * Name of this floodlight activity group. This is a required field. Must be - * less than 65 characters long and cannot contain quotes. - */ - core.String name; - /** - * Subaccount ID of this floodlight activity group. This is a read-only field - * that can be left blank. - */ - core.String subaccountId; - /** - * Value of the type= parameter in the floodlight tag, which the ad servers - * use to identify the activity group that the activity belongs to. This is - * optional: if empty, a new tag string will be generated for you. This string - * must be 1 to 8 characters long, with valid characters being - * [a-z][A-Z][0-9][-][ _ ]. This tag string must also be unique among activity - * groups of the same floodlight configuration. This field is read-only after - * insertion. - */ - core.String tagString; - /** - * Type of the floodlight activity group. This is a required field that is - * read-only after insertion. - * Possible string values are: - * - "COUNTER" - * - "SALE" - */ - core.String type; - - FloodlightActivityGroup(); - - FloodlightActivityGroup.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("floodlightConfigurationId")) { - floodlightConfigurationId = _json["floodlightConfigurationId"]; - } - if (_json.containsKey("floodlightConfigurationIdDimensionValue")) { - floodlightConfigurationIdDimensionValue = new DimensionValue.fromJson(_json["floodlightConfigurationIdDimensionValue"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("tagString")) { - tagString = _json["tagString"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (floodlightConfigurationId != null) { - _json["floodlightConfigurationId"] = floodlightConfigurationId; - } - if (floodlightConfigurationIdDimensionValue != null) { - _json["floodlightConfigurationIdDimensionValue"] = (floodlightConfigurationIdDimensionValue).toJson(); - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (tagString != null) { - _json["tagString"] = tagString; - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** Floodlight Activity Group List Response */ -class FloodlightActivityGroupsListResponse { - /** Floodlight activity group collection. */ - core.List<FloodlightActivityGroup> floodlightActivityGroups; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#floodlightActivityGroupsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - FloodlightActivityGroupsListResponse(); - - FloodlightActivityGroupsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("floodlightActivityGroups")) { - floodlightActivityGroups = _json["floodlightActivityGroups"].map((value) => new FloodlightActivityGroup.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (floodlightActivityGroups != null) { - _json["floodlightActivityGroups"] = floodlightActivityGroups.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Publisher Dynamic Tag */ -class FloodlightActivityPublisherDynamicTag { - /** Whether this tag is applicable only for click-throughs. */ - core.bool clickThrough; - /** - * Directory site ID of this dynamic tag. This is a write-only field that can - * be used as an alternative to the siteId field. When this resource is - * retrieved, only the siteId field will be populated. - */ - core.String directorySiteId; - /** Dynamic floodlight tag. */ - FloodlightActivityDynamicTag dynamicTag; - /** Site ID of this dynamic tag. */ - core.String siteId; - /** - * Dimension value for the ID of the site. This is a read-only, auto-generated - * field. - */ - DimensionValue siteIdDimensionValue; - /** Whether this tag is applicable only for view-throughs. */ - core.bool viewThrough; - - FloodlightActivityPublisherDynamicTag(); - - FloodlightActivityPublisherDynamicTag.fromJson(core.Map _json) { - if (_json.containsKey("clickThrough")) { - clickThrough = _json["clickThrough"]; - } - if (_json.containsKey("directorySiteId")) { - directorySiteId = _json["directorySiteId"]; - } - if (_json.containsKey("dynamicTag")) { - dynamicTag = new FloodlightActivityDynamicTag.fromJson(_json["dynamicTag"]); - } - if (_json.containsKey("siteId")) { - siteId = _json["siteId"]; - } - if (_json.containsKey("siteIdDimensionValue")) { - siteIdDimensionValue = new DimensionValue.fromJson(_json["siteIdDimensionValue"]); - } - if (_json.containsKey("viewThrough")) { - viewThrough = _json["viewThrough"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (clickThrough != null) { - _json["clickThrough"] = clickThrough; - } - if (directorySiteId != null) { - _json["directorySiteId"] = directorySiteId; - } - if (dynamicTag != null) { - _json["dynamicTag"] = (dynamicTag).toJson(); - } - if (siteId != null) { - _json["siteId"] = siteId; - } - if (siteIdDimensionValue != null) { - _json["siteIdDimensionValue"] = (siteIdDimensionValue).toJson(); - } - if (viewThrough != null) { - _json["viewThrough"] = viewThrough; - } - return _json; - } -} - -/** Contains properties of a Floodlight configuration. */ -class FloodlightConfiguration { - /** - * Account ID of this floodlight configuration. This is a read-only field that - * can be left blank. - */ - core.String accountId; - /** - * Advertiser ID of the parent advertiser of this floodlight configuration. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** Whether advertiser data is shared with Google Analytics. */ - core.bool analyticsDataSharingEnabled; - /** - * Whether the exposure-to-conversion report is enabled. This report shows - * detailed pathway information on up to 10 of the most recent ad exposures - * seen by a user before converting. - */ - core.bool exposureToConversionEnabled; - /** - * Day that will be counted as the first day of the week in reports. This is a - * required field. - * Possible string values are: - * - "MONDAY" - * - "SUNDAY" - */ - core.String firstDayOfWeek; - /** - * ID of this floodlight configuration. This is a read-only, auto-generated - * field. - */ - core.String id; - /** - * Dimension value for the ID of this floodlight configuration. This is a - * read-only, auto-generated field. - */ - DimensionValue idDimensionValue; - /** Whether in-app attribution tracking is enabled. */ - core.bool inAppAttributionTrackingEnabled; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#floodlightConfiguration". - */ - core.String kind; - /** Lookback window settings for this floodlight configuration. */ - LookbackConfiguration lookbackConfiguration; - /** - * Types of attribution options for natural search conversions. - * Possible string values are: - * - "EXCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION" - * - "INCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION" - * - "INCLUDE_NATURAL_SEARCH_TIERED_CONVERSION_ATTRIBUTION" - */ - core.String naturalSearchConversionAttributionOption; - /** Settings for DCM Omniture integration. */ - OmnitureSettings omnitureSettings; - /** - * List of standard variables enabled for this configuration. - * - * Acceptable values are: - * - "ORD" - * - "NUM" - */ - core.List<core.String> standardVariableTypes; - /** - * Subaccount ID of this floodlight configuration. This is a read-only field - * that can be left blank. - */ - core.String subaccountId; - /** Configuration settings for dynamic and image floodlight tags. */ - TagSettings tagSettings; - /** - * List of third-party authentication tokens enabled for this configuration. - */ - core.List<ThirdPartyAuthenticationToken> thirdPartyAuthenticationTokens; - /** List of user defined variables enabled for this configuration. */ - core.List<UserDefinedVariableConfiguration> userDefinedVariableConfigurations; - - FloodlightConfiguration(); - - FloodlightConfiguration.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("analyticsDataSharingEnabled")) { - analyticsDataSharingEnabled = _json["analyticsDataSharingEnabled"]; - } - if (_json.containsKey("exposureToConversionEnabled")) { - exposureToConversionEnabled = _json["exposureToConversionEnabled"]; - } - if (_json.containsKey("firstDayOfWeek")) { - firstDayOfWeek = _json["firstDayOfWeek"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("inAppAttributionTrackingEnabled")) { - inAppAttributionTrackingEnabled = _json["inAppAttributionTrackingEnabled"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lookbackConfiguration")) { - lookbackConfiguration = new LookbackConfiguration.fromJson(_json["lookbackConfiguration"]); - } - if (_json.containsKey("naturalSearchConversionAttributionOption")) { - naturalSearchConversionAttributionOption = _json["naturalSearchConversionAttributionOption"]; - } - if (_json.containsKey("omnitureSettings")) { - omnitureSettings = new OmnitureSettings.fromJson(_json["omnitureSettings"]); - } - if (_json.containsKey("standardVariableTypes")) { - standardVariableTypes = _json["standardVariableTypes"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("tagSettings")) { - tagSettings = new TagSettings.fromJson(_json["tagSettings"]); - } - if (_json.containsKey("thirdPartyAuthenticationTokens")) { - thirdPartyAuthenticationTokens = _json["thirdPartyAuthenticationTokens"].map((value) => new ThirdPartyAuthenticationToken.fromJson(value)).toList(); - } - if (_json.containsKey("userDefinedVariableConfigurations")) { - userDefinedVariableConfigurations = _json["userDefinedVariableConfigurations"].map((value) => new UserDefinedVariableConfiguration.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (analyticsDataSharingEnabled != null) { - _json["analyticsDataSharingEnabled"] = analyticsDataSharingEnabled; - } - if (exposureToConversionEnabled != null) { - _json["exposureToConversionEnabled"] = exposureToConversionEnabled; - } - if (firstDayOfWeek != null) { - _json["firstDayOfWeek"] = firstDayOfWeek; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (inAppAttributionTrackingEnabled != null) { - _json["inAppAttributionTrackingEnabled"] = inAppAttributionTrackingEnabled; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lookbackConfiguration != null) { - _json["lookbackConfiguration"] = (lookbackConfiguration).toJson(); - } - if (naturalSearchConversionAttributionOption != null) { - _json["naturalSearchConversionAttributionOption"] = naturalSearchConversionAttributionOption; - } - if (omnitureSettings != null) { - _json["omnitureSettings"] = (omnitureSettings).toJson(); - } - if (standardVariableTypes != null) { - _json["standardVariableTypes"] = standardVariableTypes; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (tagSettings != null) { - _json["tagSettings"] = (tagSettings).toJson(); - } - if (thirdPartyAuthenticationTokens != null) { - _json["thirdPartyAuthenticationTokens"] = thirdPartyAuthenticationTokens.map((value) => (value).toJson()).toList(); - } - if (userDefinedVariableConfigurations != null) { - _json["userDefinedVariableConfigurations"] = userDefinedVariableConfigurations.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Floodlight Configuration List Response */ -class FloodlightConfigurationsListResponse { - /** Floodlight configuration collection. */ - core.List<FloodlightConfiguration> floodlightConfigurations; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#floodlightConfigurationsListResponse". - */ - core.String kind; - - FloodlightConfigurationsListResponse(); - - FloodlightConfigurationsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("floodlightConfigurations")) { - floodlightConfigurations = _json["floodlightConfigurations"].map((value) => new FloodlightConfiguration.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (floodlightConfigurations != null) { - _json["floodlightConfigurations"] = floodlightConfigurations.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** - * Represents fields that are compatible to be selected for a report of type - * "FlOODLIGHT". - */ -class FloodlightReportCompatibleFields { - /** - * Dimensions which are compatible to be selected in the "dimensionFilters" - * section of the report. - */ - core.List<Dimension> dimensionFilters; - /** - * Dimensions which are compatible to be selected in the "dimensions" section - * of the report. - */ - core.List<Dimension> dimensions; - /** - * The kind of resource this is, in this case - * dfareporting#floodlightReportCompatibleFields. - */ - core.String kind; - /** - * Metrics which are compatible to be selected in the "metricNames" section of - * the report. - */ - core.List<Metric> metrics; - - FloodlightReportCompatibleFields(); - - FloodlightReportCompatibleFields.fromJson(core.Map _json) { - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("dimensions")) { - dimensions = _json["dimensions"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metrics")) { - metrics = _json["metrics"].map((value) => new Metric.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (dimensions != null) { - _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (metrics != null) { - _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Frequency Cap. */ -class FrequencyCap { - /** - * Duration of time, in seconds, for this frequency cap. The maximum duration - * is 90 days. Acceptable values are 1 to 7776000, inclusive. - */ - core.String duration; - /** - * Number of times an individual user can be served the ad within the - * specified duration. Acceptable values are 1 to 15, inclusive. - */ - core.String impressions; - - FrequencyCap(); - - FrequencyCap.fromJson(core.Map _json) { - if (_json.containsKey("duration")) { - duration = _json["duration"]; - } - if (_json.containsKey("impressions")) { - impressions = _json["impressions"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (duration != null) { - _json["duration"] = duration; - } - if (impressions != null) { - _json["impressions"] = impressions; - } - return _json; - } -} - -/** FsCommand. */ -class FsCommand { - /** - * Distance from the left of the browser.Applicable when positionOption is - * DISTANCE_FROM_TOP_LEFT_CORNER. - */ - core.int left; - /** - * Position in the browser where the window will open. - * Possible string values are: - * - "CENTERED" - * - "DISTANCE_FROM_TOP_LEFT_CORNER" - */ - core.String positionOption; - /** - * Distance from the top of the browser. Applicable when positionOption is - * DISTANCE_FROM_TOP_LEFT_CORNER. - */ - core.int top; - /** Height of the window. */ - core.int windowHeight; - /** Width of the window. */ - core.int windowWidth; - - FsCommand(); - - FsCommand.fromJson(core.Map _json) { - if (_json.containsKey("left")) { - left = _json["left"]; - } - if (_json.containsKey("positionOption")) { - positionOption = _json["positionOption"]; - } - if (_json.containsKey("top")) { - top = _json["top"]; - } - if (_json.containsKey("windowHeight")) { - windowHeight = _json["windowHeight"]; - } - if (_json.containsKey("windowWidth")) { - windowWidth = _json["windowWidth"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (left != null) { - _json["left"] = left; - } - if (positionOption != null) { - _json["positionOption"] = positionOption; - } - if (top != null) { - _json["top"] = top; - } - if (windowHeight != null) { - _json["windowHeight"] = windowHeight; - } - if (windowWidth != null) { - _json["windowWidth"] = windowWidth; - } - return _json; - } -} - -/** Geographical Targeting. */ -class GeoTargeting { - /** - * Cities to be targeted. For each city only dartId is required. The other - * fields are populated automatically when the ad is inserted or updated. If - * targeting a city, do not target or exclude the country of the city, and do - * not target the metro or region of the city. - */ - core.List<City> cities; - /** - * Countries to be targeted or excluded from targeting, depending on the - * setting of the excludeCountries field. For each country only dartId is - * required. The other fields are populated automatically when the ad is - * inserted or updated. If targeting or excluding a country, do not target - * regions, cities, metros, or postal codes in the same country. - */ - core.List<Country> countries; - /** - * Whether or not to exclude the countries in the countries field from - * targeting. If false, the countries field refers to countries which will be - * targeted by the ad. - */ - core.bool excludeCountries; - /** - * Metros to be targeted. For each metro only dmaId is required. The other - * fields are populated automatically when the ad is inserted or updated. If - * targeting a metro, do not target or exclude the country of the metro. - */ - core.List<Metro> metros; - /** - * Postal codes to be targeted. For each postal code only id is required. The - * other fields are populated automatically when the ad is inserted or - * updated. If targeting a postal code, do not target or exclude the country - * of the postal code. - */ - core.List<PostalCode> postalCodes; - /** - * Regions to be targeted. For each region only dartId is required. The other - * fields are populated automatically when the ad is inserted or updated. If - * targeting a region, do not target or exclude the country of the region. - */ - core.List<Region> regions; - - GeoTargeting(); - - GeoTargeting.fromJson(core.Map _json) { - if (_json.containsKey("cities")) { - cities = _json["cities"].map((value) => new City.fromJson(value)).toList(); - } - if (_json.containsKey("countries")) { - countries = _json["countries"].map((value) => new Country.fromJson(value)).toList(); - } - if (_json.containsKey("excludeCountries")) { - excludeCountries = _json["excludeCountries"]; - } - if (_json.containsKey("metros")) { - metros = _json["metros"].map((value) => new Metro.fromJson(value)).toList(); - } - if (_json.containsKey("postalCodes")) { - postalCodes = _json["postalCodes"].map((value) => new PostalCode.fromJson(value)).toList(); - } - if (_json.containsKey("regions")) { - regions = _json["regions"].map((value) => new Region.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (cities != null) { - _json["cities"] = cities.map((value) => (value).toJson()).toList(); - } - if (countries != null) { - _json["countries"] = countries.map((value) => (value).toJson()).toList(); - } - if (excludeCountries != null) { - _json["excludeCountries"] = excludeCountries; - } - if (metros != null) { - _json["metros"] = metros.map((value) => (value).toJson()).toList(); - } - if (postalCodes != null) { - _json["postalCodes"] = postalCodes.map((value) => (value).toJson()).toList(); - } - if (regions != null) { - _json["regions"] = regions.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Represents a buy from the DoubleClick Planning inventory store. */ -class InventoryItem { - /** Account ID of this inventory item. */ - core.String accountId; - /** - * Ad slots of this inventory item. If this inventory item represents a - * standalone placement, there will be exactly one ad slot. If this inventory - * item represents a placement group, there will be more than one ad slot, - * each representing one child placement in that placement group. - */ - core.List<AdSlot> adSlots; - /** Advertiser ID of this inventory item. */ - core.String advertiserId; - /** Content category ID of this inventory item. */ - core.String contentCategoryId; - /** Estimated click-through rate of this inventory item. */ - core.String estimatedClickThroughRate; - /** Estimated conversion rate of this inventory item. */ - core.String estimatedConversionRate; - /** ID of this inventory item. */ - core.String id; - /** Whether this inventory item is in plan. */ - core.bool inPlan; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#inventoryItem". - */ - core.String kind; - /** Information about the most recent modification of this inventory item. */ - LastModifiedInfo lastModifiedInfo; - /** - * Name of this inventory item. For standalone inventory items, this is the - * same name as that of its only ad slot. For group inventory items, this can - * differ from the name of any of its ad slots. - */ - core.String name; - /** Negotiation channel ID of this inventory item. */ - core.String negotiationChannelId; - /** Order ID of this inventory item. */ - core.String orderId; - /** Placement strategy ID of this inventory item. */ - core.String placementStrategyId; - /** Pricing of this inventory item. */ - Pricing pricing; - /** Project ID of this inventory item. */ - core.String projectId; - /** RFP ID of this inventory item. */ - core.String rfpId; - /** ID of the site this inventory item is associated with. */ - core.String siteId; - /** Subaccount ID of this inventory item. */ - core.String subaccountId; - /** - * Type of inventory item. - * Possible string values are: - * - "PLANNING_PLACEMENT_TYPE_CREDIT" - * - "PLANNING_PLACEMENT_TYPE_REGULAR" - */ - core.String type; - - InventoryItem(); - - InventoryItem.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("adSlots")) { - adSlots = _json["adSlots"].map((value) => new AdSlot.fromJson(value)).toList(); - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("contentCategoryId")) { - contentCategoryId = _json["contentCategoryId"]; - } - if (_json.containsKey("estimatedClickThroughRate")) { - estimatedClickThroughRate = _json["estimatedClickThroughRate"]; - } - if (_json.containsKey("estimatedConversionRate")) { - estimatedConversionRate = _json["estimatedConversionRate"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("inPlan")) { - inPlan = _json["inPlan"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("negotiationChannelId")) { - negotiationChannelId = _json["negotiationChannelId"]; - } - if (_json.containsKey("orderId")) { - orderId = _json["orderId"]; - } - if (_json.containsKey("placementStrategyId")) { - placementStrategyId = _json["placementStrategyId"]; - } - if (_json.containsKey("pricing")) { - pricing = new Pricing.fromJson(_json["pricing"]); - } - if (_json.containsKey("projectId")) { - projectId = _json["projectId"]; - } - if (_json.containsKey("rfpId")) { - rfpId = _json["rfpId"]; - } - if (_json.containsKey("siteId")) { - siteId = _json["siteId"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (adSlots != null) { - _json["adSlots"] = adSlots.map((value) => (value).toJson()).toList(); - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (contentCategoryId != null) { - _json["contentCategoryId"] = contentCategoryId; - } - if (estimatedClickThroughRate != null) { - _json["estimatedClickThroughRate"] = estimatedClickThroughRate; - } - if (estimatedConversionRate != null) { - _json["estimatedConversionRate"] = estimatedConversionRate; - } - if (id != null) { - _json["id"] = id; - } - if (inPlan != null) { - _json["inPlan"] = inPlan; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (negotiationChannelId != null) { - _json["negotiationChannelId"] = negotiationChannelId; - } - if (orderId != null) { - _json["orderId"] = orderId; - } - if (placementStrategyId != null) { - _json["placementStrategyId"] = placementStrategyId; - } - if (pricing != null) { - _json["pricing"] = (pricing).toJson(); - } - if (projectId != null) { - _json["projectId"] = projectId; - } - if (rfpId != null) { - _json["rfpId"] = rfpId; - } - if (siteId != null) { - _json["siteId"] = siteId; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** Inventory item List Response */ -class InventoryItemsListResponse { - /** Inventory item collection */ - core.List<InventoryItem> inventoryItems; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#inventoryItemsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - InventoryItemsListResponse(); - - InventoryItemsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("inventoryItems")) { - inventoryItems = _json["inventoryItems"].map((value) => new InventoryItem.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (inventoryItems != null) { - _json["inventoryItems"] = inventoryItems.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Key Value Targeting Expression. */ -class KeyValueTargetingExpression { - /** Keyword expression being targeted by the ad. */ - core.String expression; - - KeyValueTargetingExpression(); - - KeyValueTargetingExpression.fromJson(core.Map _json) { - if (_json.containsKey("expression")) { - expression = _json["expression"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (expression != null) { - _json["expression"] = expression; - } - return _json; - } -} - -/** - * Contains information about where a user's browser is taken after the user - * clicks an ad. - */ -class LandingPage { - /** - * Whether or not this landing page will be assigned to any ads or creatives - * that do not have a landing page assigned explicitly. Only one default - * landing page is allowed per campaign. - */ - core.bool default_; - /** ID of this landing page. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#landingPage". - */ - core.String kind; - /** - * Name of this landing page. This is a required field. It must be less than - * 256 characters long, and must be unique among landing pages of the same - * campaign. - */ - core.String name; - /** URL of this landing page. This is a required field. */ - core.String url; - - LandingPage(); - - LandingPage.fromJson(core.Map _json) { - if (_json.containsKey("default")) { - default_ = _json["default"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("url")) { - url = _json["url"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (default_ != null) { - _json["default"] = default_; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (url != null) { - _json["url"] = url; - } - return _json; - } -} - -/** Landing Page List Response */ -class LandingPagesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#landingPagesListResponse". - */ - core.String kind; - /** Landing page collection */ - core.List<LandingPage> landingPages; - - LandingPagesListResponse(); - - LandingPagesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("landingPages")) { - landingPages = _json["landingPages"].map((value) => new LandingPage.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (landingPages != null) { - _json["landingPages"] = landingPages.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Contains information about a language that can be targeted by ads. */ -class Language { - /** - * Language ID of this language. This is the ID used for targeting and - * generating reports. - */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#language". - */ - core.String kind; - /** - * Format of language code is an ISO 639 two-letter language code optionally - * followed by an underscore followed by an ISO 3166 code. Examples are "en" - * for English or "zh_CN" for Simplified Chinese. - */ - core.String languageCode; - /** Name of this language. */ - core.String name; - - Language(); - - Language.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("languageCode")) { - languageCode = _json["languageCode"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (languageCode != null) { - _json["languageCode"] = languageCode; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Language Targeting. */ -class LanguageTargeting { - /** - * Languages that this ad targets. For each language only languageId is - * required. The other fields are populated automatically when the ad is - * inserted or updated. - */ - core.List<Language> languages; - - LanguageTargeting(); - - LanguageTargeting.fromJson(core.Map _json) { - if (_json.containsKey("languages")) { - languages = _json["languages"].map((value) => new Language.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (languages != null) { - _json["languages"] = languages.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Language List Response */ -class LanguagesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#languagesListResponse". - */ - core.String kind; - /** Language collection. */ - core.List<Language> languages; - - LanguagesListResponse(); - - LanguagesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("languages")) { - languages = _json["languages"].map((value) => new Language.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (languages != null) { - _json["languages"] = languages.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Modification timestamp. */ -class LastModifiedInfo { - /** Timestamp of the last change in milliseconds since epoch. */ - core.String time; - - LastModifiedInfo(); - - LastModifiedInfo.fromJson(core.Map _json) { - if (_json.containsKey("time")) { - time = _json["time"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (time != null) { - _json["time"] = time; - } - return _json; - } -} - -/** - * A group clause made up of list population terms representing constraints - * joined by ORs. - */ -class ListPopulationClause { - /** - * Terms of this list population clause. Each clause is made up of list - * population terms representing constraints and are joined by ORs. - */ - core.List<ListPopulationTerm> terms; - - ListPopulationClause(); - - ListPopulationClause.fromJson(core.Map _json) { - if (_json.containsKey("terms")) { - terms = _json["terms"].map((value) => new ListPopulationTerm.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (terms != null) { - _json["terms"] = terms.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Remarketing List Population Rule. */ -class ListPopulationRule { - /** - * Floodlight activity ID associated with this rule. This field can be left - * blank. - */ - core.String floodlightActivityId; - /** - * Name of floodlight activity associated with this rule. This is a read-only, - * auto-generated field. - */ - core.String floodlightActivityName; - /** - * Clauses that make up this list population rule. Clauses are joined by ANDs, - * and the clauses themselves are made up of list population terms which are - * joined by ORs. - */ - core.List<ListPopulationClause> listPopulationClauses; - - ListPopulationRule(); - - ListPopulationRule.fromJson(core.Map _json) { - if (_json.containsKey("floodlightActivityId")) { - floodlightActivityId = _json["floodlightActivityId"]; - } - if (_json.containsKey("floodlightActivityName")) { - floodlightActivityName = _json["floodlightActivityName"]; - } - if (_json.containsKey("listPopulationClauses")) { - listPopulationClauses = _json["listPopulationClauses"].map((value) => new ListPopulationClause.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (floodlightActivityId != null) { - _json["floodlightActivityId"] = floodlightActivityId; - } - if (floodlightActivityName != null) { - _json["floodlightActivityName"] = floodlightActivityName; - } - if (listPopulationClauses != null) { - _json["listPopulationClauses"] = listPopulationClauses.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Remarketing List Population Rule Term. */ -class ListPopulationTerm { - /** - * Will be true if the term should check if the user is in the list and false - * if the term should check if the user is not in the list. This field is only - * relevant when type is set to LIST_MEMBERSHIP_TERM. False by default. - */ - core.bool contains; - /** - * Whether to negate the comparison result of this term during rule - * evaluation. This field is only relevant when type is left unset or set to - * CUSTOM_VARIABLE_TERM or REFERRER_TERM. - */ - core.bool negation; - /** - * Comparison operator of this term. This field is only relevant when type is - * left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. - * Possible string values are: - * - "NUM_EQUALS" - * - "NUM_GREATER_THAN" - * - "NUM_GREATER_THAN_EQUAL" - * - "NUM_LESS_THAN" - * - "NUM_LESS_THAN_EQUAL" - * - "STRING_CONTAINS" - * - "STRING_EQUALS" - */ - core.String operator; - /** - * ID of the list in question. This field is only relevant when type is set to - * LIST_MEMBERSHIP_TERM. - */ - core.String remarketingListId; - /** - * List population term type determines the applicable fields in this object. - * If left unset or set to CUSTOM_VARIABLE_TERM, then variableName, - * variableFriendlyName, operator, value, and negation are applicable. If set - * to LIST_MEMBERSHIP_TERM then remarketingListId and contains are applicable. - * If set to REFERRER_TERM then operator, value, and negation are applicable. - * Possible string values are: - * - "CUSTOM_VARIABLE_TERM" - * - "LIST_MEMBERSHIP_TERM" - * - "REFERRER_TERM" - */ - core.String type; - /** - * Literal to compare the variable to. This field is only relevant when type - * is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. - */ - core.String value; - /** - * Friendly name of this term's variable. This is a read-only, auto-generated - * field. This field is only relevant when type is left unset or set to - * CUSTOM_VARIABLE_TERM. - */ - core.String variableFriendlyName; - /** - * Name of the variable (U1, U2, etc.) being compared in this term. This field - * is only relevant when type is set to null, CUSTOM_VARIABLE_TERM or - * REFERRER_TERM. - */ - core.String variableName; - - ListPopulationTerm(); - - ListPopulationTerm.fromJson(core.Map _json) { - if (_json.containsKey("contains")) { - contains = _json["contains"]; - } - if (_json.containsKey("negation")) { - negation = _json["negation"]; - } - if (_json.containsKey("operator")) { - operator = _json["operator"]; - } - if (_json.containsKey("remarketingListId")) { - remarketingListId = _json["remarketingListId"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - if (_json.containsKey("variableFriendlyName")) { - variableFriendlyName = _json["variableFriendlyName"]; - } - if (_json.containsKey("variableName")) { - variableName = _json["variableName"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (contains != null) { - _json["contains"] = contains; - } - if (negation != null) { - _json["negation"] = negation; - } - if (operator != null) { - _json["operator"] = operator; - } - if (remarketingListId != null) { - _json["remarketingListId"] = remarketingListId; - } - if (type != null) { - _json["type"] = type; - } - if (value != null) { - _json["value"] = value; - } - if (variableFriendlyName != null) { - _json["variableFriendlyName"] = variableFriendlyName; - } - if (variableName != null) { - _json["variableName"] = variableName; - } - return _json; - } -} - -/** Remarketing List Targeting Expression. */ -class ListTargetingExpression { - /** Expression describing which lists are being targeted by the ad. */ - core.String expression; - - ListTargetingExpression(); - - ListTargetingExpression.fromJson(core.Map _json) { - if (_json.containsKey("expression")) { - expression = _json["expression"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (expression != null) { - _json["expression"] = expression; - } - return _json; - } -} - -/** Lookback configuration settings. */ -class LookbackConfiguration { - /** - * Lookback window, in days, from the last time a given user clicked on one of - * your ads. If you enter 0, clicks will not be considered as triggering - * events for floodlight tracking. If you leave this field blank, the default - * value for your account will be used. Acceptable values are 0 to 90, - * inclusive. - */ - core.int clickDuration; - /** - * Lookback window, in days, from the last time a given user viewed one of - * your ads. If you enter 0, impressions will not be considered as triggering - * events for floodlight tracking. If you leave this field blank, the default - * value for your account will be used. Acceptable values are 0 to 90, - * inclusive. - */ - core.int postImpressionActivitiesDuration; - - LookbackConfiguration(); - - LookbackConfiguration.fromJson(core.Map _json) { - if (_json.containsKey("clickDuration")) { - clickDuration = _json["clickDuration"]; - } - if (_json.containsKey("postImpressionActivitiesDuration")) { - postImpressionActivitiesDuration = _json["postImpressionActivitiesDuration"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (clickDuration != null) { - _json["clickDuration"] = clickDuration; - } - if (postImpressionActivitiesDuration != null) { - _json["postImpressionActivitiesDuration"] = postImpressionActivitiesDuration; - } - return _json; - } -} - -/** Represents a metric. */ -class Metric { - /** The kind of resource this is, in this case dfareporting#metric. */ - core.String kind; - /** The metric name, e.g. dfa:impressions */ - core.String name; - - Metric(); - - Metric.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Contains information about a metro region that can be targeted by ads. */ -class Metro { - /** Country code of the country to which this metro region belongs. */ - core.String countryCode; - /** DART ID of the country to which this metro region belongs. */ - core.String countryDartId; - /** DART ID of this metro region. */ - core.String dartId; - /** - * DMA ID of this metro region. This is the ID used for targeting and - * generating reports, and is equivalent to metro_code. - */ - core.String dmaId; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#metro". - */ - core.String kind; - /** Metro code of this metro region. This is equivalent to dma_id. */ - core.String metroCode; - /** Name of this metro region. */ - core.String name; - - Metro(); - - Metro.fromJson(core.Map _json) { - if (_json.containsKey("countryCode")) { - countryCode = _json["countryCode"]; - } - if (_json.containsKey("countryDartId")) { - countryDartId = _json["countryDartId"]; - } - if (_json.containsKey("dartId")) { - dartId = _json["dartId"]; - } - if (_json.containsKey("dmaId")) { - dmaId = _json["dmaId"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metroCode")) { - metroCode = _json["metroCode"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (countryCode != null) { - _json["countryCode"] = countryCode; - } - if (countryDartId != null) { - _json["countryDartId"] = countryDartId; - } - if (dartId != null) { - _json["dartId"] = dartId; - } - if (dmaId != null) { - _json["dmaId"] = dmaId; - } - if (kind != null) { - _json["kind"] = kind; - } - if (metroCode != null) { - _json["metroCode"] = metroCode; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Metro List Response */ -class MetrosListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#metrosListResponse". - */ - core.String kind; - /** Metro collection. */ - core.List<Metro> metros; - - MetrosListResponse(); - - MetrosListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metros")) { - metros = _json["metros"].map((value) => new Metro.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (metros != null) { - _json["metros"] = metros.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Contains information about a mobile carrier that can be targeted by ads. */ -class MobileCarrier { - /** Country code of the country to which this mobile carrier belongs. */ - core.String countryCode; - /** DART ID of the country to which this mobile carrier belongs. */ - core.String countryDartId; - /** ID of this mobile carrier. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#mobileCarrier". - */ - core.String kind; - /** Name of this mobile carrier. */ - core.String name; - - MobileCarrier(); - - MobileCarrier.fromJson(core.Map _json) { - if (_json.containsKey("countryCode")) { - countryCode = _json["countryCode"]; - } - if (_json.containsKey("countryDartId")) { - countryDartId = _json["countryDartId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (countryCode != null) { - _json["countryCode"] = countryCode; - } - if (countryDartId != null) { - _json["countryDartId"] = countryDartId; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Mobile Carrier List Response */ -class MobileCarriersListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#mobileCarriersListResponse". - */ - core.String kind; - /** Mobile carrier collection. */ - core.List<MobileCarrier> mobileCarriers; - - MobileCarriersListResponse(); - - MobileCarriersListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("mobileCarriers")) { - mobileCarriers = _json["mobileCarriers"].map((value) => new MobileCarrier.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (mobileCarriers != null) { - _json["mobileCarriers"] = mobileCarriers.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Object Filter. */ -class ObjectFilter { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#objectFilter". - */ - core.String kind; - /** - * Applicable when status is ASSIGNED. The user has access to objects with - * these object IDs. - */ - core.List<core.String> objectIds; - /** - * Status of the filter. NONE means the user has access to none of the - * objects. ALL means the user has access to all objects. ASSIGNED means the - * user has access to the objects with IDs in the objectIds list. - * Possible string values are: - * - "ALL" - * - "ASSIGNED" - * - "NONE" - */ - core.String status; - - ObjectFilter(); - - ObjectFilter.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("objectIds")) { - objectIds = _json["objectIds"]; - } - if (_json.containsKey("status")) { - status = _json["status"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (objectIds != null) { - _json["objectIds"] = objectIds; - } - if (status != null) { - _json["status"] = status; - } - return _json; - } -} - -/** Offset Position. */ -class OffsetPosition { - /** Offset distance from left side of an asset or a window. */ - core.int left; - /** Offset distance from top side of an asset or a window. */ - core.int top; - - OffsetPosition(); - - OffsetPosition.fromJson(core.Map _json) { - if (_json.containsKey("left")) { - left = _json["left"]; - } - if (_json.containsKey("top")) { - top = _json["top"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (left != null) { - _json["left"] = left; - } - if (top != null) { - _json["top"] = top; - } - return _json; - } -} - -/** Omniture Integration Settings. */ -class OmnitureSettings { - /** - * Whether placement cost data will be sent to Omniture. This property can be - * enabled only if omnitureIntegrationEnabled is true. - */ - core.bool omnitureCostDataEnabled; - /** - * Whether Omniture integration is enabled. This property can be enabled only - * when the "Advanced Ad Serving" account setting is enabled. - */ - core.bool omnitureIntegrationEnabled; - - OmnitureSettings(); - - OmnitureSettings.fromJson(core.Map _json) { - if (_json.containsKey("omnitureCostDataEnabled")) { - omnitureCostDataEnabled = _json["omnitureCostDataEnabled"]; - } - if (_json.containsKey("omnitureIntegrationEnabled")) { - omnitureIntegrationEnabled = _json["omnitureIntegrationEnabled"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (omnitureCostDataEnabled != null) { - _json["omnitureCostDataEnabled"] = omnitureCostDataEnabled; - } - if (omnitureIntegrationEnabled != null) { - _json["omnitureIntegrationEnabled"] = omnitureIntegrationEnabled; - } - return _json; - } -} - -/** - * Contains information about an operating system that can be targeted by ads. - */ -class OperatingSystem { - /** DART ID of this operating system. This is the ID used for targeting. */ - core.String dartId; - /** Whether this operating system is for desktop. */ - core.bool desktop; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#operatingSystem". - */ - core.String kind; - /** Whether this operating system is for mobile. */ - core.bool mobile; - /** Name of this operating system. */ - core.String name; - - OperatingSystem(); - - OperatingSystem.fromJson(core.Map _json) { - if (_json.containsKey("dartId")) { - dartId = _json["dartId"]; - } - if (_json.containsKey("desktop")) { - desktop = _json["desktop"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("mobile")) { - mobile = _json["mobile"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dartId != null) { - _json["dartId"] = dartId; - } - if (desktop != null) { - _json["desktop"] = desktop; - } - if (kind != null) { - _json["kind"] = kind; - } - if (mobile != null) { - _json["mobile"] = mobile; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** - * Contains information about a particular version of an operating system that - * can be targeted by ads. - */ -class OperatingSystemVersion { - /** ID of this operating system version. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#operatingSystemVersion". - */ - core.String kind; - /** Major version (leftmost number) of this operating system version. */ - core.String majorVersion; - /** - * Minor version (number after the first dot) of this operating system - * version. - */ - core.String minorVersion; - /** Name of this operating system version. */ - core.String name; - /** Operating system of this operating system version. */ - OperatingSystem operatingSystem; - - OperatingSystemVersion(); - - OperatingSystemVersion.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("majorVersion")) { - majorVersion = _json["majorVersion"]; - } - if (_json.containsKey("minorVersion")) { - minorVersion = _json["minorVersion"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("operatingSystem")) { - operatingSystem = new OperatingSystem.fromJson(_json["operatingSystem"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (majorVersion != null) { - _json["majorVersion"] = majorVersion; - } - if (minorVersion != null) { - _json["minorVersion"] = minorVersion; - } - if (name != null) { - _json["name"] = name; - } - if (operatingSystem != null) { - _json["operatingSystem"] = (operatingSystem).toJson(); - } - return _json; - } -} - -/** Operating System Version List Response */ -class OperatingSystemVersionsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#operatingSystemVersionsListResponse". - */ - core.String kind; - /** Operating system version collection. */ - core.List<OperatingSystemVersion> operatingSystemVersions; - - OperatingSystemVersionsListResponse(); - - OperatingSystemVersionsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("operatingSystemVersions")) { - operatingSystemVersions = _json["operatingSystemVersions"].map((value) => new OperatingSystemVersion.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (operatingSystemVersions != null) { - _json["operatingSystemVersions"] = operatingSystemVersions.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Operating System List Response */ -class OperatingSystemsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#operatingSystemsListResponse". - */ - core.String kind; - /** Operating system collection. */ - core.List<OperatingSystem> operatingSystems; - - OperatingSystemsListResponse(); - - OperatingSystemsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("operatingSystems")) { - operatingSystems = _json["operatingSystems"].map((value) => new OperatingSystem.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (operatingSystems != null) { - _json["operatingSystems"] = operatingSystems.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Creative optimization activity. */ -class OptimizationActivity { - /** - * Floodlight activity ID of this optimization activity. This is a required - * field. - */ - core.String floodlightActivityId; - /** - * Dimension value for the ID of the floodlight activity. This is a read-only, - * auto-generated field. - */ - DimensionValue floodlightActivityIdDimensionValue; - /** - * Weight associated with this optimization. The weight assigned will be - * understood in proportion to the weights assigned to the other optimization - * activities. Value must be greater than or equal to 1. - */ - core.int weight; - - OptimizationActivity(); - - OptimizationActivity.fromJson(core.Map _json) { - if (_json.containsKey("floodlightActivityId")) { - floodlightActivityId = _json["floodlightActivityId"]; - } - if (_json.containsKey("floodlightActivityIdDimensionValue")) { - floodlightActivityIdDimensionValue = new DimensionValue.fromJson(_json["floodlightActivityIdDimensionValue"]); - } - if (_json.containsKey("weight")) { - weight = _json["weight"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (floodlightActivityId != null) { - _json["floodlightActivityId"] = floodlightActivityId; - } - if (floodlightActivityIdDimensionValue != null) { - _json["floodlightActivityIdDimensionValue"] = (floodlightActivityIdDimensionValue).toJson(); - } - if (weight != null) { - _json["weight"] = weight; - } - return _json; - } -} - -/** Describes properties of a DoubleClick Planning order. */ -class Order { - /** Account ID of this order. */ - core.String accountId; - /** Advertiser ID of this order. */ - core.String advertiserId; - /** IDs for users that have to approve documents created for this order. */ - core.List<core.String> approverUserProfileIds; - /** Buyer invoice ID associated with this order. */ - core.String buyerInvoiceId; - /** Name of the buyer organization. */ - core.String buyerOrganizationName; - /** Comments in this order. */ - core.String comments; - /** Contacts for this order. */ - core.List<OrderContact> contacts; - /** ID of this order. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#order". - */ - core.String kind; - /** Information about the most recent modification of this order. */ - LastModifiedInfo lastModifiedInfo; - /** Name of this order. */ - core.String name; - /** Notes of this order. */ - core.String notes; - /** ID of the terms and conditions template used in this order. */ - core.String planningTermId; - /** Project ID of this order. */ - core.String projectId; - /** Seller order ID associated with this order. */ - core.String sellerOrderId; - /** Name of the seller organization. */ - core.String sellerOrganizationName; - /** Site IDs this order is associated with. */ - core.List<core.String> siteId; - /** Free-form site names this order is associated with. */ - core.List<core.String> siteNames; - /** Subaccount ID of this order. */ - core.String subaccountId; - /** Terms and conditions of this order. */ - core.String termsAndConditions; - - Order(); - - Order.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("approverUserProfileIds")) { - approverUserProfileIds = _json["approverUserProfileIds"]; - } - if (_json.containsKey("buyerInvoiceId")) { - buyerInvoiceId = _json["buyerInvoiceId"]; - } - if (_json.containsKey("buyerOrganizationName")) { - buyerOrganizationName = _json["buyerOrganizationName"]; - } - if (_json.containsKey("comments")) { - comments = _json["comments"]; - } - if (_json.containsKey("contacts")) { - contacts = _json["contacts"].map((value) => new OrderContact.fromJson(value)).toList(); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("notes")) { - notes = _json["notes"]; - } - if (_json.containsKey("planningTermId")) { - planningTermId = _json["planningTermId"]; - } - if (_json.containsKey("projectId")) { - projectId = _json["projectId"]; - } - if (_json.containsKey("sellerOrderId")) { - sellerOrderId = _json["sellerOrderId"]; - } - if (_json.containsKey("sellerOrganizationName")) { - sellerOrganizationName = _json["sellerOrganizationName"]; - } - if (_json.containsKey("siteId")) { - siteId = _json["siteId"]; - } - if (_json.containsKey("siteNames")) { - siteNames = _json["siteNames"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("termsAndConditions")) { - termsAndConditions = _json["termsAndConditions"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (approverUserProfileIds != null) { - _json["approverUserProfileIds"] = approverUserProfileIds; - } - if (buyerInvoiceId != null) { - _json["buyerInvoiceId"] = buyerInvoiceId; - } - if (buyerOrganizationName != null) { - _json["buyerOrganizationName"] = buyerOrganizationName; - } - if (comments != null) { - _json["comments"] = comments; - } - if (contacts != null) { - _json["contacts"] = contacts.map((value) => (value).toJson()).toList(); - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (notes != null) { - _json["notes"] = notes; - } - if (planningTermId != null) { - _json["planningTermId"] = planningTermId; - } - if (projectId != null) { - _json["projectId"] = projectId; - } - if (sellerOrderId != null) { - _json["sellerOrderId"] = sellerOrderId; - } - if (sellerOrganizationName != null) { - _json["sellerOrganizationName"] = sellerOrganizationName; - } - if (siteId != null) { - _json["siteId"] = siteId; - } - if (siteNames != null) { - _json["siteNames"] = siteNames; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (termsAndConditions != null) { - _json["termsAndConditions"] = termsAndConditions; - } - return _json; - } -} - -/** Contact of an order. */ -class OrderContact { - /** - * Free-form information about this contact. It could be any information - * related to this contact in addition to type, title, name, and signature - * user profile ID. - */ - core.String contactInfo; - /** Name of this contact. */ - core.String contactName; - /** Title of this contact. */ - core.String contactTitle; - /** - * Type of this contact. - * Possible string values are: - * - "PLANNING_ORDER_CONTACT_BUYER_BILLING_CONTACT" - * - "PLANNING_ORDER_CONTACT_BUYER_CONTACT" - * - "PLANNING_ORDER_CONTACT_SELLER_CONTACT" - */ - core.String contactType; - /** - * ID of the user profile containing the signature that will be embedded into - * order documents. - */ - core.String signatureUserProfileId; - - OrderContact(); - - OrderContact.fromJson(core.Map _json) { - if (_json.containsKey("contactInfo")) { - contactInfo = _json["contactInfo"]; - } - if (_json.containsKey("contactName")) { - contactName = _json["contactName"]; - } - if (_json.containsKey("contactTitle")) { - contactTitle = _json["contactTitle"]; - } - if (_json.containsKey("contactType")) { - contactType = _json["contactType"]; - } - if (_json.containsKey("signatureUserProfileId")) { - signatureUserProfileId = _json["signatureUserProfileId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (contactInfo != null) { - _json["contactInfo"] = contactInfo; - } - if (contactName != null) { - _json["contactName"] = contactName; - } - if (contactTitle != null) { - _json["contactTitle"] = contactTitle; - } - if (contactType != null) { - _json["contactType"] = contactType; - } - if (signatureUserProfileId != null) { - _json["signatureUserProfileId"] = signatureUserProfileId; - } - return _json; - } -} - -/** Contains properties of a DoubleClick Planning order document. */ -class OrderDocument { - /** Account ID of this order document. */ - core.String accountId; - /** Advertiser ID of this order document. */ - core.String advertiserId; - /** - * The amended order document ID of this order document. An order document can - * be created by optionally amending another order document so that the change - * history can be preserved. - */ - core.String amendedOrderDocumentId; - /** IDs of users who have approved this order document. */ - core.List<core.String> approvedByUserProfileIds; - /** Whether this order document is cancelled. */ - core.bool cancelled; - /** Information about the creation of this order document. */ - LastModifiedInfo createdInfo; - /** Effective date of this order document. */ - core.DateTime effectiveDate; - /** ID of this order document. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#orderDocument". - */ - core.String kind; - /** List of email addresses that received the last sent document. */ - core.List<core.String> lastSentRecipients; - /** Timestamp of the last email sent with this order document. */ - core.DateTime lastSentTime; - /** ID of the order from which this order document is created. */ - core.String orderId; - /** Project ID of this order document. */ - core.String projectId; - /** Whether this order document has been signed. */ - core.bool signed; - /** Subaccount ID of this order document. */ - core.String subaccountId; - /** Title of this order document. */ - core.String title; - /** - * Type of this order document - * Possible string values are: - * - "PLANNING_ORDER_TYPE_CHANGE_ORDER" - * - "PLANNING_ORDER_TYPE_INSERTION_ORDER" - */ - core.String type; - - OrderDocument(); - - OrderDocument.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("amendedOrderDocumentId")) { - amendedOrderDocumentId = _json["amendedOrderDocumentId"]; - } - if (_json.containsKey("approvedByUserProfileIds")) { - approvedByUserProfileIds = _json["approvedByUserProfileIds"]; - } - if (_json.containsKey("cancelled")) { - cancelled = _json["cancelled"]; - } - if (_json.containsKey("createdInfo")) { - createdInfo = new LastModifiedInfo.fromJson(_json["createdInfo"]); - } - if (_json.containsKey("effectiveDate")) { - effectiveDate = core.DateTime.parse(_json["effectiveDate"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastSentRecipients")) { - lastSentRecipients = _json["lastSentRecipients"]; - } - if (_json.containsKey("lastSentTime")) { - lastSentTime = core.DateTime.parse(_json["lastSentTime"]); - } - if (_json.containsKey("orderId")) { - orderId = _json["orderId"]; - } - if (_json.containsKey("projectId")) { - projectId = _json["projectId"]; - } - if (_json.containsKey("signed")) { - signed = _json["signed"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("title")) { - title = _json["title"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (amendedOrderDocumentId != null) { - _json["amendedOrderDocumentId"] = amendedOrderDocumentId; - } - if (approvedByUserProfileIds != null) { - _json["approvedByUserProfileIds"] = approvedByUserProfileIds; - } - if (cancelled != null) { - _json["cancelled"] = cancelled; - } - if (createdInfo != null) { - _json["createdInfo"] = (createdInfo).toJson(); - } - if (effectiveDate != null) { - _json["effectiveDate"] = "${(effectiveDate).year.toString().padLeft(4, '0')}-${(effectiveDate).month.toString().padLeft(2, '0')}-${(effectiveDate).day.toString().padLeft(2, '0')}"; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastSentRecipients != null) { - _json["lastSentRecipients"] = lastSentRecipients; - } - if (lastSentTime != null) { - _json["lastSentTime"] = (lastSentTime).toIso8601String(); - } - if (orderId != null) { - _json["orderId"] = orderId; - } - if (projectId != null) { - _json["projectId"] = projectId; - } - if (signed != null) { - _json["signed"] = signed; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (title != null) { - _json["title"] = title; - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** Order document List Response */ -class OrderDocumentsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#orderDocumentsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Order document collection */ - core.List<OrderDocument> orderDocuments; - - OrderDocumentsListResponse(); - - OrderDocumentsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("orderDocuments")) { - orderDocuments = _json["orderDocuments"].map((value) => new OrderDocument.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (orderDocuments != null) { - _json["orderDocuments"] = orderDocuments.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Order List Response */ -class OrdersListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#ordersListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Order collection. */ - core.List<Order> orders; - - OrdersListResponse(); - - OrdersListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("orders")) { - orders = _json["orders"].map((value) => new Order.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (orders != null) { - _json["orders"] = orders.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** - * Represents fields that are compatible to be selected for a report of type - * "PATH_TO_CONVERSION". - */ -class PathToConversionReportCompatibleFields { - /** - * Conversion dimensions which are compatible to be selected in the - * "conversionDimensions" section of the report. - */ - core.List<Dimension> conversionDimensions; - /** - * Custom floodlight variables which are compatible to be selected in the - * "customFloodlightVariables" section of the report. - */ - core.List<Dimension> customFloodlightVariables; - /** - * The kind of resource this is, in this case - * dfareporting#pathToConversionReportCompatibleFields. - */ - core.String kind; - /** - * Metrics which are compatible to be selected in the "metricNames" section of - * the report. - */ - core.List<Metric> metrics; - /** - * Per-interaction dimensions which are compatible to be selected in the - * "perInteractionDimensions" section of the report. - */ - core.List<Dimension> perInteractionDimensions; - - PathToConversionReportCompatibleFields(); - - PathToConversionReportCompatibleFields.fromJson(core.Map _json) { - if (_json.containsKey("conversionDimensions")) { - conversionDimensions = _json["conversionDimensions"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("customFloodlightVariables")) { - customFloodlightVariables = _json["customFloodlightVariables"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metrics")) { - metrics = _json["metrics"].map((value) => new Metric.fromJson(value)).toList(); - } - if (_json.containsKey("perInteractionDimensions")) { - perInteractionDimensions = _json["perInteractionDimensions"].map((value) => new Dimension.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (conversionDimensions != null) { - _json["conversionDimensions"] = conversionDimensions.map((value) => (value).toJson()).toList(); - } - if (customFloodlightVariables != null) { - _json["customFloodlightVariables"] = customFloodlightVariables.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (metrics != null) { - _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); - } - if (perInteractionDimensions != null) { - _json["perInteractionDimensions"] = perInteractionDimensions.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Contains properties of a placement. */ -class Placement { - /** Account ID of this placement. This field can be left blank. */ - core.String accountId; - /** Advertiser ID of this placement. This field can be left blank. */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** Whether this placement is archived. */ - core.bool archived; - /** - * Campaign ID of this placement. This field is a required field on insertion. - */ - core.String campaignId; - /** - * Dimension value for the ID of the campaign. This is a read-only, - * auto-generated field. - */ - DimensionValue campaignIdDimensionValue; - /** Comments for this placement. */ - core.String comment; - /** - * Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to - * rendering on desktop, on mobile devices or in mobile apps for regular or - * interstitial ads respectively. APP and APP_INTERSTITIAL are no longer - * allowed for new placement insertions. Instead, use DISPLAY or - * DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream - * video ads developed with the VAST standard. This field is required on - * insertion. - * Possible string values are: - * - "APP" - * - "APP_INTERSTITIAL" - * - "DISPLAY" - * - "DISPLAY_INTERSTITIAL" - * - "IN_STREAM_VIDEO" - */ - core.String compatibility; - /** ID of the content category assigned to this placement. */ - core.String contentCategoryId; - /** - * Information about the creation of this placement. This is a read-only - * field. - */ - LastModifiedInfo createInfo; - /** - * Directory site ID of this placement. On insert, you must set either this - * field or the siteId field to specify the site associated with this - * placement. This is a required field that is read-only after insertion. - */ - core.String directorySiteId; - /** - * Dimension value for the ID of the directory site. This is a read-only, - * auto-generated field. - */ - DimensionValue directorySiteIdDimensionValue; - /** External ID for this placement. */ - core.String externalId; - /** ID of this placement. This is a read-only, auto-generated field. */ - core.String id; - /** - * Dimension value for the ID of this placement. This is a read-only, - * auto-generated field. - */ - DimensionValue idDimensionValue; - /** Key name of this placement. This is a read-only, auto-generated field. */ - core.String keyName; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#placement". - */ - core.String kind; - /** - * Information about the most recent modification of this placement. This is a - * read-only field. - */ - LastModifiedInfo lastModifiedInfo; - /** Lookback window settings for this placement. */ - LookbackConfiguration lookbackConfiguration; - /** - * Name of this placement.This is a required field and must be less than 256 - * characters long. - */ - core.String name; - /** - * Whether payment was approved for this placement. This is a read-only field - * relevant only to publisher-paid placements. - */ - core.bool paymentApproved; - /** - * Payment source for this placement. This is a required field that is - * read-only after insertion. - * Possible string values are: - * - "PLACEMENT_AGENCY_PAID" - * - "PLACEMENT_PUBLISHER_PAID" - */ - core.String paymentSource; - /** ID of this placement's group, if applicable. */ - core.String placementGroupId; - /** - * Dimension value for the ID of the placement group. This is a read-only, - * auto-generated field. - */ - DimensionValue placementGroupIdDimensionValue; - /** ID of the placement strategy assigned to this placement. */ - core.String placementStrategyId; - /** - * Pricing schedule of this placement. This field is required on insertion, - * specifically subfields startDate, endDate and pricingType. - */ - PricingSchedule pricingSchedule; - /** - * Whether this placement is the primary placement of a roadblock (placement - * group). You cannot change this field from true to false. Setting this field - * to true will automatically set the primary field on the original primary - * placement of the roadblock to false, and it will automatically set the - * roadblock's primaryPlacementId field to the ID of this placement. - */ - core.bool primary; - /** - * Information about the last publisher update. This is a read-only field. - */ - LastModifiedInfo publisherUpdateInfo; - /** - * Site ID associated with this placement. On insert, you must set either this - * field or the directorySiteId field to specify the site associated with this - * placement. This is a required field that is read-only after insertion. - */ - core.String siteId; - /** - * Dimension value for the ID of the site. This is a read-only, auto-generated - * field. - */ - DimensionValue siteIdDimensionValue; - /** - * Size associated with this placement. When inserting or updating a - * placement, only the size ID field is used. This field is required on - * insertion. - */ - Size size; - /** Whether creatives assigned to this placement must be SSL-compliant. */ - core.bool sslRequired; - /** - * Third-party placement status. - * Possible string values are: - * - "ACKNOWLEDGE_ACCEPTANCE" - * - "ACKNOWLEDGE_REJECTION" - * - "DRAFT" - * - "PAYMENT_ACCEPTED" - * - "PAYMENT_REJECTED" - * - "PENDING_REVIEW" - */ - core.String status; - /** Subaccount ID of this placement. This field can be left blank. */ - core.String subaccountId; - /** - * Tag formats to generate for this placement. This field is required on - * insertion. - * Acceptable values are: - * - "PLACEMENT_TAG_STANDARD" - * - "PLACEMENT_TAG_IFRAME_JAVASCRIPT" - * - "PLACEMENT_TAG_IFRAME_ILAYER" - * - "PLACEMENT_TAG_INTERNAL_REDIRECT" - * - "PLACEMENT_TAG_JAVASCRIPT" - * - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT" - * - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT" - * - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT" - * - "PLACEMENT_TAG_CLICK_COMMANDS" - * - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH" - * - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3" - * - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4" - * - "PLACEMENT_TAG_TRACKING" - * - "PLACEMENT_TAG_TRACKING_IFRAME" - * - "PLACEMENT_TAG_TRACKING_JAVASCRIPT" - */ - core.List<core.String> tagFormats; - /** Tag settings for this placement. */ - TagSetting tagSetting; - - Placement(); - - Placement.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("archived")) { - archived = _json["archived"]; - } - if (_json.containsKey("campaignId")) { - campaignId = _json["campaignId"]; - } - if (_json.containsKey("campaignIdDimensionValue")) { - campaignIdDimensionValue = new DimensionValue.fromJson(_json["campaignIdDimensionValue"]); - } - if (_json.containsKey("comment")) { - comment = _json["comment"]; - } - if (_json.containsKey("compatibility")) { - compatibility = _json["compatibility"]; - } - if (_json.containsKey("contentCategoryId")) { - contentCategoryId = _json["contentCategoryId"]; - } - if (_json.containsKey("createInfo")) { - createInfo = new LastModifiedInfo.fromJson(_json["createInfo"]); - } - if (_json.containsKey("directorySiteId")) { - directorySiteId = _json["directorySiteId"]; - } - if (_json.containsKey("directorySiteIdDimensionValue")) { - directorySiteIdDimensionValue = new DimensionValue.fromJson(_json["directorySiteIdDimensionValue"]); - } - if (_json.containsKey("externalId")) { - externalId = _json["externalId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("keyName")) { - keyName = _json["keyName"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("lookbackConfiguration")) { - lookbackConfiguration = new LookbackConfiguration.fromJson(_json["lookbackConfiguration"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("paymentApproved")) { - paymentApproved = _json["paymentApproved"]; - } - if (_json.containsKey("paymentSource")) { - paymentSource = _json["paymentSource"]; - } - if (_json.containsKey("placementGroupId")) { - placementGroupId = _json["placementGroupId"]; - } - if (_json.containsKey("placementGroupIdDimensionValue")) { - placementGroupIdDimensionValue = new DimensionValue.fromJson(_json["placementGroupIdDimensionValue"]); - } - if (_json.containsKey("placementStrategyId")) { - placementStrategyId = _json["placementStrategyId"]; - } - if (_json.containsKey("pricingSchedule")) { - pricingSchedule = new PricingSchedule.fromJson(_json["pricingSchedule"]); - } - if (_json.containsKey("primary")) { - primary = _json["primary"]; - } - if (_json.containsKey("publisherUpdateInfo")) { - publisherUpdateInfo = new LastModifiedInfo.fromJson(_json["publisherUpdateInfo"]); - } - if (_json.containsKey("siteId")) { - siteId = _json["siteId"]; - } - if (_json.containsKey("siteIdDimensionValue")) { - siteIdDimensionValue = new DimensionValue.fromJson(_json["siteIdDimensionValue"]); - } - if (_json.containsKey("size")) { - size = new Size.fromJson(_json["size"]); - } - if (_json.containsKey("sslRequired")) { - sslRequired = _json["sslRequired"]; - } - if (_json.containsKey("status")) { - status = _json["status"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("tagFormats")) { - tagFormats = _json["tagFormats"]; - } - if (_json.containsKey("tagSetting")) { - tagSetting = new TagSetting.fromJson(_json["tagSetting"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (archived != null) { - _json["archived"] = archived; - } - if (campaignId != null) { - _json["campaignId"] = campaignId; - } - if (campaignIdDimensionValue != null) { - _json["campaignIdDimensionValue"] = (campaignIdDimensionValue).toJson(); - } - if (comment != null) { - _json["comment"] = comment; - } - if (compatibility != null) { - _json["compatibility"] = compatibility; - } - if (contentCategoryId != null) { - _json["contentCategoryId"] = contentCategoryId; - } - if (createInfo != null) { - _json["createInfo"] = (createInfo).toJson(); - } - if (directorySiteId != null) { - _json["directorySiteId"] = directorySiteId; - } - if (directorySiteIdDimensionValue != null) { - _json["directorySiteIdDimensionValue"] = (directorySiteIdDimensionValue).toJson(); - } - if (externalId != null) { - _json["externalId"] = externalId; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (keyName != null) { - _json["keyName"] = keyName; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (lookbackConfiguration != null) { - _json["lookbackConfiguration"] = (lookbackConfiguration).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (paymentApproved != null) { - _json["paymentApproved"] = paymentApproved; - } - if (paymentSource != null) { - _json["paymentSource"] = paymentSource; - } - if (placementGroupId != null) { - _json["placementGroupId"] = placementGroupId; - } - if (placementGroupIdDimensionValue != null) { - _json["placementGroupIdDimensionValue"] = (placementGroupIdDimensionValue).toJson(); - } - if (placementStrategyId != null) { - _json["placementStrategyId"] = placementStrategyId; - } - if (pricingSchedule != null) { - _json["pricingSchedule"] = (pricingSchedule).toJson(); - } - if (primary != null) { - _json["primary"] = primary; - } - if (publisherUpdateInfo != null) { - _json["publisherUpdateInfo"] = (publisherUpdateInfo).toJson(); - } - if (siteId != null) { - _json["siteId"] = siteId; - } - if (siteIdDimensionValue != null) { - _json["siteIdDimensionValue"] = (siteIdDimensionValue).toJson(); - } - if (size != null) { - _json["size"] = (size).toJson(); - } - if (sslRequired != null) { - _json["sslRequired"] = sslRequired; - } - if (status != null) { - _json["status"] = status; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (tagFormats != null) { - _json["tagFormats"] = tagFormats; - } - if (tagSetting != null) { - _json["tagSetting"] = (tagSetting).toJson(); - } - return _json; - } -} - -/** Placement Assignment. */ -class PlacementAssignment { - /** - * Whether this placement assignment is active. When true, the placement will - * be included in the ad's rotation. - */ - core.bool active; - /** ID of the placement to be assigned. This is a required field. */ - core.String placementId; - /** - * Dimension value for the ID of the placement. This is a read-only, - * auto-generated field. - */ - DimensionValue placementIdDimensionValue; - /** - * Whether the placement to be assigned requires SSL. This is a read-only - * field that is auto-generated when the ad is inserted or updated. - */ - core.bool sslRequired; - - PlacementAssignment(); - - PlacementAssignment.fromJson(core.Map _json) { - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("placementId")) { - placementId = _json["placementId"]; - } - if (_json.containsKey("placementIdDimensionValue")) { - placementIdDimensionValue = new DimensionValue.fromJson(_json["placementIdDimensionValue"]); - } - if (_json.containsKey("sslRequired")) { - sslRequired = _json["sslRequired"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (active != null) { - _json["active"] = active; - } - if (placementId != null) { - _json["placementId"] = placementId; - } - if (placementIdDimensionValue != null) { - _json["placementIdDimensionValue"] = (placementIdDimensionValue).toJson(); - } - if (sslRequired != null) { - _json["sslRequired"] = sslRequired; - } - return _json; - } -} - -/** Contains properties of a package or roadblock. */ -class PlacementGroup { - /** - * Account ID of this placement group. This is a read-only field that can be - * left blank. - */ - core.String accountId; - /** - * Advertiser ID of this placement group. This is a required field on - * insertion. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** Whether this placement group is archived. */ - core.bool archived; - /** - * Campaign ID of this placement group. This field is required on insertion. - */ - core.String campaignId; - /** - * Dimension value for the ID of the campaign. This is a read-only, - * auto-generated field. - */ - DimensionValue campaignIdDimensionValue; - /** - * IDs of placements which are assigned to this placement group. This is a - * read-only, auto-generated field. - */ - core.List<core.String> childPlacementIds; - /** Comments for this placement group. */ - core.String comment; - /** ID of the content category assigned to this placement group. */ - core.String contentCategoryId; - /** - * Information about the creation of this placement group. This is a read-only - * field. - */ - LastModifiedInfo createInfo; - /** - * Directory site ID associated with this placement group. On insert, you must - * set either this field or the site_id field to specify the site associated - * with this placement group. This is a required field that is read-only after - * insertion. - */ - core.String directorySiteId; - /** - * Dimension value for the ID of the directory site. This is a read-only, - * auto-generated field. - */ - DimensionValue directorySiteIdDimensionValue; - /** External ID for this placement. */ - core.String externalId; - /** ID of this placement group. This is a read-only, auto-generated field. */ - core.String id; - /** - * Dimension value for the ID of this placement group. This is a read-only, - * auto-generated field. - */ - DimensionValue idDimensionValue; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#placementGroup". - */ - core.String kind; - /** - * Information about the most recent modification of this placement group. - * This is a read-only field. - */ - LastModifiedInfo lastModifiedInfo; - /** - * Name of this placement group. This is a required field and must be less - * than 256 characters long. - */ - core.String name; - /** - * Type of this placement group. A package is a simple group of placements - * that acts as a single pricing point for a group of tags. A roadblock is a - * group of placements that not only acts as a single pricing point, but also - * assumes that all the tags in it will be served at the same time. A - * roadblock requires one of its assigned placements to be marked as primary - * for reporting. This field is required on insertion. - * Possible string values are: - * - "PLACEMENT_PACKAGE" - * - "PLACEMENT_ROADBLOCK" - */ - core.String placementGroupType; - /** ID of the placement strategy assigned to this placement group. */ - core.String placementStrategyId; - /** - * Pricing schedule of this placement group. This field is required on - * insertion. - */ - PricingSchedule pricingSchedule; - /** - * ID of the primary placement, used to calculate the media cost of a - * roadblock (placement group). Modifying this field will automatically modify - * the primary field on all affected roadblock child placements. - */ - core.String primaryPlacementId; - /** - * Dimension value for the ID of the primary placement. This is a read-only, - * auto-generated field. - */ - DimensionValue primaryPlacementIdDimensionValue; - /** - * Site ID associated with this placement group. On insert, you must set - * either this field or the directorySiteId field to specify the site - * associated with this placement group. This is a required field that is - * read-only after insertion. - */ - core.String siteId; - /** - * Dimension value for the ID of the site. This is a read-only, auto-generated - * field. - */ - DimensionValue siteIdDimensionValue; - /** - * Subaccount ID of this placement group. This is a read-only field that can - * be left blank. - */ - core.String subaccountId; - - PlacementGroup(); - - PlacementGroup.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("archived")) { - archived = _json["archived"]; - } - if (_json.containsKey("campaignId")) { - campaignId = _json["campaignId"]; - } - if (_json.containsKey("campaignIdDimensionValue")) { - campaignIdDimensionValue = new DimensionValue.fromJson(_json["campaignIdDimensionValue"]); - } - if (_json.containsKey("childPlacementIds")) { - childPlacementIds = _json["childPlacementIds"]; - } - if (_json.containsKey("comment")) { - comment = _json["comment"]; - } - if (_json.containsKey("contentCategoryId")) { - contentCategoryId = _json["contentCategoryId"]; - } - if (_json.containsKey("createInfo")) { - createInfo = new LastModifiedInfo.fromJson(_json["createInfo"]); - } - if (_json.containsKey("directorySiteId")) { - directorySiteId = _json["directorySiteId"]; - } - if (_json.containsKey("directorySiteIdDimensionValue")) { - directorySiteIdDimensionValue = new DimensionValue.fromJson(_json["directorySiteIdDimensionValue"]); - } - if (_json.containsKey("externalId")) { - externalId = _json["externalId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("placementGroupType")) { - placementGroupType = _json["placementGroupType"]; - } - if (_json.containsKey("placementStrategyId")) { - placementStrategyId = _json["placementStrategyId"]; - } - if (_json.containsKey("pricingSchedule")) { - pricingSchedule = new PricingSchedule.fromJson(_json["pricingSchedule"]); - } - if (_json.containsKey("primaryPlacementId")) { - primaryPlacementId = _json["primaryPlacementId"]; - } - if (_json.containsKey("primaryPlacementIdDimensionValue")) { - primaryPlacementIdDimensionValue = new DimensionValue.fromJson(_json["primaryPlacementIdDimensionValue"]); - } - if (_json.containsKey("siteId")) { - siteId = _json["siteId"]; - } - if (_json.containsKey("siteIdDimensionValue")) { - siteIdDimensionValue = new DimensionValue.fromJson(_json["siteIdDimensionValue"]); - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (archived != null) { - _json["archived"] = archived; - } - if (campaignId != null) { - _json["campaignId"] = campaignId; - } - if (campaignIdDimensionValue != null) { - _json["campaignIdDimensionValue"] = (campaignIdDimensionValue).toJson(); - } - if (childPlacementIds != null) { - _json["childPlacementIds"] = childPlacementIds; - } - if (comment != null) { - _json["comment"] = comment; - } - if (contentCategoryId != null) { - _json["contentCategoryId"] = contentCategoryId; - } - if (createInfo != null) { - _json["createInfo"] = (createInfo).toJson(); - } - if (directorySiteId != null) { - _json["directorySiteId"] = directorySiteId; - } - if (directorySiteIdDimensionValue != null) { - _json["directorySiteIdDimensionValue"] = (directorySiteIdDimensionValue).toJson(); - } - if (externalId != null) { - _json["externalId"] = externalId; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (placementGroupType != null) { - _json["placementGroupType"] = placementGroupType; - } - if (placementStrategyId != null) { - _json["placementStrategyId"] = placementStrategyId; - } - if (pricingSchedule != null) { - _json["pricingSchedule"] = (pricingSchedule).toJson(); - } - if (primaryPlacementId != null) { - _json["primaryPlacementId"] = primaryPlacementId; - } - if (primaryPlacementIdDimensionValue != null) { - _json["primaryPlacementIdDimensionValue"] = (primaryPlacementIdDimensionValue).toJson(); - } - if (siteId != null) { - _json["siteId"] = siteId; - } - if (siteIdDimensionValue != null) { - _json["siteIdDimensionValue"] = (siteIdDimensionValue).toJson(); - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - return _json; - } -} - -/** Placement Group List Response */ -class PlacementGroupsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#placementGroupsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Placement group collection. */ - core.List<PlacementGroup> placementGroups; - - PlacementGroupsListResponse(); - - PlacementGroupsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("placementGroups")) { - placementGroups = _json["placementGroups"].map((value) => new PlacementGroup.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (placementGroups != null) { - _json["placementGroups"] = placementGroups.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Placement Strategy List Response */ -class PlacementStrategiesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#placementStrategiesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Placement strategy collection. */ - core.List<PlacementStrategy> placementStrategies; - - PlacementStrategiesListResponse(); - - PlacementStrategiesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("placementStrategies")) { - placementStrategies = _json["placementStrategies"].map((value) => new PlacementStrategy.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (placementStrategies != null) { - _json["placementStrategies"] = placementStrategies.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Contains properties of a placement strategy. */ -class PlacementStrategy { - /** - * Account ID of this placement strategy.This is a read-only field that can be - * left blank. - */ - core.String accountId; - /** - * ID of this placement strategy. This is a read-only, auto-generated field. - */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#placementStrategy". - */ - core.String kind; - /** - * Name of this placement strategy. This is a required field. It must be less - * than 256 characters long and unique among placement strategies of the same - * account. - */ - core.String name; - - PlacementStrategy(); - - PlacementStrategy.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Placement Tag */ -class PlacementTag { - /** Placement ID */ - core.String placementId; - /** Tags generated for this placement. */ - core.List<TagData> tagDatas; - - PlacementTag(); - - PlacementTag.fromJson(core.Map _json) { - if (_json.containsKey("placementId")) { - placementId = _json["placementId"]; - } - if (_json.containsKey("tagDatas")) { - tagDatas = _json["tagDatas"].map((value) => new TagData.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (placementId != null) { - _json["placementId"] = placementId; - } - if (tagDatas != null) { - _json["tagDatas"] = tagDatas.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Placement GenerateTags Response */ -class PlacementsGenerateTagsResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#placementsGenerateTagsResponse". - */ - core.String kind; - /** Set of generated tags for the specified placements. */ - core.List<PlacementTag> placementTags; - - PlacementsGenerateTagsResponse(); - - PlacementsGenerateTagsResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("placementTags")) { - placementTags = _json["placementTags"].map((value) => new PlacementTag.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (placementTags != null) { - _json["placementTags"] = placementTags.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Placement List Response */ -class PlacementsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#placementsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Placement collection. */ - core.List<Placement> placements; - - PlacementsListResponse(); - - PlacementsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("placements")) { - placements = _json["placements"].map((value) => new Placement.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (placements != null) { - _json["placements"] = placements.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Contains information about a platform type that can be targeted by ads. */ -class PlatformType { - /** ID of this platform type. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#platformType". - */ - core.String kind; - /** Name of this platform type. */ - core.String name; - - PlatformType(); - - PlatformType.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Platform Type List Response */ -class PlatformTypesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#platformTypesListResponse". - */ - core.String kind; - /** Platform type collection. */ - core.List<PlatformType> platformTypes; - - PlatformTypesListResponse(); - - PlatformTypesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("platformTypes")) { - platformTypes = _json["platformTypes"].map((value) => new PlatformType.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (platformTypes != null) { - _json["platformTypes"] = platformTypes.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Popup Window Properties. */ -class PopupWindowProperties { - /** - * Popup dimension for a creative. This is a read-only field. Applicable to - * the following creative types: all RICH_MEDIA and all VPAID - */ - Size dimension; - /** - * Upper-left corner coordinates of the popup window. Applicable if - * positionType is COORDINATES. - */ - OffsetPosition offset; - /** - * Popup window position either centered or at specific coordinate. - * Possible string values are: - * - "CENTER" - * - "COORDINATES" - */ - core.String positionType; - /** Whether to display the browser address bar. */ - core.bool showAddressBar; - /** Whether to display the browser menu bar. */ - core.bool showMenuBar; - /** Whether to display the browser scroll bar. */ - core.bool showScrollBar; - /** Whether to display the browser status bar. */ - core.bool showStatusBar; - /** Whether to display the browser tool bar. */ - core.bool showToolBar; - /** Title of popup window. */ - core.String title; - - PopupWindowProperties(); - - PopupWindowProperties.fromJson(core.Map _json) { - if (_json.containsKey("dimension")) { - dimension = new Size.fromJson(_json["dimension"]); - } - if (_json.containsKey("offset")) { - offset = new OffsetPosition.fromJson(_json["offset"]); - } - if (_json.containsKey("positionType")) { - positionType = _json["positionType"]; - } - if (_json.containsKey("showAddressBar")) { - showAddressBar = _json["showAddressBar"]; - } - if (_json.containsKey("showMenuBar")) { - showMenuBar = _json["showMenuBar"]; - } - if (_json.containsKey("showScrollBar")) { - showScrollBar = _json["showScrollBar"]; - } - if (_json.containsKey("showStatusBar")) { - showStatusBar = _json["showStatusBar"]; - } - if (_json.containsKey("showToolBar")) { - showToolBar = _json["showToolBar"]; - } - if (_json.containsKey("title")) { - title = _json["title"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dimension != null) { - _json["dimension"] = (dimension).toJson(); - } - if (offset != null) { - _json["offset"] = (offset).toJson(); - } - if (positionType != null) { - _json["positionType"] = positionType; - } - if (showAddressBar != null) { - _json["showAddressBar"] = showAddressBar; - } - if (showMenuBar != null) { - _json["showMenuBar"] = showMenuBar; - } - if (showScrollBar != null) { - _json["showScrollBar"] = showScrollBar; - } - if (showStatusBar != null) { - _json["showStatusBar"] = showStatusBar; - } - if (showToolBar != null) { - _json["showToolBar"] = showToolBar; - } - if (title != null) { - _json["title"] = title; - } - return _json; - } -} - -/** Contains information about a postal code that can be targeted by ads. */ -class PostalCode { - /** Postal code. This is equivalent to the id field. */ - core.String code; - /** Country code of the country to which this postal code belongs. */ - core.String countryCode; - /** DART ID of the country to which this postal code belongs. */ - core.String countryDartId; - /** ID of this postal code. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#postalCode". - */ - core.String kind; - - PostalCode(); - - PostalCode.fromJson(core.Map _json) { - if (_json.containsKey("code")) { - code = _json["code"]; - } - if (_json.containsKey("countryCode")) { - countryCode = _json["countryCode"]; - } - if (_json.containsKey("countryDartId")) { - countryDartId = _json["countryDartId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (code != null) { - _json["code"] = code; - } - if (countryCode != null) { - _json["countryCode"] = countryCode; - } - if (countryDartId != null) { - _json["countryDartId"] = countryDartId; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Postal Code List Response */ -class PostalCodesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#postalCodesListResponse". - */ - core.String kind; - /** Postal code collection. */ - core.List<PostalCode> postalCodes; - - PostalCodesListResponse(); - - PostalCodesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("postalCodes")) { - postalCodes = _json["postalCodes"].map((value) => new PostalCode.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (postalCodes != null) { - _json["postalCodes"] = postalCodes.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Pricing Information */ -class Pricing { - /** - * Cap cost type of this inventory item. - * Possible string values are: - * - "PLANNING_PLACEMENT_CAP_COST_TYPE_CUMULATIVE" - * - "PLANNING_PLACEMENT_CAP_COST_TYPE_MONTHLY" - * - "PLANNING_PLACEMENT_CAP_COST_TYPE_NONE" - */ - core.String capCostType; - /** End date of this inventory item. */ - core.DateTime endDate; - /** - * Flights of this inventory item. A flight (a.k.a. pricing period) represents - * the inventory item pricing information for a specific period of time. - */ - core.List<Flight> flights; - /** - * Group type of this inventory item if it represents a placement group. Is - * null otherwise. There are two type of placement groups: - * PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of inventory items - * that acts as a single pricing point for a group of tags. - * PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory items that - * not only acts as a single pricing point, but also assumes that all the tags - * in it will be served at the same time. A roadblock requires one of its - * assigned inventory items to be marked as primary. - * Possible string values are: - * - "PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE" - * - "PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK" - */ - core.String groupType; - /** - * Pricing type of this inventory item. - * Possible string values are: - * - "PLANNING_PLACEMENT_PRICING_TYPE_CLICKS" - * - "PLANNING_PLACEMENT_PRICING_TYPE_CPA" - * - "PLANNING_PLACEMENT_PRICING_TYPE_CPC" - * - "PLANNING_PLACEMENT_PRICING_TYPE_CPM" - * - "PLANNING_PLACEMENT_PRICING_TYPE_CPM_ACTIVEVIEW" - * - "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_CLICKS" - * - "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_IMPRESSIONS" - * - "PLANNING_PLACEMENT_PRICING_TYPE_IMPRESSIONS" - */ - core.String pricingType; - /** Start date of this inventory item. */ - core.DateTime startDate; - - Pricing(); - - Pricing.fromJson(core.Map _json) { - if (_json.containsKey("capCostType")) { - capCostType = _json["capCostType"]; - } - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("flights")) { - flights = _json["flights"].map((value) => new Flight.fromJson(value)).toList(); - } - if (_json.containsKey("groupType")) { - groupType = _json["groupType"]; - } - if (_json.containsKey("pricingType")) { - pricingType = _json["pricingType"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (capCostType != null) { - _json["capCostType"] = capCostType; - } - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (flights != null) { - _json["flights"] = flights.map((value) => (value).toJson()).toList(); - } - if (groupType != null) { - _json["groupType"] = groupType; - } - if (pricingType != null) { - _json["pricingType"] = pricingType; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - return _json; - } -} - -/** Pricing Schedule */ -class PricingSchedule { - /** - * Placement cap cost option. - * Possible string values are: - * - "CAP_COST_CUMULATIVE" - * - "CAP_COST_MONTHLY" - * - "CAP_COST_NONE" - */ - core.String capCostOption; - /** Whether cap costs are ignored by ad serving. */ - core.bool disregardOverdelivery; - /** - * Placement end date. This date must be later than, or the same day as, the - * placement start date, but not later than the campaign end date. If, for - * example, you set 6/25/2015 as both the start and end dates, the effective - * placement date is just that day only, 6/25/2015. The hours, minutes, and - * seconds of the end date should not be set, as doing so will result in an - * error. This field is required on insertion. - */ - core.DateTime endDate; - /** - * Whether this placement is flighted. If true, pricing periods will be - * computed automatically. - */ - core.bool flighted; - /** - * Floodlight activity ID associated with this placement. This field should be - * set when placement pricing type is set to PRICING_TYPE_CPA. - */ - core.String floodlightActivityId; - /** Pricing periods for this placement. */ - core.List<PricingSchedulePricingPeriod> pricingPeriods; - /** - * Placement pricing type. This field is required on insertion. - * Possible string values are: - * - "PRICING_TYPE_CPA" - * - "PRICING_TYPE_CPC" - * - "PRICING_TYPE_CPM" - * - "PRICING_TYPE_CPM_ACTIVEVIEW" - * - "PRICING_TYPE_FLAT_RATE_CLICKS" - * - "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" - */ - core.String pricingType; - /** - * Placement start date. This date must be later than, or the same day as, the - * campaign start date. The hours, minutes, and seconds of the start date - * should not be set, as doing so will result in an error. This field is - * required on insertion. - */ - core.DateTime startDate; - /** - * Testing start date of this placement. The hours, minutes, and seconds of - * the start date should not be set, as doing so will result in an error. - */ - core.DateTime testingStartDate; - - PricingSchedule(); - - PricingSchedule.fromJson(core.Map _json) { - if (_json.containsKey("capCostOption")) { - capCostOption = _json["capCostOption"]; - } - if (_json.containsKey("disregardOverdelivery")) { - disregardOverdelivery = _json["disregardOverdelivery"]; - } - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("flighted")) { - flighted = _json["flighted"]; - } - if (_json.containsKey("floodlightActivityId")) { - floodlightActivityId = _json["floodlightActivityId"]; - } - if (_json.containsKey("pricingPeriods")) { - pricingPeriods = _json["pricingPeriods"].map((value) => new PricingSchedulePricingPeriod.fromJson(value)).toList(); - } - if (_json.containsKey("pricingType")) { - pricingType = _json["pricingType"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - if (_json.containsKey("testingStartDate")) { - testingStartDate = core.DateTime.parse(_json["testingStartDate"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (capCostOption != null) { - _json["capCostOption"] = capCostOption; - } - if (disregardOverdelivery != null) { - _json["disregardOverdelivery"] = disregardOverdelivery; - } - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (flighted != null) { - _json["flighted"] = flighted; - } - if (floodlightActivityId != null) { - _json["floodlightActivityId"] = floodlightActivityId; - } - if (pricingPeriods != null) { - _json["pricingPeriods"] = pricingPeriods.map((value) => (value).toJson()).toList(); - } - if (pricingType != null) { - _json["pricingType"] = pricingType; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - if (testingStartDate != null) { - _json["testingStartDate"] = "${(testingStartDate).year.toString().padLeft(4, '0')}-${(testingStartDate).month.toString().padLeft(2, '0')}-${(testingStartDate).day.toString().padLeft(2, '0')}"; - } - return _json; - } -} - -/** Pricing Period */ -class PricingSchedulePricingPeriod { - /** - * Pricing period end date. This date must be later than, or the same day as, - * the pricing period start date, but not later than the placement end date. - * The period end date can be the same date as the period start date. If, for - * example, you set 6/25/2015 as both the start and end dates, the effective - * pricing period date is just that day only, 6/25/2015. The hours, minutes, - * and seconds of the end date should not be set, as doing so will result in - * an error. - */ - core.DateTime endDate; - /** Comments for this pricing period. */ - core.String pricingComment; - /** - * Rate or cost of this pricing period in nanos (i.e., multipled by - * 1000000000). Acceptable values are 0 to 1000000000000000000, inclusive. - */ - core.String rateOrCostNanos; - /** - * Pricing period start date. This date must be later than, or the same day - * as, the placement start date. The hours, minutes, and seconds of the start - * date should not be set, as doing so will result in an error. - */ - core.DateTime startDate; - /** - * Units of this pricing period. Acceptable values are 0 to 10000000000, - * inclusive. - */ - core.String units; - - PricingSchedulePricingPeriod(); - - PricingSchedulePricingPeriod.fromJson(core.Map _json) { - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("pricingComment")) { - pricingComment = _json["pricingComment"]; - } - if (_json.containsKey("rateOrCostNanos")) { - rateOrCostNanos = _json["rateOrCostNanos"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - if (_json.containsKey("units")) { - units = _json["units"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (pricingComment != null) { - _json["pricingComment"] = pricingComment; - } - if (rateOrCostNanos != null) { - _json["rateOrCostNanos"] = rateOrCostNanos; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - if (units != null) { - _json["units"] = units; - } - return _json; - } -} - -/** Contains properties of a DoubleClick Planning project. */ -class Project { - /** Account ID of this project. */ - core.String accountId; - /** Advertiser ID of this project. */ - core.String advertiserId; - /** - * Audience age group of this project. - * Possible string values are: - * - "PLANNING_AUDIENCE_AGE_18_24" - * - "PLANNING_AUDIENCE_AGE_25_34" - * - "PLANNING_AUDIENCE_AGE_35_44" - * - "PLANNING_AUDIENCE_AGE_45_54" - * - "PLANNING_AUDIENCE_AGE_55_64" - * - "PLANNING_AUDIENCE_AGE_65_OR_MORE" - * - "PLANNING_AUDIENCE_AGE_UNKNOWN" - */ - core.String audienceAgeGroup; - /** - * Audience gender of this project. - * Possible string values are: - * - "PLANNING_AUDIENCE_GENDER_FEMALE" - * - "PLANNING_AUDIENCE_GENDER_MALE" - */ - core.String audienceGender; - /** - * Budget of this project in the currency specified by the current account. - * The value stored in this field represents only the non-fractional amount. - * For example, for USD, the smallest value that can be represented by this - * field is 1 US dollar. - */ - core.String budget; - /** Client billing code of this project. */ - core.String clientBillingCode; - /** Name of the project client. */ - core.String clientName; - /** End date of the project. */ - core.DateTime endDate; - /** ID of this project. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#project". - */ - core.String kind; - /** Information about the most recent modification of this project. */ - LastModifiedInfo lastModifiedInfo; - /** Name of this project. */ - core.String name; - /** Overview of this project. */ - core.String overview; - /** Start date of the project. */ - core.DateTime startDate; - /** Subaccount ID of this project. */ - core.String subaccountId; - /** Number of clicks that the advertiser is targeting. */ - core.String targetClicks; - /** Number of conversions that the advertiser is targeting. */ - core.String targetConversions; - /** CPA that the advertiser is targeting. */ - core.String targetCpaNanos; - /** CPC that the advertiser is targeting. */ - core.String targetCpcNanos; - /** vCPM from Active View that the advertiser is targeting. */ - core.String targetCpmActiveViewNanos; - /** CPM that the advertiser is targeting. */ - core.String targetCpmNanos; - /** Number of impressions that the advertiser is targeting. */ - core.String targetImpressions; - - Project(); - - Project.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("audienceAgeGroup")) { - audienceAgeGroup = _json["audienceAgeGroup"]; - } - if (_json.containsKey("audienceGender")) { - audienceGender = _json["audienceGender"]; - } - if (_json.containsKey("budget")) { - budget = _json["budget"]; - } - if (_json.containsKey("clientBillingCode")) { - clientBillingCode = _json["clientBillingCode"]; - } - if (_json.containsKey("clientName")) { - clientName = _json["clientName"]; - } - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("overview")) { - overview = _json["overview"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("targetClicks")) { - targetClicks = _json["targetClicks"]; - } - if (_json.containsKey("targetConversions")) { - targetConversions = _json["targetConversions"]; - } - if (_json.containsKey("targetCpaNanos")) { - targetCpaNanos = _json["targetCpaNanos"]; - } - if (_json.containsKey("targetCpcNanos")) { - targetCpcNanos = _json["targetCpcNanos"]; - } - if (_json.containsKey("targetCpmActiveViewNanos")) { - targetCpmActiveViewNanos = _json["targetCpmActiveViewNanos"]; - } - if (_json.containsKey("targetCpmNanos")) { - targetCpmNanos = _json["targetCpmNanos"]; - } - if (_json.containsKey("targetImpressions")) { - targetImpressions = _json["targetImpressions"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (audienceAgeGroup != null) { - _json["audienceAgeGroup"] = audienceAgeGroup; - } - if (audienceGender != null) { - _json["audienceGender"] = audienceGender; - } - if (budget != null) { - _json["budget"] = budget; - } - if (clientBillingCode != null) { - _json["clientBillingCode"] = clientBillingCode; - } - if (clientName != null) { - _json["clientName"] = clientName; - } - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (overview != null) { - _json["overview"] = overview; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (targetClicks != null) { - _json["targetClicks"] = targetClicks; - } - if (targetConversions != null) { - _json["targetConversions"] = targetConversions; - } - if (targetCpaNanos != null) { - _json["targetCpaNanos"] = targetCpaNanos; - } - if (targetCpcNanos != null) { - _json["targetCpcNanos"] = targetCpcNanos; - } - if (targetCpmActiveViewNanos != null) { - _json["targetCpmActiveViewNanos"] = targetCpmActiveViewNanos; - } - if (targetCpmNanos != null) { - _json["targetCpmNanos"] = targetCpmNanos; - } - if (targetImpressions != null) { - _json["targetImpressions"] = targetImpressions; - } - return _json; - } -} - -/** Project List Response */ -class ProjectsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#projectsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Project collection. */ - core.List<Project> projects; - - ProjectsListResponse(); - - ProjectsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("projects")) { - projects = _json["projects"].map((value) => new Project.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (projects != null) { - _json["projects"] = projects.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** - * Represents fields that are compatible to be selected for a report of type - * "REACH". - */ -class ReachReportCompatibleFields { - /** - * Dimensions which are compatible to be selected in the "dimensionFilters" - * section of the report. - */ - core.List<Dimension> dimensionFilters; - /** - * Dimensions which are compatible to be selected in the "dimensions" section - * of the report. - */ - core.List<Dimension> dimensions; - /** - * The kind of resource this is, in this case - * dfareporting#reachReportCompatibleFields. - */ - core.String kind; - /** - * Metrics which are compatible to be selected in the "metricNames" section of - * the report. - */ - core.List<Metric> metrics; - /** - * Metrics which are compatible to be selected as activity metrics to pivot on - * in the "activities" section of the report. - */ - core.List<Metric> pivotedActivityMetrics; - /** - * Metrics which are compatible to be selected in the - * "reachByFrequencyMetricNames" section of the report. - */ - core.List<Metric> reachByFrequencyMetrics; - - ReachReportCompatibleFields(); - - ReachReportCompatibleFields.fromJson(core.Map _json) { - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("dimensions")) { - dimensions = _json["dimensions"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metrics")) { - metrics = _json["metrics"].map((value) => new Metric.fromJson(value)).toList(); - } - if (_json.containsKey("pivotedActivityMetrics")) { - pivotedActivityMetrics = _json["pivotedActivityMetrics"].map((value) => new Metric.fromJson(value)).toList(); - } - if (_json.containsKey("reachByFrequencyMetrics")) { - reachByFrequencyMetrics = _json["reachByFrequencyMetrics"].map((value) => new Metric.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (dimensions != null) { - _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (metrics != null) { - _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); - } - if (pivotedActivityMetrics != null) { - _json["pivotedActivityMetrics"] = pivotedActivityMetrics.map((value) => (value).toJson()).toList(); - } - if (reachByFrequencyMetrics != null) { - _json["reachByFrequencyMetrics"] = reachByFrequencyMetrics.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Represents a recipient. */ -class Recipient { - /** - * The delivery type for the recipient. - * Possible string values are: - * - "ATTACHMENT" - * - "LINK" - */ - core.String deliveryType; - /** The email address of the recipient. */ - core.String email; - /** The kind of resource this is, in this case dfareporting#recipient. */ - core.String kind; - - Recipient(); - - Recipient.fromJson(core.Map _json) { - if (_json.containsKey("deliveryType")) { - deliveryType = _json["deliveryType"]; - } - if (_json.containsKey("email")) { - email = _json["email"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (deliveryType != null) { - _json["deliveryType"] = deliveryType; - } - if (email != null) { - _json["email"] = email; - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Contains information about a region that can be targeted by ads. */ -class Region { - /** Country code of the country to which this region belongs. */ - core.String countryCode; - /** DART ID of the country to which this region belongs. */ - core.String countryDartId; - /** DART ID of this region. */ - core.String dartId; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#region". - */ - core.String kind; - /** Name of this region. */ - core.String name; - /** Region code. */ - core.String regionCode; - - Region(); - - Region.fromJson(core.Map _json) { - if (_json.containsKey("countryCode")) { - countryCode = _json["countryCode"]; - } - if (_json.containsKey("countryDartId")) { - countryDartId = _json["countryDartId"]; - } - if (_json.containsKey("dartId")) { - dartId = _json["dartId"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("regionCode")) { - regionCode = _json["regionCode"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (countryCode != null) { - _json["countryCode"] = countryCode; - } - if (countryDartId != null) { - _json["countryDartId"] = countryDartId; - } - if (dartId != null) { - _json["dartId"] = dartId; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (regionCode != null) { - _json["regionCode"] = regionCode; - } - return _json; - } -} - -/** Region List Response */ -class RegionsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#regionsListResponse". - */ - core.String kind; - /** Region collection. */ - core.List<Region> regions; - - RegionsListResponse(); - - RegionsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("regions")) { - regions = _json["regions"].map((value) => new Region.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (regions != null) { - _json["regions"] = regions.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** - * Contains properties of a remarketing list. Remarketing enables you to create - * lists of users who have performed specific actions on a site, then target ads - * to members of those lists. This resource can be used to manage remarketing - * lists that are owned by your advertisers. To see all remarketing lists that - * are visible to your advertisers, including those that are shared to your - * advertiser or account, use the TargetableRemarketingLists resource. - */ -class RemarketingList { - /** - * Account ID of this remarketing list. This is a read-only, auto-generated - * field that is only returned in GET requests. - */ - core.String accountId; - /** Whether this remarketing list is active. */ - core.bool active; - /** - * Dimension value for the advertiser ID that owns this remarketing list. This - * is a required field. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** Remarketing list description. */ - core.String description; - /** Remarketing list ID. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#remarketingList". - */ - core.String kind; - /** - * Number of days that a user should remain in the remarketing list without an - * impression. Acceptable values are 1 to 540, inclusive. - */ - core.String lifeSpan; - /** Rule used to populate the remarketing list with users. */ - ListPopulationRule listPopulationRule; - /** Number of users currently in the list. This is a read-only field. */ - core.String listSize; - /** - * Product from which this remarketing list was originated. - * Possible string values are: - * - "REMARKETING_LIST_SOURCE_ADX" - * - "REMARKETING_LIST_SOURCE_DBM" - * - "REMARKETING_LIST_SOURCE_DFA" - * - "REMARKETING_LIST_SOURCE_DFP" - * - "REMARKETING_LIST_SOURCE_DMP" - * - "REMARKETING_LIST_SOURCE_GA" - * - "REMARKETING_LIST_SOURCE_GPLUS" - * - "REMARKETING_LIST_SOURCE_OTHER" - * - "REMARKETING_LIST_SOURCE_PLAY_STORE" - * - "REMARKETING_LIST_SOURCE_XFP" - * - "REMARKETING_LIST_SOURCE_YOUTUBE" - */ - core.String listSource; - /** - * Name of the remarketing list. This is a required field. Must be no greater - * than 128 characters long. - */ - core.String name; - /** - * Subaccount ID of this remarketing list. This is a read-only, auto-generated - * field that is only returned in GET requests. - */ - core.String subaccountId; - - RemarketingList(); - - RemarketingList.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("description")) { - description = _json["description"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lifeSpan")) { - lifeSpan = _json["lifeSpan"]; - } - if (_json.containsKey("listPopulationRule")) { - listPopulationRule = new ListPopulationRule.fromJson(_json["listPopulationRule"]); - } - if (_json.containsKey("listSize")) { - listSize = _json["listSize"]; - } - if (_json.containsKey("listSource")) { - listSource = _json["listSource"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (active != null) { - _json["active"] = active; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (description != null) { - _json["description"] = description; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lifeSpan != null) { - _json["lifeSpan"] = lifeSpan; - } - if (listPopulationRule != null) { - _json["listPopulationRule"] = (listPopulationRule).toJson(); - } - if (listSize != null) { - _json["listSize"] = listSize; - } - if (listSource != null) { - _json["listSource"] = listSource; - } - if (name != null) { - _json["name"] = name; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - return _json; - } -} - -/** - * Contains properties of a remarketing list's sharing information. Sharing - * allows other accounts or advertisers to target to your remarketing lists. - * This resource can be used to manage remarketing list sharing to other - * accounts and advertisers. - */ -class RemarketingListShare { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#remarketingListShare". - */ - core.String kind; - /** Remarketing list ID. This is a read-only, auto-generated field. */ - core.String remarketingListId; - /** Accounts that the remarketing list is shared with. */ - core.List<core.String> sharedAccountIds; - /** Advertisers that the remarketing list is shared with. */ - core.List<core.String> sharedAdvertiserIds; - - RemarketingListShare(); - - RemarketingListShare.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("remarketingListId")) { - remarketingListId = _json["remarketingListId"]; - } - if (_json.containsKey("sharedAccountIds")) { - sharedAccountIds = _json["sharedAccountIds"]; - } - if (_json.containsKey("sharedAdvertiserIds")) { - sharedAdvertiserIds = _json["sharedAdvertiserIds"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (remarketingListId != null) { - _json["remarketingListId"] = remarketingListId; - } - if (sharedAccountIds != null) { - _json["sharedAccountIds"] = sharedAccountIds; - } - if (sharedAdvertiserIds != null) { - _json["sharedAdvertiserIds"] = sharedAdvertiserIds; - } - return _json; - } -} - -/** Remarketing list response */ -class RemarketingListsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#remarketingListsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Remarketing list collection. */ - core.List<RemarketingList> remarketingLists; - - RemarketingListsListResponse(); - - RemarketingListsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("remarketingLists")) { - remarketingLists = _json["remarketingLists"].map((value) => new RemarketingList.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (remarketingLists != null) { - _json["remarketingLists"] = remarketingLists.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** The report criteria for a report of type "STANDARD". */ -class ReportCriteria { - /** Activity group. */ - Activities activities; - /** Custom Rich Media Events group. */ - CustomRichMediaEvents customRichMediaEvents; - /** The date range for which this report should be run. */ - DateRange dateRange; - /** - * The list of filters on which dimensions are filtered. - * Filters for different dimensions are ANDed, filters for the same dimension - * are grouped together and ORed. - */ - core.List<DimensionValue> dimensionFilters; - /** The list of standard dimensions the report should include. */ - core.List<SortedDimension> dimensions; - /** The list of names of metrics the report should include. */ - core.List<core.String> metricNames; - - ReportCriteria(); - - ReportCriteria.fromJson(core.Map _json) { - if (_json.containsKey("activities")) { - activities = new Activities.fromJson(_json["activities"]); - } - if (_json.containsKey("customRichMediaEvents")) { - customRichMediaEvents = new CustomRichMediaEvents.fromJson(_json["customRichMediaEvents"]); - } - if (_json.containsKey("dateRange")) { - dateRange = new DateRange.fromJson(_json["dateRange"]); - } - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("dimensions")) { - dimensions = _json["dimensions"].map((value) => new SortedDimension.fromJson(value)).toList(); - } - if (_json.containsKey("metricNames")) { - metricNames = _json["metricNames"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (activities != null) { - _json["activities"] = (activities).toJson(); - } - if (customRichMediaEvents != null) { - _json["customRichMediaEvents"] = (customRichMediaEvents).toJson(); - } - if (dateRange != null) { - _json["dateRange"] = (dateRange).toJson(); - } - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (dimensions != null) { - _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList(); - } - if (metricNames != null) { - _json["metricNames"] = metricNames; - } - return _json; - } -} - -/** The report criteria for a report of type "CROSS_DIMENSION_REACH". */ -class ReportCrossDimensionReachCriteria { - /** The list of dimensions the report should include. */ - core.List<SortedDimension> breakdown; - /** The date range this report should be run for. */ - DateRange dateRange; - /** - * The dimension option. - * Possible string values are: - * - "ADVERTISER" - * - "CAMPAIGN" - * - "SITE_BY_ADVERTISER" - * - "SITE_BY_CAMPAIGN" - */ - core.String dimension; - /** The list of filters on which dimensions are filtered. */ - core.List<DimensionValue> dimensionFilters; - /** The list of names of metrics the report should include. */ - core.List<core.String> metricNames; - /** The list of names of overlap metrics the report should include. */ - core.List<core.String> overlapMetricNames; - /** Whether the report is pivoted or not. Defaults to true. */ - core.bool pivoted; - - ReportCrossDimensionReachCriteria(); - - ReportCrossDimensionReachCriteria.fromJson(core.Map _json) { - if (_json.containsKey("breakdown")) { - breakdown = _json["breakdown"].map((value) => new SortedDimension.fromJson(value)).toList(); - } - if (_json.containsKey("dateRange")) { - dateRange = new DateRange.fromJson(_json["dateRange"]); - } - if (_json.containsKey("dimension")) { - dimension = _json["dimension"]; - } - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("metricNames")) { - metricNames = _json["metricNames"]; - } - if (_json.containsKey("overlapMetricNames")) { - overlapMetricNames = _json["overlapMetricNames"]; - } - if (_json.containsKey("pivoted")) { - pivoted = _json["pivoted"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (breakdown != null) { - _json["breakdown"] = breakdown.map((value) => (value).toJson()).toList(); - } - if (dateRange != null) { - _json["dateRange"] = (dateRange).toJson(); - } - if (dimension != null) { - _json["dimension"] = dimension; - } - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (metricNames != null) { - _json["metricNames"] = metricNames; - } - if (overlapMetricNames != null) { - _json["overlapMetricNames"] = overlapMetricNames; - } - if (pivoted != null) { - _json["pivoted"] = pivoted; - } - return _json; - } -} - -/** The report's email delivery settings. */ -class ReportDelivery { - /** Whether the report should be emailed to the report owner. */ - core.bool emailOwner; - /** - * The type of delivery for the owner to receive, if enabled. - * Possible string values are: - * - "ATTACHMENT" - * - "LINK" - */ - core.String emailOwnerDeliveryType; - /** The message to be sent with each email. */ - core.String message; - /** The list of recipients to which to email the report. */ - core.List<Recipient> recipients; - - ReportDelivery(); - - ReportDelivery.fromJson(core.Map _json) { - if (_json.containsKey("emailOwner")) { - emailOwner = _json["emailOwner"]; - } - if (_json.containsKey("emailOwnerDeliveryType")) { - emailOwnerDeliveryType = _json["emailOwnerDeliveryType"]; - } - if (_json.containsKey("message")) { - message = _json["message"]; - } - if (_json.containsKey("recipients")) { - recipients = _json["recipients"].map((value) => new Recipient.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (emailOwner != null) { - _json["emailOwner"] = emailOwner; - } - if (emailOwnerDeliveryType != null) { - _json["emailOwnerDeliveryType"] = emailOwnerDeliveryType; - } - if (message != null) { - _json["message"] = message; - } - if (recipients != null) { - _json["recipients"] = recipients.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** The properties of the report. */ -class ReportFloodlightCriteriaReportProperties { - /** Include conversions that have no cookie, but do have an exposure path. */ - core.bool includeAttributedIPConversions; - /** - * Include conversions of users with a DoubleClick cookie but without an - * exposure. That means the user did not click or see an ad from the - * advertiser within the Floodlight group, or that the interaction happened - * outside the lookback window. - */ - core.bool includeUnattributedCookieConversions; - /** - * Include conversions that have no associated cookies and no exposures. It’s - * therefore impossible to know how the user was exposed to your ads during - * the lookback window prior to a conversion. - */ - core.bool includeUnattributedIPConversions; - - ReportFloodlightCriteriaReportProperties(); - - ReportFloodlightCriteriaReportProperties.fromJson(core.Map _json) { - if (_json.containsKey("includeAttributedIPConversions")) { - includeAttributedIPConversions = _json["includeAttributedIPConversions"]; - } - if (_json.containsKey("includeUnattributedCookieConversions")) { - includeUnattributedCookieConversions = _json["includeUnattributedCookieConversions"]; - } - if (_json.containsKey("includeUnattributedIPConversions")) { - includeUnattributedIPConversions = _json["includeUnattributedIPConversions"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (includeAttributedIPConversions != null) { - _json["includeAttributedIPConversions"] = includeAttributedIPConversions; - } - if (includeUnattributedCookieConversions != null) { - _json["includeUnattributedCookieConversions"] = includeUnattributedCookieConversions; - } - if (includeUnattributedIPConversions != null) { - _json["includeUnattributedIPConversions"] = includeUnattributedIPConversions; - } - return _json; - } -} - -/** The report criteria for a report of type "FLOODLIGHT". */ -class ReportFloodlightCriteria { - /** The list of custom rich media events to include. */ - core.List<DimensionValue> customRichMediaEvents; - /** The date range this report should be run for. */ - DateRange dateRange; - /** - * The list of filters on which dimensions are filtered. - * Filters for different dimensions are ANDed, filters for the same dimension - * are grouped together and ORed. - */ - core.List<DimensionValue> dimensionFilters; - /** The list of dimensions the report should include. */ - core.List<SortedDimension> dimensions; - /** - * The floodlight ID for which to show data in this report. All advertisers - * associated with that ID will automatically be added. The dimension of the - * value needs to be 'dfa:floodlightConfigId'. - */ - DimensionValue floodlightConfigId; - /** The list of names of metrics the report should include. */ - core.List<core.String> metricNames; - /** The properties of the report. */ - ReportFloodlightCriteriaReportProperties reportProperties; - - ReportFloodlightCriteria(); - - ReportFloodlightCriteria.fromJson(core.Map _json) { - if (_json.containsKey("customRichMediaEvents")) { - customRichMediaEvents = _json["customRichMediaEvents"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("dateRange")) { - dateRange = new DateRange.fromJson(_json["dateRange"]); - } - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("dimensions")) { - dimensions = _json["dimensions"].map((value) => new SortedDimension.fromJson(value)).toList(); - } - if (_json.containsKey("floodlightConfigId")) { - floodlightConfigId = new DimensionValue.fromJson(_json["floodlightConfigId"]); - } - if (_json.containsKey("metricNames")) { - metricNames = _json["metricNames"]; - } - if (_json.containsKey("reportProperties")) { - reportProperties = new ReportFloodlightCriteriaReportProperties.fromJson(_json["reportProperties"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (customRichMediaEvents != null) { - _json["customRichMediaEvents"] = customRichMediaEvents.map((value) => (value).toJson()).toList(); - } - if (dateRange != null) { - _json["dateRange"] = (dateRange).toJson(); - } - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (dimensions != null) { - _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList(); - } - if (floodlightConfigId != null) { - _json["floodlightConfigId"] = (floodlightConfigId).toJson(); - } - if (metricNames != null) { - _json["metricNames"] = metricNames; - } - if (reportProperties != null) { - _json["reportProperties"] = (reportProperties).toJson(); - } - return _json; - } -} - -/** The properties of the report. */ -class ReportPathToConversionCriteriaReportProperties { - /** - * DFA checks to see if a click interaction occurred within the specified - * period of time before a conversion. By default the value is pulled from - * Floodlight or you can manually enter a custom value. Valid values: 1-90. - */ - core.int clicksLookbackWindow; - /** - * DFA checks to see if an impression interaction occurred within the - * specified period of time before a conversion. By default the value is - * pulled from Floodlight or you can manually enter a custom value. Valid - * values: 1-90. - */ - core.int impressionsLookbackWindow; - /** Deprecated: has no effect. */ - core.bool includeAttributedIPConversions; - /** - * Include conversions of users with a DoubleClick cookie but without an - * exposure. That means the user did not click or see an ad from the - * advertiser within the Floodlight group, or that the interaction happened - * outside the lookback window. - */ - core.bool includeUnattributedCookieConversions; - /** - * Include conversions that have no associated cookies and no exposures. It’s - * therefore impossible to know how the user was exposed to your ads during - * the lookback window prior to a conversion. - */ - core.bool includeUnattributedIPConversions; - /** - * The maximum number of click interactions to include in the report. - * Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 - * impressions). If another advertiser in your network is paying for E2C, you - * can have up to 5 total exposures per report. - */ - core.int maximumClickInteractions; - /** - * The maximum number of click interactions to include in the report. - * Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 - * impressions). If another advertiser in your network is paying for E2C, you - * can have up to 5 total exposures per report. - */ - core.int maximumImpressionInteractions; - /** - * The maximum amount of time that can take place between interactions (clicks - * or impressions) by the same user. Valid values: 1-90. - */ - core.int maximumInteractionGap; - /** Enable pivoting on interaction path. */ - core.bool pivotOnInteractionPath; - - ReportPathToConversionCriteriaReportProperties(); - - ReportPathToConversionCriteriaReportProperties.fromJson(core.Map _json) { - if (_json.containsKey("clicksLookbackWindow")) { - clicksLookbackWindow = _json["clicksLookbackWindow"]; - } - if (_json.containsKey("impressionsLookbackWindow")) { - impressionsLookbackWindow = _json["impressionsLookbackWindow"]; - } - if (_json.containsKey("includeAttributedIPConversions")) { - includeAttributedIPConversions = _json["includeAttributedIPConversions"]; - } - if (_json.containsKey("includeUnattributedCookieConversions")) { - includeUnattributedCookieConversions = _json["includeUnattributedCookieConversions"]; - } - if (_json.containsKey("includeUnattributedIPConversions")) { - includeUnattributedIPConversions = _json["includeUnattributedIPConversions"]; - } - if (_json.containsKey("maximumClickInteractions")) { - maximumClickInteractions = _json["maximumClickInteractions"]; - } - if (_json.containsKey("maximumImpressionInteractions")) { - maximumImpressionInteractions = _json["maximumImpressionInteractions"]; - } - if (_json.containsKey("maximumInteractionGap")) { - maximumInteractionGap = _json["maximumInteractionGap"]; - } - if (_json.containsKey("pivotOnInteractionPath")) { - pivotOnInteractionPath = _json["pivotOnInteractionPath"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (clicksLookbackWindow != null) { - _json["clicksLookbackWindow"] = clicksLookbackWindow; - } - if (impressionsLookbackWindow != null) { - _json["impressionsLookbackWindow"] = impressionsLookbackWindow; - } - if (includeAttributedIPConversions != null) { - _json["includeAttributedIPConversions"] = includeAttributedIPConversions; - } - if (includeUnattributedCookieConversions != null) { - _json["includeUnattributedCookieConversions"] = includeUnattributedCookieConversions; - } - if (includeUnattributedIPConversions != null) { - _json["includeUnattributedIPConversions"] = includeUnattributedIPConversions; - } - if (maximumClickInteractions != null) { - _json["maximumClickInteractions"] = maximumClickInteractions; - } - if (maximumImpressionInteractions != null) { - _json["maximumImpressionInteractions"] = maximumImpressionInteractions; - } - if (maximumInteractionGap != null) { - _json["maximumInteractionGap"] = maximumInteractionGap; - } - if (pivotOnInteractionPath != null) { - _json["pivotOnInteractionPath"] = pivotOnInteractionPath; - } - return _json; - } -} - -/** The report criteria for a report of type "PATH_TO_CONVERSION". */ -class ReportPathToConversionCriteria { - /** The list of 'dfa:activity' values to filter on. */ - core.List<DimensionValue> activityFilters; - /** The list of conversion dimensions the report should include. */ - core.List<SortedDimension> conversionDimensions; - /** The list of custom floodlight variables the report should include. */ - core.List<SortedDimension> customFloodlightVariables; - /** The list of custom rich media events to include. */ - core.List<DimensionValue> customRichMediaEvents; - /** The date range this report should be run for. */ - DateRange dateRange; - /** - * The floodlight ID for which to show data in this report. All advertisers - * associated with that ID will automatically be added. The dimension of the - * value needs to be 'dfa:floodlightConfigId'. - */ - DimensionValue floodlightConfigId; - /** The list of names of metrics the report should include. */ - core.List<core.String> metricNames; - /** The list of per interaction dimensions the report should include. */ - core.List<SortedDimension> perInteractionDimensions; - /** The properties of the report. */ - ReportPathToConversionCriteriaReportProperties reportProperties; - - ReportPathToConversionCriteria(); - - ReportPathToConversionCriteria.fromJson(core.Map _json) { - if (_json.containsKey("activityFilters")) { - activityFilters = _json["activityFilters"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("conversionDimensions")) { - conversionDimensions = _json["conversionDimensions"].map((value) => new SortedDimension.fromJson(value)).toList(); - } - if (_json.containsKey("customFloodlightVariables")) { - customFloodlightVariables = _json["customFloodlightVariables"].map((value) => new SortedDimension.fromJson(value)).toList(); - } - if (_json.containsKey("customRichMediaEvents")) { - customRichMediaEvents = _json["customRichMediaEvents"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("dateRange")) { - dateRange = new DateRange.fromJson(_json["dateRange"]); - } - if (_json.containsKey("floodlightConfigId")) { - floodlightConfigId = new DimensionValue.fromJson(_json["floodlightConfigId"]); - } - if (_json.containsKey("metricNames")) { - metricNames = _json["metricNames"]; - } - if (_json.containsKey("perInteractionDimensions")) { - perInteractionDimensions = _json["perInteractionDimensions"].map((value) => new SortedDimension.fromJson(value)).toList(); - } - if (_json.containsKey("reportProperties")) { - reportProperties = new ReportPathToConversionCriteriaReportProperties.fromJson(_json["reportProperties"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (activityFilters != null) { - _json["activityFilters"] = activityFilters.map((value) => (value).toJson()).toList(); - } - if (conversionDimensions != null) { - _json["conversionDimensions"] = conversionDimensions.map((value) => (value).toJson()).toList(); - } - if (customFloodlightVariables != null) { - _json["customFloodlightVariables"] = customFloodlightVariables.map((value) => (value).toJson()).toList(); - } - if (customRichMediaEvents != null) { - _json["customRichMediaEvents"] = customRichMediaEvents.map((value) => (value).toJson()).toList(); - } - if (dateRange != null) { - _json["dateRange"] = (dateRange).toJson(); - } - if (floodlightConfigId != null) { - _json["floodlightConfigId"] = (floodlightConfigId).toJson(); - } - if (metricNames != null) { - _json["metricNames"] = metricNames; - } - if (perInteractionDimensions != null) { - _json["perInteractionDimensions"] = perInteractionDimensions.map((value) => (value).toJson()).toList(); - } - if (reportProperties != null) { - _json["reportProperties"] = (reportProperties).toJson(); - } - return _json; - } -} - -/** The report criteria for a report of type "REACH". */ -class ReportReachCriteria { - /** Activity group. */ - Activities activities; - /** Custom Rich Media Events group. */ - CustomRichMediaEvents customRichMediaEvents; - /** The date range this report should be run for. */ - DateRange dateRange; - /** - * The list of filters on which dimensions are filtered. - * Filters for different dimensions are ANDed, filters for the same dimension - * are grouped together and ORed. - */ - core.List<DimensionValue> dimensionFilters; - /** The list of dimensions the report should include. */ - core.List<SortedDimension> dimensions; - /** - * Whether to enable all reach dimension combinations in the report. Defaults - * to false. If enabled, the date range of the report should be within the - * last three months. - */ - core.bool enableAllDimensionCombinations; - /** The list of names of metrics the report should include. */ - core.List<core.String> metricNames; - /** - * The list of names of Reach By Frequency metrics the report should include. - */ - core.List<core.String> reachByFrequencyMetricNames; - - ReportReachCriteria(); - - ReportReachCriteria.fromJson(core.Map _json) { - if (_json.containsKey("activities")) { - activities = new Activities.fromJson(_json["activities"]); - } - if (_json.containsKey("customRichMediaEvents")) { - customRichMediaEvents = new CustomRichMediaEvents.fromJson(_json["customRichMediaEvents"]); - } - if (_json.containsKey("dateRange")) { - dateRange = new DateRange.fromJson(_json["dateRange"]); - } - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("dimensions")) { - dimensions = _json["dimensions"].map((value) => new SortedDimension.fromJson(value)).toList(); - } - if (_json.containsKey("enableAllDimensionCombinations")) { - enableAllDimensionCombinations = _json["enableAllDimensionCombinations"]; - } - if (_json.containsKey("metricNames")) { - metricNames = _json["metricNames"]; - } - if (_json.containsKey("reachByFrequencyMetricNames")) { - reachByFrequencyMetricNames = _json["reachByFrequencyMetricNames"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (activities != null) { - _json["activities"] = (activities).toJson(); - } - if (customRichMediaEvents != null) { - _json["customRichMediaEvents"] = (customRichMediaEvents).toJson(); - } - if (dateRange != null) { - _json["dateRange"] = (dateRange).toJson(); - } - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (dimensions != null) { - _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList(); - } - if (enableAllDimensionCombinations != null) { - _json["enableAllDimensionCombinations"] = enableAllDimensionCombinations; - } - if (metricNames != null) { - _json["metricNames"] = metricNames; - } - if (reachByFrequencyMetricNames != null) { - _json["reachByFrequencyMetricNames"] = reachByFrequencyMetricNames; - } - return _json; - } -} - -/** - * The report's schedule. Can only be set if the report's 'dateRange' is a - * relative date range and the relative date range is not "TODAY". - */ -class ReportSchedule { - /** - * Whether the schedule is active or not. Must be set to either true or false. - */ - core.bool active; - /** - * Defines every how many days, weeks or months the report should be run. - * Needs to be set when "repeats" is either "DAILY", "WEEKLY" or "MONTHLY". - */ - core.int every; - /** The expiration date when the scheduled report stops running. */ - core.DateTime expirationDate; - /** - * The interval for which the report is repeated. Note: - * - "DAILY" also requires field "every" to be set. - * - "WEEKLY" also requires fields "every" and "repeatsOnWeekDays" to be set. - * - "MONTHLY" also requires fields "every" and "runsOnDayOfMonth" to be set. - */ - core.String repeats; - /** List of week days "WEEKLY" on which scheduled reports should run. */ - core.List<core.String> repeatsOnWeekDays; - /** - * Enum to define for "MONTHLY" scheduled reports whether reports should be - * repeated on the same day of the month as "startDate" or the same day of the - * week of the month. - * Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), - * "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and - * "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the - * month. - * Possible string values are: - * - "DAY_OF_MONTH" - * - "WEEK_OF_MONTH" - */ - core.String runsOnDayOfMonth; - /** Start date of date range for which scheduled reports should be run. */ - core.DateTime startDate; - - ReportSchedule(); - - ReportSchedule.fromJson(core.Map _json) { - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("every")) { - every = _json["every"]; - } - if (_json.containsKey("expirationDate")) { - expirationDate = core.DateTime.parse(_json["expirationDate"]); - } - if (_json.containsKey("repeats")) { - repeats = _json["repeats"]; - } - if (_json.containsKey("repeatsOnWeekDays")) { - repeatsOnWeekDays = _json["repeatsOnWeekDays"]; - } - if (_json.containsKey("runsOnDayOfMonth")) { - runsOnDayOfMonth = _json["runsOnDayOfMonth"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (active != null) { - _json["active"] = active; - } - if (every != null) { - _json["every"] = every; - } - if (expirationDate != null) { - _json["expirationDate"] = "${(expirationDate).year.toString().padLeft(4, '0')}-${(expirationDate).month.toString().padLeft(2, '0')}-${(expirationDate).day.toString().padLeft(2, '0')}"; - } - if (repeats != null) { - _json["repeats"] = repeats; - } - if (repeatsOnWeekDays != null) { - _json["repeatsOnWeekDays"] = repeatsOnWeekDays; - } - if (runsOnDayOfMonth != null) { - _json["runsOnDayOfMonth"] = runsOnDayOfMonth; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - return _json; - } -} - -/** Represents a Report resource. */ -class Report { - /** The account ID to which this report belongs. */ - core.String accountId; - /** The report criteria for a report of type "STANDARD". */ - ReportCriteria criteria; - /** The report criteria for a report of type "CROSS_DIMENSION_REACH". */ - ReportCrossDimensionReachCriteria crossDimensionReachCriteria; - /** The report's email delivery settings. */ - ReportDelivery delivery; - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The filename used when generating report files for this report. */ - core.String fileName; - /** The report criteria for a report of type "FLOODLIGHT". */ - ReportFloodlightCriteria floodlightCriteria; - /** - * The output format of the report. If not specified, default format is "CSV". - * Note that the actual format in the completed report file might differ if - * for instance the report's size exceeds the format's capabilities. "CSV" - * will then be the fallback format. - * Possible string values are: - * - "CSV" - * - "EXCEL" - */ - core.String format; - /** The unique ID identifying this report resource. */ - core.String id; - /** The kind of resource this is, in this case dfareporting#report. */ - core.String kind; - /** - * The timestamp (in milliseconds since epoch) of when this report was last - * modified. - */ - core.String lastModifiedTime; - /** The name of the report. */ - core.String name; - /** The user profile id of the owner of this report. */ - core.String ownerProfileId; - /** The report criteria for a report of type "PATH_TO_CONVERSION". */ - ReportPathToConversionCriteria pathToConversionCriteria; - /** The report criteria for a report of type "REACH". */ - ReportReachCriteria reachCriteria; - /** - * The report's schedule. Can only be set if the report's 'dateRange' is a - * relative date range and the relative date range is not "TODAY". - */ - ReportSchedule schedule; - /** The subaccount ID to which this report belongs if applicable. */ - core.String subAccountId; - /** - * The type of the report. - * Possible string values are: - * - "CROSS_DIMENSION_REACH" - * - "FLOODLIGHT" - * - "PATH_TO_CONVERSION" - * - "REACH" - * - "STANDARD" - */ - core.String type; - - Report(); - - Report.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("criteria")) { - criteria = new ReportCriteria.fromJson(_json["criteria"]); - } - if (_json.containsKey("crossDimensionReachCriteria")) { - crossDimensionReachCriteria = new ReportCrossDimensionReachCriteria.fromJson(_json["crossDimensionReachCriteria"]); - } - if (_json.containsKey("delivery")) { - delivery = new ReportDelivery.fromJson(_json["delivery"]); - } - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("fileName")) { - fileName = _json["fileName"]; - } - if (_json.containsKey("floodlightCriteria")) { - floodlightCriteria = new ReportFloodlightCriteria.fromJson(_json["floodlightCriteria"]); - } - if (_json.containsKey("format")) { - format = _json["format"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedTime")) { - lastModifiedTime = _json["lastModifiedTime"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("ownerProfileId")) { - ownerProfileId = _json["ownerProfileId"]; - } - if (_json.containsKey("pathToConversionCriteria")) { - pathToConversionCriteria = new ReportPathToConversionCriteria.fromJson(_json["pathToConversionCriteria"]); - } - if (_json.containsKey("reachCriteria")) { - reachCriteria = new ReportReachCriteria.fromJson(_json["reachCriteria"]); - } - if (_json.containsKey("schedule")) { - schedule = new ReportSchedule.fromJson(_json["schedule"]); - } - if (_json.containsKey("subAccountId")) { - subAccountId = _json["subAccountId"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (criteria != null) { - _json["criteria"] = (criteria).toJson(); - } - if (crossDimensionReachCriteria != null) { - _json["crossDimensionReachCriteria"] = (crossDimensionReachCriteria).toJson(); - } - if (delivery != null) { - _json["delivery"] = (delivery).toJson(); - } - if (etag != null) { - _json["etag"] = etag; - } - if (fileName != null) { - _json["fileName"] = fileName; - } - if (floodlightCriteria != null) { - _json["floodlightCriteria"] = (floodlightCriteria).toJson(); - } - if (format != null) { - _json["format"] = format; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedTime != null) { - _json["lastModifiedTime"] = lastModifiedTime; - } - if (name != null) { - _json["name"] = name; - } - if (ownerProfileId != null) { - _json["ownerProfileId"] = ownerProfileId; - } - if (pathToConversionCriteria != null) { - _json["pathToConversionCriteria"] = (pathToConversionCriteria).toJson(); - } - if (reachCriteria != null) { - _json["reachCriteria"] = (reachCriteria).toJson(); - } - if (schedule != null) { - _json["schedule"] = (schedule).toJson(); - } - if (subAccountId != null) { - _json["subAccountId"] = subAccountId; - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** - * Represents fields that are compatible to be selected for a report of type - * "STANDARD". - */ -class ReportCompatibleFields { - /** - * Dimensions which are compatible to be selected in the "dimensionFilters" - * section of the report. - */ - core.List<Dimension> dimensionFilters; - /** - * Dimensions which are compatible to be selected in the "dimensions" section - * of the report. - */ - core.List<Dimension> dimensions; - /** - * The kind of resource this is, in this case - * dfareporting#reportCompatibleFields. - */ - core.String kind; - /** - * Metrics which are compatible to be selected in the "metricNames" section of - * the report. - */ - core.List<Metric> metrics; - /** - * Metrics which are compatible to be selected as activity metrics to pivot on - * in the "activities" section of the report. - */ - core.List<Metric> pivotedActivityMetrics; - - ReportCompatibleFields(); - - ReportCompatibleFields.fromJson(core.Map _json) { - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("dimensions")) { - dimensions = _json["dimensions"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metrics")) { - metrics = _json["metrics"].map((value) => new Metric.fromJson(value)).toList(); - } - if (_json.containsKey("pivotedActivityMetrics")) { - pivotedActivityMetrics = _json["pivotedActivityMetrics"].map((value) => new Metric.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (dimensions != null) { - _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (metrics != null) { - _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); - } - if (pivotedActivityMetrics != null) { - _json["pivotedActivityMetrics"] = pivotedActivityMetrics.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Represents the list of reports. */ -class ReportList { - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The reports returned in this response. */ - core.List<Report> items; - /** The kind of list this is, in this case dfareporting#reportList. */ - core.String kind; - /** - * Continuation token used to page through reports. To retrieve the next page - * of results, set the next request's "pageToken" to the value of this field. - * The page token is only valid for a limited amount of time and should not be - * persisted. - */ - core.String nextPageToken; - - ReportList(); - - ReportList.fromJson(core.Map _json) { - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("items")) { - items = _json["items"].map((value) => new Report.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (etag != null) { - _json["etag"] = etag; - } - if (items != null) { - _json["items"] = items.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Reporting Configuration */ -class ReportsConfiguration { - /** - * Whether the exposure to conversion report is enabled. This report shows - * detailed pathway information on up to 10 of the most recent ad exposures - * seen by a user before converting. - */ - core.bool exposureToConversionEnabled; - /** Default lookback windows for new advertisers in this account. */ - LookbackConfiguration lookbackConfiguration; - /** - * Report generation time zone ID of this account. This is a required field - * that can only be changed by a superuser. - * Acceptable values are: - * - * - "1" for "America/New_York" - * - "2" for "Europe/London" - * - "3" for "Europe/Paris" - * - "4" for "Africa/Johannesburg" - * - "5" for "Asia/Jerusalem" - * - "6" for "Asia/Shanghai" - * - "7" for "Asia/Hong_Kong" - * - "8" for "Asia/Tokyo" - * - "9" for "Australia/Sydney" - * - "10" for "Asia/Dubai" - * - "11" for "America/Los_Angeles" - * - "12" for "Pacific/Auckland" - * - "13" for "America/Sao_Paulo" - */ - core.String reportGenerationTimeZoneId; - - ReportsConfiguration(); - - ReportsConfiguration.fromJson(core.Map _json) { - if (_json.containsKey("exposureToConversionEnabled")) { - exposureToConversionEnabled = _json["exposureToConversionEnabled"]; - } - if (_json.containsKey("lookbackConfiguration")) { - lookbackConfiguration = new LookbackConfiguration.fromJson(_json["lookbackConfiguration"]); - } - if (_json.containsKey("reportGenerationTimeZoneId")) { - reportGenerationTimeZoneId = _json["reportGenerationTimeZoneId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (exposureToConversionEnabled != null) { - _json["exposureToConversionEnabled"] = exposureToConversionEnabled; - } - if (lookbackConfiguration != null) { - _json["lookbackConfiguration"] = (lookbackConfiguration).toJson(); - } - if (reportGenerationTimeZoneId != null) { - _json["reportGenerationTimeZoneId"] = reportGenerationTimeZoneId; - } - return _json; - } -} - -/** Rich Media Exit Override. */ -class RichMediaExitOverride { - /** - * Click-through URL of this rich media exit override. Applicable if the - * enabled field is set to true. - */ - ClickThroughUrl clickThroughUrl; - /** - * Whether to use the clickThroughUrl. If false, the creative-level exit will - * be used. - */ - core.bool enabled; - /** ID for the override to refer to a specific exit in the creative. */ - core.String exitId; - - RichMediaExitOverride(); - - RichMediaExitOverride.fromJson(core.Map _json) { - if (_json.containsKey("clickThroughUrl")) { - clickThroughUrl = new ClickThroughUrl.fromJson(_json["clickThroughUrl"]); - } - if (_json.containsKey("enabled")) { - enabled = _json["enabled"]; - } - if (_json.containsKey("exitId")) { - exitId = _json["exitId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (clickThroughUrl != null) { - _json["clickThroughUrl"] = (clickThroughUrl).toJson(); - } - if (enabled != null) { - _json["enabled"] = enabled; - } - if (exitId != null) { - _json["exitId"] = exitId; - } - return _json; - } -} - -/** - * A rule associates an asset with a targeting template for asset-level - * targeting. Applicable to INSTREAM_VIDEO creatives. - */ -class Rule { - /** - * A creativeAssets[].id. This should refer to one of the parent assets in - * this creative. This is a required field. - */ - core.String assetId; - /** A user-friendly name for this rule. This is a required field. */ - core.String name; - /** - * A targeting template ID. The targeting from the targeting template will be - * used to determine whether this asset should be served. This is a required - * field. - */ - core.String targetingTemplateId; - - Rule(); - - Rule.fromJson(core.Map _json) { - if (_json.containsKey("assetId")) { - assetId = _json["assetId"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("targetingTemplateId")) { - targetingTemplateId = _json["targetingTemplateId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (assetId != null) { - _json["assetId"] = assetId; - } - if (name != null) { - _json["name"] = name; - } - if (targetingTemplateId != null) { - _json["targetingTemplateId"] = targetingTemplateId; - } - return _json; - } -} - -/** Contains properties of a site. */ -class Site { - /** - * Account ID of this site. This is a read-only field that can be left blank. - */ - core.String accountId; - /** Whether this site is approved. */ - core.bool approved; - /** - * Directory site associated with this site. This is a required field that is - * read-only after insertion. - */ - core.String directorySiteId; - /** - * Dimension value for the ID of the directory site. This is a read-only, - * auto-generated field. - */ - DimensionValue directorySiteIdDimensionValue; - /** ID of this site. This is a read-only, auto-generated field. */ - core.String id; - /** - * Dimension value for the ID of this site. This is a read-only, - * auto-generated field. - */ - DimensionValue idDimensionValue; - /** Key name of this site. This is a read-only, auto-generated field. */ - core.String keyName; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#site". - */ - core.String kind; - /** - * Name of this site.This is a required field. Must be less than 128 - * characters long. If this site is under a subaccount, the name must be - * unique among sites of the same subaccount. Otherwise, this site is a - * top-level site, and the name must be unique among top-level sites of the - * same account. - */ - core.String name; - /** Site contacts. */ - core.List<SiteContact> siteContacts; - /** Site-wide settings. */ - SiteSettings siteSettings; - /** - * Subaccount ID of this site. This is a read-only field that can be left - * blank. - */ - core.String subaccountId; - - Site(); - - Site.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("approved")) { - approved = _json["approved"]; - } - if (_json.containsKey("directorySiteId")) { - directorySiteId = _json["directorySiteId"]; - } - if (_json.containsKey("directorySiteIdDimensionValue")) { - directorySiteIdDimensionValue = new DimensionValue.fromJson(_json["directorySiteIdDimensionValue"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("keyName")) { - keyName = _json["keyName"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("siteContacts")) { - siteContacts = _json["siteContacts"].map((value) => new SiteContact.fromJson(value)).toList(); - } - if (_json.containsKey("siteSettings")) { - siteSettings = new SiteSettings.fromJson(_json["siteSettings"]); - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (approved != null) { - _json["approved"] = approved; - } - if (directorySiteId != null) { - _json["directorySiteId"] = directorySiteId; - } - if (directorySiteIdDimensionValue != null) { - _json["directorySiteIdDimensionValue"] = (directorySiteIdDimensionValue).toJson(); - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (keyName != null) { - _json["keyName"] = keyName; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (siteContacts != null) { - _json["siteContacts"] = siteContacts.map((value) => (value).toJson()).toList(); - } - if (siteSettings != null) { - _json["siteSettings"] = (siteSettings).toJson(); - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - return _json; - } -} - -/** Site Contact */ -class SiteContact { - /** Address of this site contact. */ - core.String address; - /** - * Site contact type. - * Possible string values are: - * - "SALES_PERSON" - * - "TRAFFICKER" - */ - core.String contactType; - /** Email address of this site contact. This is a required field. */ - core.String email; - /** First name of this site contact. */ - core.String firstName; - /** ID of this site contact. This is a read-only, auto-generated field. */ - core.String id; - /** Last name of this site contact. */ - core.String lastName; - /** Primary phone number of this site contact. */ - core.String phone; - /** Title or designation of this site contact. */ - core.String title; - - SiteContact(); - - SiteContact.fromJson(core.Map _json) { - if (_json.containsKey("address")) { - address = _json["address"]; - } - if (_json.containsKey("contactType")) { - contactType = _json["contactType"]; - } - if (_json.containsKey("email")) { - email = _json["email"]; - } - if (_json.containsKey("firstName")) { - firstName = _json["firstName"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("lastName")) { - lastName = _json["lastName"]; - } - if (_json.containsKey("phone")) { - phone = _json["phone"]; - } - if (_json.containsKey("title")) { - title = _json["title"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (address != null) { - _json["address"] = address; - } - if (contactType != null) { - _json["contactType"] = contactType; - } - if (email != null) { - _json["email"] = email; - } - if (firstName != null) { - _json["firstName"] = firstName; - } - if (id != null) { - _json["id"] = id; - } - if (lastName != null) { - _json["lastName"] = lastName; - } - if (phone != null) { - _json["phone"] = phone; - } - if (title != null) { - _json["title"] = title; - } - return _json; - } -} - -/** Site Settings */ -class SiteSettings { - /** Whether active view creatives are disabled for this site. */ - core.bool activeViewOptOut; - /** Site-wide creative settings. */ - CreativeSettings creativeSettings; - /** Whether brand safe ads are disabled for this site. */ - core.bool disableBrandSafeAds; - /** Whether new cookies are disabled for this site. */ - core.bool disableNewCookie; - /** Lookback window settings for this site. */ - LookbackConfiguration lookbackConfiguration; - /** Configuration settings for dynamic and image floodlight tags. */ - TagSetting tagSetting; - /** - * Whether Verification and ActiveView are disabled for in-stream video - * creatives on this site. The same setting videoActiveViewOptOut exists on - * the directory site level -- the opt out occurs if either of these settings - * are true. These settings are distinct from - * DirectorySites.settings.activeViewOptOut or - * Sites.siteSettings.activeViewOptOut which only apply to display ads. - * However, Accounts.activeViewOptOut opts out both video traffic, as well as - * display ads, from Verification and ActiveView. - */ - core.bool videoActiveViewOptOut; - - SiteSettings(); - - SiteSettings.fromJson(core.Map _json) { - if (_json.containsKey("activeViewOptOut")) { - activeViewOptOut = _json["activeViewOptOut"]; - } - if (_json.containsKey("creativeSettings")) { - creativeSettings = new CreativeSettings.fromJson(_json["creativeSettings"]); - } - if (_json.containsKey("disableBrandSafeAds")) { - disableBrandSafeAds = _json["disableBrandSafeAds"]; - } - if (_json.containsKey("disableNewCookie")) { - disableNewCookie = _json["disableNewCookie"]; - } - if (_json.containsKey("lookbackConfiguration")) { - lookbackConfiguration = new LookbackConfiguration.fromJson(_json["lookbackConfiguration"]); - } - if (_json.containsKey("tagSetting")) { - tagSetting = new TagSetting.fromJson(_json["tagSetting"]); - } - if (_json.containsKey("videoActiveViewOptOut")) { - videoActiveViewOptOut = _json["videoActiveViewOptOut"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (activeViewOptOut != null) { - _json["activeViewOptOut"] = activeViewOptOut; - } - if (creativeSettings != null) { - _json["creativeSettings"] = (creativeSettings).toJson(); - } - if (disableBrandSafeAds != null) { - _json["disableBrandSafeAds"] = disableBrandSafeAds; - } - if (disableNewCookie != null) { - _json["disableNewCookie"] = disableNewCookie; - } - if (lookbackConfiguration != null) { - _json["lookbackConfiguration"] = (lookbackConfiguration).toJson(); - } - if (tagSetting != null) { - _json["tagSetting"] = (tagSetting).toJson(); - } - if (videoActiveViewOptOut != null) { - _json["videoActiveViewOptOut"] = videoActiveViewOptOut; - } - return _json; - } -} - -/** Site List Response */ -class SitesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#sitesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Site collection. */ - core.List<Site> sites; - - SitesListResponse(); - - SitesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("sites")) { - sites = _json["sites"].map((value) => new Site.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (sites != null) { - _json["sites"] = sites.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** - * Represents the dimensions of ads, placements, creatives, or creative assets. - */ -class Size { - /** Height of this size. Acceptable values are 0 to 32767, inclusive. */ - core.int height; - /** IAB standard size. This is a read-only, auto-generated field. */ - core.bool iab; - /** ID of this size. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#size". - */ - core.String kind; - /** Width of this size. Acceptable values are 0 to 32767, inclusive. */ - core.int width; - - Size(); - - Size.fromJson(core.Map _json) { - if (_json.containsKey("height")) { - height = _json["height"]; - } - if (_json.containsKey("iab")) { - iab = _json["iab"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("width")) { - width = _json["width"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (height != null) { - _json["height"] = height; - } - if (iab != null) { - _json["iab"] = iab; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (width != null) { - _json["width"] = width; - } - return _json; - } -} - -/** Size List Response */ -class SizesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#sizesListResponse". - */ - core.String kind; - /** Size collection. */ - core.List<Size> sizes; - - SizesListResponse(); - - SizesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("sizes")) { - sizes = _json["sizes"].map((value) => new Size.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (sizes != null) { - _json["sizes"] = sizes.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Represents a sorted dimension. */ -class SortedDimension { - /** - * The kind of resource this is, in this case dfareporting#sortedDimension. - */ - core.String kind; - /** The name of the dimension. */ - core.String name; - /** - * An optional sort order for the dimension column. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - */ - core.String sortOrder; - - SortedDimension(); - - SortedDimension.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("sortOrder")) { - sortOrder = _json["sortOrder"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (sortOrder != null) { - _json["sortOrder"] = sortOrder; - } - return _json; - } -} - -/** Contains properties of a DCM subaccount. */ -class Subaccount { - /** - * ID of the account that contains this subaccount. This is a read-only field - * that can be left blank. - */ - core.String accountId; - /** IDs of the available user role permissions for this subaccount. */ - core.List<core.String> availablePermissionIds; - /** ID of this subaccount. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#subaccount". - */ - core.String kind; - /** - * Name of this subaccount. This is a required field. Must be less than 128 - * characters long and be unique among subaccounts of the same account. - */ - core.String name; - - Subaccount(); - - Subaccount.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("availablePermissionIds")) { - availablePermissionIds = _json["availablePermissionIds"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (availablePermissionIds != null) { - _json["availablePermissionIds"] = availablePermissionIds; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Subaccount List Response */ -class SubaccountsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#subaccountsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Subaccount collection. */ - core.List<Subaccount> subaccounts; - - SubaccountsListResponse(); - - SubaccountsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("subaccounts")) { - subaccounts = _json["subaccounts"].map((value) => new Subaccount.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (subaccounts != null) { - _json["subaccounts"] = subaccounts.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Placement Tag Data */ -class TagData { - /** - * Ad associated with this placement tag. Applicable only when format is - * PLACEMENT_TAG_TRACKING. - */ - core.String adId; - /** Tag string to record a click. */ - core.String clickTag; - /** - * Creative associated with this placement tag. Applicable only when format is - * PLACEMENT_TAG_TRACKING. - */ - core.String creativeId; - /** - * TagData tag format of this tag. - * Possible string values are: - * - "PLACEMENT_TAG_CLICK_COMMANDS" - * - "PLACEMENT_TAG_IFRAME_ILAYER" - * - "PLACEMENT_TAG_IFRAME_JAVASCRIPT" - * - "PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY" - * - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH" - * - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3" - * - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4" - * - "PLACEMENT_TAG_INTERNAL_REDIRECT" - * - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT" - * - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT_LEGACY" - * - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT" - * - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT" - * - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT_LEGACY" - * - "PLACEMENT_TAG_JAVASCRIPT" - * - "PLACEMENT_TAG_JAVASCRIPT_LEGACY" - * - "PLACEMENT_TAG_STANDARD" - * - "PLACEMENT_TAG_TRACKING" - * - "PLACEMENT_TAG_TRACKING_IFRAME" - * - "PLACEMENT_TAG_TRACKING_JAVASCRIPT" - */ - core.String format; - /** Tag string for serving an ad. */ - core.String impressionTag; - - TagData(); - - TagData.fromJson(core.Map _json) { - if (_json.containsKey("adId")) { - adId = _json["adId"]; - } - if (_json.containsKey("clickTag")) { - clickTag = _json["clickTag"]; - } - if (_json.containsKey("creativeId")) { - creativeId = _json["creativeId"]; - } - if (_json.containsKey("format")) { - format = _json["format"]; - } - if (_json.containsKey("impressionTag")) { - impressionTag = _json["impressionTag"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (adId != null) { - _json["adId"] = adId; - } - if (clickTag != null) { - _json["clickTag"] = clickTag; - } - if (creativeId != null) { - _json["creativeId"] = creativeId; - } - if (format != null) { - _json["format"] = format; - } - if (impressionTag != null) { - _json["impressionTag"] = impressionTag; - } - return _json; - } -} - -/** Tag Settings */ -class TagSetting { - /** - * Additional key-values to be included in tags. Each key-value pair must be - * of the form key=value, and pairs must be separated by a semicolon (;). Keys - * and values must not contain commas. For example, id=2;color=red is a valid - * value for this field. - */ - core.String additionalKeyValues; - /** - * Whether static landing page URLs should be included in the tags. This - * setting applies only to placements. - */ - core.bool includeClickThroughUrls; - /** Whether click-tracking string should be included in the tags. */ - core.bool includeClickTracking; - /** - * Option specifying how keywords are embedded in ad tags. This setting can be - * used to specify whether keyword placeholders are inserted in placement tags - * for this site. Publishers can then add keywords to those placeholders. - * Possible string values are: - * - "GENERATE_SEPARATE_TAG_FOR_EACH_KEYWORD" - * - "IGNORE" - * - "PLACEHOLDER_WITH_LIST_OF_KEYWORDS" - */ - core.String keywordOption; - - TagSetting(); - - TagSetting.fromJson(core.Map _json) { - if (_json.containsKey("additionalKeyValues")) { - additionalKeyValues = _json["additionalKeyValues"]; - } - if (_json.containsKey("includeClickThroughUrls")) { - includeClickThroughUrls = _json["includeClickThroughUrls"]; - } - if (_json.containsKey("includeClickTracking")) { - includeClickTracking = _json["includeClickTracking"]; - } - if (_json.containsKey("keywordOption")) { - keywordOption = _json["keywordOption"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (additionalKeyValues != null) { - _json["additionalKeyValues"] = additionalKeyValues; - } - if (includeClickThroughUrls != null) { - _json["includeClickThroughUrls"] = includeClickThroughUrls; - } - if (includeClickTracking != null) { - _json["includeClickTracking"] = includeClickTracking; - } - if (keywordOption != null) { - _json["keywordOption"] = keywordOption; - } - return _json; - } -} - -/** Dynamic and Image Tag Settings. */ -class TagSettings { - /** Whether dynamic floodlight tags are enabled. */ - core.bool dynamicTagEnabled; - /** Whether image tags are enabled. */ - core.bool imageTagEnabled; - - TagSettings(); - - TagSettings.fromJson(core.Map _json) { - if (_json.containsKey("dynamicTagEnabled")) { - dynamicTagEnabled = _json["dynamicTagEnabled"]; - } - if (_json.containsKey("imageTagEnabled")) { - imageTagEnabled = _json["imageTagEnabled"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dynamicTagEnabled != null) { - _json["dynamicTagEnabled"] = dynamicTagEnabled; - } - if (imageTagEnabled != null) { - _json["imageTagEnabled"] = imageTagEnabled; - } - return _json; - } -} - -/** Target Window. */ -class TargetWindow { - /** User-entered value. */ - core.String customHtml; - /** - * Type of browser window for which the backup image of the flash creative can - * be displayed. - * Possible string values are: - * - "CURRENT_WINDOW" - * - "CUSTOM" - * - "NEW_WINDOW" - */ - core.String targetWindowOption; - - TargetWindow(); - - TargetWindow.fromJson(core.Map _json) { - if (_json.containsKey("customHtml")) { - customHtml = _json["customHtml"]; - } - if (_json.containsKey("targetWindowOption")) { - targetWindowOption = _json["targetWindowOption"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (customHtml != null) { - _json["customHtml"] = customHtml; - } - if (targetWindowOption != null) { - _json["targetWindowOption"] = targetWindowOption; - } - return _json; - } -} - -/** - * Contains properties of a targetable remarketing list. Remarketing enables you - * to create lists of users who have performed specific actions on a site, then - * target ads to members of those lists. This resource is a read-only view of a - * remarketing list to be used to faciliate targeting ads to specific lists. - * Remarketing lists that are owned by your advertisers and those that are - * shared to your advertisers or account are accessible via this resource. To - * manage remarketing lists that are owned by your advertisers, use the - * RemarketingLists resource. - */ -class TargetableRemarketingList { - /** - * Account ID of this remarketing list. This is a read-only, auto-generated - * field that is only returned in GET requests. - */ - core.String accountId; - /** Whether this targetable remarketing list is active. */ - core.bool active; - /** - * Dimension value for the advertiser ID that owns this targetable remarketing - * list. - */ - core.String advertiserId; - /** Dimension value for the ID of the advertiser. */ - DimensionValue advertiserIdDimensionValue; - /** Targetable remarketing list description. */ - core.String description; - /** Targetable remarketing list ID. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#targetableRemarketingList". - */ - core.String kind; - /** - * Number of days that a user should remain in the targetable remarketing list - * without an impression. - */ - core.String lifeSpan; - /** Number of users currently in the list. This is a read-only field. */ - core.String listSize; - /** - * Product from which this targetable remarketing list was originated. - * Possible string values are: - * - "REMARKETING_LIST_SOURCE_ADX" - * - "REMARKETING_LIST_SOURCE_DBM" - * - "REMARKETING_LIST_SOURCE_DFA" - * - "REMARKETING_LIST_SOURCE_DFP" - * - "REMARKETING_LIST_SOURCE_DMP" - * - "REMARKETING_LIST_SOURCE_GA" - * - "REMARKETING_LIST_SOURCE_GPLUS" - * - "REMARKETING_LIST_SOURCE_OTHER" - * - "REMARKETING_LIST_SOURCE_PLAY_STORE" - * - "REMARKETING_LIST_SOURCE_XFP" - * - "REMARKETING_LIST_SOURCE_YOUTUBE" - */ - core.String listSource; - /** - * Name of the targetable remarketing list. Is no greater than 128 characters - * long. - */ - core.String name; - /** - * Subaccount ID of this remarketing list. This is a read-only, auto-generated - * field that is only returned in GET requests. - */ - core.String subaccountId; - - TargetableRemarketingList(); - - TargetableRemarketingList.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("description")) { - description = _json["description"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lifeSpan")) { - lifeSpan = _json["lifeSpan"]; - } - if (_json.containsKey("listSize")) { - listSize = _json["listSize"]; - } - if (_json.containsKey("listSource")) { - listSource = _json["listSource"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (active != null) { - _json["active"] = active; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (description != null) { - _json["description"] = description; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lifeSpan != null) { - _json["lifeSpan"] = lifeSpan; - } - if (listSize != null) { - _json["listSize"] = listSize; - } - if (listSource != null) { - _json["listSource"] = listSource; - } - if (name != null) { - _json["name"] = name; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - return _json; - } -} - -/** Targetable remarketing list response */ -class TargetableRemarketingListsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#targetableRemarketingListsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Targetable remarketing list collection. */ - core.List<TargetableRemarketingList> targetableRemarketingLists; - - TargetableRemarketingListsListResponse(); - - TargetableRemarketingListsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("targetableRemarketingLists")) { - targetableRemarketingLists = _json["targetableRemarketingLists"].map((value) => new TargetableRemarketingList.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (targetableRemarketingLists != null) { - _json["targetableRemarketingLists"] = targetableRemarketingLists.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** - * Contains properties of a targeting template. A targeting template - * encapsulates targeting information which can be reused across multiple ads. - */ -class TargetingTemplate { - /** - * Account ID of this targeting template. This field, if left unset, will be - * auto-generated on insert and is read-only after insert. - */ - core.String accountId; - /** - * Advertiser ID of this targeting template. This is a required field on - * insert and is read-only after insert. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** Time and day targeting criteria. */ - DayPartTargeting dayPartTargeting; - /** Geographical targeting criteria. */ - GeoTargeting geoTargeting; - /** - * ID of this targeting template. This is a read-only, auto-generated field. - */ - core.String id; - /** Key-value targeting criteria. */ - KeyValueTargetingExpression keyValueTargetingExpression; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#targetingTemplate". - */ - core.String kind; - /** Language targeting criteria. */ - LanguageTargeting languageTargeting; - /** Remarketing list targeting criteria. */ - ListTargetingExpression listTargetingExpression; - /** - * Name of this targeting template. This field is required. It must be less - * than 256 characters long and unique within an advertiser. - */ - core.String name; - /** - * Subaccount ID of this targeting template. This field, if left unset, will - * be auto-generated on insert and is read-only after insert. - */ - core.String subaccountId; - /** Technology platform targeting criteria. */ - TechnologyTargeting technologyTargeting; - - TargetingTemplate(); - - TargetingTemplate.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("dayPartTargeting")) { - dayPartTargeting = new DayPartTargeting.fromJson(_json["dayPartTargeting"]); - } - if (_json.containsKey("geoTargeting")) { - geoTargeting = new GeoTargeting.fromJson(_json["geoTargeting"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("keyValueTargetingExpression")) { - keyValueTargetingExpression = new KeyValueTargetingExpression.fromJson(_json["keyValueTargetingExpression"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("languageTargeting")) { - languageTargeting = new LanguageTargeting.fromJson(_json["languageTargeting"]); - } - if (_json.containsKey("listTargetingExpression")) { - listTargetingExpression = new ListTargetingExpression.fromJson(_json["listTargetingExpression"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("technologyTargeting")) { - technologyTargeting = new TechnologyTargeting.fromJson(_json["technologyTargeting"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (dayPartTargeting != null) { - _json["dayPartTargeting"] = (dayPartTargeting).toJson(); - } - if (geoTargeting != null) { - _json["geoTargeting"] = (geoTargeting).toJson(); - } - if (id != null) { - _json["id"] = id; - } - if (keyValueTargetingExpression != null) { - _json["keyValueTargetingExpression"] = (keyValueTargetingExpression).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (languageTargeting != null) { - _json["languageTargeting"] = (languageTargeting).toJson(); - } - if (listTargetingExpression != null) { - _json["listTargetingExpression"] = (listTargetingExpression).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (technologyTargeting != null) { - _json["technologyTargeting"] = (technologyTargeting).toJson(); - } - return _json; - } -} - -/** Targeting Template List Response */ -class TargetingTemplatesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#targetingTemplatesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Targeting template collection. */ - core.List<TargetingTemplate> targetingTemplates; - - TargetingTemplatesListResponse(); - - TargetingTemplatesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("targetingTemplates")) { - targetingTemplates = _json["targetingTemplates"].map((value) => new TargetingTemplate.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (targetingTemplates != null) { - _json["targetingTemplates"] = targetingTemplates.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Technology Targeting. */ -class TechnologyTargeting { - /** - * Browsers that this ad targets. For each browser either set browserVersionId - * or dartId along with the version numbers. If both are specified, only - * browserVersionId will be used. The other fields are populated automatically - * when the ad is inserted or updated. - */ - core.List<Browser> browsers; - /** - * Connection types that this ad targets. For each connection type only id is - * required. The other fields are populated automatically when the ad is - * inserted or updated. - */ - core.List<ConnectionType> connectionTypes; - /** - * Mobile carriers that this ad targets. For each mobile carrier only id is - * required, and the other fields are populated automatically when the ad is - * inserted or updated. If targeting a mobile carrier, do not set targeting - * for any zip codes. - */ - core.List<MobileCarrier> mobileCarriers; - /** - * Operating system versions that this ad targets. To target all versions, use - * operatingSystems. For each operating system version, only id is required. - * The other fields are populated automatically when the ad is inserted or - * updated. If targeting an operating system version, do not set targeting for - * the corresponding operating system in operatingSystems. - */ - core.List<OperatingSystemVersion> operatingSystemVersions; - /** - * Operating systems that this ad targets. To target specific versions, use - * operatingSystemVersions. For each operating system only dartId is required. - * The other fields are populated automatically when the ad is inserted or - * updated. If targeting an operating system, do not set targeting for - * operating system versions for the same operating system. - */ - core.List<OperatingSystem> operatingSystems; - /** - * Platform types that this ad targets. For example, desktop, mobile, or - * tablet. For each platform type, only id is required, and the other fields - * are populated automatically when the ad is inserted or updated. - */ - core.List<PlatformType> platformTypes; - - TechnologyTargeting(); - - TechnologyTargeting.fromJson(core.Map _json) { - if (_json.containsKey("browsers")) { - browsers = _json["browsers"].map((value) => new Browser.fromJson(value)).toList(); - } - if (_json.containsKey("connectionTypes")) { - connectionTypes = _json["connectionTypes"].map((value) => new ConnectionType.fromJson(value)).toList(); - } - if (_json.containsKey("mobileCarriers")) { - mobileCarriers = _json["mobileCarriers"].map((value) => new MobileCarrier.fromJson(value)).toList(); - } - if (_json.containsKey("operatingSystemVersions")) { - operatingSystemVersions = _json["operatingSystemVersions"].map((value) => new OperatingSystemVersion.fromJson(value)).toList(); - } - if (_json.containsKey("operatingSystems")) { - operatingSystems = _json["operatingSystems"].map((value) => new OperatingSystem.fromJson(value)).toList(); - } - if (_json.containsKey("platformTypes")) { - platformTypes = _json["platformTypes"].map((value) => new PlatformType.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (browsers != null) { - _json["browsers"] = browsers.map((value) => (value).toJson()).toList(); - } - if (connectionTypes != null) { - _json["connectionTypes"] = connectionTypes.map((value) => (value).toJson()).toList(); - } - if (mobileCarriers != null) { - _json["mobileCarriers"] = mobileCarriers.map((value) => (value).toJson()).toList(); - } - if (operatingSystemVersions != null) { - _json["operatingSystemVersions"] = operatingSystemVersions.map((value) => (value).toJson()).toList(); - } - if (operatingSystems != null) { - _json["operatingSystems"] = operatingSystems.map((value) => (value).toJson()).toList(); - } - if (platformTypes != null) { - _json["platformTypes"] = platformTypes.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Third Party Authentication Token */ -class ThirdPartyAuthenticationToken { - /** Name of the third-party authentication token. */ - core.String name; - /** - * Value of the third-party authentication token. This is a read-only, - * auto-generated field. - */ - core.String value; - - ThirdPartyAuthenticationToken(); - - ThirdPartyAuthenticationToken.fromJson(core.Map _json) { - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (name != null) { - _json["name"] = name; - } - if (value != null) { - _json["value"] = value; - } - return _json; - } -} - -/** Third-party Tracking URL. */ -class ThirdPartyTrackingUrl { - /** - * Third-party URL type for in-stream video creatives. - * Possible string values are: - * - "CLICK_TRACKING" - * - "IMPRESSION" - * - "RICH_MEDIA_BACKUP_IMPRESSION" - * - "RICH_MEDIA_IMPRESSION" - * - "RICH_MEDIA_RM_IMPRESSION" - * - "SURVEY" - * - "VIDEO_COMPLETE" - * - "VIDEO_CUSTOM" - * - "VIDEO_FIRST_QUARTILE" - * - "VIDEO_FULLSCREEN" - * - "VIDEO_MIDPOINT" - * - "VIDEO_MUTE" - * - "VIDEO_PAUSE" - * - "VIDEO_PROGRESS" - * - "VIDEO_REWIND" - * - "VIDEO_SKIP" - * - "VIDEO_START" - * - "VIDEO_STOP" - * - "VIDEO_THIRD_QUARTILE" - */ - core.String thirdPartyUrlType; - /** URL for the specified third-party URL type. */ - core.String url; - - ThirdPartyTrackingUrl(); - - ThirdPartyTrackingUrl.fromJson(core.Map _json) { - if (_json.containsKey("thirdPartyUrlType")) { - thirdPartyUrlType = _json["thirdPartyUrlType"]; - } - if (_json.containsKey("url")) { - url = _json["url"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (thirdPartyUrlType != null) { - _json["thirdPartyUrlType"] = thirdPartyUrlType; - } - if (url != null) { - _json["url"] = url; - } - return _json; - } -} - -/** User Defined Variable configuration. */ -class UserDefinedVariableConfiguration { - /** - * Data type for the variable. This is a required field. - * Possible string values are: - * - "NUMBER" - * - "STRING" - */ - core.String dataType; - /** - * User-friendly name for the variable which will appear in reports. This is a - * required field, must be less than 64 characters long, and cannot contain - * the following characters: ""<>". - */ - core.String reportName; - /** - * Variable name in the tag. This is a required field. - * Possible string values are: - * - "U1" - * - "U10" - * - "U100" - * - "U11" - * - "U12" - * - "U13" - * - "U14" - * - "U15" - * - "U16" - * - "U17" - * - "U18" - * - "U19" - * - "U2" - * - "U20" - * - "U21" - * - "U22" - * - "U23" - * - "U24" - * - "U25" - * - "U26" - * - "U27" - * - "U28" - * - "U29" - * - "U3" - * - "U30" - * - "U31" - * - "U32" - * - "U33" - * - "U34" - * - "U35" - * - "U36" - * - "U37" - * - "U38" - * - "U39" - * - "U4" - * - "U40" - * - "U41" - * - "U42" - * - "U43" - * - "U44" - * - "U45" - * - "U46" - * - "U47" - * - "U48" - * - "U49" - * - "U5" - * - "U50" - * - "U51" - * - "U52" - * - "U53" - * - "U54" - * - "U55" - * - "U56" - * - "U57" - * - "U58" - * - "U59" - * - "U6" - * - "U60" - * - "U61" - * - "U62" - * - "U63" - * - "U64" - * - "U65" - * - "U66" - * - "U67" - * - "U68" - * - "U69" - * - "U7" - * - "U70" - * - "U71" - * - "U72" - * - "U73" - * - "U74" - * - "U75" - * - "U76" - * - "U77" - * - "U78" - * - "U79" - * - "U8" - * - "U80" - * - "U81" - * - "U82" - * - "U83" - * - "U84" - * - "U85" - * - "U86" - * - "U87" - * - "U88" - * - "U89" - * - "U9" - * - "U90" - * - "U91" - * - "U92" - * - "U93" - * - "U94" - * - "U95" - * - "U96" - * - "U97" - * - "U98" - * - "U99" - */ - core.String variableType; - - UserDefinedVariableConfiguration(); - - UserDefinedVariableConfiguration.fromJson(core.Map _json) { - if (_json.containsKey("dataType")) { - dataType = _json["dataType"]; - } - if (_json.containsKey("reportName")) { - reportName = _json["reportName"]; - } - if (_json.containsKey("variableType")) { - variableType = _json["variableType"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dataType != null) { - _json["dataType"] = dataType; - } - if (reportName != null) { - _json["reportName"] = reportName; - } - if (variableType != null) { - _json["variableType"] = variableType; - } - return _json; - } -} - -/** Represents a UserProfile resource. */ -class UserProfile { - /** The account ID to which this profile belongs. */ - core.String accountId; - /** The account name this profile belongs to. */ - core.String accountName; - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The kind of resource this is, in this case dfareporting#userProfile. */ - core.String kind; - /** The unique ID of the user profile. */ - core.String profileId; - /** The sub account ID this profile belongs to if applicable. */ - core.String subAccountId; - /** The sub account name this profile belongs to if applicable. */ - core.String subAccountName; - /** The user name. */ - core.String userName; - - UserProfile(); - - UserProfile.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("accountName")) { - accountName = _json["accountName"]; - } - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("profileId")) { - profileId = _json["profileId"]; - } - if (_json.containsKey("subAccountId")) { - subAccountId = _json["subAccountId"]; - } - if (_json.containsKey("subAccountName")) { - subAccountName = _json["subAccountName"]; - } - if (_json.containsKey("userName")) { - userName = _json["userName"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (accountName != null) { - _json["accountName"] = accountName; - } - if (etag != null) { - _json["etag"] = etag; - } - if (kind != null) { - _json["kind"] = kind; - } - if (profileId != null) { - _json["profileId"] = profileId; - } - if (subAccountId != null) { - _json["subAccountId"] = subAccountId; - } - if (subAccountName != null) { - _json["subAccountName"] = subAccountName; - } - if (userName != null) { - _json["userName"] = userName; - } - return _json; - } -} - -/** Represents the list of user profiles. */ -class UserProfileList { - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The user profiles returned in this response. */ - core.List<UserProfile> items; - /** The kind of list this is, in this case dfareporting#userProfileList. */ - core.String kind; - - UserProfileList(); - - UserProfileList.fromJson(core.Map _json) { - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("items")) { - items = _json["items"].map((value) => new UserProfile.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (etag != null) { - _json["etag"] = etag; - } - if (items != null) { - _json["items"] = items.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Contains properties of auser role, which is used to manage user access. */ -class UserRole { - /** - * Account ID of this user role. This is a read-only field that can be left - * blank. - */ - core.String accountId; - /** - * Whether this is a default user role. Default user roles are created by the - * system for the account/subaccount and cannot be modified or deleted. Each - * default user role comes with a basic set of preassigned permissions. - */ - core.bool defaultUserRole; - /** ID of this user role. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#userRole". - */ - core.String kind; - /** - * Name of this user role. This is a required field. Must be less than 256 - * characters long. If this user role is under a subaccount, the name must be - * unique among sites of the same subaccount. Otherwise, this user role is a - * top-level user role, and the name must be unique among top-level user roles - * of the same account. - */ - core.String name; - /** - * ID of the user role that this user role is based on or copied from. This is - * a required field. - */ - core.String parentUserRoleId; - /** List of permissions associated with this user role. */ - core.List<UserRolePermission> permissions; - /** - * Subaccount ID of this user role. This is a read-only field that can be left - * blank. - */ - core.String subaccountId; - - UserRole(); - - UserRole.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("defaultUserRole")) { - defaultUserRole = _json["defaultUserRole"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("parentUserRoleId")) { - parentUserRoleId = _json["parentUserRoleId"]; - } - if (_json.containsKey("permissions")) { - permissions = _json["permissions"].map((value) => new UserRolePermission.fromJson(value)).toList(); - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (defaultUserRole != null) { - _json["defaultUserRole"] = defaultUserRole; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (parentUserRoleId != null) { - _json["parentUserRoleId"] = parentUserRoleId; - } - if (permissions != null) { - _json["permissions"] = permissions.map((value) => (value).toJson()).toList(); - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - return _json; - } -} - -/** Contains properties of a user role permission. */ -class UserRolePermission { - /** - * Levels of availability for a user role permission. - * Possible string values are: - * - "ACCOUNT_ALWAYS" - * - "ACCOUNT_BY_DEFAULT" - * - "NOT_AVAILABLE_BY_DEFAULT" - * - "SUBACCOUNT_AND_ACCOUNT_ALWAYS" - * - "SUBACCOUNT_AND_ACCOUNT_BY_DEFAULT" - */ - core.String availability; - /** ID of this user role permission. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#userRolePermission". - */ - core.String kind; - /** Name of this user role permission. */ - core.String name; - /** ID of the permission group that this user role permission belongs to. */ - core.String permissionGroupId; - - UserRolePermission(); - - UserRolePermission.fromJson(core.Map _json) { - if (_json.containsKey("availability")) { - availability = _json["availability"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("permissionGroupId")) { - permissionGroupId = _json["permissionGroupId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (availability != null) { - _json["availability"] = availability; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (permissionGroupId != null) { - _json["permissionGroupId"] = permissionGroupId; - } - return _json; - } -} - -/** Represents a grouping of related user role permissions. */ -class UserRolePermissionGroup { - /** ID of this user role permission. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#userRolePermissionGroup". - */ - core.String kind; - /** Name of this user role permission group. */ - core.String name; - - UserRolePermissionGroup(); - - UserRolePermissionGroup.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** User Role Permission Group List Response */ -class UserRolePermissionGroupsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#userRolePermissionGroupsListResponse". - */ - core.String kind; - /** User role permission group collection. */ - core.List<UserRolePermissionGroup> userRolePermissionGroups; - - UserRolePermissionGroupsListResponse(); - - UserRolePermissionGroupsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("userRolePermissionGroups")) { - userRolePermissionGroups = _json["userRolePermissionGroups"].map((value) => new UserRolePermissionGroup.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (userRolePermissionGroups != null) { - _json["userRolePermissionGroups"] = userRolePermissionGroups.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** User Role Permission List Response */ -class UserRolePermissionsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#userRolePermissionsListResponse". - */ - core.String kind; - /** User role permission collection. */ - core.List<UserRolePermission> userRolePermissions; - - UserRolePermissionsListResponse(); - - UserRolePermissionsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("userRolePermissions")) { - userRolePermissions = _json["userRolePermissions"].map((value) => new UserRolePermission.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (userRolePermissions != null) { - _json["userRolePermissions"] = userRolePermissions.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** User Role List Response */ -class UserRolesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#userRolesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** User role collection. */ - core.List<UserRole> userRoles; - - UserRolesListResponse(); - - UserRolesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("userRoles")) { - userRoles = _json["userRoles"].map((value) => new UserRole.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (userRoles != null) { - _json["userRoles"] = userRoles.map((value) => (value).toJson()).toList(); - } - return _json; - } -}
diff --git a/generated/googleapis/lib/dfareporting/v2_7.dart b/generated/googleapis/lib/dfareporting/v2_7.dart deleted file mode 100644 index 8eaa024..0000000 --- a/generated/googleapis/lib/dfareporting/v2_7.dart +++ /dev/null
@@ -1,29063 +0,0 @@ -// This is a generated file (see the discoveryapis_generator project). - -library googleapis.dfareporting.v2_7; - -import 'dart:core' as core; -import 'dart:async' as async; -import 'dart:convert' as convert; - -import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; -import 'package:http/http.dart' as http; - -export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show - ApiRequestError, DetailedApiRequestError, Media, UploadOptions, - ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, - ByteRange; - -const core.String USER_AGENT = 'dart-api-client dfareporting/v2.7'; - -/** Manages your DoubleClick Campaign Manager ad campaigns and reports. */ -class DfareportingApi { - /** Manage DoubleClick Digital Marketing conversions */ - static const DdmconversionsScope = "https://www.googleapis.com/auth/ddmconversions"; - - /** View and manage DoubleClick for Advertisers reports */ - static const DfareportingScope = "https://www.googleapis.com/auth/dfareporting"; - - /** - * View and manage your DoubleClick Campaign Manager's (DCM) display ad - * campaigns - */ - static const DfatraffickingScope = "https://www.googleapis.com/auth/dfatrafficking"; - - - final commons.ApiRequester _requester; - - AccountActiveAdSummariesResourceApi get accountActiveAdSummaries => new AccountActiveAdSummariesResourceApi(_requester); - AccountPermissionGroupsResourceApi get accountPermissionGroups => new AccountPermissionGroupsResourceApi(_requester); - AccountPermissionsResourceApi get accountPermissions => new AccountPermissionsResourceApi(_requester); - AccountUserProfilesResourceApi get accountUserProfiles => new AccountUserProfilesResourceApi(_requester); - AccountsResourceApi get accounts => new AccountsResourceApi(_requester); - AdsResourceApi get ads => new AdsResourceApi(_requester); - AdvertiserGroupsResourceApi get advertiserGroups => new AdvertiserGroupsResourceApi(_requester); - AdvertisersResourceApi get advertisers => new AdvertisersResourceApi(_requester); - BrowsersResourceApi get browsers => new BrowsersResourceApi(_requester); - CampaignCreativeAssociationsResourceApi get campaignCreativeAssociations => new CampaignCreativeAssociationsResourceApi(_requester); - CampaignsResourceApi get campaigns => new CampaignsResourceApi(_requester); - ChangeLogsResourceApi get changeLogs => new ChangeLogsResourceApi(_requester); - CitiesResourceApi get cities => new CitiesResourceApi(_requester); - ConnectionTypesResourceApi get connectionTypes => new ConnectionTypesResourceApi(_requester); - ContentCategoriesResourceApi get contentCategories => new ContentCategoriesResourceApi(_requester); - ConversionsResourceApi get conversions => new ConversionsResourceApi(_requester); - CountriesResourceApi get countries => new CountriesResourceApi(_requester); - CreativeAssetsResourceApi get creativeAssets => new CreativeAssetsResourceApi(_requester); - CreativeFieldValuesResourceApi get creativeFieldValues => new CreativeFieldValuesResourceApi(_requester); - CreativeFieldsResourceApi get creativeFields => new CreativeFieldsResourceApi(_requester); - CreativeGroupsResourceApi get creativeGroups => new CreativeGroupsResourceApi(_requester); - CreativesResourceApi get creatives => new CreativesResourceApi(_requester); - DimensionValuesResourceApi get dimensionValues => new DimensionValuesResourceApi(_requester); - DirectorySiteContactsResourceApi get directorySiteContacts => new DirectorySiteContactsResourceApi(_requester); - DirectorySitesResourceApi get directorySites => new DirectorySitesResourceApi(_requester); - DynamicTargetingKeysResourceApi get dynamicTargetingKeys => new DynamicTargetingKeysResourceApi(_requester); - EventTagsResourceApi get eventTags => new EventTagsResourceApi(_requester); - FilesResourceApi get files => new FilesResourceApi(_requester); - FloodlightActivitiesResourceApi get floodlightActivities => new FloodlightActivitiesResourceApi(_requester); - FloodlightActivityGroupsResourceApi get floodlightActivityGroups => new FloodlightActivityGroupsResourceApi(_requester); - FloodlightConfigurationsResourceApi get floodlightConfigurations => new FloodlightConfigurationsResourceApi(_requester); - InventoryItemsResourceApi get inventoryItems => new InventoryItemsResourceApi(_requester); - LandingPagesResourceApi get landingPages => new LandingPagesResourceApi(_requester); - LanguagesResourceApi get languages => new LanguagesResourceApi(_requester); - MetrosResourceApi get metros => new MetrosResourceApi(_requester); - MobileCarriersResourceApi get mobileCarriers => new MobileCarriersResourceApi(_requester); - OperatingSystemVersionsResourceApi get operatingSystemVersions => new OperatingSystemVersionsResourceApi(_requester); - OperatingSystemsResourceApi get operatingSystems => new OperatingSystemsResourceApi(_requester); - OrderDocumentsResourceApi get orderDocuments => new OrderDocumentsResourceApi(_requester); - OrdersResourceApi get orders => new OrdersResourceApi(_requester); - PlacementGroupsResourceApi get placementGroups => new PlacementGroupsResourceApi(_requester); - PlacementStrategiesResourceApi get placementStrategies => new PlacementStrategiesResourceApi(_requester); - PlacementsResourceApi get placements => new PlacementsResourceApi(_requester); - PlatformTypesResourceApi get platformTypes => new PlatformTypesResourceApi(_requester); - PostalCodesResourceApi get postalCodes => new PostalCodesResourceApi(_requester); - ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); - RegionsResourceApi get regions => new RegionsResourceApi(_requester); - RemarketingListSharesResourceApi get remarketingListShares => new RemarketingListSharesResourceApi(_requester); - RemarketingListsResourceApi get remarketingLists => new RemarketingListsResourceApi(_requester); - ReportsResourceApi get reports => new ReportsResourceApi(_requester); - SitesResourceApi get sites => new SitesResourceApi(_requester); - SizesResourceApi get sizes => new SizesResourceApi(_requester); - SubaccountsResourceApi get subaccounts => new SubaccountsResourceApi(_requester); - TargetableRemarketingListsResourceApi get targetableRemarketingLists => new TargetableRemarketingListsResourceApi(_requester); - TargetingTemplatesResourceApi get targetingTemplates => new TargetingTemplatesResourceApi(_requester); - UserProfilesResourceApi get userProfiles => new UserProfilesResourceApi(_requester); - UserRolePermissionGroupsResourceApi get userRolePermissionGroups => new UserRolePermissionGroupsResourceApi(_requester); - UserRolePermissionsResourceApi get userRolePermissions => new UserRolePermissionsResourceApi(_requester); - UserRolesResourceApi get userRoles => new UserRolesResourceApi(_requester); - VideoFormatsResourceApi get videoFormats => new VideoFormatsResourceApi(_requester); - - DfareportingApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "dfareporting/v2.7/"}) : - _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); -} - - -class AccountActiveAdSummariesResourceApi { - final commons.ApiRequester _requester; - - AccountActiveAdSummariesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets the account's active ad summary by account ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [summaryAccountId] - Account ID. - * - * Completes with a [AccountActiveAdSummary]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AccountActiveAdSummary> get(core.String profileId, core.String summaryAccountId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (summaryAccountId == null) { - throw new core.ArgumentError("Parameter summaryAccountId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountActiveAdSummaries/' + commons.Escaper.ecapeVariable('$summaryAccountId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountActiveAdSummary.fromJson(data)); - } - -} - - -class AccountPermissionGroupsResourceApi { - final commons.ApiRequester _requester; - - AccountPermissionGroupsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one account permission group by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Account permission group ID. - * - * Completes with a [AccountPermissionGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AccountPermissionGroup> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountPermissionGroups/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountPermissionGroup.fromJson(data)); - } - - /** - * Retrieves the list of account permission groups. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [AccountPermissionGroupsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AccountPermissionGroupsListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountPermissionGroups'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountPermissionGroupsListResponse.fromJson(data)); - } - -} - - -class AccountPermissionsResourceApi { - final commons.ApiRequester _requester; - - AccountPermissionsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one account permission by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Account permission ID. - * - * Completes with a [AccountPermission]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AccountPermission> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountPermissions/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountPermission.fromJson(data)); - } - - /** - * Retrieves the list of account permissions. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [AccountPermissionsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AccountPermissionsListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountPermissions'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountPermissionsListResponse.fromJson(data)); - } - -} - - -class AccountUserProfilesResourceApi { - final commons.ApiRequester _requester; - - AccountUserProfilesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one account user profile by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - User profile ID. - * - * Completes with a [AccountUserProfile]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AccountUserProfile> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountUserProfiles/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountUserProfile.fromJson(data)); - } - - /** - * Inserts a new account user profile. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [AccountUserProfile]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AccountUserProfile> insert(AccountUserProfile request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountUserProfiles'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountUserProfile.fromJson(data)); - } - - /** - * Retrieves a list of account user profiles, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [active] - Select only active user profiles. - * - * [ids] - Select only user profiles with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name, ID or email. - * Wildcards (*) are allowed. For example, "user profile*2015" will return - * objects with names like "user profile June 2015", "user profile April - * 2015", or simply "user profile 2015". Most of the searches also add - * wildcards implicitly at the start and the end of the search string. For - * example, a search string of "user profile" will match objects with name "my - * user profile", "user profile 2015", or simply "user profile". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [subaccountId] - Select only user profiles with the specified subaccount - * ID. - * - * [userRoleId] - Select only user profiles with the specified user role ID. - * - * Completes with a [AccountUserProfilesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AccountUserProfilesListResponse> list(core.String profileId, {core.bool active, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder, core.String subaccountId, core.String userRoleId}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (active != null) { - _queryParams["active"] = ["${active}"]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (subaccountId != null) { - _queryParams["subaccountId"] = [subaccountId]; - } - if (userRoleId != null) { - _queryParams["userRoleId"] = [userRoleId]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountUserProfiles'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountUserProfilesListResponse.fromJson(data)); - } - - /** - * Updates an existing account user profile. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - User profile ID. - * - * Completes with a [AccountUserProfile]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AccountUserProfile> patch(AccountUserProfile request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountUserProfiles'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountUserProfile.fromJson(data)); - } - - /** - * Updates an existing account user profile. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [AccountUserProfile]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AccountUserProfile> update(AccountUserProfile request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountUserProfiles'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountUserProfile.fromJson(data)); - } - -} - - -class AccountsResourceApi { - final commons.ApiRequester _requester; - - AccountsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one account by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Account ID. - * - * Completes with a [Account]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Account> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accounts/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Account.fromJson(data)); - } - - /** - * Retrieves the list of accounts, possibly filtered. This method supports - * paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [active] - Select only active accounts. Don't set this field to select both - * active and non-active accounts. - * - * [ids] - Select only accounts with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "account*2015" will return objects with names - * like "account June 2015", "account April 2015", or simply "account 2015". - * Most of the searches also add wildcards implicitly at the start and the end - * of the search string. For example, a search string of "account" will match - * objects with name "my account", "account 2015", or simply "account". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [AccountsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AccountsListResponse> list(core.String profileId, {core.bool active, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (active != null) { - _queryParams["active"] = ["${active}"]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accounts'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountsListResponse.fromJson(data)); - } - - /** - * Updates an existing account. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Account ID. - * - * Completes with a [Account]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Account> patch(Account request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accounts'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Account.fromJson(data)); - } - - /** - * Updates an existing account. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Account]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Account> update(Account request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accounts'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Account.fromJson(data)); - } - -} - - -class AdsResourceApi { - final commons.ApiRequester _requester; - - AdsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one ad by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Ad ID. - * - * Completes with a [Ad]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Ad> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ads/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Ad.fromJson(data)); - } - - /** - * Inserts a new ad. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Ad]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Ad> insert(Ad request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ads'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Ad.fromJson(data)); - } - - /** - * Retrieves a list of ads, possibly filtered. This method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [active] - Select only active ads. - * - * [advertiserId] - Select only ads with this advertiser ID. - * - * [archived] - Select only archived ads. - * - * [audienceSegmentIds] - Select only ads with these audience segment IDs. - * - * [campaignIds] - Select only ads with these campaign IDs. - * - * [compatibility] - Select default ads with the specified compatibility. - * Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and - * DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile - * devices for regular or interstitial ads, respectively. APP and - * APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers - * to rendering an in-stream video ads developed with the VAST standard. - * Possible string values are: - * - "APP" - * - "APP_INTERSTITIAL" - * - "DISPLAY" - * - "DISPLAY_INTERSTITIAL" - * - "IN_STREAM_VIDEO" - * - * [creativeIds] - Select only ads with these creative IDs assigned. - * - * [creativeOptimizationConfigurationIds] - Select only ads with these - * creative optimization configuration IDs. - * - * [dynamicClickTracker] - Select only dynamic click trackers. Applicable when - * type is AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. - * If false, select static click trackers. Leave unset to select both. - * - * [ids] - Select only ads with these IDs. - * - * [landingPageIds] - Select only ads with these landing page IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [overriddenEventTagId] - Select only ads with this event tag override ID. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [placementIds] - Select only ads with these placement IDs assigned. - * - * [remarketingListIds] - Select only ads whose list targeting expression use - * these remarketing list IDs. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "ad*2015" will return objects with names like "ad - * June 2015", "ad April 2015", or simply "ad 2015". Most of the searches also - * add wildcards implicitly at the start and the end of the search string. For - * example, a search string of "ad" will match objects with name "my ad", "ad - * 2015", or simply "ad". - * - * [sizeIds] - Select only ads with these size IDs. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [sslCompliant] - Select only ads that are SSL-compliant. - * - * [sslRequired] - Select only ads that require SSL. - * - * [type] - Select only ads with these types. - * - * Completes with a [AdsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AdsListResponse> list(core.String profileId, {core.bool active, core.String advertiserId, core.bool archived, core.List<core.String> audienceSegmentIds, core.List<core.String> campaignIds, core.String compatibility, core.List<core.String> creativeIds, core.List<core.String> creativeOptimizationConfigurationIds, core.bool dynamicClickTracker, core.List<core.String> ids, core.List<core.String> landingPageIds, core.int maxResults, core.String overriddenEventTagId, core.String pageToken, core.List<core.String> placementIds, core.List<core.String> remarketingListIds, core.String searchString, core.List<core.String> sizeIds, core.String sortField, core.String sortOrder, core.bool sslCompliant, core.bool sslRequired, core.List<core.String> type}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (active != null) { - _queryParams["active"] = ["${active}"]; - } - if (advertiserId != null) { - _queryParams["advertiserId"] = [advertiserId]; - } - if (archived != null) { - _queryParams["archived"] = ["${archived}"]; - } - if (audienceSegmentIds != null) { - _queryParams["audienceSegmentIds"] = audienceSegmentIds; - } - if (campaignIds != null) { - _queryParams["campaignIds"] = campaignIds; - } - if (compatibility != null) { - _queryParams["compatibility"] = [compatibility]; - } - if (creativeIds != null) { - _queryParams["creativeIds"] = creativeIds; - } - if (creativeOptimizationConfigurationIds != null) { - _queryParams["creativeOptimizationConfigurationIds"] = creativeOptimizationConfigurationIds; - } - if (dynamicClickTracker != null) { - _queryParams["dynamicClickTracker"] = ["${dynamicClickTracker}"]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (landingPageIds != null) { - _queryParams["landingPageIds"] = landingPageIds; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (overriddenEventTagId != null) { - _queryParams["overriddenEventTagId"] = [overriddenEventTagId]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (placementIds != null) { - _queryParams["placementIds"] = placementIds; - } - if (remarketingListIds != null) { - _queryParams["remarketingListIds"] = remarketingListIds; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sizeIds != null) { - _queryParams["sizeIds"] = sizeIds; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (sslCompliant != null) { - _queryParams["sslCompliant"] = ["${sslCompliant}"]; - } - if (sslRequired != null) { - _queryParams["sslRequired"] = ["${sslRequired}"]; - } - if (type != null) { - _queryParams["type"] = type; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ads'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AdsListResponse.fromJson(data)); - } - - /** - * Updates an existing ad. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Ad ID. - * - * Completes with a [Ad]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Ad> patch(Ad request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ads'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Ad.fromJson(data)); - } - - /** - * Updates an existing ad. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Ad]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Ad> update(Ad request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ads'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Ad.fromJson(data)); - } - -} - - -class AdvertiserGroupsResourceApi { - final commons.ApiRequester _requester; - - AdvertiserGroupsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing advertiser group. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Advertiser group ID. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future delete(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertiserGroups/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one advertiser group by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Advertiser group ID. - * - * Completes with a [AdvertiserGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AdvertiserGroup> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertiserGroups/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AdvertiserGroup.fromJson(data)); - } - - /** - * Inserts a new advertiser group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [AdvertiserGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AdvertiserGroup> insert(AdvertiserGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertiserGroups'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AdvertiserGroup.fromJson(data)); - } - - /** - * Retrieves a list of advertiser groups, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [ids] - Select only advertiser groups with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "advertiser*2015" will return objects with names - * like "advertiser group June 2015", "advertiser group April 2015", or simply - * "advertiser group 2015". Most of the searches also add wildcards implicitly - * at the start and the end of the search string. For example, a search string - * of "advertisergroup" will match objects with name "my advertisergroup", - * "advertisergroup 2015", or simply "advertisergroup". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [AdvertiserGroupsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AdvertiserGroupsListResponse> list(core.String profileId, {core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertiserGroups'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AdvertiserGroupsListResponse.fromJson(data)); - } - - /** - * Updates an existing advertiser group. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Advertiser group ID. - * - * Completes with a [AdvertiserGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AdvertiserGroup> patch(AdvertiserGroup request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertiserGroups'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AdvertiserGroup.fromJson(data)); - } - - /** - * Updates an existing advertiser group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [AdvertiserGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AdvertiserGroup> update(AdvertiserGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertiserGroups'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AdvertiserGroup.fromJson(data)); - } - -} - - -class AdvertisersResourceApi { - final commons.ApiRequester _requester; - - AdvertisersResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one advertiser by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Advertiser ID. - * - * Completes with a [Advertiser]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Advertiser> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertisers/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Advertiser.fromJson(data)); - } - - /** - * Inserts a new advertiser. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Advertiser]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Advertiser> insert(Advertiser request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertisers'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Advertiser.fromJson(data)); - } - - /** - * Retrieves a list of advertisers, possibly filtered. This method supports - * paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserGroupIds] - Select only advertisers with these advertiser group - * IDs. - * - * [floodlightConfigurationIds] - Select only advertisers with these - * floodlight configuration IDs. - * - * [ids] - Select only advertisers with these IDs. - * - * [includeAdvertisersWithoutGroupsOnly] - Select only advertisers which do - * not belong to any advertiser group. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [onlyParent] - Select only advertisers which use another advertiser's - * floodlight configuration. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "advertiser*2015" will return objects with names - * like "advertiser June 2015", "advertiser April 2015", or simply "advertiser - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "advertiser" - * will match objects with name "my advertiser", "advertiser 2015", or simply - * "advertiser". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [status] - Select only advertisers with the specified status. - * Possible string values are: - * - "APPROVED" - * - "ON_HOLD" - * - * [subaccountId] - Select only advertisers with these subaccount IDs. - * - * Completes with a [AdvertisersListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<AdvertisersListResponse> list(core.String profileId, {core.List<core.String> advertiserGroupIds, core.List<core.String> floodlightConfigurationIds, core.List<core.String> ids, core.bool includeAdvertisersWithoutGroupsOnly, core.int maxResults, core.bool onlyParent, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder, core.String status, core.String subaccountId}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserGroupIds != null) { - _queryParams["advertiserGroupIds"] = advertiserGroupIds; - } - if (floodlightConfigurationIds != null) { - _queryParams["floodlightConfigurationIds"] = floodlightConfigurationIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (includeAdvertisersWithoutGroupsOnly != null) { - _queryParams["includeAdvertisersWithoutGroupsOnly"] = ["${includeAdvertisersWithoutGroupsOnly}"]; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (onlyParent != null) { - _queryParams["onlyParent"] = ["${onlyParent}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (status != null) { - _queryParams["status"] = [status]; - } - if (subaccountId != null) { - _queryParams["subaccountId"] = [subaccountId]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertisers'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AdvertisersListResponse.fromJson(data)); - } - - /** - * Updates an existing advertiser. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Advertiser ID. - * - * Completes with a [Advertiser]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Advertiser> patch(Advertiser request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertisers'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Advertiser.fromJson(data)); - } - - /** - * Updates an existing advertiser. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Advertiser]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Advertiser> update(Advertiser request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertisers'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Advertiser.fromJson(data)); - } - -} - - -class BrowsersResourceApi { - final commons.ApiRequester _requester; - - BrowsersResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves a list of browsers. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [BrowsersListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<BrowsersListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/browsers'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new BrowsersListResponse.fromJson(data)); - } - -} - - -class CampaignCreativeAssociationsResourceApi { - final commons.ApiRequester _requester; - - CampaignCreativeAssociationsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Associates a creative with the specified campaign. This method creates a - * default ad with dimensions matching the creative in the campaign if such a - * default ad does not exist already. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Campaign ID in this association. - * - * Completes with a [CampaignCreativeAssociation]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CampaignCreativeAssociation> insert(CampaignCreativeAssociation request, core.String profileId, core.String campaignId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/campaignCreativeAssociations'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CampaignCreativeAssociation.fromJson(data)); - } - - /** - * Retrieves the list of creative IDs associated with the specified campaign. - * This method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Campaign ID in this association. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [CampaignCreativeAssociationsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CampaignCreativeAssociationsListResponse> list(core.String profileId, core.String campaignId, {core.int maxResults, core.String pageToken, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/campaignCreativeAssociations'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CampaignCreativeAssociationsListResponse.fromJson(data)); - } - -} - - -class CampaignsResourceApi { - final commons.ApiRequester _requester; - - CampaignsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one campaign by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Campaign ID. - * - * Completes with a [Campaign]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Campaign> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Campaign.fromJson(data)); - } - - /** - * Inserts a new campaign. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [defaultLandingPageName] - Default landing page name for this new campaign. - * Must be less than 256 characters long. - * - * [defaultLandingPageUrl] - Default landing page URL for this new campaign. - * - * Completes with a [Campaign]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Campaign> insert(Campaign request, core.String profileId, core.String defaultLandingPageName, core.String defaultLandingPageUrl) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (defaultLandingPageName == null) { - throw new core.ArgumentError("Parameter defaultLandingPageName is required."); - } - _queryParams["defaultLandingPageName"] = [defaultLandingPageName]; - if (defaultLandingPageUrl == null) { - throw new core.ArgumentError("Parameter defaultLandingPageUrl is required."); - } - _queryParams["defaultLandingPageUrl"] = [defaultLandingPageUrl]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Campaign.fromJson(data)); - } - - /** - * Retrieves a list of campaigns, possibly filtered. This method supports - * paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserGroupIds] - Select only campaigns whose advertisers belong to - * these advertiser groups. - * - * [advertiserIds] - Select only campaigns that belong to these advertisers. - * - * [archived] - Select only archived campaigns. Don't set this field to select - * both archived and non-archived campaigns. - * - * [atLeastOneOptimizationActivity] - Select only campaigns that have at least - * one optimization activity. - * - * [excludedIds] - Exclude campaigns with these IDs. - * - * [ids] - Select only campaigns with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [overriddenEventTagId] - Select only campaigns that have overridden this - * event tag ID. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for campaigns by name or ID. Wildcards - * (*) are allowed. For example, "campaign*2015" will return campaigns with - * names like "campaign June 2015", "campaign April 2015", or simply "campaign - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "campaign" - * will match campaigns with name "my campaign", "campaign 2015", or simply - * "campaign". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [subaccountId] - Select only campaigns that belong to this subaccount. - * - * Completes with a [CampaignsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CampaignsListResponse> list(core.String profileId, {core.List<core.String> advertiserGroupIds, core.List<core.String> advertiserIds, core.bool archived, core.bool atLeastOneOptimizationActivity, core.List<core.String> excludedIds, core.List<core.String> ids, core.int maxResults, core.String overriddenEventTagId, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder, core.String subaccountId}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserGroupIds != null) { - _queryParams["advertiserGroupIds"] = advertiserGroupIds; - } - if (advertiserIds != null) { - _queryParams["advertiserIds"] = advertiserIds; - } - if (archived != null) { - _queryParams["archived"] = ["${archived}"]; - } - if (atLeastOneOptimizationActivity != null) { - _queryParams["atLeastOneOptimizationActivity"] = ["${atLeastOneOptimizationActivity}"]; - } - if (excludedIds != null) { - _queryParams["excludedIds"] = excludedIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (overriddenEventTagId != null) { - _queryParams["overriddenEventTagId"] = [overriddenEventTagId]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (subaccountId != null) { - _queryParams["subaccountId"] = [subaccountId]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CampaignsListResponse.fromJson(data)); - } - - /** - * Updates an existing campaign. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Campaign ID. - * - * Completes with a [Campaign]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Campaign> patch(Campaign request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Campaign.fromJson(data)); - } - - /** - * Updates an existing campaign. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Campaign]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Campaign> update(Campaign request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Campaign.fromJson(data)); - } - -} - - -class ChangeLogsResourceApi { - final commons.ApiRequester _requester; - - ChangeLogsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one change log by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Change log ID. - * - * Completes with a [ChangeLog]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ChangeLog> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/changeLogs/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ChangeLog.fromJson(data)); - } - - /** - * Retrieves a list of change logs. This method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [action] - Select only change logs with the specified action. - * Possible string values are: - * - "ACTION_ADD" - * - "ACTION_ASSIGN" - * - "ACTION_ASSOCIATE" - * - "ACTION_CREATE" - * - "ACTION_DELETE" - * - "ACTION_DISABLE" - * - "ACTION_EMAIL_TAGS" - * - "ACTION_ENABLE" - * - "ACTION_LINK" - * - "ACTION_MARK_AS_DEFAULT" - * - "ACTION_PUSH" - * - "ACTION_REMOVE" - * - "ACTION_SEND" - * - "ACTION_SHARE" - * - "ACTION_UNASSIGN" - * - "ACTION_UNLINK" - * - "ACTION_UPDATE" - * - * [ids] - Select only change logs with these IDs. - * - * [maxChangeTime] - Select only change logs whose change time is before the - * specified maxChangeTime.The time should be formatted as an RFC3339 - * date/time string. For example, for 10:54 PM on July 18th, 2015, in the - * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In - * other words, the year, month, day, the letter T, the hour (24-hour clock - * system), minute, second, and then the time zone offset. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [minChangeTime] - Select only change logs whose change time is before the - * specified minChangeTime.The time should be formatted as an RFC3339 - * date/time string. For example, for 10:54 PM on July 18th, 2015, in the - * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In - * other words, the year, month, day, the letter T, the hour (24-hour clock - * system), minute, second, and then the time zone offset. - * - * [objectIds] - Select only change logs with these object IDs. - * - * [objectType] - Select only change logs with the specified object type. - * Possible string values are: - * - "OBJECT_ACCOUNT" - * - "OBJECT_ACCOUNT_BILLING_FEATURE" - * - "OBJECT_AD" - * - "OBJECT_ADVERTISER" - * - "OBJECT_ADVERTISER_GROUP" - * - "OBJECT_BILLING_ACCOUNT_GROUP" - * - "OBJECT_BILLING_FEATURE" - * - "OBJECT_BILLING_MINIMUM_FEE" - * - "OBJECT_BILLING_PROFILE" - * - "OBJECT_CAMPAIGN" - * - "OBJECT_CONTENT_CATEGORY" - * - "OBJECT_CREATIVE" - * - "OBJECT_CREATIVE_ASSET" - * - "OBJECT_CREATIVE_BUNDLE" - * - "OBJECT_CREATIVE_FIELD" - * - "OBJECT_CREATIVE_GROUP" - * - "OBJECT_DFA_SITE" - * - "OBJECT_EVENT_TAG" - * - "OBJECT_FLOODLIGHT_ACTIVITY_GROUP" - * - "OBJECT_FLOODLIGHT_ACTVITY" - * - "OBJECT_FLOODLIGHT_CONFIGURATION" - * - "OBJECT_INSTREAM_CREATIVE" - * - "OBJECT_LANDING_PAGE" - * - "OBJECT_MEDIA_ORDER" - * - "OBJECT_PLACEMENT" - * - "OBJECT_PLACEMENT_STRATEGY" - * - "OBJECT_PLAYSTORE_LINK" - * - "OBJECT_PROVIDED_LIST_CLIENT" - * - "OBJECT_RATE_CARD" - * - "OBJECT_REMARKETING_LIST" - * - "OBJECT_RICHMEDIA_CREATIVE" - * - "OBJECT_SD_SITE" - * - "OBJECT_SEARCH_LIFT_STUDY" - * - "OBJECT_SIZE" - * - "OBJECT_SUBACCOUNT" - * - "OBJECT_TARGETING_TEMPLATE" - * - "OBJECT_USER_PROFILE" - * - "OBJECT_USER_PROFILE_FILTER" - * - "OBJECT_USER_ROLE" - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Select only change logs whose object ID, user name, old or - * new values match the search string. - * - * [userProfileIds] - Select only change logs with these user profile IDs. - * - * Completes with a [ChangeLogsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ChangeLogsListResponse> list(core.String profileId, {core.String action, core.List<core.String> ids, core.String maxChangeTime, core.int maxResults, core.String minChangeTime, core.List<core.String> objectIds, core.String objectType, core.String pageToken, core.String searchString, core.List<core.String> userProfileIds}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (action != null) { - _queryParams["action"] = [action]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxChangeTime != null) { - _queryParams["maxChangeTime"] = [maxChangeTime]; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (minChangeTime != null) { - _queryParams["minChangeTime"] = [minChangeTime]; - } - if (objectIds != null) { - _queryParams["objectIds"] = objectIds; - } - if (objectType != null) { - _queryParams["objectType"] = [objectType]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (userProfileIds != null) { - _queryParams["userProfileIds"] = userProfileIds; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/changeLogs'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ChangeLogsListResponse.fromJson(data)); - } - -} - - -class CitiesResourceApi { - final commons.ApiRequester _requester; - - CitiesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves a list of cities, possibly filtered. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [countryDartIds] - Select only cities from these countries. - * - * [dartIds] - Select only cities with these DART IDs. - * - * [namePrefix] - Select only cities with names starting with this prefix. - * - * [regionDartIds] - Select only cities from these regions. - * - * Completes with a [CitiesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CitiesListResponse> list(core.String profileId, {core.List<core.String> countryDartIds, core.List<core.String> dartIds, core.String namePrefix, core.List<core.String> regionDartIds}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (countryDartIds != null) { - _queryParams["countryDartIds"] = countryDartIds; - } - if (dartIds != null) { - _queryParams["dartIds"] = dartIds; - } - if (namePrefix != null) { - _queryParams["namePrefix"] = [namePrefix]; - } - if (regionDartIds != null) { - _queryParams["regionDartIds"] = regionDartIds; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cities'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CitiesListResponse.fromJson(data)); - } - -} - - -class ConnectionTypesResourceApi { - final commons.ApiRequester _requester; - - ConnectionTypesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one connection type by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Connection type ID. - * - * Completes with a [ConnectionType]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ConnectionType> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/connectionTypes/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ConnectionType.fromJson(data)); - } - - /** - * Retrieves a list of connection types. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [ConnectionTypesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ConnectionTypesListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/connectionTypes'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ConnectionTypesListResponse.fromJson(data)); - } - -} - - -class ContentCategoriesResourceApi { - final commons.ApiRequester _requester; - - ContentCategoriesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing content category. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Content category ID. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future delete(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/contentCategories/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one content category by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Content category ID. - * - * Completes with a [ContentCategory]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ContentCategory> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/contentCategories/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ContentCategory.fromJson(data)); - } - - /** - * Inserts a new content category. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [ContentCategory]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ContentCategory> insert(ContentCategory request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/contentCategories'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ContentCategory.fromJson(data)); - } - - /** - * Retrieves a list of content categories, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [ids] - Select only content categories with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "contentcategory*2015" will return objects with - * names like "contentcategory June 2015", "contentcategory April 2015", or - * simply "contentcategory 2015". Most of the searches also add wildcards - * implicitly at the start and the end of the search string. For example, a - * search string of "contentcategory" will match objects with name "my - * contentcategory", "contentcategory 2015", or simply "contentcategory". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [ContentCategoriesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ContentCategoriesListResponse> list(core.String profileId, {core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/contentCategories'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ContentCategoriesListResponse.fromJson(data)); - } - - /** - * Updates an existing content category. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Content category ID. - * - * Completes with a [ContentCategory]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ContentCategory> patch(ContentCategory request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/contentCategories'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ContentCategory.fromJson(data)); - } - - /** - * Updates an existing content category. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [ContentCategory]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ContentCategory> update(ContentCategory request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/contentCategories'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ContentCategory.fromJson(data)); - } - -} - - -class ConversionsResourceApi { - final commons.ApiRequester _requester; - - ConversionsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Inserts conversions. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [ConversionsBatchInsertResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ConversionsBatchInsertResponse> batchinsert(ConversionsBatchInsertRequest request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/conversions/batchinsert'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ConversionsBatchInsertResponse.fromJson(data)); - } - -} - - -class CountriesResourceApi { - final commons.ApiRequester _requester; - - CountriesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one country by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [dartId] - Country DART ID. - * - * Completes with a [Country]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Country> get(core.String profileId, core.String dartId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (dartId == null) { - throw new core.ArgumentError("Parameter dartId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/countries/' + commons.Escaper.ecapeVariable('$dartId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Country.fromJson(data)); - } - - /** - * Retrieves a list of countries. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [CountriesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CountriesListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/countries'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CountriesListResponse.fromJson(data)); - } - -} - - -class CreativeAssetsResourceApi { - final commons.ApiRequester _requester; - - CreativeAssetsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Inserts a new creative asset. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserId] - Advertiser ID of this creative. This is a required field. - * - * [uploadMedia] - The media to upload. - * - * [uploadOptions] - Options for the media upload. Streaming Media without the - * length being known ahead of time is only supported via resumable uploads. - * - * Completes with a [CreativeAssetMetadata]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeAssetMetadata> insert(CreativeAssetMetadata request, core.String profileId, core.String advertiserId, {commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserId == null) { - throw new core.ArgumentError("Parameter advertiserId is required."); - } - - _uploadMedia = uploadMedia; - _uploadOptions = uploadOptions; - - if (_uploadMedia == null) { - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAssets'; - } else if (_uploadOptions is commons.ResumableUploadOptions) { - _url = '/resumable/upload/dfareporting/v2.7/userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAssets'; - } else { - _url = '/upload/dfareporting/v2.7/userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAssets'; - } - - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeAssetMetadata.fromJson(data)); - } - -} - - -class CreativeFieldValuesResourceApi { - final commons.ApiRequester _requester; - - CreativeFieldValuesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing creative field value. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [creativeFieldId] - Creative field ID for this creative field value. - * - * [id] - Creative Field Value ID - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future delete(core.String profileId, core.String creativeFieldId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (creativeFieldId == null) { - throw new core.ArgumentError("Parameter creativeFieldId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFieldValues/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one creative field value by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [creativeFieldId] - Creative field ID for this creative field value. - * - * [id] - Creative Field Value ID - * - * Completes with a [CreativeFieldValue]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeFieldValue> get(core.String profileId, core.String creativeFieldId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (creativeFieldId == null) { - throw new core.ArgumentError("Parameter creativeFieldId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFieldValues/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeFieldValue.fromJson(data)); - } - - /** - * Inserts a new creative field value. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [creativeFieldId] - Creative field ID for this creative field value. - * - * Completes with a [CreativeFieldValue]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeFieldValue> insert(CreativeFieldValue request, core.String profileId, core.String creativeFieldId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (creativeFieldId == null) { - throw new core.ArgumentError("Parameter creativeFieldId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFieldValues'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeFieldValue.fromJson(data)); - } - - /** - * Retrieves a list of creative field values, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [creativeFieldId] - Creative field ID for this creative field value. - * - * [ids] - Select only creative field values with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for creative field values by their - * values. Wildcards (e.g. *) are not allowed. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "VALUE" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [CreativeFieldValuesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeFieldValuesListResponse> list(core.String profileId, core.String creativeFieldId, {core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (creativeFieldId == null) { - throw new core.ArgumentError("Parameter creativeFieldId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFieldValues'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeFieldValuesListResponse.fromJson(data)); - } - - /** - * Updates an existing creative field value. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [creativeFieldId] - Creative field ID for this creative field value. - * - * [id] - Creative Field Value ID - * - * Completes with a [CreativeFieldValue]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeFieldValue> patch(CreativeFieldValue request, core.String profileId, core.String creativeFieldId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (creativeFieldId == null) { - throw new core.ArgumentError("Parameter creativeFieldId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFieldValues'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeFieldValue.fromJson(data)); - } - - /** - * Updates an existing creative field value. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [creativeFieldId] - Creative field ID for this creative field value. - * - * Completes with a [CreativeFieldValue]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeFieldValue> update(CreativeFieldValue request, core.String profileId, core.String creativeFieldId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (creativeFieldId == null) { - throw new core.ArgumentError("Parameter creativeFieldId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFieldValues'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeFieldValue.fromJson(data)); - } - -} - - -class CreativeFieldsResourceApi { - final commons.ApiRequester _requester; - - CreativeFieldsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing creative field. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Creative Field ID - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future delete(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one creative field by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Creative Field ID - * - * Completes with a [CreativeField]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeField> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeField.fromJson(data)); - } - - /** - * Inserts a new creative field. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [CreativeField]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeField> insert(CreativeField request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeField.fromJson(data)); - } - - /** - * Retrieves a list of creative fields, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserIds] - Select only creative fields that belong to these - * advertisers. - * - * [ids] - Select only creative fields with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for creative fields by name or ID. - * Wildcards (*) are allowed. For example, "creativefield*2015" will return - * creative fields with names like "creativefield June 2015", "creativefield - * April 2015", or simply "creativefield 2015". Most of the searches also add - * wild-cards implicitly at the start and the end of the search string. For - * example, a search string of "creativefield" will match creative fields with - * the name "my creativefield", "creativefield 2015", or simply - * "creativefield". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [CreativeFieldsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeFieldsListResponse> list(core.String profileId, {core.List<core.String> advertiserIds, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserIds != null) { - _queryParams["advertiserIds"] = advertiserIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeFieldsListResponse.fromJson(data)); - } - - /** - * Updates an existing creative field. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Creative Field ID - * - * Completes with a [CreativeField]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeField> patch(CreativeField request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeField.fromJson(data)); - } - - /** - * Updates an existing creative field. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [CreativeField]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeField> update(CreativeField request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeField.fromJson(data)); - } - -} - - -class CreativeGroupsResourceApi { - final commons.ApiRequester _requester; - - CreativeGroupsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one creative group by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Creative group ID. - * - * Completes with a [CreativeGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeGroup> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeGroups/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeGroup.fromJson(data)); - } - - /** - * Inserts a new creative group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [CreativeGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeGroup> insert(CreativeGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeGroups'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeGroup.fromJson(data)); - } - - /** - * Retrieves a list of creative groups, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserIds] - Select only creative groups that belong to these - * advertisers. - * - * [groupNumber] - Select only creative groups that belong to this subgroup. - * Value must be between "1" and "2". - * - * [ids] - Select only creative groups with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for creative groups by name or ID. - * Wildcards (*) are allowed. For example, "creativegroup*2015" will return - * creative groups with names like "creativegroup June 2015", "creativegroup - * April 2015", or simply "creativegroup 2015". Most of the searches also add - * wild-cards implicitly at the start and the end of the search string. For - * example, a search string of "creativegroup" will match creative groups with - * the name "my creativegroup", "creativegroup 2015", or simply - * "creativegroup". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [CreativeGroupsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeGroupsListResponse> list(core.String profileId, {core.List<core.String> advertiserIds, core.int groupNumber, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserIds != null) { - _queryParams["advertiserIds"] = advertiserIds; - } - if (groupNumber != null) { - _queryParams["groupNumber"] = ["${groupNumber}"]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeGroups'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeGroupsListResponse.fromJson(data)); - } - - /** - * Updates an existing creative group. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Creative group ID. - * - * Completes with a [CreativeGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeGroup> patch(CreativeGroup request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeGroups'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeGroup.fromJson(data)); - } - - /** - * Updates an existing creative group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [CreativeGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativeGroup> update(CreativeGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeGroups'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeGroup.fromJson(data)); - } - -} - - -class CreativesResourceApi { - final commons.ApiRequester _requester; - - CreativesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one creative by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Creative ID. - * - * Completes with a [Creative]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Creative> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creatives/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Creative.fromJson(data)); - } - - /** - * Inserts a new creative. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Creative]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Creative> insert(Creative request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creatives'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Creative.fromJson(data)); - } - - /** - * Retrieves a list of creatives, possibly filtered. This method supports - * paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [active] - Select only active creatives. Leave blank to select active and - * inactive creatives. - * - * [advertiserId] - Select only creatives with this advertiser ID. - * - * [archived] - Select only archived creatives. Leave blank to select archived - * and unarchived creatives. - * - * [campaignId] - Select only creatives with this campaign ID. - * - * [companionCreativeIds] - Select only in-stream video creatives with these - * companion IDs. - * - * [creativeFieldIds] - Select only creatives with these creative field IDs. - * - * [ids] - Select only creatives with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [renderingIds] - Select only creatives with these rendering IDs. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "creative*2015" will return objects with names - * like "creative June 2015", "creative April 2015", or simply "creative - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "creative" - * will match objects with name "my creative", "creative 2015", or simply - * "creative". - * - * [sizeIds] - Select only creatives with these size IDs. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [studioCreativeId] - Select only creatives corresponding to this Studio - * creative ID. - * - * [types] - Select only creatives with these creative types. - * - * Completes with a [CreativesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CreativesListResponse> list(core.String profileId, {core.bool active, core.String advertiserId, core.bool archived, core.String campaignId, core.List<core.String> companionCreativeIds, core.List<core.String> creativeFieldIds, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.List<core.String> renderingIds, core.String searchString, core.List<core.String> sizeIds, core.String sortField, core.String sortOrder, core.String studioCreativeId, core.List<core.String> types}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (active != null) { - _queryParams["active"] = ["${active}"]; - } - if (advertiserId != null) { - _queryParams["advertiserId"] = [advertiserId]; - } - if (archived != null) { - _queryParams["archived"] = ["${archived}"]; - } - if (campaignId != null) { - _queryParams["campaignId"] = [campaignId]; - } - if (companionCreativeIds != null) { - _queryParams["companionCreativeIds"] = companionCreativeIds; - } - if (creativeFieldIds != null) { - _queryParams["creativeFieldIds"] = creativeFieldIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (renderingIds != null) { - _queryParams["renderingIds"] = renderingIds; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sizeIds != null) { - _queryParams["sizeIds"] = sizeIds; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (studioCreativeId != null) { - _queryParams["studioCreativeId"] = [studioCreativeId]; - } - if (types != null) { - _queryParams["types"] = types; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creatives'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativesListResponse.fromJson(data)); - } - - /** - * Updates an existing creative. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Creative ID. - * - * Completes with a [Creative]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Creative> patch(Creative request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creatives'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Creative.fromJson(data)); - } - - /** - * Updates an existing creative. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Creative]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Creative> update(Creative request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creatives'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Creative.fromJson(data)); - } - -} - - -class DimensionValuesResourceApi { - final commons.ApiRequester _requester; - - DimensionValuesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves list of report dimension values for a list of filters. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "100". - * - * [pageToken] - The value of the nextToken from the previous result page. - * - * Completes with a [DimensionValueList]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<DimensionValueList> query(DimensionValueRequest request, core.String profileId, {core.int maxResults, core.String pageToken}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/dimensionvalues/query'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new DimensionValueList.fromJson(data)); - } - -} - - -class DirectorySiteContactsResourceApi { - final commons.ApiRequester _requester; - - DirectorySiteContactsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one directory site contact by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Directory site contact ID. - * - * Completes with a [DirectorySiteContact]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<DirectorySiteContact> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/directorySiteContacts/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new DirectorySiteContact.fromJson(data)); - } - - /** - * Retrieves a list of directory site contacts, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [directorySiteIds] - Select only directory site contacts with these - * directory site IDs. This is a required field. - * - * [ids] - Select only directory site contacts with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name, ID or email. - * Wildcards (*) are allowed. For example, "directory site contact*2015" will - * return objects with names like "directory site contact June 2015", - * "directory site contact April 2015", or simply "directory site contact - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "directory - * site contact" will match objects with name "my directory site contact", - * "directory site contact 2015", or simply "directory site contact". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [DirectorySiteContactsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<DirectorySiteContactsListResponse> list(core.String profileId, {core.List<core.String> directorySiteIds, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (directorySiteIds != null) { - _queryParams["directorySiteIds"] = directorySiteIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/directorySiteContacts'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new DirectorySiteContactsListResponse.fromJson(data)); - } - -} - - -class DirectorySitesResourceApi { - final commons.ApiRequester _requester; - - DirectorySitesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one directory site by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Directory site ID. - * - * Completes with a [DirectorySite]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<DirectorySite> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/directorySites/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new DirectorySite.fromJson(data)); - } - - /** - * Inserts a new directory site. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [DirectorySite]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<DirectorySite> insert(DirectorySite request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/directorySites'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new DirectorySite.fromJson(data)); - } - - /** - * Retrieves a list of directory sites, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [acceptsInStreamVideoPlacements] - This search filter is no longer - * supported and will have no effect on the results returned. - * - * [acceptsInterstitialPlacements] - This search filter is no longer supported - * and will have no effect on the results returned. - * - * [acceptsPublisherPaidPlacements] - Select only directory sites that accept - * publisher paid placements. This field can be left blank. - * - * [active] - Select only active directory sites. Leave blank to retrieve both - * active and inactive directory sites. - * - * [countryId] - Select only directory sites with this country ID. - * - * [dfpNetworkCode] - Select only directory sites with this DFP network code. - * - * [ids] - Select only directory sites with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [parentId] - Select only directory sites with this parent ID. - * - * [searchString] - Allows searching for objects by name, ID or URL. Wildcards - * (*) are allowed. For example, "directory site*2015" will return objects - * with names like "directory site June 2015", "directory site April 2015", or - * simply "directory site 2015". Most of the searches also add wildcards - * implicitly at the start and the end of the search string. For example, a - * search string of "directory site" will match objects with name "my - * directory site", "directory site 2015" or simply, "directory site". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [DirectorySitesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<DirectorySitesListResponse> list(core.String profileId, {core.bool acceptsInStreamVideoPlacements, core.bool acceptsInterstitialPlacements, core.bool acceptsPublisherPaidPlacements, core.bool active, core.String countryId, core.String dfpNetworkCode, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String parentId, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (acceptsInStreamVideoPlacements != null) { - _queryParams["acceptsInStreamVideoPlacements"] = ["${acceptsInStreamVideoPlacements}"]; - } - if (acceptsInterstitialPlacements != null) { - _queryParams["acceptsInterstitialPlacements"] = ["${acceptsInterstitialPlacements}"]; - } - if (acceptsPublisherPaidPlacements != null) { - _queryParams["acceptsPublisherPaidPlacements"] = ["${acceptsPublisherPaidPlacements}"]; - } - if (active != null) { - _queryParams["active"] = ["${active}"]; - } - if (countryId != null) { - _queryParams["countryId"] = [countryId]; - } - if (dfpNetworkCode != null) { - _queryParams["dfp_network_code"] = [dfpNetworkCode]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (parentId != null) { - _queryParams["parentId"] = [parentId]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/directorySites'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new DirectorySitesListResponse.fromJson(data)); - } - -} - - -class DynamicTargetingKeysResourceApi { - final commons.ApiRequester _requester; - - DynamicTargetingKeysResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing dynamic targeting key. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [objectId] - ID of the object of this dynamic targeting key. This is a - * required field. - * - * [name] - Name of this dynamic targeting key. This is a required field. Must - * be less than 256 characters long and cannot contain commas. All characters - * are converted to lowercase. - * - * [objectType] - Type of the object of this dynamic targeting key. This is a - * required field. - * Possible string values are: - * - "OBJECT_AD" - * - "OBJECT_ADVERTISER" - * - "OBJECT_CREATIVE" - * - "OBJECT_PLACEMENT" - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future delete(core.String profileId, core.String objectId, core.String name, core.String objectType) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (objectId == null) { - throw new core.ArgumentError("Parameter objectId is required."); - } - if (name == null) { - throw new core.ArgumentError("Parameter name is required."); - } - _queryParams["name"] = [name]; - if (objectType == null) { - throw new core.ArgumentError("Parameter objectType is required."); - } - _queryParams["objectType"] = [objectType]; - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/dynamicTargetingKeys/' + commons.Escaper.ecapeVariable('$objectId'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Inserts a new dynamic targeting key. Keys must be created at the advertiser - * level before being assigned to the advertiser's ads, creatives, or - * placements. There is a maximum of 1000 keys per advertiser, out of which a - * maximum of 20 keys can be assigned per ad, creative, or placement. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [DynamicTargetingKey]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<DynamicTargetingKey> insert(DynamicTargetingKey request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/dynamicTargetingKeys'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new DynamicTargetingKey.fromJson(data)); - } - - /** - * Retrieves a list of dynamic targeting keys. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserId] - Select only dynamic targeting keys whose object has this - * advertiser ID. - * - * [names] - Select only dynamic targeting keys exactly matching these names. - * - * [objectId] - Select only dynamic targeting keys with this object ID. - * - * [objectType] - Select only dynamic targeting keys with this object type. - * Possible string values are: - * - "OBJECT_AD" - * - "OBJECT_ADVERTISER" - * - "OBJECT_CREATIVE" - * - "OBJECT_PLACEMENT" - * - * Completes with a [DynamicTargetingKeysListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<DynamicTargetingKeysListResponse> list(core.String profileId, {core.String advertiserId, core.List<core.String> names, core.String objectId, core.String objectType}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserId != null) { - _queryParams["advertiserId"] = [advertiserId]; - } - if (names != null) { - _queryParams["names"] = names; - } - if (objectId != null) { - _queryParams["objectId"] = [objectId]; - } - if (objectType != null) { - _queryParams["objectType"] = [objectType]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/dynamicTargetingKeys'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new DynamicTargetingKeysListResponse.fromJson(data)); - } - -} - - -class EventTagsResourceApi { - final commons.ApiRequester _requester; - - EventTagsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing event tag. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Event tag ID. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future delete(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eventTags/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one event tag by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Event tag ID. - * - * Completes with a [EventTag]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<EventTag> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eventTags/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new EventTag.fromJson(data)); - } - - /** - * Inserts a new event tag. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [EventTag]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<EventTag> insert(EventTag request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eventTags'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new EventTag.fromJson(data)); - } - - /** - * Retrieves a list of event tags, possibly filtered. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [adId] - Select only event tags that belong to this ad. - * - * [advertiserId] - Select only event tags that belong to this advertiser. - * - * [campaignId] - Select only event tags that belong to this campaign. - * - * [definitionsOnly] - Examine only the specified campaign or advertiser's - * event tags for matching selector criteria. When set to false, the parent - * advertiser and parent campaign of the specified ad or campaign is examined - * as well. In addition, when set to false, the status field is examined as - * well, along with the enabledByDefault field. This parameter can not be set - * to true when adId is specified as ads do not define their own even tags. - * - * [enabled] - Select only enabled event tags. What is considered enabled or - * disabled depends on the definitionsOnly parameter. When definitionsOnly is - * set to true, only the specified advertiser or campaign's event tags' - * enabledByDefault field is examined. When definitionsOnly is set to false, - * the specified ad or specified campaign's parent advertiser's or parent - * campaign's event tags' enabledByDefault and status fields are examined as - * well. - * - * [eventTagTypes] - Select only event tags with the specified event tag - * types. Event tag types can be used to specify whether to use a third-party - * pixel, a third-party JavaScript URL, or a third-party click-through URL for - * either impression or click tracking. - * - * [ids] - Select only event tags with these IDs. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "eventtag*2015" will return objects with names - * like "eventtag June 2015", "eventtag April 2015", or simply "eventtag - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "eventtag" - * will match objects with name "my eventtag", "eventtag 2015", or simply - * "eventtag". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [EventTagsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<EventTagsListResponse> list(core.String profileId, {core.String adId, core.String advertiserId, core.String campaignId, core.bool definitionsOnly, core.bool enabled, core.List<core.String> eventTagTypes, core.List<core.String> ids, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (adId != null) { - _queryParams["adId"] = [adId]; - } - if (advertiserId != null) { - _queryParams["advertiserId"] = [advertiserId]; - } - if (campaignId != null) { - _queryParams["campaignId"] = [campaignId]; - } - if (definitionsOnly != null) { - _queryParams["definitionsOnly"] = ["${definitionsOnly}"]; - } - if (enabled != null) { - _queryParams["enabled"] = ["${enabled}"]; - } - if (eventTagTypes != null) { - _queryParams["eventTagTypes"] = eventTagTypes; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eventTags'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new EventTagsListResponse.fromJson(data)); - } - - /** - * Updates an existing event tag. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Event tag ID. - * - * Completes with a [EventTag]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<EventTag> patch(EventTag request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eventTags'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new EventTag.fromJson(data)); - } - - /** - * Updates an existing event tag. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [EventTag]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<EventTag> update(EventTag request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eventTags'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new EventTag.fromJson(data)); - } - -} - - -class FilesResourceApi { - final commons.ApiRequester _requester; - - FilesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves a report file by its report ID and file ID. This method supports - * media download. - * - * Request parameters: - * - * [reportId] - The ID of the report. - * - * [fileId] - The ID of the report file. - * - * [downloadOptions] - Options for downloading. A download can be either a - * Metadata (default) or Media download. Partial Media downloads are possible - * as well. - * - * Completes with a - * - * - [File] for Metadata downloads (see [downloadOptions]). - * - * - [commons.Media] for Media downloads (see [downloadOptions]). - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future get(core.String reportId, core.String fileId, {commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - if (fileId == null) { - throw new core.ArgumentError("Parameter fileId is required."); - } - - _downloadOptions = downloadOptions; - - _url = 'reports/' + commons.Escaper.ecapeVariable('$reportId') + '/files/' + commons.Escaper.ecapeVariable('$fileId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - if (_downloadOptions == null || - _downloadOptions == commons.DownloadOptions.Metadata) { - return _response.then((data) => new File.fromJson(data)); - } else { - return _response; - } - } - - /** - * Lists files for a user profile. - * - * Request parameters: - * - * [profileId] - The DFA profile ID. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "10". - * - * [pageToken] - The value of the nextToken from the previous result page. - * - * [scope] - The scope that defines which results are returned. - * Possible string values are: - * - "ALL" : All files in account. - * - "MINE" : My files. - * - "SHARED_WITH_ME" : Files shared with me. - * - * [sortField] - The field by which to sort the list. - * Possible string values are: - * - "ID" : Sort by file ID. - * - "LAST_MODIFIED_TIME" : Sort by 'lastmodifiedAt' field. - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" : Ascending order. - * - "DESCENDING" : Descending order. - * - * Completes with a [FileList]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FileList> list(core.String profileId, {core.int maxResults, core.String pageToken, core.String scope, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (scope != null) { - _queryParams["scope"] = [scope]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/files'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FileList.fromJson(data)); - } - -} - - -class FloodlightActivitiesResourceApi { - final commons.ApiRequester _requester; - - FloodlightActivitiesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing floodlight activity. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Floodlight activity ID. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future delete(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivities/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Generates a tag for a floodlight activity. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [floodlightActivityId] - Floodlight activity ID for which we want to - * generate a tag. - * - * Completes with a [FloodlightActivitiesGenerateTagResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightActivitiesGenerateTagResponse> generatetag(core.String profileId, {core.String floodlightActivityId}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (floodlightActivityId != null) { - _queryParams["floodlightActivityId"] = [floodlightActivityId]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivities/generatetag'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivitiesGenerateTagResponse.fromJson(data)); - } - - /** - * Gets one floodlight activity by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Floodlight activity ID. - * - * Completes with a [FloodlightActivity]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightActivity> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivities/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivity.fromJson(data)); - } - - /** - * Inserts a new floodlight activity. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [FloodlightActivity]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightActivity> insert(FloodlightActivity request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivities'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivity.fromJson(data)); - } - - /** - * Retrieves a list of floodlight activities, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserId] - Select only floodlight activities for the specified - * advertiser ID. Must specify either ids, advertiserId, or - * floodlightConfigurationId for a non-empty result. - * - * [floodlightActivityGroupIds] - Select only floodlight activities with the - * specified floodlight activity group IDs. - * - * [floodlightActivityGroupName] - Select only floodlight activities with the - * specified floodlight activity group name. - * - * [floodlightActivityGroupTagString] - Select only floodlight activities with - * the specified floodlight activity group tag string. - * - * [floodlightActivityGroupType] - Select only floodlight activities with the - * specified floodlight activity group type. - * Possible string values are: - * - "COUNTER" - * - "SALE" - * - * [floodlightConfigurationId] - Select only floodlight activities for the - * specified floodlight configuration ID. Must specify either ids, - * advertiserId, or floodlightConfigurationId for a non-empty result. - * - * [ids] - Select only floodlight activities with the specified IDs. Must - * specify either ids, advertiserId, or floodlightConfigurationId for a - * non-empty result. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "floodlightactivity*2015" will return objects - * with names like "floodlightactivity June 2015", "floodlightactivity April - * 2015", or simply "floodlightactivity 2015". Most of the searches also add - * wildcards implicitly at the start and the end of the search string. For - * example, a search string of "floodlightactivity" will match objects with - * name "my floodlightactivity activity", "floodlightactivity 2015", or simply - * "floodlightactivity". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [tagString] - Select only floodlight activities with the specified tag - * string. - * - * Completes with a [FloodlightActivitiesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightActivitiesListResponse> list(core.String profileId, {core.String advertiserId, core.List<core.String> floodlightActivityGroupIds, core.String floodlightActivityGroupName, core.String floodlightActivityGroupTagString, core.String floodlightActivityGroupType, core.String floodlightConfigurationId, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder, core.String tagString}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserId != null) { - _queryParams["advertiserId"] = [advertiserId]; - } - if (floodlightActivityGroupIds != null) { - _queryParams["floodlightActivityGroupIds"] = floodlightActivityGroupIds; - } - if (floodlightActivityGroupName != null) { - _queryParams["floodlightActivityGroupName"] = [floodlightActivityGroupName]; - } - if (floodlightActivityGroupTagString != null) { - _queryParams["floodlightActivityGroupTagString"] = [floodlightActivityGroupTagString]; - } - if (floodlightActivityGroupType != null) { - _queryParams["floodlightActivityGroupType"] = [floodlightActivityGroupType]; - } - if (floodlightConfigurationId != null) { - _queryParams["floodlightConfigurationId"] = [floodlightConfigurationId]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (tagString != null) { - _queryParams["tagString"] = [tagString]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivities'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivitiesListResponse.fromJson(data)); - } - - /** - * Updates an existing floodlight activity. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Floodlight activity ID. - * - * Completes with a [FloodlightActivity]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightActivity> patch(FloodlightActivity request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivities'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivity.fromJson(data)); - } - - /** - * Updates an existing floodlight activity. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [FloodlightActivity]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightActivity> update(FloodlightActivity request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivities'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivity.fromJson(data)); - } - -} - - -class FloodlightActivityGroupsResourceApi { - final commons.ApiRequester _requester; - - FloodlightActivityGroupsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one floodlight activity group by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Floodlight activity Group ID. - * - * Completes with a [FloodlightActivityGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightActivityGroup> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivityGroups/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivityGroup.fromJson(data)); - } - - /** - * Inserts a new floodlight activity group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [FloodlightActivityGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightActivityGroup> insert(FloodlightActivityGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivityGroups'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivityGroup.fromJson(data)); - } - - /** - * Retrieves a list of floodlight activity groups, possibly filtered. This - * method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserId] - Select only floodlight activity groups with the specified - * advertiser ID. Must specify either advertiserId or - * floodlightConfigurationId for a non-empty result. - * - * [floodlightConfigurationId] - Select only floodlight activity groups with - * the specified floodlight configuration ID. Must specify either - * advertiserId, or floodlightConfigurationId for a non-empty result. - * - * [ids] - Select only floodlight activity groups with the specified IDs. Must - * specify either advertiserId or floodlightConfigurationId for a non-empty - * result. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "floodlightactivitygroup*2015" will return - * objects with names like "floodlightactivitygroup June 2015", - * "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of - * "floodlightactivitygroup" will match objects with name "my - * floodlightactivitygroup activity", "floodlightactivitygroup 2015", or - * simply "floodlightactivitygroup". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [type] - Select only floodlight activity groups with the specified - * floodlight activity group type. - * Possible string values are: - * - "COUNTER" - * - "SALE" - * - * Completes with a [FloodlightActivityGroupsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightActivityGroupsListResponse> list(core.String profileId, {core.String advertiserId, core.String floodlightConfigurationId, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder, core.String type}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserId != null) { - _queryParams["advertiserId"] = [advertiserId]; - } - if (floodlightConfigurationId != null) { - _queryParams["floodlightConfigurationId"] = [floodlightConfigurationId]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (type != null) { - _queryParams["type"] = [type]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivityGroups'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivityGroupsListResponse.fromJson(data)); - } - - /** - * Updates an existing floodlight activity group. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Floodlight activity Group ID. - * - * Completes with a [FloodlightActivityGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightActivityGroup> patch(FloodlightActivityGroup request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivityGroups'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivityGroup.fromJson(data)); - } - - /** - * Updates an existing floodlight activity group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [FloodlightActivityGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightActivityGroup> update(FloodlightActivityGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivityGroups'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivityGroup.fromJson(data)); - } - -} - - -class FloodlightConfigurationsResourceApi { - final commons.ApiRequester _requester; - - FloodlightConfigurationsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one floodlight configuration by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Floodlight configuration ID. - * - * Completes with a [FloodlightConfiguration]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightConfiguration> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightConfigurations/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightConfiguration.fromJson(data)); - } - - /** - * Retrieves a list of floodlight configurations, possibly filtered. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [ids] - Set of IDs of floodlight configurations to retrieve. Required - * field; otherwise an empty list will be returned. - * - * Completes with a [FloodlightConfigurationsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightConfigurationsListResponse> list(core.String profileId, {core.List<core.String> ids}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightConfigurations'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightConfigurationsListResponse.fromJson(data)); - } - - /** - * Updates an existing floodlight configuration. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Floodlight configuration ID. - * - * Completes with a [FloodlightConfiguration]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightConfiguration> patch(FloodlightConfiguration request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightConfigurations'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightConfiguration.fromJson(data)); - } - - /** - * Updates an existing floodlight configuration. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [FloodlightConfiguration]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FloodlightConfiguration> update(FloodlightConfiguration request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightConfigurations'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightConfiguration.fromJson(data)); - } - -} - - -class InventoryItemsResourceApi { - final commons.ApiRequester _requester; - - InventoryItemsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one inventory item by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [projectId] - Project ID for order documents. - * - * [id] - Inventory item ID. - * - * Completes with a [InventoryItem]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<InventoryItem> get(core.String profileId, core.String projectId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/inventoryItems/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new InventoryItem.fromJson(data)); - } - - /** - * Retrieves a list of inventory items, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [projectId] - Project ID for order documents. - * - * [ids] - Select only inventory items with these IDs. - * - * [inPlan] - Select only inventory items that are in plan. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [orderId] - Select only inventory items that belong to specified orders. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [siteId] - Select only inventory items that are associated with these - * sites. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [type] - Select only inventory items with this type. - * Possible string values are: - * - "PLANNING_PLACEMENT_TYPE_CREDIT" - * - "PLANNING_PLACEMENT_TYPE_REGULAR" - * - * Completes with a [InventoryItemsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<InventoryItemsListResponse> list(core.String profileId, core.String projectId, {core.List<core.String> ids, core.bool inPlan, core.int maxResults, core.List<core.String> orderId, core.String pageToken, core.List<core.String> siteId, core.String sortField, core.String sortOrder, core.String type}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (inPlan != null) { - _queryParams["inPlan"] = ["${inPlan}"]; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (orderId != null) { - _queryParams["orderId"] = orderId; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (siteId != null) { - _queryParams["siteId"] = siteId; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (type != null) { - _queryParams["type"] = [type]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/inventoryItems'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new InventoryItemsListResponse.fromJson(data)); - } - -} - - -class LandingPagesResourceApi { - final commons.ApiRequester _requester; - - LandingPagesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing campaign landing page. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Landing page campaign ID. - * - * [id] - Landing page ID. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future delete(core.String profileId, core.String campaignId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one campaign landing page by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Landing page campaign ID. - * - * [id] - Landing page ID. - * - * Completes with a [LandingPage]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<LandingPage> get(core.String profileId, core.String campaignId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new LandingPage.fromJson(data)); - } - - /** - * Inserts a new landing page for the specified campaign. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Landing page campaign ID. - * - * Completes with a [LandingPage]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<LandingPage> insert(LandingPage request, core.String profileId, core.String campaignId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new LandingPage.fromJson(data)); - } - - /** - * Retrieves the list of landing pages for the specified campaign. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Landing page campaign ID. - * - * Completes with a [LandingPagesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<LandingPagesListResponse> list(core.String profileId, core.String campaignId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new LandingPagesListResponse.fromJson(data)); - } - - /** - * Updates an existing campaign landing page. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Landing page campaign ID. - * - * [id] - Landing page ID. - * - * Completes with a [LandingPage]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<LandingPage> patch(LandingPage request, core.String profileId, core.String campaignId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new LandingPage.fromJson(data)); - } - - /** - * Updates an existing campaign landing page. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Landing page campaign ID. - * - * Completes with a [LandingPage]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<LandingPage> update(LandingPage request, core.String profileId, core.String campaignId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new LandingPage.fromJson(data)); - } - -} - - -class LanguagesResourceApi { - final commons.ApiRequester _requester; - - LanguagesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves a list of languages. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [LanguagesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<LanguagesListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/languages'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new LanguagesListResponse.fromJson(data)); - } - -} - - -class MetrosResourceApi { - final commons.ApiRequester _requester; - - MetrosResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves a list of metros. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [MetrosListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<MetrosListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/metros'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new MetrosListResponse.fromJson(data)); - } - -} - - -class MobileCarriersResourceApi { - final commons.ApiRequester _requester; - - MobileCarriersResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one mobile carrier by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Mobile carrier ID. - * - * Completes with a [MobileCarrier]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<MobileCarrier> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/mobileCarriers/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new MobileCarrier.fromJson(data)); - } - - /** - * Retrieves a list of mobile carriers. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [MobileCarriersListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<MobileCarriersListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/mobileCarriers'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new MobileCarriersListResponse.fromJson(data)); - } - -} - - -class OperatingSystemVersionsResourceApi { - final commons.ApiRequester _requester; - - OperatingSystemVersionsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one operating system version by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Operating system version ID. - * - * Completes with a [OperatingSystemVersion]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<OperatingSystemVersion> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/operatingSystemVersions/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new OperatingSystemVersion.fromJson(data)); - } - - /** - * Retrieves a list of operating system versions. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [OperatingSystemVersionsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<OperatingSystemVersionsListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/operatingSystemVersions'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new OperatingSystemVersionsListResponse.fromJson(data)); - } - -} - - -class OperatingSystemsResourceApi { - final commons.ApiRequester _requester; - - OperatingSystemsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one operating system by DART ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [dartId] - Operating system DART ID. - * - * Completes with a [OperatingSystem]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<OperatingSystem> get(core.String profileId, core.String dartId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (dartId == null) { - throw new core.ArgumentError("Parameter dartId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/operatingSystems/' + commons.Escaper.ecapeVariable('$dartId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new OperatingSystem.fromJson(data)); - } - - /** - * Retrieves a list of operating systems. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [OperatingSystemsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<OperatingSystemsListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/operatingSystems'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new OperatingSystemsListResponse.fromJson(data)); - } - -} - - -class OrderDocumentsResourceApi { - final commons.ApiRequester _requester; - - OrderDocumentsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one order document by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [projectId] - Project ID for order documents. - * - * [id] - Order document ID. - * - * Completes with a [OrderDocument]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<OrderDocument> get(core.String profileId, core.String projectId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/orderDocuments/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new OrderDocument.fromJson(data)); - } - - /** - * Retrieves a list of order documents, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [projectId] - Project ID for order documents. - * - * [approved] - Select only order documents that have been approved by at - * least one user. - * - * [ids] - Select only order documents with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [orderId] - Select only order documents for specified orders. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for order documents by name or ID. - * Wildcards (*) are allowed. For example, "orderdocument*2015" will return - * order documents with names like "orderdocument June 2015", "orderdocument - * April 2015", or simply "orderdocument 2015". Most of the searches also add - * wildcards implicitly at the start and the end of the search string. For - * example, a search string of "orderdocument" will match order documents with - * name "my orderdocument", "orderdocument 2015", or simply "orderdocument". - * - * [siteId] - Select only order documents that are associated with these - * sites. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [OrderDocumentsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<OrderDocumentsListResponse> list(core.String profileId, core.String projectId, {core.bool approved, core.List<core.String> ids, core.int maxResults, core.List<core.String> orderId, core.String pageToken, core.String searchString, core.List<core.String> siteId, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (approved != null) { - _queryParams["approved"] = ["${approved}"]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (orderId != null) { - _queryParams["orderId"] = orderId; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (siteId != null) { - _queryParams["siteId"] = siteId; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/orderDocuments'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new OrderDocumentsListResponse.fromJson(data)); - } - -} - - -class OrdersResourceApi { - final commons.ApiRequester _requester; - - OrdersResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one order by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [projectId] - Project ID for orders. - * - * [id] - Order ID. - * - * Completes with a [Order]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Order> get(core.String profileId, core.String projectId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/orders/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Order.fromJson(data)); - } - - /** - * Retrieves a list of orders, possibly filtered. This method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [projectId] - Project ID for orders. - * - * [ids] - Select only orders with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for orders by name or ID. Wildcards (*) - * are allowed. For example, "order*2015" will return orders with names like - * "order June 2015", "order April 2015", or simply "order 2015". Most of the - * searches also add wildcards implicitly at the start and the end of the - * search string. For example, a search string of "order" will match orders - * with name "my order", "order 2015", or simply "order". - * - * [siteId] - Select only orders that are associated with these site IDs. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [OrdersListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<OrdersListResponse> list(core.String profileId, core.String projectId, {core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.List<core.String> siteId, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (siteId != null) { - _queryParams["siteId"] = siteId; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/orders'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new OrdersListResponse.fromJson(data)); - } - -} - - -class PlacementGroupsResourceApi { - final commons.ApiRequester _requester; - - PlacementGroupsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one placement group by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Placement group ID. - * - * Completes with a [PlacementGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementGroup> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementGroups/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementGroup.fromJson(data)); - } - - /** - * Inserts a new placement group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [PlacementGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementGroup> insert(PlacementGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementGroups'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementGroup.fromJson(data)); - } - - /** - * Retrieves a list of placement groups, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserIds] - Select only placement groups that belong to these - * advertisers. - * - * [archived] - Select only archived placements. Don't set this field to - * select both archived and non-archived placements. - * - * [campaignIds] - Select only placement groups that belong to these - * campaigns. - * - * [contentCategoryIds] - Select only placement groups that are associated - * with these content categories. - * - * [directorySiteIds] - Select only placement groups that are associated with - * these directory sites. - * - * [ids] - Select only placement groups with these IDs. - * - * [maxEndDate] - Select only placements or placement groups whose end date is - * on or before the specified maxEndDate. The date should be formatted as - * "yyyy-MM-dd". - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "800". - * - * [maxStartDate] - Select only placements or placement groups whose start - * date is on or before the specified maxStartDate. The date should be - * formatted as "yyyy-MM-dd". - * - * [minEndDate] - Select only placements or placement groups whose end date is - * on or after the specified minEndDate. The date should be formatted as - * "yyyy-MM-dd". - * - * [minStartDate] - Select only placements or placement groups whose start - * date is on or after the specified minStartDate. The date should be - * formatted as "yyyy-MM-dd". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [placementGroupType] - Select only placement groups belonging with this - * group type. A package is a simple group of placements that acts as a single - * pricing point for a group of tags. A roadblock is a group of placements - * that not only acts as a single pricing point but also assumes that all the - * tags in it will be served at the same time. A roadblock requires one of its - * assigned placements to be marked as primary for reporting. - * Possible string values are: - * - "PLACEMENT_PACKAGE" - * - "PLACEMENT_ROADBLOCK" - * - * [placementStrategyIds] - Select only placement groups that are associated - * with these placement strategies. - * - * [pricingTypes] - Select only placement groups with these pricing types. - * - * [searchString] - Allows searching for placement groups by name or ID. - * Wildcards (*) are allowed. For example, "placement*2015" will return - * placement groups with names like "placement group June 2015", "placement - * group May 2015", or simply "placements 2015". Most of the searches also add - * wildcards implicitly at the start and the end of the search string. For - * example, a search string of "placementgroup" will match placement groups - * with name "my placementgroup", "placementgroup 2015", or simply - * "placementgroup". - * - * [siteIds] - Select only placement groups that are associated with these - * sites. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [PlacementGroupsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementGroupsListResponse> list(core.String profileId, {core.List<core.String> advertiserIds, core.bool archived, core.List<core.String> campaignIds, core.List<core.String> contentCategoryIds, core.List<core.String> directorySiteIds, core.List<core.String> ids, core.String maxEndDate, core.int maxResults, core.String maxStartDate, core.String minEndDate, core.String minStartDate, core.String pageToken, core.String placementGroupType, core.List<core.String> placementStrategyIds, core.List<core.String> pricingTypes, core.String searchString, core.List<core.String> siteIds, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserIds != null) { - _queryParams["advertiserIds"] = advertiserIds; - } - if (archived != null) { - _queryParams["archived"] = ["${archived}"]; - } - if (campaignIds != null) { - _queryParams["campaignIds"] = campaignIds; - } - if (contentCategoryIds != null) { - _queryParams["contentCategoryIds"] = contentCategoryIds; - } - if (directorySiteIds != null) { - _queryParams["directorySiteIds"] = directorySiteIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxEndDate != null) { - _queryParams["maxEndDate"] = [maxEndDate]; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (maxStartDate != null) { - _queryParams["maxStartDate"] = [maxStartDate]; - } - if (minEndDate != null) { - _queryParams["minEndDate"] = [minEndDate]; - } - if (minStartDate != null) { - _queryParams["minStartDate"] = [minStartDate]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (placementGroupType != null) { - _queryParams["placementGroupType"] = [placementGroupType]; - } - if (placementStrategyIds != null) { - _queryParams["placementStrategyIds"] = placementStrategyIds; - } - if (pricingTypes != null) { - _queryParams["pricingTypes"] = pricingTypes; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (siteIds != null) { - _queryParams["siteIds"] = siteIds; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementGroups'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementGroupsListResponse.fromJson(data)); - } - - /** - * Updates an existing placement group. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Placement group ID. - * - * Completes with a [PlacementGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementGroup> patch(PlacementGroup request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementGroups'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementGroup.fromJson(data)); - } - - /** - * Updates an existing placement group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [PlacementGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementGroup> update(PlacementGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementGroups'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementGroup.fromJson(data)); - } - -} - - -class PlacementStrategiesResourceApi { - final commons.ApiRequester _requester; - - PlacementStrategiesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing placement strategy. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Placement strategy ID. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future delete(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementStrategies/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one placement strategy by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Placement strategy ID. - * - * Completes with a [PlacementStrategy]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementStrategy> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementStrategies/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementStrategy.fromJson(data)); - } - - /** - * Inserts a new placement strategy. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [PlacementStrategy]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementStrategy> insert(PlacementStrategy request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementStrategies'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementStrategy.fromJson(data)); - } - - /** - * Retrieves a list of placement strategies, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [ids] - Select only placement strategies with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "placementstrategy*2015" will return objects with - * names like "placementstrategy June 2015", "placementstrategy April 2015", - * or simply "placementstrategy 2015". Most of the searches also add wildcards - * implicitly at the start and the end of the search string. For example, a - * search string of "placementstrategy" will match objects with name "my - * placementstrategy", "placementstrategy 2015", or simply - * "placementstrategy". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [PlacementStrategiesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementStrategiesListResponse> list(core.String profileId, {core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementStrategies'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementStrategiesListResponse.fromJson(data)); - } - - /** - * Updates an existing placement strategy. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Placement strategy ID. - * - * Completes with a [PlacementStrategy]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementStrategy> patch(PlacementStrategy request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementStrategies'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementStrategy.fromJson(data)); - } - - /** - * Updates an existing placement strategy. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [PlacementStrategy]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementStrategy> update(PlacementStrategy request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementStrategies'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementStrategy.fromJson(data)); - } - -} - - -class PlacementsResourceApi { - final commons.ApiRequester _requester; - - PlacementsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Generates tags for a placement. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Generate placements belonging to this campaign. This is a - * required field. - * - * [placementIds] - Generate tags for these placements. - * - * [tagFormats] - Tag formats to generate for these placements. - * - * Completes with a [PlacementsGenerateTagsResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementsGenerateTagsResponse> generatetags(core.String profileId, {core.String campaignId, core.List<core.String> placementIds, core.List<core.String> tagFormats}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId != null) { - _queryParams["campaignId"] = [campaignId]; - } - if (placementIds != null) { - _queryParams["placementIds"] = placementIds; - } - if (tagFormats != null) { - _queryParams["tagFormats"] = tagFormats; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placements/generatetags'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementsGenerateTagsResponse.fromJson(data)); - } - - /** - * Gets one placement by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Placement ID. - * - * Completes with a [Placement]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Placement> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placements/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Placement.fromJson(data)); - } - - /** - * Inserts a new placement. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Placement]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Placement> insert(Placement request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placements'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Placement.fromJson(data)); - } - - /** - * Retrieves a list of placements, possibly filtered. This method supports - * paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserIds] - Select only placements that belong to these advertisers. - * - * [archived] - Select only archived placements. Don't set this field to - * select both archived and non-archived placements. - * - * [campaignIds] - Select only placements that belong to these campaigns. - * - * [compatibilities] - Select only placements that are associated with these - * compatibilities. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either - * on desktop or on mobile devices for regular or interstitial ads - * respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. - * IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with - * the VAST standard. - * - * [contentCategoryIds] - Select only placements that are associated with - * these content categories. - * - * [directorySiteIds] - Select only placements that are associated with these - * directory sites. - * - * [groupIds] - Select only placements that belong to these placement groups. - * - * [ids] - Select only placements with these IDs. - * - * [maxEndDate] - Select only placements or placement groups whose end date is - * on or before the specified maxEndDate. The date should be formatted as - * "yyyy-MM-dd". - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [maxStartDate] - Select only placements or placement groups whose start - * date is on or before the specified maxStartDate. The date should be - * formatted as "yyyy-MM-dd". - * - * [minEndDate] - Select only placements or placement groups whose end date is - * on or after the specified minEndDate. The date should be formatted as - * "yyyy-MM-dd". - * - * [minStartDate] - Select only placements or placement groups whose start - * date is on or after the specified minStartDate. The date should be - * formatted as "yyyy-MM-dd". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [paymentSource] - Select only placements with this payment source. - * Possible string values are: - * - "PLACEMENT_AGENCY_PAID" - * - "PLACEMENT_PUBLISHER_PAID" - * - * [placementStrategyIds] - Select only placements that are associated with - * these placement strategies. - * - * [pricingTypes] - Select only placements with these pricing types. - * - * [searchString] - Allows searching for placements by name or ID. Wildcards - * (*) are allowed. For example, "placement*2015" will return placements with - * names like "placement June 2015", "placement May 2015", or simply - * "placements 2015". Most of the searches also add wildcards implicitly at - * the start and the end of the search string. For example, a search string of - * "placement" will match placements with name "my placement", "placement - * 2015", or simply "placement". - * - * [siteIds] - Select only placements that are associated with these sites. - * - * [sizeIds] - Select only placements that are associated with these sizes. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [PlacementsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlacementsListResponse> list(core.String profileId, {core.List<core.String> advertiserIds, core.bool archived, core.List<core.String> campaignIds, core.List<core.String> compatibilities, core.List<core.String> contentCategoryIds, core.List<core.String> directorySiteIds, core.List<core.String> groupIds, core.List<core.String> ids, core.String maxEndDate, core.int maxResults, core.String maxStartDate, core.String minEndDate, core.String minStartDate, core.String pageToken, core.String paymentSource, core.List<core.String> placementStrategyIds, core.List<core.String> pricingTypes, core.String searchString, core.List<core.String> siteIds, core.List<core.String> sizeIds, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserIds != null) { - _queryParams["advertiserIds"] = advertiserIds; - } - if (archived != null) { - _queryParams["archived"] = ["${archived}"]; - } - if (campaignIds != null) { - _queryParams["campaignIds"] = campaignIds; - } - if (compatibilities != null) { - _queryParams["compatibilities"] = compatibilities; - } - if (contentCategoryIds != null) { - _queryParams["contentCategoryIds"] = contentCategoryIds; - } - if (directorySiteIds != null) { - _queryParams["directorySiteIds"] = directorySiteIds; - } - if (groupIds != null) { - _queryParams["groupIds"] = groupIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxEndDate != null) { - _queryParams["maxEndDate"] = [maxEndDate]; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (maxStartDate != null) { - _queryParams["maxStartDate"] = [maxStartDate]; - } - if (minEndDate != null) { - _queryParams["minEndDate"] = [minEndDate]; - } - if (minStartDate != null) { - _queryParams["minStartDate"] = [minStartDate]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (paymentSource != null) { - _queryParams["paymentSource"] = [paymentSource]; - } - if (placementStrategyIds != null) { - _queryParams["placementStrategyIds"] = placementStrategyIds; - } - if (pricingTypes != null) { - _queryParams["pricingTypes"] = pricingTypes; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (siteIds != null) { - _queryParams["siteIds"] = siteIds; - } - if (sizeIds != null) { - _queryParams["sizeIds"] = sizeIds; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placements'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementsListResponse.fromJson(data)); - } - - /** - * Updates an existing placement. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Placement ID. - * - * Completes with a [Placement]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Placement> patch(Placement request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placements'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Placement.fromJson(data)); - } - - /** - * Updates an existing placement. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Placement]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Placement> update(Placement request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placements'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Placement.fromJson(data)); - } - -} - - -class PlatformTypesResourceApi { - final commons.ApiRequester _requester; - - PlatformTypesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one platform type by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Platform type ID. - * - * Completes with a [PlatformType]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlatformType> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/platformTypes/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlatformType.fromJson(data)); - } - - /** - * Retrieves a list of platform types. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [PlatformTypesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PlatformTypesListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/platformTypes'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlatformTypesListResponse.fromJson(data)); - } - -} - - -class PostalCodesResourceApi { - final commons.ApiRequester _requester; - - PostalCodesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one postal code by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [code] - Postal code ID. - * - * Completes with a [PostalCode]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PostalCode> get(core.String profileId, core.String code) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (code == null) { - throw new core.ArgumentError("Parameter code is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/postalCodes/' + commons.Escaper.ecapeVariable('$code'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PostalCode.fromJson(data)); - } - - /** - * Retrieves a list of postal codes. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [PostalCodesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<PostalCodesListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/postalCodes'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PostalCodesListResponse.fromJson(data)); - } - -} - - -class ProjectsResourceApi { - final commons.ApiRequester _requester; - - ProjectsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one project by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Project ID. - * - * Completes with a [Project]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Project> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Project.fromJson(data)); - } - - /** - * Retrieves a list of projects, possibly filtered. This method supports - * paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserIds] - Select only projects with these advertiser IDs. - * - * [ids] - Select only projects with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for projects by name or ID. Wildcards (*) - * are allowed. For example, "project*2015" will return projects with names - * like "project June 2015", "project April 2015", or simply "project 2015". - * Most of the searches also add wildcards implicitly at the start and the end - * of the search string. For example, a search string of "project" will match - * projects with name "my project", "project 2015", or simply "project". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [ProjectsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ProjectsListResponse> list(core.String profileId, {core.List<core.String> advertiserIds, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserIds != null) { - _queryParams["advertiserIds"] = advertiserIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ProjectsListResponse.fromJson(data)); - } - -} - - -class RegionsResourceApi { - final commons.ApiRequester _requester; - - RegionsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves a list of regions. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [RegionsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<RegionsListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/regions'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RegionsListResponse.fromJson(data)); - } - -} - - -class RemarketingListSharesResourceApi { - final commons.ApiRequester _requester; - - RemarketingListSharesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one remarketing list share by remarketing list ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [remarketingListId] - Remarketing list ID. - * - * Completes with a [RemarketingListShare]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<RemarketingListShare> get(core.String profileId, core.String remarketingListId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (remarketingListId == null) { - throw new core.ArgumentError("Parameter remarketingListId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingListShares/' + commons.Escaper.ecapeVariable('$remarketingListId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingListShare.fromJson(data)); - } - - /** - * Updates an existing remarketing list share. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [remarketingListId] - Remarketing list ID. - * - * Completes with a [RemarketingListShare]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<RemarketingListShare> patch(RemarketingListShare request, core.String profileId, core.String remarketingListId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (remarketingListId == null) { - throw new core.ArgumentError("Parameter remarketingListId is required."); - } - _queryParams["remarketingListId"] = [remarketingListId]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingListShares'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingListShare.fromJson(data)); - } - - /** - * Updates an existing remarketing list share. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [RemarketingListShare]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<RemarketingListShare> update(RemarketingListShare request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingListShares'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingListShare.fromJson(data)); - } - -} - - -class RemarketingListsResourceApi { - final commons.ApiRequester _requester; - - RemarketingListsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one remarketing list by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Remarketing list ID. - * - * Completes with a [RemarketingList]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<RemarketingList> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingLists/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingList.fromJson(data)); - } - - /** - * Inserts a new remarketing list. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [RemarketingList]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<RemarketingList> insert(RemarketingList request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingLists'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingList.fromJson(data)); - } - - /** - * Retrieves a list of remarketing lists, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserId] - Select only remarketing lists owned by this advertiser. - * - * [active] - Select only active or only inactive remarketing lists. - * - * [floodlightActivityId] - Select only remarketing lists that have this - * floodlight activity ID. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [name] - Allows searching for objects by name or ID. Wildcards (*) are - * allowed. For example, "remarketing list*2015" will return objects with - * names like "remarketing list June 2015", "remarketing list April 2015", or - * simply "remarketing list 2015". Most of the searches also add wildcards - * implicitly at the start and the end of the search string. For example, a - * search string of "remarketing list" will match objects with name "my - * remarketing list", "remarketing list 2015", or simply "remarketing list". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [RemarketingListsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<RemarketingListsListResponse> list(core.String profileId, core.String advertiserId, {core.bool active, core.String floodlightActivityId, core.int maxResults, core.String name, core.String pageToken, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserId == null) { - throw new core.ArgumentError("Parameter advertiserId is required."); - } - _queryParams["advertiserId"] = [advertiserId]; - if (active != null) { - _queryParams["active"] = ["${active}"]; - } - if (floodlightActivityId != null) { - _queryParams["floodlightActivityId"] = [floodlightActivityId]; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (name != null) { - _queryParams["name"] = [name]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingLists'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingListsListResponse.fromJson(data)); - } - - /** - * Updates an existing remarketing list. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Remarketing list ID. - * - * Completes with a [RemarketingList]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<RemarketingList> patch(RemarketingList request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingLists'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingList.fromJson(data)); - } - - /** - * Updates an existing remarketing list. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [RemarketingList]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<RemarketingList> update(RemarketingList request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingLists'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingList.fromJson(data)); - } - -} - - -class ReportsResourceApi { - final commons.ApiRequester _requester; - - ReportsCompatibleFieldsResourceApi get compatibleFields => new ReportsCompatibleFieldsResourceApi(_requester); - ReportsFilesResourceApi get files => new ReportsFilesResourceApi(_requester); - - ReportsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes a report by its ID. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * [reportId] - The ID of the report. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future delete(core.String profileId, core.String reportId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/' + commons.Escaper.ecapeVariable('$reportId'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Retrieves a report by its ID. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * [reportId] - The ID of the report. - * - * Completes with a [Report]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Report> get(core.String profileId, core.String reportId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/' + commons.Escaper.ecapeVariable('$reportId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Report.fromJson(data)); - } - - /** - * Creates a report. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * Completes with a [Report]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Report> insert(Report request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Report.fromJson(data)); - } - - /** - * Retrieves list of reports. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "10". - * - * [pageToken] - The value of the nextToken from the previous result page. - * - * [scope] - The scope that defines which results are returned. - * Possible string values are: - * - "ALL" : All reports in account. - * - "MINE" : My reports. - * - * [sortField] - The field by which to sort the list. - * Possible string values are: - * - "ID" : Sort by report ID. - * - "LAST_MODIFIED_TIME" : Sort by 'lastModifiedTime' field. - * - "NAME" : Sort by name of reports. - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" : Ascending order. - * - "DESCENDING" : Descending order. - * - * Completes with a [ReportList]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ReportList> list(core.String profileId, {core.int maxResults, core.String pageToken, core.String scope, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (scope != null) { - _queryParams["scope"] = [scope]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ReportList.fromJson(data)); - } - - /** - * Updates a report. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * [reportId] - The ID of the report. - * - * Completes with a [Report]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Report> patch(Report request, core.String profileId, core.String reportId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/' + commons.Escaper.ecapeVariable('$reportId'); - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Report.fromJson(data)); - } - - /** - * Runs a report. - * - * Request parameters: - * - * [profileId] - The DFA profile ID. - * - * [reportId] - The ID of the report. - * - * [synchronous] - If set and true, tries to run the report synchronously. - * - * Completes with a [File]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<File> run(core.String profileId, core.String reportId, {core.bool synchronous}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - if (synchronous != null) { - _queryParams["synchronous"] = ["${synchronous}"]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/' + commons.Escaper.ecapeVariable('$reportId') + '/run'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new File.fromJson(data)); - } - - /** - * Updates a report. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * [reportId] - The ID of the report. - * - * Completes with a [Report]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Report> update(Report request, core.String profileId, core.String reportId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/' + commons.Escaper.ecapeVariable('$reportId'); - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Report.fromJson(data)); - } - -} - - -class ReportsCompatibleFieldsResourceApi { - final commons.ApiRequester _requester; - - ReportsCompatibleFieldsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Returns the fields that are compatible to be selected in the respective - * sections of a report criteria, given the fields already selected in the - * input report and user permissions. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * Completes with a [CompatibleFields]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<CompatibleFields> query(Report request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/compatiblefields/query'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CompatibleFields.fromJson(data)); - } - -} - - -class ReportsFilesResourceApi { - final commons.ApiRequester _requester; - - ReportsFilesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves a report file. This method supports media download. - * - * Request parameters: - * - * [profileId] - The DFA profile ID. - * - * [reportId] - The ID of the report. - * - * [fileId] - The ID of the report file. - * - * [downloadOptions] - Options for downloading. A download can be either a - * Metadata (default) or Media download. Partial Media downloads are possible - * as well. - * - * Completes with a - * - * - [File] for Metadata downloads (see [downloadOptions]). - * - * - [commons.Media] for Media downloads (see [downloadOptions]). - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future get(core.String profileId, core.String reportId, core.String fileId, {commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - if (fileId == null) { - throw new core.ArgumentError("Parameter fileId is required."); - } - - _downloadOptions = downloadOptions; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/' + commons.Escaper.ecapeVariable('$reportId') + '/files/' + commons.Escaper.ecapeVariable('$fileId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - if (_downloadOptions == null || - _downloadOptions == commons.DownloadOptions.Metadata) { - return _response.then((data) => new File.fromJson(data)); - } else { - return _response; - } - } - - /** - * Lists files for a report. - * - * Request parameters: - * - * [profileId] - The DFA profile ID. - * - * [reportId] - The ID of the parent report. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "10". - * - * [pageToken] - The value of the nextToken from the previous result page. - * - * [sortField] - The field by which to sort the list. - * Possible string values are: - * - "ID" : Sort by file ID. - * - "LAST_MODIFIED_TIME" : Sort by 'lastmodifiedAt' field. - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" : Ascending order. - * - "DESCENDING" : Descending order. - * - * Completes with a [FileList]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<FileList> list(core.String profileId, core.String reportId, {core.int maxResults, core.String pageToken, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/' + commons.Escaper.ecapeVariable('$reportId') + '/files'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FileList.fromJson(data)); - } - -} - - -class SitesResourceApi { - final commons.ApiRequester _requester; - - SitesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one site by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Site ID. - * - * Completes with a [Site]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Site> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sites/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Site.fromJson(data)); - } - - /** - * Inserts a new site. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Site]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Site> insert(Site request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sites'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Site.fromJson(data)); - } - - /** - * Retrieves a list of sites, possibly filtered. This method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [acceptsInStreamVideoPlacements] - This search filter is no longer - * supported and will have no effect on the results returned. - * - * [acceptsInterstitialPlacements] - This search filter is no longer supported - * and will have no effect on the results returned. - * - * [acceptsPublisherPaidPlacements] - Select only sites that accept publisher - * paid placements. - * - * [adWordsSite] - Select only AdWords sites. - * - * [approved] - Select only approved sites. - * - * [campaignIds] - Select only sites with these campaign IDs. - * - * [directorySiteIds] - Select only sites with these directory site IDs. - * - * [ids] - Select only sites with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name, ID or keyName. - * Wildcards (*) are allowed. For example, "site*2015" will return objects - * with names like "site June 2015", "site April 2015", or simply "site 2015". - * Most of the searches also add wildcards implicitly at the start and the end - * of the search string. For example, a search string of "site" will match - * objects with name "my site", "site 2015", or simply "site". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [subaccountId] - Select only sites with this subaccount ID. - * - * [unmappedSite] - Select only sites that have not been mapped to a directory - * site. - * - * Completes with a [SitesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<SitesListResponse> list(core.String profileId, {core.bool acceptsInStreamVideoPlacements, core.bool acceptsInterstitialPlacements, core.bool acceptsPublisherPaidPlacements, core.bool adWordsSite, core.bool approved, core.List<core.String> campaignIds, core.List<core.String> directorySiteIds, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder, core.String subaccountId, core.bool unmappedSite}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (acceptsInStreamVideoPlacements != null) { - _queryParams["acceptsInStreamVideoPlacements"] = ["${acceptsInStreamVideoPlacements}"]; - } - if (acceptsInterstitialPlacements != null) { - _queryParams["acceptsInterstitialPlacements"] = ["${acceptsInterstitialPlacements}"]; - } - if (acceptsPublisherPaidPlacements != null) { - _queryParams["acceptsPublisherPaidPlacements"] = ["${acceptsPublisherPaidPlacements}"]; - } - if (adWordsSite != null) { - _queryParams["adWordsSite"] = ["${adWordsSite}"]; - } - if (approved != null) { - _queryParams["approved"] = ["${approved}"]; - } - if (campaignIds != null) { - _queryParams["campaignIds"] = campaignIds; - } - if (directorySiteIds != null) { - _queryParams["directorySiteIds"] = directorySiteIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (subaccountId != null) { - _queryParams["subaccountId"] = [subaccountId]; - } - if (unmappedSite != null) { - _queryParams["unmappedSite"] = ["${unmappedSite}"]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sites'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new SitesListResponse.fromJson(data)); - } - - /** - * Updates an existing site. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Site ID. - * - * Completes with a [Site]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Site> patch(Site request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sites'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Site.fromJson(data)); - } - - /** - * Updates an existing site. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Site]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Site> update(Site request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sites'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Site.fromJson(data)); - } - -} - - -class SizesResourceApi { - final commons.ApiRequester _requester; - - SizesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one size by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Size ID. - * - * Completes with a [Size]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Size> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sizes/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Size.fromJson(data)); - } - - /** - * Inserts a new size. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Size]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Size> insert(Size request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sizes'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Size.fromJson(data)); - } - - /** - * Retrieves a list of sizes, possibly filtered. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [height] - Select only sizes with this height. - * Value must be between "0" and "32767". - * - * [iabStandard] - Select only IAB standard sizes. - * - * [ids] - Select only sizes with these IDs. - * - * [width] - Select only sizes with this width. - * Value must be between "0" and "32767". - * - * Completes with a [SizesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<SizesListResponse> list(core.String profileId, {core.int height, core.bool iabStandard, core.List<core.String> ids, core.int width}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (height != null) { - _queryParams["height"] = ["${height}"]; - } - if (iabStandard != null) { - _queryParams["iabStandard"] = ["${iabStandard}"]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (width != null) { - _queryParams["width"] = ["${width}"]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sizes'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new SizesListResponse.fromJson(data)); - } - -} - - -class SubaccountsResourceApi { - final commons.ApiRequester _requester; - - SubaccountsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one subaccount by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Subaccount ID. - * - * Completes with a [Subaccount]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Subaccount> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/subaccounts/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Subaccount.fromJson(data)); - } - - /** - * Inserts a new subaccount. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Subaccount]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Subaccount> insert(Subaccount request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/subaccounts'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Subaccount.fromJson(data)); - } - - /** - * Gets a list of subaccounts, possibly filtered. This method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [ids] - Select only subaccounts with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "subaccount*2015" will return objects with names - * like "subaccount June 2015", "subaccount April 2015", or simply "subaccount - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "subaccount" - * will match objects with name "my subaccount", "subaccount 2015", or simply - * "subaccount". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [SubaccountsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<SubaccountsListResponse> list(core.String profileId, {core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/subaccounts'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new SubaccountsListResponse.fromJson(data)); - } - - /** - * Updates an existing subaccount. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Subaccount ID. - * - * Completes with a [Subaccount]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Subaccount> patch(Subaccount request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/subaccounts'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Subaccount.fromJson(data)); - } - - /** - * Updates an existing subaccount. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Subaccount]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Subaccount> update(Subaccount request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/subaccounts'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Subaccount.fromJson(data)); - } - -} - - -class TargetableRemarketingListsResourceApi { - final commons.ApiRequester _requester; - - TargetableRemarketingListsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one remarketing list by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Remarketing list ID. - * - * Completes with a [TargetableRemarketingList]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<TargetableRemarketingList> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/targetableRemarketingLists/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new TargetableRemarketingList.fromJson(data)); - } - - /** - * Retrieves a list of targetable remarketing lists, possibly filtered. This - * method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserId] - Select only targetable remarketing lists targetable by - * these advertisers. - * - * [active] - Select only active or only inactive targetable remarketing - * lists. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [name] - Allows searching for objects by name or ID. Wildcards (*) are - * allowed. For example, "remarketing list*2015" will return objects with - * names like "remarketing list June 2015", "remarketing list April 2015", or - * simply "remarketing list 2015". Most of the searches also add wildcards - * implicitly at the start and the end of the search string. For example, a - * search string of "remarketing list" will match objects with name "my - * remarketing list", "remarketing list 2015", or simply "remarketing list". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [TargetableRemarketingListsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<TargetableRemarketingListsListResponse> list(core.String profileId, core.String advertiserId, {core.bool active, core.int maxResults, core.String name, core.String pageToken, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserId == null) { - throw new core.ArgumentError("Parameter advertiserId is required."); - } - _queryParams["advertiserId"] = [advertiserId]; - if (active != null) { - _queryParams["active"] = ["${active}"]; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (name != null) { - _queryParams["name"] = [name]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/targetableRemarketingLists'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new TargetableRemarketingListsListResponse.fromJson(data)); - } - -} - - -class TargetingTemplatesResourceApi { - final commons.ApiRequester _requester; - - TargetingTemplatesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one targeting template by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Targeting template ID. - * - * Completes with a [TargetingTemplate]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<TargetingTemplate> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/targetingTemplates/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new TargetingTemplate.fromJson(data)); - } - - /** - * Inserts a new targeting template. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [TargetingTemplate]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<TargetingTemplate> insert(TargetingTemplate request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/targetingTemplates'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new TargetingTemplate.fromJson(data)); - } - - /** - * Retrieves a list of targeting templates, optionally filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserId] - Select only targeting templates with this advertiser ID. - * - * [ids] - Select only targeting templates with these IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "template*2015" will return objects with names - * like "template June 2015", "template April 2015", or simply "template - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "template" - * will match objects with name "my template", "template 2015", or simply - * "template". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [TargetingTemplatesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<TargetingTemplatesListResponse> list(core.String profileId, {core.String advertiserId, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserId != null) { - _queryParams["advertiserId"] = [advertiserId]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/targetingTemplates'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new TargetingTemplatesListResponse.fromJson(data)); - } - - /** - * Updates an existing targeting template. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Targeting template ID. - * - * Completes with a [TargetingTemplate]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<TargetingTemplate> patch(TargetingTemplate request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/targetingTemplates'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new TargetingTemplate.fromJson(data)); - } - - /** - * Updates an existing targeting template. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [TargetingTemplate]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<TargetingTemplate> update(TargetingTemplate request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/targetingTemplates'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new TargetingTemplate.fromJson(data)); - } - -} - - -class UserProfilesResourceApi { - final commons.ApiRequester _requester; - - UserProfilesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one user profile by ID. - * - * Request parameters: - * - * [profileId] - The user profile ID. - * - * Completes with a [UserProfile]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<UserProfile> get(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserProfile.fromJson(data)); - } - - /** - * Retrieves list of user profiles for a user. - * - * Request parameters: - * - * Completes with a [UserProfileList]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<UserProfileList> list() { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - - _url = 'userprofiles'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserProfileList.fromJson(data)); - } - -} - - -class UserRolePermissionGroupsResourceApi { - final commons.ApiRequester _requester; - - UserRolePermissionGroupsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one user role permission group by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - User role permission group ID. - * - * Completes with a [UserRolePermissionGroup]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<UserRolePermissionGroup> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRolePermissionGroups/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRolePermissionGroup.fromJson(data)); - } - - /** - * Gets a list of all supported user role permission groups. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [UserRolePermissionGroupsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<UserRolePermissionGroupsListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRolePermissionGroups'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRolePermissionGroupsListResponse.fromJson(data)); - } - -} - - -class UserRolePermissionsResourceApi { - final commons.ApiRequester _requester; - - UserRolePermissionsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one user role permission by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - User role permission ID. - * - * Completes with a [UserRolePermission]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<UserRolePermission> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRolePermissions/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRolePermission.fromJson(data)); - } - - /** - * Gets a list of user role permissions, possibly filtered. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [ids] - Select only user role permissions with these IDs. - * - * Completes with a [UserRolePermissionsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<UserRolePermissionsListResponse> list(core.String profileId, {core.List<core.String> ids}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRolePermissions'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRolePermissionsListResponse.fromJson(data)); - } - -} - - -class UserRolesResourceApi { - final commons.ApiRequester _requester; - - UserRolesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing user role. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - User role ID. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future delete(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRoles/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one user role by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - User role ID. - * - * Completes with a [UserRole]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<UserRole> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRoles/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRole.fromJson(data)); - } - - /** - * Inserts a new user role. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [UserRole]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<UserRole> insert(UserRole request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRoles'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRole.fromJson(data)); - } - - /** - * Retrieves a list of user roles, possibly filtered. This method supports - * paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [accountUserRoleOnly] - Select only account level user roles not associated - * with any specific subaccount. - * - * [ids] - Select only user roles with the specified IDs. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "1000". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "userrole*2015" will return objects with names - * like "userrole June 2015", "userrole April 2015", or simply "userrole - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "userrole" - * will match objects with name "my userrole", "userrole 2015", or simply - * "userrole". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [subaccountId] - Select only user roles that belong to this subaccount. - * - * Completes with a [UserRolesListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<UserRolesListResponse> list(core.String profileId, {core.bool accountUserRoleOnly, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder, core.String subaccountId}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (accountUserRoleOnly != null) { - _queryParams["accountUserRoleOnly"] = ["${accountUserRoleOnly}"]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (subaccountId != null) { - _queryParams["subaccountId"] = [subaccountId]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRoles'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRolesListResponse.fromJson(data)); - } - - /** - * Updates an existing user role. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - User role ID. - * - * Completes with a [UserRole]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<UserRole> patch(UserRole request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRoles'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRole.fromJson(data)); - } - - /** - * Updates an existing user role. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [UserRole]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<UserRole> update(UserRole request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRoles'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRole.fromJson(data)); - } - -} - - -class VideoFormatsResourceApi { - final commons.ApiRequester _requester; - - VideoFormatsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one video format by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Video format ID. - * - * Completes with a [VideoFormat]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<VideoFormat> get(core.String profileId, core.int id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/videoFormats/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new VideoFormat.fromJson(data)); - } - - /** - * Lists available video formats. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [VideoFormatsListResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<VideoFormatsListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/videoFormats'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new VideoFormatsListResponse.fromJson(data)); - } - -} - - - -/** Contains properties of a DCM account. */ -class Account { - /** Account permissions assigned to this account. */ - core.List<core.String> accountPermissionIds; - /** - * Profile for this account. This is a read-only field that can be left blank. - * Possible string values are: - * - "ACCOUNT_PROFILE_BASIC" - * - "ACCOUNT_PROFILE_STANDARD" - */ - core.String accountProfile; - /** Whether this account is active. */ - core.bool active; - /** - * Maximum number of active ads allowed for this account. - * Possible string values are: - * - "ACTIVE_ADS_TIER_100K" - * - "ACTIVE_ADS_TIER_1M" - * - "ACTIVE_ADS_TIER_200K" - * - "ACTIVE_ADS_TIER_300K" - * - "ACTIVE_ADS_TIER_40K" - * - "ACTIVE_ADS_TIER_500K" - * - "ACTIVE_ADS_TIER_750K" - * - "ACTIVE_ADS_TIER_75K" - */ - core.String activeAdsLimitTier; - /** - * Whether to serve creatives with Active View tags. If disabled, viewability - * data will not be available for any impressions. - */ - core.bool activeViewOptOut; - /** User role permissions available to the user roles of this account. */ - core.List<core.String> availablePermissionIds; - /** ID of the country associated with this account. */ - core.String countryId; - /** - * ID of currency associated with this account. This is a required field. - * Acceptable values are: - * - "1" for USD - * - "2" for GBP - * - "3" for ESP - * - "4" for SEK - * - "5" for CAD - * - "6" for JPY - * - "7" for DEM - * - "8" for AUD - * - "9" for FRF - * - "10" for ITL - * - "11" for DKK - * - "12" for NOK - * - "13" for FIM - * - "14" for ZAR - * - "15" for IEP - * - "16" for NLG - * - "17" for EUR - * - "18" for KRW - * - "19" for TWD - * - "20" for SGD - * - "21" for CNY - * - "22" for HKD - * - "23" for NZD - * - "24" for MYR - * - "25" for BRL - * - "26" for PTE - * - "27" for MXP - * - "28" for CLP - * - "29" for TRY - * - "30" for ARS - * - "31" for PEN - * - "32" for ILS - * - "33" for CHF - * - "34" for VEF - * - "35" for COP - * - "36" for GTQ - * - "37" for PLN - * - "39" for INR - * - "40" for THB - * - "41" for IDR - * - "42" for CZK - * - "43" for RON - * - "44" for HUF - * - "45" for RUB - * - "46" for AED - * - "47" for BGN - * - "48" for HRK - * - "49" for MXN - */ - core.String currencyId; - /** Default placement dimensions for this account. */ - core.String defaultCreativeSizeId; - /** Description of this account. */ - core.String description; - /** ID of this account. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#account". - */ - core.String kind; - /** - * Locale of this account. - * Acceptable values are: - * - "cs" (Czech) - * - "de" (German) - * - "en" (English) - * - "en-GB" (English United Kingdom) - * - "es" (Spanish) - * - "fr" (French) - * - "it" (Italian) - * - "ja" (Japanese) - * - "ko" (Korean) - * - "pl" (Polish) - * - "pt-BR" (Portuguese Brazil) - * - "ru" (Russian) - * - "sv" (Swedish) - * - "tr" (Turkish) - * - "zh-CN" (Chinese Simplified) - * - "zh-TW" (Chinese Traditional) - */ - core.String locale; - /** - * Maximum image size allowed for this account, in kilobytes. Value must be - * greater than or equal to 1. - */ - core.String maximumImageSize; - /** - * Name of this account. This is a required field, and must be less than 128 - * characters long and be globally unique. - */ - core.String name; - /** - * Whether campaigns created in this account will be enabled for Nielsen OCR - * reach ratings by default. - */ - core.bool nielsenOcrEnabled; - /** Reporting configuration of this account. */ - ReportsConfiguration reportsConfiguration; - /** Share Path to Conversion reports with Twitter. */ - core.bool shareReportsWithTwitter; - /** - * File size limit in kilobytes of Rich Media teaser creatives. Acceptable - * values are 1 to 10240, inclusive. - */ - core.String teaserSizeLimit; - - Account(); - - Account.fromJson(core.Map _json) { - if (_json.containsKey("accountPermissionIds")) { - accountPermissionIds = _json["accountPermissionIds"]; - } - if (_json.containsKey("accountProfile")) { - accountProfile = _json["accountProfile"]; - } - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("activeAdsLimitTier")) { - activeAdsLimitTier = _json["activeAdsLimitTier"]; - } - if (_json.containsKey("activeViewOptOut")) { - activeViewOptOut = _json["activeViewOptOut"]; - } - if (_json.containsKey("availablePermissionIds")) { - availablePermissionIds = _json["availablePermissionIds"]; - } - if (_json.containsKey("countryId")) { - countryId = _json["countryId"]; - } - if (_json.containsKey("currencyId")) { - currencyId = _json["currencyId"]; - } - if (_json.containsKey("defaultCreativeSizeId")) { - defaultCreativeSizeId = _json["defaultCreativeSizeId"]; - } - if (_json.containsKey("description")) { - description = _json["description"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("locale")) { - locale = _json["locale"]; - } - if (_json.containsKey("maximumImageSize")) { - maximumImageSize = _json["maximumImageSize"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("nielsenOcrEnabled")) { - nielsenOcrEnabled = _json["nielsenOcrEnabled"]; - } - if (_json.containsKey("reportsConfiguration")) { - reportsConfiguration = new ReportsConfiguration.fromJson(_json["reportsConfiguration"]); - } - if (_json.containsKey("shareReportsWithTwitter")) { - shareReportsWithTwitter = _json["shareReportsWithTwitter"]; - } - if (_json.containsKey("teaserSizeLimit")) { - teaserSizeLimit = _json["teaserSizeLimit"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountPermissionIds != null) { - _json["accountPermissionIds"] = accountPermissionIds; - } - if (accountProfile != null) { - _json["accountProfile"] = accountProfile; - } - if (active != null) { - _json["active"] = active; - } - if (activeAdsLimitTier != null) { - _json["activeAdsLimitTier"] = activeAdsLimitTier; - } - if (activeViewOptOut != null) { - _json["activeViewOptOut"] = activeViewOptOut; - } - if (availablePermissionIds != null) { - _json["availablePermissionIds"] = availablePermissionIds; - } - if (countryId != null) { - _json["countryId"] = countryId; - } - if (currencyId != null) { - _json["currencyId"] = currencyId; - } - if (defaultCreativeSizeId != null) { - _json["defaultCreativeSizeId"] = defaultCreativeSizeId; - } - if (description != null) { - _json["description"] = description; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (locale != null) { - _json["locale"] = locale; - } - if (maximumImageSize != null) { - _json["maximumImageSize"] = maximumImageSize; - } - if (name != null) { - _json["name"] = name; - } - if (nielsenOcrEnabled != null) { - _json["nielsenOcrEnabled"] = nielsenOcrEnabled; - } - if (reportsConfiguration != null) { - _json["reportsConfiguration"] = (reportsConfiguration).toJson(); - } - if (shareReportsWithTwitter != null) { - _json["shareReportsWithTwitter"] = shareReportsWithTwitter; - } - if (teaserSizeLimit != null) { - _json["teaserSizeLimit"] = teaserSizeLimit; - } - return _json; - } -} - -/** Gets a summary of active ads in an account. */ -class AccountActiveAdSummary { - /** ID of the account. */ - core.String accountId; - /** Ads that have been activated for the account */ - core.String activeAds; - /** - * Maximum number of active ads allowed for the account. - * Possible string values are: - * - "ACTIVE_ADS_TIER_100K" - * - "ACTIVE_ADS_TIER_1M" - * - "ACTIVE_ADS_TIER_200K" - * - "ACTIVE_ADS_TIER_300K" - * - "ACTIVE_ADS_TIER_40K" - * - "ACTIVE_ADS_TIER_500K" - * - "ACTIVE_ADS_TIER_750K" - * - "ACTIVE_ADS_TIER_75K" - */ - core.String activeAdsLimitTier; - /** Ads that can be activated for the account. */ - core.String availableAds; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountActiveAdSummary". - */ - core.String kind; - - AccountActiveAdSummary(); - - AccountActiveAdSummary.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("activeAds")) { - activeAds = _json["activeAds"]; - } - if (_json.containsKey("activeAdsLimitTier")) { - activeAdsLimitTier = _json["activeAdsLimitTier"]; - } - if (_json.containsKey("availableAds")) { - availableAds = _json["availableAds"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (activeAds != null) { - _json["activeAds"] = activeAds; - } - if (activeAdsLimitTier != null) { - _json["activeAdsLimitTier"] = activeAdsLimitTier; - } - if (availableAds != null) { - _json["availableAds"] = availableAds; - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** - * AccountPermissions contains information about a particular account - * permission. Some features of DCM require an account permission to be present - * in the account. - */ -class AccountPermission { - /** - * Account profiles associated with this account permission. - * - * Possible values are: - * - "ACCOUNT_PROFILE_BASIC" - * - "ACCOUNT_PROFILE_STANDARD" - */ - core.List<core.String> accountProfiles; - /** ID of this account permission. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountPermission". - */ - core.String kind; - /** - * Administrative level required to enable this account permission. - * Possible string values are: - * - "ADMINISTRATOR" - * - "USER" - */ - core.String level; - /** Name of this account permission. */ - core.String name; - /** Permission group of this account permission. */ - core.String permissionGroupId; - - AccountPermission(); - - AccountPermission.fromJson(core.Map _json) { - if (_json.containsKey("accountProfiles")) { - accountProfiles = _json["accountProfiles"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("level")) { - level = _json["level"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("permissionGroupId")) { - permissionGroupId = _json["permissionGroupId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountProfiles != null) { - _json["accountProfiles"] = accountProfiles; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (level != null) { - _json["level"] = level; - } - if (name != null) { - _json["name"] = name; - } - if (permissionGroupId != null) { - _json["permissionGroupId"] = permissionGroupId; - } - return _json; - } -} - -/** - * AccountPermissionGroups contains a mapping of permission group IDs to names. - * A permission group is a grouping of account permissions. - */ -class AccountPermissionGroup { - /** ID of this account permission group. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountPermissionGroup". - */ - core.String kind; - /** Name of this account permission group. */ - core.String name; - - AccountPermissionGroup(); - - AccountPermissionGroup.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Account Permission Group List Response */ -class AccountPermissionGroupsListResponse { - /** Account permission group collection. */ - core.List<AccountPermissionGroup> accountPermissionGroups; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountPermissionGroupsListResponse". - */ - core.String kind; - - AccountPermissionGroupsListResponse(); - - AccountPermissionGroupsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("accountPermissionGroups")) { - accountPermissionGroups = _json["accountPermissionGroups"].map((value) => new AccountPermissionGroup.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountPermissionGroups != null) { - _json["accountPermissionGroups"] = accountPermissionGroups.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Account Permission List Response */ -class AccountPermissionsListResponse { - /** Account permission collection. */ - core.List<AccountPermission> accountPermissions; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountPermissionsListResponse". - */ - core.String kind; - - AccountPermissionsListResponse(); - - AccountPermissionsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("accountPermissions")) { - accountPermissions = _json["accountPermissions"].map((value) => new AccountPermission.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountPermissions != null) { - _json["accountPermissions"] = accountPermissions.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** - * AccountUserProfiles contains properties of a DCM user profile. This resource - * is specifically for managing user profiles, whereas UserProfiles is for - * accessing the API. - */ -class AccountUserProfile { - /** - * Account ID of the user profile. This is a read-only field that can be left - * blank. - */ - core.String accountId; - /** - * Whether this user profile is active. This defaults to false, and must be - * set true on insert for the user profile to be usable. - */ - core.bool active; - /** - * Filter that describes which advertisers are visible to the user profile. - */ - ObjectFilter advertiserFilter; - /** Filter that describes which campaigns are visible to the user profile. */ - ObjectFilter campaignFilter; - /** Comments for this user profile. */ - core.String comments; - /** - * Email of the user profile. The email addresss must be linked to a Google - * Account. This field is required on insertion and is read-only after - * insertion. - */ - core.String email; - /** ID of the user profile. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountUserProfile". - */ - core.String kind; - /** - * Locale of the user profile. This is a required field. - * Acceptable values are: - * - "cs" (Czech) - * - "de" (German) - * - "en" (English) - * - "en-GB" (English United Kingdom) - * - "es" (Spanish) - * - "fr" (French) - * - "it" (Italian) - * - "ja" (Japanese) - * - "ko" (Korean) - * - "pl" (Polish) - * - "pt-BR" (Portuguese Brazil) - * - "ru" (Russian) - * - "sv" (Swedish) - * - "tr" (Turkish) - * - "zh-CN" (Chinese Simplified) - * - "zh-TW" (Chinese Traditional) - */ - core.String locale; - /** - * Name of the user profile. This is a required field. Must be less than 64 - * characters long, must be globally unique, and cannot contain whitespace or - * any of the following characters: "&;"#%,". - */ - core.String name; - /** Filter that describes which sites are visible to the user profile. */ - ObjectFilter siteFilter; - /** - * Subaccount ID of the user profile. This is a read-only field that can be - * left blank. - */ - core.String subaccountId; - /** - * Trafficker type of this user profile. - * Possible string values are: - * - "EXTERNAL_TRAFFICKER" - * - "INTERNAL_NON_TRAFFICKER" - * - "INTERNAL_TRAFFICKER" - */ - core.String traffickerType; - /** - * User type of the user profile. This is a read-only field that can be left - * blank. - * Possible string values are: - * - "INTERNAL_ADMINISTRATOR" - * - "NORMAL_USER" - * - "READ_ONLY_SUPER_USER" - * - "SUPER_USER" - */ - core.String userAccessType; - /** - * Filter that describes which user roles are visible to the user profile. - */ - ObjectFilter userRoleFilter; - /** User role ID of the user profile. This is a required field. */ - core.String userRoleId; - - AccountUserProfile(); - - AccountUserProfile.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("advertiserFilter")) { - advertiserFilter = new ObjectFilter.fromJson(_json["advertiserFilter"]); - } - if (_json.containsKey("campaignFilter")) { - campaignFilter = new ObjectFilter.fromJson(_json["campaignFilter"]); - } - if (_json.containsKey("comments")) { - comments = _json["comments"]; - } - if (_json.containsKey("email")) { - email = _json["email"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("locale")) { - locale = _json["locale"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("siteFilter")) { - siteFilter = new ObjectFilter.fromJson(_json["siteFilter"]); - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("traffickerType")) { - traffickerType = _json["traffickerType"]; - } - if (_json.containsKey("userAccessType")) { - userAccessType = _json["userAccessType"]; - } - if (_json.containsKey("userRoleFilter")) { - userRoleFilter = new ObjectFilter.fromJson(_json["userRoleFilter"]); - } - if (_json.containsKey("userRoleId")) { - userRoleId = _json["userRoleId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (active != null) { - _json["active"] = active; - } - if (advertiserFilter != null) { - _json["advertiserFilter"] = (advertiserFilter).toJson(); - } - if (campaignFilter != null) { - _json["campaignFilter"] = (campaignFilter).toJson(); - } - if (comments != null) { - _json["comments"] = comments; - } - if (email != null) { - _json["email"] = email; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (locale != null) { - _json["locale"] = locale; - } - if (name != null) { - _json["name"] = name; - } - if (siteFilter != null) { - _json["siteFilter"] = (siteFilter).toJson(); - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (traffickerType != null) { - _json["traffickerType"] = traffickerType; - } - if (userAccessType != null) { - _json["userAccessType"] = userAccessType; - } - if (userRoleFilter != null) { - _json["userRoleFilter"] = (userRoleFilter).toJson(); - } - if (userRoleId != null) { - _json["userRoleId"] = userRoleId; - } - return _json; - } -} - -/** Account User Profile List Response */ -class AccountUserProfilesListResponse { - /** Account user profile collection. */ - core.List<AccountUserProfile> accountUserProfiles; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountUserProfilesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - AccountUserProfilesListResponse(); - - AccountUserProfilesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("accountUserProfiles")) { - accountUserProfiles = _json["accountUserProfiles"].map((value) => new AccountUserProfile.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountUserProfiles != null) { - _json["accountUserProfiles"] = accountUserProfiles.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Account List Response */ -class AccountsListResponse { - /** Account collection. */ - core.List<Account> accounts; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - AccountsListResponse(); - - AccountsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("accounts")) { - accounts = _json["accounts"].map((value) => new Account.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accounts != null) { - _json["accounts"] = accounts.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Represents an activity group. */ -class Activities { - /** - * List of activity filters. The dimension values need to be all either of - * type "dfa:activity" or "dfa:activityGroup". - */ - core.List<DimensionValue> filters; - /** The kind of resource this is, in this case dfareporting#activities. */ - core.String kind; - /** List of names of floodlight activity metrics. */ - core.List<core.String> metricNames; - - Activities(); - - Activities.fromJson(core.Map _json) { - if (_json.containsKey("filters")) { - filters = _json["filters"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metricNames")) { - metricNames = _json["metricNames"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (filters != null) { - _json["filters"] = filters.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (metricNames != null) { - _json["metricNames"] = metricNames; - } - return _json; - } -} - -/** Contains properties of a DCM ad. */ -class Ad { - /** - * Account ID of this ad. This is a read-only field that can be left blank. - */ - core.String accountId; - /** Whether this ad is active. When true, archived must be false. */ - core.bool active; - /** Advertiser ID of this ad. This is a required field on insertion. */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** Whether this ad is archived. When true, active must be false. */ - core.bool archived; - /** - * Audience segment ID that is being targeted for this ad. Applicable when - * type is AD_SERVING_STANDARD_AD. - */ - core.String audienceSegmentId; - /** Campaign ID of this ad. This is a required field on insertion. */ - core.String campaignId; - /** - * Dimension value for the ID of the campaign. This is a read-only, - * auto-generated field. - */ - DimensionValue campaignIdDimensionValue; - /** - * Click-through URL for this ad. This is a required field on insertion. - * Applicable when type is AD_SERVING_CLICK_TRACKER. - */ - ClickThroughUrl clickThroughUrl; - /** - * Click-through URL suffix properties for this ad. Applies to the URL in the - * ad or (if overriding ad properties) the URL in the creative. - */ - ClickThroughUrlSuffixProperties clickThroughUrlSuffixProperties; - /** Comments for this ad. */ - core.String comments; - /** - * Compatibility of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. - * DISPLAY and DISPLAY_INTERSTITIAL refer to either rendering on desktop or on - * mobile devices or in mobile apps for regular or interstitial ads, - * respectively. APP and APP_INTERSTITIAL are only used for existing default - * ads. New mobile placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL - * and default ads created for those placements will be limited to those - * compatibility types. IN_STREAM_VIDEO refers to rendering in-stream video - * ads developed with the VAST standard. - * Possible string values are: - * - "APP" - * - "APP_INTERSTITIAL" - * - "DISPLAY" - * - "DISPLAY_INTERSTITIAL" - * - "IN_STREAM_VIDEO" - */ - core.String compatibility; - /** Information about the creation of this ad. This is a read-only field. */ - LastModifiedInfo createInfo; - /** - * Creative group assignments for this ad. Applicable when type is - * AD_SERVING_CLICK_TRACKER. Only one assignment per creative group number is - * allowed for a maximum of two assignments. - */ - core.List<CreativeGroupAssignment> creativeGroupAssignments; - /** - * Creative rotation for this ad. Applicable when type is - * AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. When - * type is AD_SERVING_DEFAULT_AD, this field should have exactly one - * creativeAssignment. - */ - CreativeRotation creativeRotation; - /** - * Time and day targeting information for this ad. This field must be left - * blank if the ad is using a targeting template. Applicable when type is - * AD_SERVING_STANDARD_AD. - */ - DayPartTargeting dayPartTargeting; - /** Default click-through event tag properties for this ad. */ - DefaultClickThroughEventTagProperties defaultClickThroughEventTagProperties; - /** - * Delivery schedule information for this ad. Applicable when type is - * AD_SERVING_STANDARD_AD or AD_SERVING_TRACKING. This field along with - * subfields priority and impressionRatio are required on insertion when type - * is AD_SERVING_STANDARD_AD. - */ - DeliverySchedule deliverySchedule; - /** - * Whether this ad is a dynamic click tracker. Applicable when type is - * AD_SERVING_CLICK_TRACKER. This is a required field on insert, and is - * read-only after insert. - */ - core.bool dynamicClickTracker; - /** - * Date and time that this ad should stop serving. Must be later than the - * start time. This is a required field on insertion. - */ - core.DateTime endTime; - /** Event tag overrides for this ad. */ - core.List<EventTagOverride> eventTagOverrides; - /** - * Geographical targeting information for this ad. This field must be left - * blank if the ad is using a targeting template. Applicable when type is - * AD_SERVING_STANDARD_AD. - */ - GeoTargeting geoTargeting; - /** ID of this ad. This is a read-only, auto-generated field. */ - core.String id; - /** - * Dimension value for the ID of this ad. This is a read-only, auto-generated - * field. - */ - DimensionValue idDimensionValue; - /** - * Key-value targeting information for this ad. This field must be left blank - * if the ad is using a targeting template. Applicable when type is - * AD_SERVING_STANDARD_AD. - */ - KeyValueTargetingExpression keyValueTargetingExpression; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#ad". - */ - core.String kind; - /** - * Language targeting information for this ad. This field must be left blank - * if the ad is using a targeting template. Applicable when type is - * AD_SERVING_STANDARD_AD. - */ - LanguageTargeting languageTargeting; - /** - * Information about the most recent modification of this ad. This is a - * read-only field. - */ - LastModifiedInfo lastModifiedInfo; - /** - * Name of this ad. This is a required field and must be less than 256 - * characters long. - */ - core.String name; - /** Placement assignments for this ad. */ - core.List<PlacementAssignment> placementAssignments; - /** - * Remarketing list targeting expression for this ad. This field must be left - * blank if the ad is using a targeting template. Applicable when type is - * AD_SERVING_STANDARD_AD. - */ - ListTargetingExpression remarketingListExpression; - /** Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. */ - Size size; - /** - * Whether this ad is ssl compliant. This is a read-only field that is - * auto-generated when the ad is inserted or updated. - */ - core.bool sslCompliant; - /** - * Whether this ad requires ssl. This is a read-only field that is - * auto-generated when the ad is inserted or updated. - */ - core.bool sslRequired; - /** - * Date and time that this ad should start serving. If creating an ad, this - * field must be a time in the future. This is a required field on insertion. - */ - core.DateTime startTime; - /** - * Subaccount ID of this ad. This is a read-only field that can be left blank. - */ - core.String subaccountId; - /** - * Targeting template ID, used to apply preconfigured targeting information to - * this ad. This cannot be set while any of dayPartTargeting, geoTargeting, - * keyValueTargetingExpression, languageTargeting, remarketingListExpression, - * or technologyTargeting are set. Applicable when type is - * AD_SERVING_STANDARD_AD. - */ - core.String targetingTemplateId; - /** - * Technology platform targeting information for this ad. This field must be - * left blank if the ad is using a targeting template. Applicable when type is - * AD_SERVING_STANDARD_AD. - */ - TechnologyTargeting technologyTargeting; - /** - * Type of ad. This is a required field on insertion. Note that default ads - * (AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative resource). - * Possible string values are: - * - "AD_SERVING_CLICK_TRACKER" - * - "AD_SERVING_DEFAULT_AD" - * - "AD_SERVING_STANDARD_AD" - * - "AD_SERVING_TRACKING" - */ - core.String type; - - Ad(); - - Ad.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("archived")) { - archived = _json["archived"]; - } - if (_json.containsKey("audienceSegmentId")) { - audienceSegmentId = _json["audienceSegmentId"]; - } - if (_json.containsKey("campaignId")) { - campaignId = _json["campaignId"]; - } - if (_json.containsKey("campaignIdDimensionValue")) { - campaignIdDimensionValue = new DimensionValue.fromJson(_json["campaignIdDimensionValue"]); - } - if (_json.containsKey("clickThroughUrl")) { - clickThroughUrl = new ClickThroughUrl.fromJson(_json["clickThroughUrl"]); - } - if (_json.containsKey("clickThroughUrlSuffixProperties")) { - clickThroughUrlSuffixProperties = new ClickThroughUrlSuffixProperties.fromJson(_json["clickThroughUrlSuffixProperties"]); - } - if (_json.containsKey("comments")) { - comments = _json["comments"]; - } - if (_json.containsKey("compatibility")) { - compatibility = _json["compatibility"]; - } - if (_json.containsKey("createInfo")) { - createInfo = new LastModifiedInfo.fromJson(_json["createInfo"]); - } - if (_json.containsKey("creativeGroupAssignments")) { - creativeGroupAssignments = _json["creativeGroupAssignments"].map((value) => new CreativeGroupAssignment.fromJson(value)).toList(); - } - if (_json.containsKey("creativeRotation")) { - creativeRotation = new CreativeRotation.fromJson(_json["creativeRotation"]); - } - if (_json.containsKey("dayPartTargeting")) { - dayPartTargeting = new DayPartTargeting.fromJson(_json["dayPartTargeting"]); - } - if (_json.containsKey("defaultClickThroughEventTagProperties")) { - defaultClickThroughEventTagProperties = new DefaultClickThroughEventTagProperties.fromJson(_json["defaultClickThroughEventTagProperties"]); - } - if (_json.containsKey("deliverySchedule")) { - deliverySchedule = new DeliverySchedule.fromJson(_json["deliverySchedule"]); - } - if (_json.containsKey("dynamicClickTracker")) { - dynamicClickTracker = _json["dynamicClickTracker"]; - } - if (_json.containsKey("endTime")) { - endTime = core.DateTime.parse(_json["endTime"]); - } - if (_json.containsKey("eventTagOverrides")) { - eventTagOverrides = _json["eventTagOverrides"].map((value) => new EventTagOverride.fromJson(value)).toList(); - } - if (_json.containsKey("geoTargeting")) { - geoTargeting = new GeoTargeting.fromJson(_json["geoTargeting"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("keyValueTargetingExpression")) { - keyValueTargetingExpression = new KeyValueTargetingExpression.fromJson(_json["keyValueTargetingExpression"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("languageTargeting")) { - languageTargeting = new LanguageTargeting.fromJson(_json["languageTargeting"]); - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("placementAssignments")) { - placementAssignments = _json["placementAssignments"].map((value) => new PlacementAssignment.fromJson(value)).toList(); - } - if (_json.containsKey("remarketingListExpression")) { - remarketingListExpression = new ListTargetingExpression.fromJson(_json["remarketingListExpression"]); - } - if (_json.containsKey("size")) { - size = new Size.fromJson(_json["size"]); - } - if (_json.containsKey("sslCompliant")) { - sslCompliant = _json["sslCompliant"]; - } - if (_json.containsKey("sslRequired")) { - sslRequired = _json["sslRequired"]; - } - if (_json.containsKey("startTime")) { - startTime = core.DateTime.parse(_json["startTime"]); - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("targetingTemplateId")) { - targetingTemplateId = _json["targetingTemplateId"]; - } - if (_json.containsKey("technologyTargeting")) { - technologyTargeting = new TechnologyTargeting.fromJson(_json["technologyTargeting"]); - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (active != null) { - _json["active"] = active; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (archived != null) { - _json["archived"] = archived; - } - if (audienceSegmentId != null) { - _json["audienceSegmentId"] = audienceSegmentId; - } - if (campaignId != null) { - _json["campaignId"] = campaignId; - } - if (campaignIdDimensionValue != null) { - _json["campaignIdDimensionValue"] = (campaignIdDimensionValue).toJson(); - } - if (clickThroughUrl != null) { - _json["clickThroughUrl"] = (clickThroughUrl).toJson(); - } - if (clickThroughUrlSuffixProperties != null) { - _json["clickThroughUrlSuffixProperties"] = (clickThroughUrlSuffixProperties).toJson(); - } - if (comments != null) { - _json["comments"] = comments; - } - if (compatibility != null) { - _json["compatibility"] = compatibility; - } - if (createInfo != null) { - _json["createInfo"] = (createInfo).toJson(); - } - if (creativeGroupAssignments != null) { - _json["creativeGroupAssignments"] = creativeGroupAssignments.map((value) => (value).toJson()).toList(); - } - if (creativeRotation != null) { - _json["creativeRotation"] = (creativeRotation).toJson(); - } - if (dayPartTargeting != null) { - _json["dayPartTargeting"] = (dayPartTargeting).toJson(); - } - if (defaultClickThroughEventTagProperties != null) { - _json["defaultClickThroughEventTagProperties"] = (defaultClickThroughEventTagProperties).toJson(); - } - if (deliverySchedule != null) { - _json["deliverySchedule"] = (deliverySchedule).toJson(); - } - if (dynamicClickTracker != null) { - _json["dynamicClickTracker"] = dynamicClickTracker; - } - if (endTime != null) { - _json["endTime"] = (endTime).toIso8601String(); - } - if (eventTagOverrides != null) { - _json["eventTagOverrides"] = eventTagOverrides.map((value) => (value).toJson()).toList(); - } - if (geoTargeting != null) { - _json["geoTargeting"] = (geoTargeting).toJson(); - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (keyValueTargetingExpression != null) { - _json["keyValueTargetingExpression"] = (keyValueTargetingExpression).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (languageTargeting != null) { - _json["languageTargeting"] = (languageTargeting).toJson(); - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (placementAssignments != null) { - _json["placementAssignments"] = placementAssignments.map((value) => (value).toJson()).toList(); - } - if (remarketingListExpression != null) { - _json["remarketingListExpression"] = (remarketingListExpression).toJson(); - } - if (size != null) { - _json["size"] = (size).toJson(); - } - if (sslCompliant != null) { - _json["sslCompliant"] = sslCompliant; - } - if (sslRequired != null) { - _json["sslRequired"] = sslRequired; - } - if (startTime != null) { - _json["startTime"] = (startTime).toIso8601String(); - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (targetingTemplateId != null) { - _json["targetingTemplateId"] = targetingTemplateId; - } - if (technologyTargeting != null) { - _json["technologyTargeting"] = (technologyTargeting).toJson(); - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** Ad Slot */ -class AdSlot { - /** Comment for this ad slot. */ - core.String comment; - /** - * Ad slot compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering - * either on desktop, mobile devices or in mobile apps for regular or - * interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering - * in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads - * developed with the VAST standard. - * Possible string values are: - * - "APP" - * - "APP_INTERSTITIAL" - * - "DISPLAY" - * - "DISPLAY_INTERSTITIAL" - * - "IN_STREAM_VIDEO" - */ - core.String compatibility; - /** Height of this ad slot. */ - core.String height; - /** - * ID of the placement from an external platform that is linked to this ad - * slot. - */ - core.String linkedPlacementId; - /** Name of this ad slot. */ - core.String name; - /** - * Payment source type of this ad slot. - * Possible string values are: - * - "PLANNING_PAYMENT_SOURCE_TYPE_AGENCY_PAID" - * - "PLANNING_PAYMENT_SOURCE_TYPE_PUBLISHER_PAID" - */ - core.String paymentSourceType; - /** Primary ad slot of a roadblock inventory item. */ - core.bool primary; - /** Width of this ad slot. */ - core.String width; - - AdSlot(); - - AdSlot.fromJson(core.Map _json) { - if (_json.containsKey("comment")) { - comment = _json["comment"]; - } - if (_json.containsKey("compatibility")) { - compatibility = _json["compatibility"]; - } - if (_json.containsKey("height")) { - height = _json["height"]; - } - if (_json.containsKey("linkedPlacementId")) { - linkedPlacementId = _json["linkedPlacementId"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("paymentSourceType")) { - paymentSourceType = _json["paymentSourceType"]; - } - if (_json.containsKey("primary")) { - primary = _json["primary"]; - } - if (_json.containsKey("width")) { - width = _json["width"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (comment != null) { - _json["comment"] = comment; - } - if (compatibility != null) { - _json["compatibility"] = compatibility; - } - if (height != null) { - _json["height"] = height; - } - if (linkedPlacementId != null) { - _json["linkedPlacementId"] = linkedPlacementId; - } - if (name != null) { - _json["name"] = name; - } - if (paymentSourceType != null) { - _json["paymentSourceType"] = paymentSourceType; - } - if (primary != null) { - _json["primary"] = primary; - } - if (width != null) { - _json["width"] = width; - } - return _json; - } -} - -/** Ad List Response */ -class AdsListResponse { - /** Ad collection. */ - core.List<Ad> ads; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#adsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - AdsListResponse(); - - AdsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("ads")) { - ads = _json["ads"].map((value) => new Ad.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (ads != null) { - _json["ads"] = ads.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Contains properties of a DCM advertiser. */ -class Advertiser { - /** - * Account ID of this advertiser.This is a read-only field that can be left - * blank. - */ - core.String accountId; - /** - * ID of the advertiser group this advertiser belongs to. You can group - * advertisers for reporting purposes, allowing you to see aggregated - * information for all advertisers in each group. - */ - core.String advertiserGroupId; - /** - * Suffix added to click-through URL of ad creative associations under this - * advertiser. Must be less than 129 characters long. - */ - core.String clickThroughUrlSuffix; - /** - * ID of the click-through event tag to apply by default to the landing pages - * of this advertiser's campaigns. - */ - core.String defaultClickThroughEventTagId; - /** Default email address used in sender field for tag emails. */ - core.String defaultEmail; - /** - * Floodlight configuration ID of this advertiser. The floodlight - * configuration ID will be created automatically, so on insert this field - * should be left blank. This field can be set to another advertiser's - * floodlight configuration ID in order to share that advertiser's floodlight - * configuration with this advertiser, so long as: - * - This advertiser's original floodlight configuration is not already - * associated with floodlight activities or floodlight activity groups. - * - This advertiser's original floodlight configuration is not already shared - * with another advertiser. - */ - core.String floodlightConfigurationId; - /** - * Dimension value for the ID of the floodlight configuration. This is a - * read-only, auto-generated field. - */ - DimensionValue floodlightConfigurationIdDimensionValue; - /** ID of this advertiser. This is a read-only, auto-generated field. */ - core.String id; - /** - * Dimension value for the ID of this advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue idDimensionValue; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#advertiser". - */ - core.String kind; - /** - * Name of this advertiser. This is a required field and must be less than 256 - * characters long and unique among advertisers of the same account. - */ - core.String name; - /** - * Original floodlight configuration before any sharing occurred. Set the - * floodlightConfigurationId of this advertiser to - * originalFloodlightConfigurationId to unshare the advertiser's current - * floodlight configuration. You cannot unshare an advertiser's floodlight - * configuration if the shared configuration has activities associated with - * any campaign or placement. - */ - core.String originalFloodlightConfigurationId; - /** - * Status of this advertiser. - * Possible string values are: - * - "APPROVED" - * - "ON_HOLD" - */ - core.String status; - /** - * Subaccount ID of this advertiser.This is a read-only field that can be left - * blank. - */ - core.String subaccountId; - /** Suspension status of this advertiser. */ - core.bool suspended; - - Advertiser(); - - Advertiser.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserGroupId")) { - advertiserGroupId = _json["advertiserGroupId"]; - } - if (_json.containsKey("clickThroughUrlSuffix")) { - clickThroughUrlSuffix = _json["clickThroughUrlSuffix"]; - } - if (_json.containsKey("defaultClickThroughEventTagId")) { - defaultClickThroughEventTagId = _json["defaultClickThroughEventTagId"]; - } - if (_json.containsKey("defaultEmail")) { - defaultEmail = _json["defaultEmail"]; - } - if (_json.containsKey("floodlightConfigurationId")) { - floodlightConfigurationId = _json["floodlightConfigurationId"]; - } - if (_json.containsKey("floodlightConfigurationIdDimensionValue")) { - floodlightConfigurationIdDimensionValue = new DimensionValue.fromJson(_json["floodlightConfigurationIdDimensionValue"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("originalFloodlightConfigurationId")) { - originalFloodlightConfigurationId = _json["originalFloodlightConfigurationId"]; - } - if (_json.containsKey("status")) { - status = _json["status"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("suspended")) { - suspended = _json["suspended"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserGroupId != null) { - _json["advertiserGroupId"] = advertiserGroupId; - } - if (clickThroughUrlSuffix != null) { - _json["clickThroughUrlSuffix"] = clickThroughUrlSuffix; - } - if (defaultClickThroughEventTagId != null) { - _json["defaultClickThroughEventTagId"] = defaultClickThroughEventTagId; - } - if (defaultEmail != null) { - _json["defaultEmail"] = defaultEmail; - } - if (floodlightConfigurationId != null) { - _json["floodlightConfigurationId"] = floodlightConfigurationId; - } - if (floodlightConfigurationIdDimensionValue != null) { - _json["floodlightConfigurationIdDimensionValue"] = (floodlightConfigurationIdDimensionValue).toJson(); - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (originalFloodlightConfigurationId != null) { - _json["originalFloodlightConfigurationId"] = originalFloodlightConfigurationId; - } - if (status != null) { - _json["status"] = status; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (suspended != null) { - _json["suspended"] = suspended; - } - return _json; - } -} - -/** - * Groups advertisers together so that reports can be generated for the entire - * group at once. - */ -class AdvertiserGroup { - /** - * Account ID of this advertiser group. This is a read-only field that can be - * left blank. - */ - core.String accountId; - /** - * ID of this advertiser group. This is a read-only, auto-generated field. - */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#advertiserGroup". - */ - core.String kind; - /** - * Name of this advertiser group. This is a required field and must be less - * than 256 characters long and unique among advertiser groups of the same - * account. - */ - core.String name; - - AdvertiserGroup(); - - AdvertiserGroup.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Advertiser Group List Response */ -class AdvertiserGroupsListResponse { - /** Advertiser group collection. */ - core.List<AdvertiserGroup> advertiserGroups; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#advertiserGroupsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - AdvertiserGroupsListResponse(); - - AdvertiserGroupsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("advertiserGroups")) { - advertiserGroups = _json["advertiserGroups"].map((value) => new AdvertiserGroup.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (advertiserGroups != null) { - _json["advertiserGroups"] = advertiserGroups.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Advertiser List Response */ -class AdvertisersListResponse { - /** Advertiser collection. */ - core.List<Advertiser> advertisers; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#advertisersListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - AdvertisersListResponse(); - - AdvertisersListResponse.fromJson(core.Map _json) { - if (_json.containsKey("advertisers")) { - advertisers = _json["advertisers"].map((value) => new Advertiser.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (advertisers != null) { - _json["advertisers"] = advertisers.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Audience Segment. */ -class AudienceSegment { - /** - * Weight allocated to this segment. The weight assigned will be understood in - * proportion to the weights assigned to other segments in the same segment - * group. Acceptable values are 1 to 1000, inclusive. - */ - core.int allocation; - /** - * ID of this audience segment. This is a read-only, auto-generated field. - */ - core.String id; - /** - * Name of this audience segment. This is a required field and must be less - * than 65 characters long. - */ - core.String name; - - AudienceSegment(); - - AudienceSegment.fromJson(core.Map _json) { - if (_json.containsKey("allocation")) { - allocation = _json["allocation"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (allocation != null) { - _json["allocation"] = allocation; - } - if (id != null) { - _json["id"] = id; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Audience Segment Group. */ -class AudienceSegmentGroup { - /** - * Audience segments assigned to this group. The number of segments must be - * between 2 and 100. - */ - core.List<AudienceSegment> audienceSegments; - /** - * ID of this audience segment group. This is a read-only, auto-generated - * field. - */ - core.String id; - /** - * Name of this audience segment group. This is a required field and must be - * less than 65 characters long. - */ - core.String name; - - AudienceSegmentGroup(); - - AudienceSegmentGroup.fromJson(core.Map _json) { - if (_json.containsKey("audienceSegments")) { - audienceSegments = _json["audienceSegments"].map((value) => new AudienceSegment.fromJson(value)).toList(); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (audienceSegments != null) { - _json["audienceSegments"] = audienceSegments.map((value) => (value).toJson()).toList(); - } - if (id != null) { - _json["id"] = id; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Contains information about a browser that can be targeted by ads. */ -class Browser { - /** - * ID referring to this grouping of browser and version numbers. This is the - * ID used for targeting. - */ - core.String browserVersionId; - /** DART ID of this browser. This is the ID used when generating reports. */ - core.String dartId; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#browser". - */ - core.String kind; - /** - * Major version number (leftmost number) of this browser. For example, for - * Chrome 5.0.376.86 beta, this field should be set to 5. An asterisk (*) may - * be used to target any version number, and a question mark (?) may be used - * to target cases where the version number cannot be identified. For example, - * Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome - * 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where - * the ad server knows the browser is Firefox but can't tell which version it - * is. - */ - core.String majorVersion; - /** - * Minor version number (number after first dot on left) of this browser. For - * example, for Chrome 5.0.375.86 beta, this field should be set to 0. An - * asterisk (*) may be used to target any version number, and a question mark - * (?) may be used to target cases where the version number cannot be - * identified. For example, Chrome *.* targets any version of Chrome: 1.2, - * 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. - * Firefox ?.? targets cases where the ad server knows the browser is Firefox - * but can't tell which version it is. - */ - core.String minorVersion; - /** Name of this browser. */ - core.String name; - - Browser(); - - Browser.fromJson(core.Map _json) { - if (_json.containsKey("browserVersionId")) { - browserVersionId = _json["browserVersionId"]; - } - if (_json.containsKey("dartId")) { - dartId = _json["dartId"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("majorVersion")) { - majorVersion = _json["majorVersion"]; - } - if (_json.containsKey("minorVersion")) { - minorVersion = _json["minorVersion"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (browserVersionId != null) { - _json["browserVersionId"] = browserVersionId; - } - if (dartId != null) { - _json["dartId"] = dartId; - } - if (kind != null) { - _json["kind"] = kind; - } - if (majorVersion != null) { - _json["majorVersion"] = majorVersion; - } - if (minorVersion != null) { - _json["minorVersion"] = minorVersion; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Browser List Response */ -class BrowsersListResponse { - /** Browser collection. */ - core.List<Browser> browsers; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#browsersListResponse". - */ - core.String kind; - - BrowsersListResponse(); - - BrowsersListResponse.fromJson(core.Map _json) { - if (_json.containsKey("browsers")) { - browsers = _json["browsers"].map((value) => new Browser.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (browsers != null) { - _json["browsers"] = browsers.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Contains properties of a DCM campaign. */ -class Campaign { - /** - * Account ID of this campaign. This is a read-only field that can be left - * blank. - */ - core.String accountId; - /** Additional creative optimization configurations for the campaign. */ - core.List<CreativeOptimizationConfiguration> additionalCreativeOptimizationConfigurations; - /** Advertiser group ID of the associated advertiser. */ - core.String advertiserGroupId; - /** Advertiser ID of this campaign. This is a required field. */ - core.String advertiserId; - /** - * Dimension value for the advertiser ID of this campaign. This is a - * read-only, auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** Whether this campaign has been archived. */ - core.bool archived; - /** - * Audience segment groups assigned to this campaign. Cannot have more than - * 300 segment groups. - */ - core.List<AudienceSegmentGroup> audienceSegmentGroups; - /** - * Billing invoice code included in the DCM client billing invoices associated - * with the campaign. - */ - core.String billingInvoiceCode; - /** Click-through URL suffix override properties for this campaign. */ - ClickThroughUrlSuffixProperties clickThroughUrlSuffixProperties; - /** - * Arbitrary comments about this campaign. Must be less than 256 characters - * long. - */ - core.String comment; - /** - * Information about the creation of this campaign. This is a read-only field. - */ - LastModifiedInfo createInfo; - /** List of creative group IDs that are assigned to the campaign. */ - core.List<core.String> creativeGroupIds; - /** Creative optimization configuration for the campaign. */ - CreativeOptimizationConfiguration creativeOptimizationConfiguration; - /** Click-through event tag ID override properties for this campaign. */ - DefaultClickThroughEventTagProperties defaultClickThroughEventTagProperties; - /** - * Date on which the campaign will stop running. On insert, the end date must - * be today or a future date. The end date must be later than or be the same - * as the start date. If, for example, you set 6/25/2015 as both the start and - * end dates, the effective campaign run date is just that day only, - * 6/25/2015. The hours, minutes, and seconds of the end date should not be - * set, as doing so will result in an error. This is a required field. - */ - core.DateTime endDate; - /** - * Overrides that can be used to activate or deactivate advertiser event tags. - */ - core.List<EventTagOverride> eventTagOverrides; - /** External ID for this campaign. */ - core.String externalId; - /** ID of this campaign. This is a read-only auto-generated field. */ - core.String id; - /** - * Dimension value for the ID of this campaign. This is a read-only, - * auto-generated field. - */ - DimensionValue idDimensionValue; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#campaign". - */ - core.String kind; - /** - * Information about the most recent modification of this campaign. This is a - * read-only field. - */ - LastModifiedInfo lastModifiedInfo; - /** Lookback window settings for the campaign. */ - LookbackConfiguration lookbackConfiguration; - /** - * Name of this campaign. This is a required field and must be less than 256 - * characters long and unique among campaigns of the same advertiser. - */ - core.String name; - /** Whether Nielsen reports are enabled for this campaign. */ - core.bool nielsenOcrEnabled; - /** - * Date on which the campaign starts running. The start date can be any date. - * The hours, minutes, and seconds of the start date should not be set, as - * doing so will result in an error. This is a required field. - */ - core.DateTime startDate; - /** - * Subaccount ID of this campaign. This is a read-only field that can be left - * blank. - */ - core.String subaccountId; - /** Campaign trafficker contact emails. */ - core.List<core.String> traffickerEmails; - - Campaign(); - - Campaign.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("additionalCreativeOptimizationConfigurations")) { - additionalCreativeOptimizationConfigurations = _json["additionalCreativeOptimizationConfigurations"].map((value) => new CreativeOptimizationConfiguration.fromJson(value)).toList(); - } - if (_json.containsKey("advertiserGroupId")) { - advertiserGroupId = _json["advertiserGroupId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("archived")) { - archived = _json["archived"]; - } - if (_json.containsKey("audienceSegmentGroups")) { - audienceSegmentGroups = _json["audienceSegmentGroups"].map((value) => new AudienceSegmentGroup.fromJson(value)).toList(); - } - if (_json.containsKey("billingInvoiceCode")) { - billingInvoiceCode = _json["billingInvoiceCode"]; - } - if (_json.containsKey("clickThroughUrlSuffixProperties")) { - clickThroughUrlSuffixProperties = new ClickThroughUrlSuffixProperties.fromJson(_json["clickThroughUrlSuffixProperties"]); - } - if (_json.containsKey("comment")) { - comment = _json["comment"]; - } - if (_json.containsKey("createInfo")) { - createInfo = new LastModifiedInfo.fromJson(_json["createInfo"]); - } - if (_json.containsKey("creativeGroupIds")) { - creativeGroupIds = _json["creativeGroupIds"]; - } - if (_json.containsKey("creativeOptimizationConfiguration")) { - creativeOptimizationConfiguration = new CreativeOptimizationConfiguration.fromJson(_json["creativeOptimizationConfiguration"]); - } - if (_json.containsKey("defaultClickThroughEventTagProperties")) { - defaultClickThroughEventTagProperties = new DefaultClickThroughEventTagProperties.fromJson(_json["defaultClickThroughEventTagProperties"]); - } - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("eventTagOverrides")) { - eventTagOverrides = _json["eventTagOverrides"].map((value) => new EventTagOverride.fromJson(value)).toList(); - } - if (_json.containsKey("externalId")) { - externalId = _json["externalId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("lookbackConfiguration")) { - lookbackConfiguration = new LookbackConfiguration.fromJson(_json["lookbackConfiguration"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("nielsenOcrEnabled")) { - nielsenOcrEnabled = _json["nielsenOcrEnabled"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("traffickerEmails")) { - traffickerEmails = _json["traffickerEmails"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (additionalCreativeOptimizationConfigurations != null) { - _json["additionalCreativeOptimizationConfigurations"] = additionalCreativeOptimizationConfigurations.map((value) => (value).toJson()).toList(); - } - if (advertiserGroupId != null) { - _json["advertiserGroupId"] = advertiserGroupId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (archived != null) { - _json["archived"] = archived; - } - if (audienceSegmentGroups != null) { - _json["audienceSegmentGroups"] = audienceSegmentGroups.map((value) => (value).toJson()).toList(); - } - if (billingInvoiceCode != null) { - _json["billingInvoiceCode"] = billingInvoiceCode; - } - if (clickThroughUrlSuffixProperties != null) { - _json["clickThroughUrlSuffixProperties"] = (clickThroughUrlSuffixProperties).toJson(); - } - if (comment != null) { - _json["comment"] = comment; - } - if (createInfo != null) { - _json["createInfo"] = (createInfo).toJson(); - } - if (creativeGroupIds != null) { - _json["creativeGroupIds"] = creativeGroupIds; - } - if (creativeOptimizationConfiguration != null) { - _json["creativeOptimizationConfiguration"] = (creativeOptimizationConfiguration).toJson(); - } - if (defaultClickThroughEventTagProperties != null) { - _json["defaultClickThroughEventTagProperties"] = (defaultClickThroughEventTagProperties).toJson(); - } - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (eventTagOverrides != null) { - _json["eventTagOverrides"] = eventTagOverrides.map((value) => (value).toJson()).toList(); - } - if (externalId != null) { - _json["externalId"] = externalId; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (lookbackConfiguration != null) { - _json["lookbackConfiguration"] = (lookbackConfiguration).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (nielsenOcrEnabled != null) { - _json["nielsenOcrEnabled"] = nielsenOcrEnabled; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (traffickerEmails != null) { - _json["traffickerEmails"] = traffickerEmails; - } - return _json; - } -} - -/** Identifies a creative which has been associated with a given campaign. */ -class CampaignCreativeAssociation { - /** - * ID of the creative associated with the campaign. This is a required field. - */ - core.String creativeId; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#campaignCreativeAssociation". - */ - core.String kind; - - CampaignCreativeAssociation(); - - CampaignCreativeAssociation.fromJson(core.Map _json) { - if (_json.containsKey("creativeId")) { - creativeId = _json["creativeId"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creativeId != null) { - _json["creativeId"] = creativeId; - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Campaign Creative Association List Response */ -class CampaignCreativeAssociationsListResponse { - /** Campaign creative association collection */ - core.List<CampaignCreativeAssociation> campaignCreativeAssociations; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#campaignCreativeAssociationsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - CampaignCreativeAssociationsListResponse(); - - CampaignCreativeAssociationsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("campaignCreativeAssociations")) { - campaignCreativeAssociations = _json["campaignCreativeAssociations"].map((value) => new CampaignCreativeAssociation.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (campaignCreativeAssociations != null) { - _json["campaignCreativeAssociations"] = campaignCreativeAssociations.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Campaign List Response */ -class CampaignsListResponse { - /** Campaign collection. */ - core.List<Campaign> campaigns; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#campaignsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - CampaignsListResponse(); - - CampaignsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("campaigns")) { - campaigns = _json["campaigns"].map((value) => new Campaign.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (campaigns != null) { - _json["campaigns"] = campaigns.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Describes a change that a user has made to a resource. */ -class ChangeLog { - /** Account ID of the modified object. */ - core.String accountId; - /** Action which caused the change. */ - core.String action; - /** Time when the object was modified. */ - core.DateTime changeTime; - /** Field name of the object which changed. */ - core.String fieldName; - /** ID of this change log. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#changeLog". - */ - core.String kind; - /** New value of the object field. */ - core.String newValue; - /** - * ID of the object of this change log. The object could be a campaign, - * placement, ad, or other type. - */ - core.String objectId; - /** Object type of the change log. */ - core.String objectType; - /** Old value of the object field. */ - core.String oldValue; - /** Subaccount ID of the modified object. */ - core.String subaccountId; - /** - * Transaction ID of this change log. When a single API call results in many - * changes, each change will have a separate ID in the change log but will - * share the same transactionId. - */ - core.String transactionId; - /** ID of the user who modified the object. */ - core.String userProfileId; - /** User profile name of the user who modified the object. */ - core.String userProfileName; - - ChangeLog(); - - ChangeLog.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("action")) { - action = _json["action"]; - } - if (_json.containsKey("changeTime")) { - changeTime = core.DateTime.parse(_json["changeTime"]); - } - if (_json.containsKey("fieldName")) { - fieldName = _json["fieldName"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("newValue")) { - newValue = _json["newValue"]; - } - if (_json.containsKey("objectId")) { - objectId = _json["objectId"]; - } - if (_json.containsKey("objectType")) { - objectType = _json["objectType"]; - } - if (_json.containsKey("oldValue")) { - oldValue = _json["oldValue"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("transactionId")) { - transactionId = _json["transactionId"]; - } - if (_json.containsKey("userProfileId")) { - userProfileId = _json["userProfileId"]; - } - if (_json.containsKey("userProfileName")) { - userProfileName = _json["userProfileName"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (action != null) { - _json["action"] = action; - } - if (changeTime != null) { - _json["changeTime"] = (changeTime).toIso8601String(); - } - if (fieldName != null) { - _json["fieldName"] = fieldName; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (newValue != null) { - _json["newValue"] = newValue; - } - if (objectId != null) { - _json["objectId"] = objectId; - } - if (objectType != null) { - _json["objectType"] = objectType; - } - if (oldValue != null) { - _json["oldValue"] = oldValue; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (transactionId != null) { - _json["transactionId"] = transactionId; - } - if (userProfileId != null) { - _json["userProfileId"] = userProfileId; - } - if (userProfileName != null) { - _json["userProfileName"] = userProfileName; - } - return _json; - } -} - -/** Change Log List Response */ -class ChangeLogsListResponse { - /** Change log collection. */ - core.List<ChangeLog> changeLogs; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#changeLogsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - ChangeLogsListResponse(); - - ChangeLogsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("changeLogs")) { - changeLogs = _json["changeLogs"].map((value) => new ChangeLog.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (changeLogs != null) { - _json["changeLogs"] = changeLogs.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** City List Response */ -class CitiesListResponse { - /** City collection. */ - core.List<City> cities; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#citiesListResponse". - */ - core.String kind; - - CitiesListResponse(); - - CitiesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("cities")) { - cities = _json["cities"].map((value) => new City.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (cities != null) { - _json["cities"] = cities.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Contains information about a city that can be targeted by ads. */ -class City { - /** Country code of the country to which this city belongs. */ - core.String countryCode; - /** DART ID of the country to which this city belongs. */ - core.String countryDartId; - /** - * DART ID of this city. This is the ID used for targeting and generating - * reports. - */ - core.String dartId; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#city". - */ - core.String kind; - /** - * Metro region code of the metro region (DMA) to which this city belongs. - */ - core.String metroCode; - /** ID of the metro region (DMA) to which this city belongs. */ - core.String metroDmaId; - /** Name of this city. */ - core.String name; - /** Region code of the region to which this city belongs. */ - core.String regionCode; - /** DART ID of the region to which this city belongs. */ - core.String regionDartId; - - City(); - - City.fromJson(core.Map _json) { - if (_json.containsKey("countryCode")) { - countryCode = _json["countryCode"]; - } - if (_json.containsKey("countryDartId")) { - countryDartId = _json["countryDartId"]; - } - if (_json.containsKey("dartId")) { - dartId = _json["dartId"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metroCode")) { - metroCode = _json["metroCode"]; - } - if (_json.containsKey("metroDmaId")) { - metroDmaId = _json["metroDmaId"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("regionCode")) { - regionCode = _json["regionCode"]; - } - if (_json.containsKey("regionDartId")) { - regionDartId = _json["regionDartId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (countryCode != null) { - _json["countryCode"] = countryCode; - } - if (countryDartId != null) { - _json["countryDartId"] = countryDartId; - } - if (dartId != null) { - _json["dartId"] = dartId; - } - if (kind != null) { - _json["kind"] = kind; - } - if (metroCode != null) { - _json["metroCode"] = metroCode; - } - if (metroDmaId != null) { - _json["metroDmaId"] = metroDmaId; - } - if (name != null) { - _json["name"] = name; - } - if (regionCode != null) { - _json["regionCode"] = regionCode; - } - if (regionDartId != null) { - _json["regionDartId"] = regionDartId; - } - return _json; - } -} - -/** Creative Click Tag. */ -class ClickTag { - /** - * Advertiser event name associated with the click tag. This field is used by - * DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. Applicable to DISPLAY - * when the primary asset type is not HTML_IMAGE. - */ - core.String eventName; - /** - * Parameter name for the specified click tag. For DISPLAY_IMAGE_GALLERY - * creative assets, this field must match the value of the creative asset's - * creativeAssetId.name field. - */ - core.String name; - /** - * Parameter value for the specified click tag. This field contains a - * click-through url. - */ - core.String value; - - ClickTag(); - - ClickTag.fromJson(core.Map _json) { - if (_json.containsKey("eventName")) { - eventName = _json["eventName"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (eventName != null) { - _json["eventName"] = eventName; - } - if (name != null) { - _json["name"] = name; - } - if (value != null) { - _json["value"] = value; - } - return _json; - } -} - -/** Click-through URL */ -class ClickThroughUrl { - /** - * Read-only convenience field representing the actual URL that will be used - * for this click-through. The URL is computed as follows: - * - If defaultLandingPage is enabled then the campaign's default landing page - * URL is assigned to this field. - * - If defaultLandingPage is not enabled and a landingPageId is specified - * then that landing page's URL is assigned to this field. - * - If neither of the above cases apply, then the customClickThroughUrl is - * assigned to this field. - */ - core.String computedClickThroughUrl; - /** - * Custom click-through URL. Applicable if the defaultLandingPage field is set - * to false and the landingPageId field is left unset. - */ - core.String customClickThroughUrl; - /** Whether the campaign default landing page is used. */ - core.bool defaultLandingPage; - /** - * ID of the landing page for the click-through URL. Applicable if the - * defaultLandingPage field is set to false. - */ - core.String landingPageId; - - ClickThroughUrl(); - - ClickThroughUrl.fromJson(core.Map _json) { - if (_json.containsKey("computedClickThroughUrl")) { - computedClickThroughUrl = _json["computedClickThroughUrl"]; - } - if (_json.containsKey("customClickThroughUrl")) { - customClickThroughUrl = _json["customClickThroughUrl"]; - } - if (_json.containsKey("defaultLandingPage")) { - defaultLandingPage = _json["defaultLandingPage"]; - } - if (_json.containsKey("landingPageId")) { - landingPageId = _json["landingPageId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (computedClickThroughUrl != null) { - _json["computedClickThroughUrl"] = computedClickThroughUrl; - } - if (customClickThroughUrl != null) { - _json["customClickThroughUrl"] = customClickThroughUrl; - } - if (defaultLandingPage != null) { - _json["defaultLandingPage"] = defaultLandingPage; - } - if (landingPageId != null) { - _json["landingPageId"] = landingPageId; - } - return _json; - } -} - -/** Click Through URL Suffix settings. */ -class ClickThroughUrlSuffixProperties { - /** - * Click-through URL suffix to apply to all ads in this entity's scope. Must - * be less than 128 characters long. - */ - core.String clickThroughUrlSuffix; - /** - * Whether this entity should override the inherited click-through URL suffix - * with its own defined value. - */ - core.bool overrideInheritedSuffix; - - ClickThroughUrlSuffixProperties(); - - ClickThroughUrlSuffixProperties.fromJson(core.Map _json) { - if (_json.containsKey("clickThroughUrlSuffix")) { - clickThroughUrlSuffix = _json["clickThroughUrlSuffix"]; - } - if (_json.containsKey("overrideInheritedSuffix")) { - overrideInheritedSuffix = _json["overrideInheritedSuffix"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (clickThroughUrlSuffix != null) { - _json["clickThroughUrlSuffix"] = clickThroughUrlSuffix; - } - if (overrideInheritedSuffix != null) { - _json["overrideInheritedSuffix"] = overrideInheritedSuffix; - } - return _json; - } -} - -/** Companion Click-through override. */ -class CompanionClickThroughOverride { - /** Click-through URL of this companion click-through override. */ - ClickThroughUrl clickThroughUrl; - /** ID of the creative for this companion click-through override. */ - core.String creativeId; - - CompanionClickThroughOverride(); - - CompanionClickThroughOverride.fromJson(core.Map _json) { - if (_json.containsKey("clickThroughUrl")) { - clickThroughUrl = new ClickThroughUrl.fromJson(_json["clickThroughUrl"]); - } - if (_json.containsKey("creativeId")) { - creativeId = _json["creativeId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (clickThroughUrl != null) { - _json["clickThroughUrl"] = (clickThroughUrl).toJson(); - } - if (creativeId != null) { - _json["creativeId"] = creativeId; - } - return _json; - } -} - -/** Companion Settings */ -class CompanionSetting { - /** Whether companions are disabled for this placement. */ - core.bool companionsDisabled; - /** - * Whitelist of companion sizes to be served to this placement. Set this list - * to null or empty to serve all companion sizes. - */ - core.List<Size> enabledSizes; - /** Whether to serve only static images as companions. */ - core.bool imageOnly; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#companionSetting". - */ - core.String kind; - - CompanionSetting(); - - CompanionSetting.fromJson(core.Map _json) { - if (_json.containsKey("companionsDisabled")) { - companionsDisabled = _json["companionsDisabled"]; - } - if (_json.containsKey("enabledSizes")) { - enabledSizes = _json["enabledSizes"].map((value) => new Size.fromJson(value)).toList(); - } - if (_json.containsKey("imageOnly")) { - imageOnly = _json["imageOnly"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (companionsDisabled != null) { - _json["companionsDisabled"] = companionsDisabled; - } - if (enabledSizes != null) { - _json["enabledSizes"] = enabledSizes.map((value) => (value).toJson()).toList(); - } - if (imageOnly != null) { - _json["imageOnly"] = imageOnly; - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Represents a response to the queryCompatibleFields method. */ -class CompatibleFields { - /** - * Contains items that are compatible to be selected for a report of type - * "CROSS_DIMENSION_REACH". - */ - CrossDimensionReachReportCompatibleFields crossDimensionReachReportCompatibleFields; - /** - * Contains items that are compatible to be selected for a report of type - * "FLOODLIGHT". - */ - FloodlightReportCompatibleFields floodlightReportCompatibleFields; - /** - * The kind of resource this is, in this case dfareporting#compatibleFields. - */ - core.String kind; - /** - * Contains items that are compatible to be selected for a report of type - * "PATH_TO_CONVERSION". - */ - PathToConversionReportCompatibleFields pathToConversionReportCompatibleFields; - /** - * Contains items that are compatible to be selected for a report of type - * "REACH". - */ - ReachReportCompatibleFields reachReportCompatibleFields; - /** - * Contains items that are compatible to be selected for a report of type - * "STANDARD". - */ - ReportCompatibleFields reportCompatibleFields; - - CompatibleFields(); - - CompatibleFields.fromJson(core.Map _json) { - if (_json.containsKey("crossDimensionReachReportCompatibleFields")) { - crossDimensionReachReportCompatibleFields = new CrossDimensionReachReportCompatibleFields.fromJson(_json["crossDimensionReachReportCompatibleFields"]); - } - if (_json.containsKey("floodlightReportCompatibleFields")) { - floodlightReportCompatibleFields = new FloodlightReportCompatibleFields.fromJson(_json["floodlightReportCompatibleFields"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("pathToConversionReportCompatibleFields")) { - pathToConversionReportCompatibleFields = new PathToConversionReportCompatibleFields.fromJson(_json["pathToConversionReportCompatibleFields"]); - } - if (_json.containsKey("reachReportCompatibleFields")) { - reachReportCompatibleFields = new ReachReportCompatibleFields.fromJson(_json["reachReportCompatibleFields"]); - } - if (_json.containsKey("reportCompatibleFields")) { - reportCompatibleFields = new ReportCompatibleFields.fromJson(_json["reportCompatibleFields"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (crossDimensionReachReportCompatibleFields != null) { - _json["crossDimensionReachReportCompatibleFields"] = (crossDimensionReachReportCompatibleFields).toJson(); - } - if (floodlightReportCompatibleFields != null) { - _json["floodlightReportCompatibleFields"] = (floodlightReportCompatibleFields).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (pathToConversionReportCompatibleFields != null) { - _json["pathToConversionReportCompatibleFields"] = (pathToConversionReportCompatibleFields).toJson(); - } - if (reachReportCompatibleFields != null) { - _json["reachReportCompatibleFields"] = (reachReportCompatibleFields).toJson(); - } - if (reportCompatibleFields != null) { - _json["reportCompatibleFields"] = (reportCompatibleFields).toJson(); - } - return _json; - } -} - -/** - * Contains information about an internet connection type that can be targeted - * by ads. Clients can use the connection type to target mobile vs. broadband - * users. - */ -class ConnectionType { - /** ID of this connection type. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#connectionType". - */ - core.String kind; - /** Name of this connection type. */ - core.String name; - - ConnectionType(); - - ConnectionType.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Connection Type List Response */ -class ConnectionTypesListResponse { - /** Collection of connection types such as broadband and mobile. */ - core.List<ConnectionType> connectionTypes; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#connectionTypesListResponse". - */ - core.String kind; - - ConnectionTypesListResponse(); - - ConnectionTypesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("connectionTypes")) { - connectionTypes = _json["connectionTypes"].map((value) => new ConnectionType.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (connectionTypes != null) { - _json["connectionTypes"] = connectionTypes.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Content Category List Response */ -class ContentCategoriesListResponse { - /** Content category collection. */ - core.List<ContentCategory> contentCategories; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#contentCategoriesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - ContentCategoriesListResponse(); - - ContentCategoriesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("contentCategories")) { - contentCategories = _json["contentCategories"].map((value) => new ContentCategory.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (contentCategories != null) { - _json["contentCategories"] = contentCategories.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** - * Organizes placements according to the contents of their associated webpages. - */ -class ContentCategory { - /** - * Account ID of this content category. This is a read-only field that can be - * left blank. - */ - core.String accountId; - /** - * ID of this content category. This is a read-only, auto-generated field. - */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#contentCategory". - */ - core.String kind; - /** - * Name of this content category. This is a required field and must be less - * than 256 characters long and unique among content categories of the same - * account. - */ - core.String name; - - ContentCategory(); - - ContentCategory.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** - * A Conversion represents when a user successfully performs a desired action - * after seeing an ad. - */ -class Conversion { - /** Whether the conversion was directed toward children. */ - core.bool childDirectedTreatment; - /** Custom floodlight variables. */ - core.List<CustomFloodlightVariable> customVariables; - /** - * The alphanumeric encrypted user ID. When set, encryptionInfo should also be - * specified. This field is mutually exclusive with - * encryptedUserIdCandidates[] and mobileDeviceId. This or - * encryptedUserIdCandidates[] or mobileDeviceId is a required field. - */ - core.String encryptedUserId; - /** - * A list of the alphanumeric encrypted user IDs. Any user ID with exposure - * prior to the conversion timestamp will be used in the inserted conversion. - * If no such user ID is found then the conversion will be rejected with - * NO_COOKIE_MATCH_FOUND error. When set, encryptionInfo should also be - * specified. This field should only be used when calling - * conversions.batchinsert. This field is mutually exclusive with - * encryptedUserId and mobileDeviceId. This or encryptedUserId or - * mobileDeviceId is a required field. - */ - core.List<core.String> encryptedUserIdCandidates; - /** Floodlight Activity ID of this conversion. This is a required field. */ - core.String floodlightActivityId; - /** - * Floodlight Configuration ID of this conversion. This is a required field. - */ - core.String floodlightConfigurationId; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#conversion". - */ - core.String kind; - /** - * Whether Limit Ad Tracking is enabled. When set to true, the conversion will - * be used for reporting but not targeting. This will prevent remarketing. - */ - core.bool limitAdTracking; - /** - * The mobile device ID. This field is mutually exclusive with encryptedUserId - * and encryptedUserIdCandidates[]. This or encryptedUserId or - * encryptedUserIdCandidates[] is a required field. - */ - core.String mobileDeviceId; - /** - * The ordinal of the conversion. Use this field to control how conversions of - * the same user and day are de-duplicated. This is a required field. - */ - core.String ordinal; - /** The quantity of the conversion. */ - core.String quantity; - /** - * The timestamp of conversion, in Unix epoch micros. This is a required - * field. - */ - core.String timestampMicros; - /** The value of the conversion. */ - core.double value; - - Conversion(); - - Conversion.fromJson(core.Map _json) { - if (_json.containsKey("childDirectedTreatment")) { - childDirectedTreatment = _json["childDirectedTreatment"]; - } - if (_json.containsKey("customVariables")) { - customVariables = _json["customVariables"].map((value) => new CustomFloodlightVariable.fromJson(value)).toList(); - } - if (_json.containsKey("encryptedUserId")) { - encryptedUserId = _json["encryptedUserId"]; - } - if (_json.containsKey("encryptedUserIdCandidates")) { - encryptedUserIdCandidates = _json["encryptedUserIdCandidates"]; - } - if (_json.containsKey("floodlightActivityId")) { - floodlightActivityId = _json["floodlightActivityId"]; - } - if (_json.containsKey("floodlightConfigurationId")) { - floodlightConfigurationId = _json["floodlightConfigurationId"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("limitAdTracking")) { - limitAdTracking = _json["limitAdTracking"]; - } - if (_json.containsKey("mobileDeviceId")) { - mobileDeviceId = _json["mobileDeviceId"]; - } - if (_json.containsKey("ordinal")) { - ordinal = _json["ordinal"]; - } - if (_json.containsKey("quantity")) { - quantity = _json["quantity"]; - } - if (_json.containsKey("timestampMicros")) { - timestampMicros = _json["timestampMicros"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (childDirectedTreatment != null) { - _json["childDirectedTreatment"] = childDirectedTreatment; - } - if (customVariables != null) { - _json["customVariables"] = customVariables.map((value) => (value).toJson()).toList(); - } - if (encryptedUserId != null) { - _json["encryptedUserId"] = encryptedUserId; - } - if (encryptedUserIdCandidates != null) { - _json["encryptedUserIdCandidates"] = encryptedUserIdCandidates; - } - if (floodlightActivityId != null) { - _json["floodlightActivityId"] = floodlightActivityId; - } - if (floodlightConfigurationId != null) { - _json["floodlightConfigurationId"] = floodlightConfigurationId; - } - if (kind != null) { - _json["kind"] = kind; - } - if (limitAdTracking != null) { - _json["limitAdTracking"] = limitAdTracking; - } - if (mobileDeviceId != null) { - _json["mobileDeviceId"] = mobileDeviceId; - } - if (ordinal != null) { - _json["ordinal"] = ordinal; - } - if (quantity != null) { - _json["quantity"] = quantity; - } - if (timestampMicros != null) { - _json["timestampMicros"] = timestampMicros; - } - if (value != null) { - _json["value"] = value; - } - return _json; - } -} - -/** - * The error code and description for a conversion that failed to insert or - * update. - */ -class ConversionError { - /** - * The error code. - * Possible string values are: - * - "INTERNAL" - * - "INVALID_ARGUMENT" - * - "NOT_FOUND" - * - "PERMISSION_DENIED" - */ - core.String code; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#conversionError". - */ - core.String kind; - /** A description of the error. */ - core.String message; - - ConversionError(); - - ConversionError.fromJson(core.Map _json) { - if (_json.containsKey("code")) { - code = _json["code"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("message")) { - message = _json["message"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (code != null) { - _json["code"] = code; - } - if (kind != null) { - _json["kind"] = kind; - } - if (message != null) { - _json["message"] = message; - } - return _json; - } -} - -/** - * The original conversion that was inserted or updated and whether there were - * any errors. - */ -class ConversionStatus { - /** The original conversion that was inserted or updated. */ - Conversion conversion; - /** A list of errors related to this conversion. */ - core.List<ConversionError> errors; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#conversionStatus". - */ - core.String kind; - - ConversionStatus(); - - ConversionStatus.fromJson(core.Map _json) { - if (_json.containsKey("conversion")) { - conversion = new Conversion.fromJson(_json["conversion"]); - } - if (_json.containsKey("errors")) { - errors = _json["errors"].map((value) => new ConversionError.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (conversion != null) { - _json["conversion"] = (conversion).toJson(); - } - if (errors != null) { - _json["errors"] = errors.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Insert Conversions Request. */ -class ConversionsBatchInsertRequest { - /** The set of conversions to insert. */ - core.List<Conversion> conversions; - /** - * Describes how encryptedUserId or encryptedUserIdCandidates[] is encrypted. - * This is a required field if encryptedUserId or encryptedUserIdCandidates[] - * is used. - */ - EncryptionInfo encryptionInfo; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#conversionsBatchInsertRequest". - */ - core.String kind; - - ConversionsBatchInsertRequest(); - - ConversionsBatchInsertRequest.fromJson(core.Map _json) { - if (_json.containsKey("conversions")) { - conversions = _json["conversions"].map((value) => new Conversion.fromJson(value)).toList(); - } - if (_json.containsKey("encryptionInfo")) { - encryptionInfo = new EncryptionInfo.fromJson(_json["encryptionInfo"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (conversions != null) { - _json["conversions"] = conversions.map((value) => (value).toJson()).toList(); - } - if (encryptionInfo != null) { - _json["encryptionInfo"] = (encryptionInfo).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Insert Conversions Response. */ -class ConversionsBatchInsertResponse { - /** Indicates that some or all conversions failed to insert. */ - core.bool hasFailures; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#conversionsBatchInsertResponse". - */ - core.String kind; - /** - * The insert status of each conversion. Statuses are returned in the same - * order that conversions are inserted. - */ - core.List<ConversionStatus> status; - - ConversionsBatchInsertResponse(); - - ConversionsBatchInsertResponse.fromJson(core.Map _json) { - if (_json.containsKey("hasFailures")) { - hasFailures = _json["hasFailures"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("status")) { - status = _json["status"].map((value) => new ConversionStatus.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (hasFailures != null) { - _json["hasFailures"] = hasFailures; - } - if (kind != null) { - _json["kind"] = kind; - } - if (status != null) { - _json["status"] = status.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Country List Response */ -class CountriesListResponse { - /** Country collection. */ - core.List<Country> countries; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#countriesListResponse". - */ - core.String kind; - - CountriesListResponse(); - - CountriesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("countries")) { - countries = _json["countries"].map((value) => new Country.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (countries != null) { - _json["countries"] = countries.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Contains information about a country that can be targeted by ads. */ -class Country { - /** Country code. */ - core.String countryCode; - /** - * DART ID of this country. This is the ID used for targeting and generating - * reports. - */ - core.String dartId; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#country". - */ - core.String kind; - /** Name of this country. */ - core.String name; - /** Whether ad serving supports secure servers in this country. */ - core.bool sslEnabled; - - Country(); - - Country.fromJson(core.Map _json) { - if (_json.containsKey("countryCode")) { - countryCode = _json["countryCode"]; - } - if (_json.containsKey("dartId")) { - dartId = _json["dartId"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("sslEnabled")) { - sslEnabled = _json["sslEnabled"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (countryCode != null) { - _json["countryCode"] = countryCode; - } - if (dartId != null) { - _json["dartId"] = dartId; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (sslEnabled != null) { - _json["sslEnabled"] = sslEnabled; - } - return _json; - } -} - -/** Contains properties of a Creative. */ -class Creative { - /** - * Account ID of this creative. This field, if left unset, will be - * auto-generated for both insert and update operations. Applicable to all - * creative types. - */ - core.String accountId; - /** Whether the creative is active. Applicable to all creative types. */ - core.bool active; - /** - * Ad parameters user for VPAID creative. This is a read-only field. - * Applicable to the following creative types: all VPAID. - */ - core.String adParameters; - /** - * Keywords for a Rich Media creative. Keywords let you customize the creative - * settings of a Rich Media ad running on your site without having to contact - * the advertiser. You can use keywords to dynamically change the look or - * functionality of a creative. Applicable to the following creative types: - * all RICH_MEDIA, and all VPAID. - */ - core.List<core.String> adTagKeys; - /** - * Advertiser ID of this creative. This is a required field. Applicable to all - * creative types. - */ - core.String advertiserId; - /** - * Whether script access is allowed for this creative. This is a read-only and - * deprecated field which will automatically be set to true on update. - * Applicable to the following creative types: FLASH_INPAGE. - */ - core.bool allowScriptAccess; - /** Whether the creative is archived. Applicable to all creative types. */ - core.bool archived; - /** - * Type of artwork used for the creative. This is a read-only field. - * Applicable to the following creative types: all RICH_MEDIA, and all VPAID. - * Possible string values are: - * - "ARTWORK_TYPE_FLASH" - * - "ARTWORK_TYPE_HTML5" - * - "ARTWORK_TYPE_IMAGE" - * - "ARTWORK_TYPE_MIXED" - */ - core.String artworkType; - /** - * Source application where creative was authored. Presently, only DBM - * authored creatives will have this field set. Applicable to all creative - * types. - * Possible string values are: - * - "CREATIVE_AUTHORING_SOURCE_DBM" - * - "CREATIVE_AUTHORING_SOURCE_DCM" - * - "CREATIVE_AUTHORING_SOURCE_STUDIO" - */ - core.String authoringSource; - /** - * Authoring tool for HTML5 banner creatives. This is a read-only field. - * Applicable to the following creative types: HTML5_BANNER. - * Possible string values are: - * - "NINJA" - * - "SWIFFY" - */ - core.String authoringTool; - /** - * Whether images are automatically advanced for image gallery creatives. - * Applicable to the following creative types: DISPLAY_IMAGE_GALLERY. - */ - core.bool autoAdvanceImages; - /** - * The 6-character HTML color code, beginning with #, for the background of - * the window area where the Flash file is displayed. Default is white. - * Applicable to the following creative types: FLASH_INPAGE. - */ - core.String backgroundColor; - /** - * Click-through URL for backup image. Applicable to the following creative - * types: FLASH_INPAGE and HTML5_BANNER. Applicable to DISPLAY when the - * primary asset type is not HTML_IMAGE. - */ - core.String backupImageClickThroughUrl; - /** - * List of feature dependencies that will cause a backup image to be served if - * the browser that serves the ad does not support them. Feature dependencies - * are features that a browser must be able to support in order to render your - * HTML5 creative asset correctly. This field is initially auto-generated to - * contain all features detected by DCM for all the assets of this creative - * and can then be modified by the client. To reset this field, copy over all - * the creativeAssets' detected features. Applicable to the following creative - * types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is - * not HTML_IMAGE. - */ - core.List<core.String> backupImageFeatures; - /** - * Reporting label used for HTML5 banner backup image. Applicable to the - * following creative types: DISPLAY when the primary asset type is not - * HTML_IMAGE. - */ - core.String backupImageReportingLabel; - /** - * Target window for backup image. Applicable to the following creative types: - * FLASH_INPAGE and HTML5_BANNER. Applicable to DISPLAY when the primary asset - * type is not HTML_IMAGE. - */ - TargetWindow backupImageTargetWindow; - /** - * Click tags of the creative. For DISPLAY, FLASH_INPAGE, and HTML5_BANNER - * creatives, this is a subset of detected click tags for the assets - * associated with this creative. After creating a flash asset, detected click - * tags will be returned in the creativeAssetMetadata. When inserting the - * creative, populate the creative clickTags field using the - * creativeAssetMetadata.clickTags field. For DISPLAY_IMAGE_GALLERY creatives, - * there should be exactly one entry in this list for each image creative - * asset. A click tag is matched with a corresponding creative asset by - * matching the clickTag.name field with the - * creativeAsset.assetIdentifier.name field. Applicable to the following - * creative types: DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER. - * Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. - */ - core.List<ClickTag> clickTags; - /** - * Industry standard ID assigned to creative for reach and frequency. - * Applicable to the following creative types: all INSTREAM_VIDEO and all - * VPAID. - */ - core.String commercialId; - /** - * List of companion creatives assigned to an in-Stream videocreative. - * Acceptable values include IDs of existing flash and image creatives. - * Applicable to the following creative types: all VPAID and all - * INSTREAM_VIDEO with dynamicAssetSelection set to false. - */ - core.List<core.String> companionCreatives; - /** - * Compatibilities associated with this creative. This is a read-only field. - * DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on - * mobile devices or in mobile apps for regular or interstitial ads, - * respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. - * Only pre-existing creatives may have these compatibilities since new - * creatives will either be assigned DISPLAY or DISPLAY_INTERSTITIAL instead. - * IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with - * the VAST standard. Applicable to all creative types. - * - * Acceptable values are: - * - "APP" - * - "APP_INTERSTITIAL" - * - "IN_STREAM_VIDEO" - * - "DISPLAY" - * - "DISPLAY_INTERSTITIAL" - */ - core.List<core.String> compatibility; - /** - * Whether Flash assets associated with the creative need to be automatically - * converted to HTML5. This flag is enabled by default and users can choose to - * disable it if they don't want the system to generate and use HTML5 asset - * for this creative. Applicable to the following creative type: FLASH_INPAGE. - * Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. - */ - core.bool convertFlashToHtml5; - /** - * List of counter events configured for the creative. For - * DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated - * from clickTags. Applicable to the following creative types: - * DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. - */ - core.List<CreativeCustomEvent> counterCustomEvents; - /** Required if dynamicAssetSelection is true. */ - CreativeAssetSelection creativeAssetSelection; - /** - * Assets associated with a creative. Applicable to all but the following - * creative types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and - * REDIRECT - */ - core.List<CreativeAsset> creativeAssets; - /** - * Creative field assignments for this creative. Applicable to all creative - * types. - */ - core.List<CreativeFieldAssignment> creativeFieldAssignments; - /** - * Custom key-values for a Rich Media creative. Key-values let you customize - * the creative settings of a Rich Media ad running on your site without - * having to contact the advertiser. You can use key-values to dynamically - * change the look or functionality of a creative. Applicable to the following - * creative types: all RICH_MEDIA, and all VPAID. - */ - core.List<core.String> customKeyValues; - /** - * Set this to true to enable the use of rules to target individual assets in - * this creative. When set to true creativeAssetSelection must be set. This - * also controls asset-level companions. When this is true, companion - * creatives should be assigned to creative assets. Learn more. Applicable to - * INSTREAM_VIDEO creatives. - */ - core.bool dynamicAssetSelection; - /** - * List of exit events configured for the creative. For DISPLAY and - * DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated - * from clickTags, For DISPLAY, an event is also created from the - * backupImageReportingLabel. Applicable to the following creative types: - * DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY - * when the primary asset type is not HTML_IMAGE. - */ - core.List<CreativeCustomEvent> exitCustomEvents; - /** - * OpenWindow FSCommand of this creative. This lets the SWF file communicate - * with either Flash Player or the program hosting Flash Player, such as a web - * browser. This is only triggered if allowScriptAccess field is true. - * Applicable to the following creative types: FLASH_INPAGE. - */ - FsCommand fsCommand; - /** - * HTML code for the creative. This is a required field when applicable. This - * field is ignored if htmlCodeLocked is false. Applicable to the following - * creative types: all CUSTOM, FLASH_INPAGE, and HTML5_BANNER, and all - * RICH_MEDIA. - */ - core.String htmlCode; - /** - * Whether HTML code is DCM-generated or manually entered. Set to true to - * ignore changes to htmlCode. Applicable to the following creative types: - * FLASH_INPAGE and HTML5_BANNER. - */ - core.bool htmlCodeLocked; - /** - * ID of this creative. This is a read-only, auto-generated field. Applicable - * to all creative types. - */ - core.String id; - /** - * Dimension value for the ID of this creative. This is a read-only field. - * Applicable to all creative types. - */ - DimensionValue idDimensionValue; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creative". - */ - core.String kind; - /** - * Creative last modification information. This is a read-only field. - * Applicable to all creative types. - */ - LastModifiedInfo lastModifiedInfo; - /** - * Latest Studio trafficked creative ID associated with rich media and VPAID - * creatives. This is a read-only field. Applicable to the following creative - * types: all RICH_MEDIA, and all VPAID. - */ - core.String latestTraffickedCreativeId; - /** - * Name of the creative. This is a required field and must be less than 256 - * characters long. Applicable to all creative types. - */ - core.String name; - /** - * Override CSS value for rich media creatives. Applicable to the following - * creative types: all RICH_MEDIA. - */ - core.String overrideCss; - /** - * Amount of time to play the video before counting a view. Applicable to the - * following creative types: all INSTREAM_VIDEO. - */ - VideoOffset progressOffset; - /** - * URL of hosted image or hosted video or another ad tag. For - * INSTREAM_VIDEO_REDIRECT creatives this is the in-stream video redirect URL. - * The standard for a VAST (Video Ad Serving Template) ad response allows for - * a redirect link to another VAST 2.0 or 3.0 call. This is a required field - * when applicable. Applicable to the following creative types: - * DISPLAY_REDIRECT, INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and - * INSTREAM_VIDEO_REDIRECT - */ - core.String redirectUrl; - /** - * ID of current rendering version. This is a read-only field. Applicable to - * all creative types. - */ - core.String renderingId; - /** - * Dimension value for the rendering ID of this creative. This is a read-only - * field. Applicable to all creative types. - */ - DimensionValue renderingIdDimensionValue; - /** - * The minimum required Flash plugin version for this creative. For example, - * 11.2.202.235. This is a read-only field. Applicable to the following - * creative types: all RICH_MEDIA, and all VPAID. - */ - core.String requiredFlashPluginVersion; - /** - * The internal Flash version for this creative as calculated by DoubleClick - * Studio. This is a read-only field. Applicable to the following creative - * types: FLASH_INPAGE all RICH_MEDIA, and all VPAID. Applicable to DISPLAY - * when the primary asset type is not HTML_IMAGE. - */ - core.int requiredFlashVersion; - /** - * Size associated with this creative. When inserting or updating a creative - * either the size ID field or size width and height fields can be used. This - * is a required field when applicable; however for IMAGE, FLASH_INPAGE - * creatives, and for DISPLAY creatives with a primary asset of type - * HTML_IMAGE, if left blank, this field will be automatically set using the - * actual size of the associated image assets. Applicable to the following - * creative types: DISPLAY, DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, - * IMAGE, and all RICH_MEDIA. - */ - Size size; - /** - * Amount of time to play the video before the skip button appears. Applicable - * to the following creative types: all INSTREAM_VIDEO. - */ - VideoOffset skipOffset; - /** - * Whether the user can choose to skip the creative. Applicable to the - * following creative types: all INSTREAM_VIDEO and all VPAID. - */ - core.bool skippable; - /** - * Whether the creative is SSL-compliant. This is a read-only field. - * Applicable to all creative types. - */ - core.bool sslCompliant; - /** - * Whether creative should be treated as SSL compliant even if the system scan - * shows it's not. Applicable to all creative types. - */ - core.bool sslOverride; - /** - * Studio advertiser ID associated with rich media and VPAID creatives. This - * is a read-only field. Applicable to the following creative types: all - * RICH_MEDIA, and all VPAID. - */ - core.String studioAdvertiserId; - /** - * Studio creative ID associated with rich media and VPAID creatives. This is - * a read-only field. Applicable to the following creative types: all - * RICH_MEDIA, and all VPAID. - */ - core.String studioCreativeId; - /** - * Studio trafficked creative ID associated with rich media and VPAID - * creatives. This is a read-only field. Applicable to the following creative - * types: all RICH_MEDIA, and all VPAID. - */ - core.String studioTraffickedCreativeId; - /** - * Subaccount ID of this creative. This field, if left unset, will be - * auto-generated for both insert and update operations. Applicable to all - * creative types. - */ - core.String subaccountId; - /** - * Third-party URL used to record backup image impressions. Applicable to the - * following creative types: all RICH_MEDIA. - */ - core.String thirdPartyBackupImageImpressionsUrl; - /** - * Third-party URL used to record rich media impressions. Applicable to the - * following creative types: all RICH_MEDIA. - */ - core.String thirdPartyRichMediaImpressionsUrl; - /** - * Third-party URLs for tracking in-stream video creative events. Applicable - * to the following creative types: all INSTREAM_VIDEO and all VPAID. - */ - core.List<ThirdPartyTrackingUrl> thirdPartyUrls; - /** - * List of timer events configured for the creative. For DISPLAY_IMAGE_GALLERY - * creatives, these are read-only and auto-generated from clickTags. - * Applicable to the following creative types: DISPLAY_IMAGE_GALLERY, all - * RICH_MEDIA, and all VPAID. Applicable to DISPLAY when the primary asset is - * not HTML_IMAGE. - */ - core.List<CreativeCustomEvent> timerCustomEvents; - /** - * Combined size of all creative assets. This is a read-only field. Applicable - * to the following creative types: all RICH_MEDIA, and all VPAID. - */ - core.String totalFileSize; - /** - * Type of this creative. This is a required field. Applicable to all creative - * types. - * - * Note: FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for existing - * creatives. New creatives should use DISPLAY as a replacement for these - * types. - * Possible string values are: - * - "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO" - * - "CUSTOM_DISPLAY" - * - "CUSTOM_DISPLAY_INTERSTITIAL" - * - "DISPLAY" - * - "DISPLAY_IMAGE_GALLERY" - * - "DISPLAY_REDIRECT" - * - "FLASH_INPAGE" - * - "HTML5_BANNER" - * - "IMAGE" - * - "INSTREAM_VIDEO" - * - "INSTREAM_VIDEO_REDIRECT" - * - "INTERNAL_REDIRECT" - * - "INTERSTITIAL_INTERNAL_REDIRECT" - * - "RICH_MEDIA_DISPLAY_BANNER" - * - "RICH_MEDIA_DISPLAY_EXPANDING" - * - "RICH_MEDIA_DISPLAY_INTERSTITIAL" - * - "RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL" - * - "RICH_MEDIA_IM_EXPAND" - * - "RICH_MEDIA_INPAGE_FLOATING" - * - "RICH_MEDIA_MOBILE_IN_APP" - * - "RICH_MEDIA_PEEL_DOWN" - * - "TRACKING_TEXT" - * - "VPAID_LINEAR_VIDEO" - * - "VPAID_NON_LINEAR_VIDEO" - */ - core.String type; - /** - * The version number helps you keep track of multiple versions of your - * creative in your reports. The version number will always be auto-generated - * during insert operations to start at 1. For tracking creatives the version - * cannot be incremented and will always remain at 1. For all other creative - * types the version can be incremented only by 1 during update operations. In - * addition, the version will be automatically incremented by 1 when - * undergoing Rich Media creative merging. Applicable to all creative types. - */ - core.int version; - /** - * Description of the video ad. Applicable to the following creative types: - * all INSTREAM_VIDEO and all VPAID. - */ - core.String videoDescription; - /** - * Creative video duration in seconds. This is a read-only field. Applicable - * to the following creative types: INSTREAM_VIDEO, all RICH_MEDIA, and all - * VPAID. - */ - core.double videoDuration; - - Creative(); - - Creative.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("adParameters")) { - adParameters = _json["adParameters"]; - } - if (_json.containsKey("adTagKeys")) { - adTagKeys = _json["adTagKeys"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("allowScriptAccess")) { - allowScriptAccess = _json["allowScriptAccess"]; - } - if (_json.containsKey("archived")) { - archived = _json["archived"]; - } - if (_json.containsKey("artworkType")) { - artworkType = _json["artworkType"]; - } - if (_json.containsKey("authoringSource")) { - authoringSource = _json["authoringSource"]; - } - if (_json.containsKey("authoringTool")) { - authoringTool = _json["authoringTool"]; - } - if (_json.containsKey("auto_advance_images")) { - autoAdvanceImages = _json["auto_advance_images"]; - } - if (_json.containsKey("backgroundColor")) { - backgroundColor = _json["backgroundColor"]; - } - if (_json.containsKey("backupImageClickThroughUrl")) { - backupImageClickThroughUrl = _json["backupImageClickThroughUrl"]; - } - if (_json.containsKey("backupImageFeatures")) { - backupImageFeatures = _json["backupImageFeatures"]; - } - if (_json.containsKey("backupImageReportingLabel")) { - backupImageReportingLabel = _json["backupImageReportingLabel"]; - } - if (_json.containsKey("backupImageTargetWindow")) { - backupImageTargetWindow = new TargetWindow.fromJson(_json["backupImageTargetWindow"]); - } - if (_json.containsKey("clickTags")) { - clickTags = _json["clickTags"].map((value) => new ClickTag.fromJson(value)).toList(); - } - if (_json.containsKey("commercialId")) { - commercialId = _json["commercialId"]; - } - if (_json.containsKey("companionCreatives")) { - companionCreatives = _json["companionCreatives"]; - } - if (_json.containsKey("compatibility")) { - compatibility = _json["compatibility"]; - } - if (_json.containsKey("convertFlashToHtml5")) { - convertFlashToHtml5 = _json["convertFlashToHtml5"]; - } - if (_json.containsKey("counterCustomEvents")) { - counterCustomEvents = _json["counterCustomEvents"].map((value) => new CreativeCustomEvent.fromJson(value)).toList(); - } - if (_json.containsKey("creativeAssetSelection")) { - creativeAssetSelection = new CreativeAssetSelection.fromJson(_json["creativeAssetSelection"]); - } - if (_json.containsKey("creativeAssets")) { - creativeAssets = _json["creativeAssets"].map((value) => new CreativeAsset.fromJson(value)).toList(); - } - if (_json.containsKey("creativeFieldAssignments")) { - creativeFieldAssignments = _json["creativeFieldAssignments"].map((value) => new CreativeFieldAssignment.fromJson(value)).toList(); - } - if (_json.containsKey("customKeyValues")) { - customKeyValues = _json["customKeyValues"]; - } - if (_json.containsKey("dynamicAssetSelection")) { - dynamicAssetSelection = _json["dynamicAssetSelection"]; - } - if (_json.containsKey("exitCustomEvents")) { - exitCustomEvents = _json["exitCustomEvents"].map((value) => new CreativeCustomEvent.fromJson(value)).toList(); - } - if (_json.containsKey("fsCommand")) { - fsCommand = new FsCommand.fromJson(_json["fsCommand"]); - } - if (_json.containsKey("htmlCode")) { - htmlCode = _json["htmlCode"]; - } - if (_json.containsKey("htmlCodeLocked")) { - htmlCodeLocked = _json["htmlCodeLocked"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("latestTraffickedCreativeId")) { - latestTraffickedCreativeId = _json["latestTraffickedCreativeId"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("overrideCss")) { - overrideCss = _json["overrideCss"]; - } - if (_json.containsKey("progressOffset")) { - progressOffset = new VideoOffset.fromJson(_json["progressOffset"]); - } - if (_json.containsKey("redirectUrl")) { - redirectUrl = _json["redirectUrl"]; - } - if (_json.containsKey("renderingId")) { - renderingId = _json["renderingId"]; - } - if (_json.containsKey("renderingIdDimensionValue")) { - renderingIdDimensionValue = new DimensionValue.fromJson(_json["renderingIdDimensionValue"]); - } - if (_json.containsKey("requiredFlashPluginVersion")) { - requiredFlashPluginVersion = _json["requiredFlashPluginVersion"]; - } - if (_json.containsKey("requiredFlashVersion")) { - requiredFlashVersion = _json["requiredFlashVersion"]; - } - if (_json.containsKey("size")) { - size = new Size.fromJson(_json["size"]); - } - if (_json.containsKey("skipOffset")) { - skipOffset = new VideoOffset.fromJson(_json["skipOffset"]); - } - if (_json.containsKey("skippable")) { - skippable = _json["skippable"]; - } - if (_json.containsKey("sslCompliant")) { - sslCompliant = _json["sslCompliant"]; - } - if (_json.containsKey("sslOverride")) { - sslOverride = _json["sslOverride"]; - } - if (_json.containsKey("studioAdvertiserId")) { - studioAdvertiserId = _json["studioAdvertiserId"]; - } - if (_json.containsKey("studioCreativeId")) { - studioCreativeId = _json["studioCreativeId"]; - } - if (_json.containsKey("studioTraffickedCreativeId")) { - studioTraffickedCreativeId = _json["studioTraffickedCreativeId"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("thirdPartyBackupImageImpressionsUrl")) { - thirdPartyBackupImageImpressionsUrl = _json["thirdPartyBackupImageImpressionsUrl"]; - } - if (_json.containsKey("thirdPartyRichMediaImpressionsUrl")) { - thirdPartyRichMediaImpressionsUrl = _json["thirdPartyRichMediaImpressionsUrl"]; - } - if (_json.containsKey("thirdPartyUrls")) { - thirdPartyUrls = _json["thirdPartyUrls"].map((value) => new ThirdPartyTrackingUrl.fromJson(value)).toList(); - } - if (_json.containsKey("timerCustomEvents")) { - timerCustomEvents = _json["timerCustomEvents"].map((value) => new CreativeCustomEvent.fromJson(value)).toList(); - } - if (_json.containsKey("totalFileSize")) { - totalFileSize = _json["totalFileSize"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - if (_json.containsKey("version")) { - version = _json["version"]; - } - if (_json.containsKey("videoDescription")) { - videoDescription = _json["videoDescription"]; - } - if (_json.containsKey("videoDuration")) { - videoDuration = _json["videoDuration"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (active != null) { - _json["active"] = active; - } - if (adParameters != null) { - _json["adParameters"] = adParameters; - } - if (adTagKeys != null) { - _json["adTagKeys"] = adTagKeys; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (allowScriptAccess != null) { - _json["allowScriptAccess"] = allowScriptAccess; - } - if (archived != null) { - _json["archived"] = archived; - } - if (artworkType != null) { - _json["artworkType"] = artworkType; - } - if (authoringSource != null) { - _json["authoringSource"] = authoringSource; - } - if (authoringTool != null) { - _json["authoringTool"] = authoringTool; - } - if (autoAdvanceImages != null) { - _json["auto_advance_images"] = autoAdvanceImages; - } - if (backgroundColor != null) { - _json["backgroundColor"] = backgroundColor; - } - if (backupImageClickThroughUrl != null) { - _json["backupImageClickThroughUrl"] = backupImageClickThroughUrl; - } - if (backupImageFeatures != null) { - _json["backupImageFeatures"] = backupImageFeatures; - } - if (backupImageReportingLabel != null) { - _json["backupImageReportingLabel"] = backupImageReportingLabel; - } - if (backupImageTargetWindow != null) { - _json["backupImageTargetWindow"] = (backupImageTargetWindow).toJson(); - } - if (clickTags != null) { - _json["clickTags"] = clickTags.map((value) => (value).toJson()).toList(); - } - if (commercialId != null) { - _json["commercialId"] = commercialId; - } - if (companionCreatives != null) { - _json["companionCreatives"] = companionCreatives; - } - if (compatibility != null) { - _json["compatibility"] = compatibility; - } - if (convertFlashToHtml5 != null) { - _json["convertFlashToHtml5"] = convertFlashToHtml5; - } - if (counterCustomEvents != null) { - _json["counterCustomEvents"] = counterCustomEvents.map((value) => (value).toJson()).toList(); - } - if (creativeAssetSelection != null) { - _json["creativeAssetSelection"] = (creativeAssetSelection).toJson(); - } - if (creativeAssets != null) { - _json["creativeAssets"] = creativeAssets.map((value) => (value).toJson()).toList(); - } - if (creativeFieldAssignments != null) { - _json["creativeFieldAssignments"] = creativeFieldAssignments.map((value) => (value).toJson()).toList(); - } - if (customKeyValues != null) { - _json["customKeyValues"] = customKeyValues; - } - if (dynamicAssetSelection != null) { - _json["dynamicAssetSelection"] = dynamicAssetSelection; - } - if (exitCustomEvents != null) { - _json["exitCustomEvents"] = exitCustomEvents.map((value) => (value).toJson()).toList(); - } - if (fsCommand != null) { - _json["fsCommand"] = (fsCommand).toJson(); - } - if (htmlCode != null) { - _json["htmlCode"] = htmlCode; - } - if (htmlCodeLocked != null) { - _json["htmlCodeLocked"] = htmlCodeLocked; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (latestTraffickedCreativeId != null) { - _json["latestTraffickedCreativeId"] = latestTraffickedCreativeId; - } - if (name != null) { - _json["name"] = name; - } - if (overrideCss != null) { - _json["overrideCss"] = overrideCss; - } - if (progressOffset != null) { - _json["progressOffset"] = (progressOffset).toJson(); - } - if (redirectUrl != null) { - _json["redirectUrl"] = redirectUrl; - } - if (renderingId != null) { - _json["renderingId"] = renderingId; - } - if (renderingIdDimensionValue != null) { - _json["renderingIdDimensionValue"] = (renderingIdDimensionValue).toJson(); - } - if (requiredFlashPluginVersion != null) { - _json["requiredFlashPluginVersion"] = requiredFlashPluginVersion; - } - if (requiredFlashVersion != null) { - _json["requiredFlashVersion"] = requiredFlashVersion; - } - if (size != null) { - _json["size"] = (size).toJson(); - } - if (skipOffset != null) { - _json["skipOffset"] = (skipOffset).toJson(); - } - if (skippable != null) { - _json["skippable"] = skippable; - } - if (sslCompliant != null) { - _json["sslCompliant"] = sslCompliant; - } - if (sslOverride != null) { - _json["sslOverride"] = sslOverride; - } - if (studioAdvertiserId != null) { - _json["studioAdvertiserId"] = studioAdvertiserId; - } - if (studioCreativeId != null) { - _json["studioCreativeId"] = studioCreativeId; - } - if (studioTraffickedCreativeId != null) { - _json["studioTraffickedCreativeId"] = studioTraffickedCreativeId; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (thirdPartyBackupImageImpressionsUrl != null) { - _json["thirdPartyBackupImageImpressionsUrl"] = thirdPartyBackupImageImpressionsUrl; - } - if (thirdPartyRichMediaImpressionsUrl != null) { - _json["thirdPartyRichMediaImpressionsUrl"] = thirdPartyRichMediaImpressionsUrl; - } - if (thirdPartyUrls != null) { - _json["thirdPartyUrls"] = thirdPartyUrls.map((value) => (value).toJson()).toList(); - } - if (timerCustomEvents != null) { - _json["timerCustomEvents"] = timerCustomEvents.map((value) => (value).toJson()).toList(); - } - if (totalFileSize != null) { - _json["totalFileSize"] = totalFileSize; - } - if (type != null) { - _json["type"] = type; - } - if (version != null) { - _json["version"] = version; - } - if (videoDescription != null) { - _json["videoDescription"] = videoDescription; - } - if (videoDuration != null) { - _json["videoDuration"] = videoDuration; - } - return _json; - } -} - -/** Creative Asset. */ -class CreativeAsset { - /** - * Whether ActionScript3 is enabled for the flash asset. This is a read-only - * field. Applicable to the following creative type: FLASH_INPAGE. Applicable - * to DISPLAY when the primary asset type is not HTML_IMAGE. - */ - core.bool actionScript3; - /** - * Whether the video asset is active. This is a read-only field for - * VPAID_NON_LINEAR_VIDEO assets. Applicable to the following creative types: - * INSTREAM_VIDEO and all VPAID. - */ - core.bool active; - /** - * Possible alignments for an asset. This is a read-only field. Applicable to - * the following creative types: - * RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL. - * Possible string values are: - * - "ALIGNMENT_BOTTOM" - * - "ALIGNMENT_LEFT" - * - "ALIGNMENT_RIGHT" - * - "ALIGNMENT_TOP" - */ - core.String alignment; - /** - * Artwork type of rich media creative. This is a read-only field. Applicable - * to the following creative types: all RICH_MEDIA. - * Possible string values are: - * - "ARTWORK_TYPE_FLASH" - * - "ARTWORK_TYPE_HTML5" - * - "ARTWORK_TYPE_IMAGE" - * - "ARTWORK_TYPE_MIXED" - */ - core.String artworkType; - /** - * Identifier of this asset. This is the same identifier returned during - * creative asset insert operation. This is a required field. Applicable to - * all but the following creative types: all REDIRECT and TRACKING_TEXT. - */ - CreativeAssetId assetIdentifier; - /** - * Exit event configured for the backup image. Applicable to the following - * creative types: all RICH_MEDIA. - */ - CreativeCustomEvent backupImageExit; - /** - * Detected bit-rate for video asset. This is a read-only field. Applicable to - * the following creative types: INSTREAM_VIDEO and all VPAID. - */ - core.int bitRate; - /** - * Rich media child asset type. This is a read-only field. Applicable to the - * following creative types: all VPAID. - * Possible string values are: - * - "CHILD_ASSET_TYPE_DATA" - * - "CHILD_ASSET_TYPE_FLASH" - * - "CHILD_ASSET_TYPE_IMAGE" - * - "CHILD_ASSET_TYPE_VIDEO" - */ - core.String childAssetType; - /** - * Size of an asset when collapsed. This is a read-only field. Applicable to - * the following creative types: all RICH_MEDIA and all VPAID. Additionally, - * applicable to assets whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or - * ASSET_DISPLAY_TYPE_PEEL_DOWN. - */ - Size collapsedSize; - /** - * List of companion creatives assigned to an in-stream video creative asset. - * Acceptable values include IDs of existing flash and image creatives. - * Applicable to INSTREAM_VIDEO creative type with dynamicAssetSelection set - * to true. - */ - core.List<core.String> companionCreativeIds; - /** - * Custom start time in seconds for making the asset visible. Applicable to - * the following creative types: all RICH_MEDIA. Value must be greater than or - * equal to 0. - */ - core.int customStartTimeValue; - /** - * List of feature dependencies for the creative asset that are detected by - * DCM. Feature dependencies are features that a browser must be able to - * support in order to render your HTML5 creative correctly. This is a - * read-only, auto-generated field. Applicable to the following creative - * types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is - * not HTML_IMAGE. - */ - core.List<core.String> detectedFeatures; - /** - * Type of rich media asset. This is a read-only field. Applicable to the - * following creative types: all RICH_MEDIA. - * Possible string values are: - * - "ASSET_DISPLAY_TYPE_BACKDROP" - * - "ASSET_DISPLAY_TYPE_EXPANDING" - * - "ASSET_DISPLAY_TYPE_FLASH_IN_FLASH" - * - "ASSET_DISPLAY_TYPE_FLASH_IN_FLASH_EXPANDING" - * - "ASSET_DISPLAY_TYPE_FLOATING" - * - "ASSET_DISPLAY_TYPE_INPAGE" - * - "ASSET_DISPLAY_TYPE_OVERLAY" - * - "ASSET_DISPLAY_TYPE_PEEL_DOWN" - * - "ASSET_DISPLAY_TYPE_VPAID_LINEAR" - * - "ASSET_DISPLAY_TYPE_VPAID_NON_LINEAR" - */ - core.String displayType; - /** - * Duration in seconds for which an asset will be displayed. Applicable to the - * following creative types: INSTREAM_VIDEO and VPAID_LINEAR_VIDEO. Value must - * be greater than or equal to 1. - */ - core.int duration; - /** - * Duration type for which an asset will be displayed. Applicable to the - * following creative types: all RICH_MEDIA. - * Possible string values are: - * - "ASSET_DURATION_TYPE_AUTO" - * - "ASSET_DURATION_TYPE_CUSTOM" - * - "ASSET_DURATION_TYPE_NONE" - */ - core.String durationType; - /** - * Detected expanded dimension for video asset. This is a read-only field. - * Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. - */ - Size expandedDimension; - /** - * File size associated with this creative asset. This is a read-only field. - * Applicable to all but the following creative types: all REDIRECT and - * TRACKING_TEXT. - */ - core.String fileSize; - /** - * Flash version of the asset. This is a read-only field. Applicable to the - * following creative types: FLASH_INPAGE, all RICH_MEDIA, and all VPAID. - * Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. - */ - core.int flashVersion; - /** - * Whether to hide Flash objects flag for an asset. Applicable to the - * following creative types: all RICH_MEDIA. - */ - core.bool hideFlashObjects; - /** - * Whether to hide selection boxes flag for an asset. Applicable to the - * following creative types: all RICH_MEDIA. - */ - core.bool hideSelectionBoxes; - /** - * Whether the asset is horizontally locked. This is a read-only field. - * Applicable to the following creative types: all RICH_MEDIA. - */ - core.bool horizontallyLocked; - /** - * Numeric ID of this creative asset. This is a required field and should not - * be modified. Applicable to all but the following creative types: all - * REDIRECT and TRACKING_TEXT. - */ - core.String id; - /** - * Dimension value for the ID of the asset. This is a read-only, - * auto-generated field. - */ - DimensionValue idDimensionValue; - /** - * Detected MIME type for video asset. This is a read-only field. Applicable - * to the following creative types: INSTREAM_VIDEO and all VPAID. - */ - core.String mimeType; - /** - * Offset position for an asset in collapsed mode. This is a read-only field. - * Applicable to the following creative types: all RICH_MEDIA and all VPAID. - * Additionally, only applicable to assets whose displayType is - * ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. - */ - OffsetPosition offset; - /** - * Whether the backup asset is original or changed by the user in DCM. - * Applicable to the following creative types: all RICH_MEDIA. - */ - core.bool originalBackup; - /** - * Offset position for an asset. Applicable to the following creative types: - * all RICH_MEDIA. - */ - OffsetPosition position; - /** - * Offset left unit for an asset. This is a read-only field. Applicable to the - * following creative types: all RICH_MEDIA. - * Possible string values are: - * - "OFFSET_UNIT_PERCENT" - * - "OFFSET_UNIT_PIXEL" - * - "OFFSET_UNIT_PIXEL_FROM_CENTER" - */ - core.String positionLeftUnit; - /** - * Offset top unit for an asset. This is a read-only field if the asset - * displayType is ASSET_DISPLAY_TYPE_OVERLAY. Applicable to the following - * creative types: all RICH_MEDIA. - * Possible string values are: - * - "OFFSET_UNIT_PERCENT" - * - "OFFSET_UNIT_PIXEL" - * - "OFFSET_UNIT_PIXEL_FROM_CENTER" - */ - core.String positionTopUnit; - /** - * Progressive URL for video asset. This is a read-only field. Applicable to - * the following creative types: INSTREAM_VIDEO and all VPAID. - */ - core.String progressiveServingUrl; - /** - * Whether the asset pushes down other content. Applicable to the following - * creative types: all RICH_MEDIA. Additionally, only applicable when the - * asset offsets are 0, the collapsedSize.width matches size.width, and the - * collapsedSize.height is less than size.height. - */ - core.bool pushdown; - /** - * Pushdown duration in seconds for an asset. Applicable to the following - * creative types: all RICH_MEDIA.Additionally, only applicable when the asset - * pushdown field is true, the offsets are 0, the collapsedSize.width matches - * size.width, and the collapsedSize.height is less than size.height. - * Acceptable values are 0 to 9.99, inclusive. - */ - core.double pushdownDuration; - /** - * Role of the asset in relation to creative. Applicable to all but the - * following creative types: all REDIRECT and TRACKING_TEXT. This is a - * required field. - * PRIMARY applies to DISPLAY, FLASH_INPAGE, HTML5_BANNER, IMAGE, - * DISPLAY_IMAGE_GALLERY, all RICH_MEDIA (which may contain multiple primary - * assets), and all VPAID creatives. - * BACKUP_IMAGE applies to FLASH_INPAGE, HTML5_BANNER, all RICH_MEDIA, and all - * VPAID creatives. Applicable to DISPLAY when the primary asset type is not - * HTML_IMAGE. - * ADDITIONAL_IMAGE and ADDITIONAL_FLASH apply to FLASH_INPAGE creatives. - * OTHER refers to assets from sources other than DCM, such as Studio uploaded - * assets, applicable to all RICH_MEDIA and all VPAID creatives. - * PARENT_VIDEO refers to videos uploaded by the user in DCM and is applicable - * to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. - * TRANSCODED_VIDEO refers to videos transcoded by DCM from PARENT_VIDEO - * assets and is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO - * creatives. - * ALTERNATE_VIDEO refers to the DCM representation of child asset videos from - * Studio, and is applicable to VPAID_LINEAR_VIDEO creatives. These cannot be - * added or removed within DCM. - * For VPAID_LINEAR_VIDEO creatives, PARENT_VIDEO, TRANSCODED_VIDEO and - * ALTERNATE_VIDEO assets that are marked active serve as backup in case the - * VPAID creative cannot be served. Only PARENT_VIDEO assets can be added or - * removed for an INSTREAM_VIDEO or VPAID_LINEAR_VIDEO creative. - * Possible string values are: - * - "ADDITIONAL_FLASH" - * - "ADDITIONAL_IMAGE" - * - "ALTERNATE_VIDEO" - * - "BACKUP_IMAGE" - * - "OTHER" - * - "PARENT_VIDEO" - * - "PRIMARY" - * - "TRANSCODED_VIDEO" - */ - core.String role; - /** - * Size associated with this creative asset. This is a required field when - * applicable; however for IMAGE and FLASH_INPAGE, creatives if left blank, - * this field will be automatically set using the actual size of the - * associated image asset. Applicable to the following creative types: - * DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all - * RICH_MEDIA. Applicable to DISPLAY when the primary asset type is not - * HTML_IMAGE. - */ - Size size; - /** - * Whether the asset is SSL-compliant. This is a read-only field. Applicable - * to all but the following creative types: all REDIRECT and TRACKING_TEXT. - */ - core.bool sslCompliant; - /** - * Initial wait time type before making the asset visible. Applicable to the - * following creative types: all RICH_MEDIA. - * Possible string values are: - * - "ASSET_START_TIME_TYPE_CUSTOM" - * - "ASSET_START_TIME_TYPE_NONE" - */ - core.String startTimeType; - /** - * Streaming URL for video asset. This is a read-only field. Applicable to the - * following creative types: INSTREAM_VIDEO and all VPAID. - */ - core.String streamingServingUrl; - /** - * Whether the asset is transparent. Applicable to the following creative - * types: all RICH_MEDIA. Additionally, only applicable to HTML5 assets. - */ - core.bool transparency; - /** - * Whether the asset is vertically locked. This is a read-only field. - * Applicable to the following creative types: all RICH_MEDIA. - */ - core.bool verticallyLocked; - /** - * Detected video duration for video asset. This is a read-only field. - * Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. - */ - core.double videoDuration; - /** - * Window mode options for flash assets. Applicable to the following creative - * types: FLASH_INPAGE, RICH_MEDIA_DISPLAY_EXPANDING, RICH_MEDIA_IM_EXPAND, - * RICH_MEDIA_DISPLAY_BANNER, and RICH_MEDIA_INPAGE_FLOATING. - * Possible string values are: - * - "OPAQUE" - * - "TRANSPARENT" - * - "WINDOW" - */ - core.String windowMode; - /** - * zIndex value of an asset. Applicable to the following creative types: all - * RICH_MEDIA.Additionally, only applicable to assets whose displayType is NOT - * one of the following types: ASSET_DISPLAY_TYPE_INPAGE or - * ASSET_DISPLAY_TYPE_OVERLAY. Acceptable values are -999999999 to 999999999, - * inclusive. - */ - core.int zIndex; - /** - * File name of zip file. This is a read-only field. Applicable to the - * following creative types: HTML5_BANNER. - */ - core.String zipFilename; - /** - * Size of zip file. This is a read-only field. Applicable to the following - * creative types: HTML5_BANNER. - */ - core.String zipFilesize; - - CreativeAsset(); - - CreativeAsset.fromJson(core.Map _json) { - if (_json.containsKey("actionScript3")) { - actionScript3 = _json["actionScript3"]; - } - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("alignment")) { - alignment = _json["alignment"]; - } - if (_json.containsKey("artworkType")) { - artworkType = _json["artworkType"]; - } - if (_json.containsKey("assetIdentifier")) { - assetIdentifier = new CreativeAssetId.fromJson(_json["assetIdentifier"]); - } - if (_json.containsKey("backupImageExit")) { - backupImageExit = new CreativeCustomEvent.fromJson(_json["backupImageExit"]); - } - if (_json.containsKey("bitRate")) { - bitRate = _json["bitRate"]; - } - if (_json.containsKey("childAssetType")) { - childAssetType = _json["childAssetType"]; - } - if (_json.containsKey("collapsedSize")) { - collapsedSize = new Size.fromJson(_json["collapsedSize"]); - } - if (_json.containsKey("companionCreativeIds")) { - companionCreativeIds = _json["companionCreativeIds"]; - } - if (_json.containsKey("customStartTimeValue")) { - customStartTimeValue = _json["customStartTimeValue"]; - } - if (_json.containsKey("detectedFeatures")) { - detectedFeatures = _json["detectedFeatures"]; - } - if (_json.containsKey("displayType")) { - displayType = _json["displayType"]; - } - if (_json.containsKey("duration")) { - duration = _json["duration"]; - } - if (_json.containsKey("durationType")) { - durationType = _json["durationType"]; - } - if (_json.containsKey("expandedDimension")) { - expandedDimension = new Size.fromJson(_json["expandedDimension"]); - } - if (_json.containsKey("fileSize")) { - fileSize = _json["fileSize"]; - } - if (_json.containsKey("flashVersion")) { - flashVersion = _json["flashVersion"]; - } - if (_json.containsKey("hideFlashObjects")) { - hideFlashObjects = _json["hideFlashObjects"]; - } - if (_json.containsKey("hideSelectionBoxes")) { - hideSelectionBoxes = _json["hideSelectionBoxes"]; - } - if (_json.containsKey("horizontallyLocked")) { - horizontallyLocked = _json["horizontallyLocked"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("mimeType")) { - mimeType = _json["mimeType"]; - } - if (_json.containsKey("offset")) { - offset = new OffsetPosition.fromJson(_json["offset"]); - } - if (_json.containsKey("originalBackup")) { - originalBackup = _json["originalBackup"]; - } - if (_json.containsKey("position")) { - position = new OffsetPosition.fromJson(_json["position"]); - } - if (_json.containsKey("positionLeftUnit")) { - positionLeftUnit = _json["positionLeftUnit"]; - } - if (_json.containsKey("positionTopUnit")) { - positionTopUnit = _json["positionTopUnit"]; - } - if (_json.containsKey("progressiveServingUrl")) { - progressiveServingUrl = _json["progressiveServingUrl"]; - } - if (_json.containsKey("pushdown")) { - pushdown = _json["pushdown"]; - } - if (_json.containsKey("pushdownDuration")) { - pushdownDuration = _json["pushdownDuration"]; - } - if (_json.containsKey("role")) { - role = _json["role"]; - } - if (_json.containsKey("size")) { - size = new Size.fromJson(_json["size"]); - } - if (_json.containsKey("sslCompliant")) { - sslCompliant = _json["sslCompliant"]; - } - if (_json.containsKey("startTimeType")) { - startTimeType = _json["startTimeType"]; - } - if (_json.containsKey("streamingServingUrl")) { - streamingServingUrl = _json["streamingServingUrl"]; - } - if (_json.containsKey("transparency")) { - transparency = _json["transparency"]; - } - if (_json.containsKey("verticallyLocked")) { - verticallyLocked = _json["verticallyLocked"]; - } - if (_json.containsKey("videoDuration")) { - videoDuration = _json["videoDuration"]; - } - if (_json.containsKey("windowMode")) { - windowMode = _json["windowMode"]; - } - if (_json.containsKey("zIndex")) { - zIndex = _json["zIndex"]; - } - if (_json.containsKey("zipFilename")) { - zipFilename = _json["zipFilename"]; - } - if (_json.containsKey("zipFilesize")) { - zipFilesize = _json["zipFilesize"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (actionScript3 != null) { - _json["actionScript3"] = actionScript3; - } - if (active != null) { - _json["active"] = active; - } - if (alignment != null) { - _json["alignment"] = alignment; - } - if (artworkType != null) { - _json["artworkType"] = artworkType; - } - if (assetIdentifier != null) { - _json["assetIdentifier"] = (assetIdentifier).toJson(); - } - if (backupImageExit != null) { - _json["backupImageExit"] = (backupImageExit).toJson(); - } - if (bitRate != null) { - _json["bitRate"] = bitRate; - } - if (childAssetType != null) { - _json["childAssetType"] = childAssetType; - } - if (collapsedSize != null) { - _json["collapsedSize"] = (collapsedSize).toJson(); - } - if (companionCreativeIds != null) { - _json["companionCreativeIds"] = companionCreativeIds; - } - if (customStartTimeValue != null) { - _json["customStartTimeValue"] = customStartTimeValue; - } - if (detectedFeatures != null) { - _json["detectedFeatures"] = detectedFeatures; - } - if (displayType != null) { - _json["displayType"] = displayType; - } - if (duration != null) { - _json["duration"] = duration; - } - if (durationType != null) { - _json["durationType"] = durationType; - } - if (expandedDimension != null) { - _json["expandedDimension"] = (expandedDimension).toJson(); - } - if (fileSize != null) { - _json["fileSize"] = fileSize; - } - if (flashVersion != null) { - _json["flashVersion"] = flashVersion; - } - if (hideFlashObjects != null) { - _json["hideFlashObjects"] = hideFlashObjects; - } - if (hideSelectionBoxes != null) { - _json["hideSelectionBoxes"] = hideSelectionBoxes; - } - if (horizontallyLocked != null) { - _json["horizontallyLocked"] = horizontallyLocked; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (mimeType != null) { - _json["mimeType"] = mimeType; - } - if (offset != null) { - _json["offset"] = (offset).toJson(); - } - if (originalBackup != null) { - _json["originalBackup"] = originalBackup; - } - if (position != null) { - _json["position"] = (position).toJson(); - } - if (positionLeftUnit != null) { - _json["positionLeftUnit"] = positionLeftUnit; - } - if (positionTopUnit != null) { - _json["positionTopUnit"] = positionTopUnit; - } - if (progressiveServingUrl != null) { - _json["progressiveServingUrl"] = progressiveServingUrl; - } - if (pushdown != null) { - _json["pushdown"] = pushdown; - } - if (pushdownDuration != null) { - _json["pushdownDuration"] = pushdownDuration; - } - if (role != null) { - _json["role"] = role; - } - if (size != null) { - _json["size"] = (size).toJson(); - } - if (sslCompliant != null) { - _json["sslCompliant"] = sslCompliant; - } - if (startTimeType != null) { - _json["startTimeType"] = startTimeType; - } - if (streamingServingUrl != null) { - _json["streamingServingUrl"] = streamingServingUrl; - } - if (transparency != null) { - _json["transparency"] = transparency; - } - if (verticallyLocked != null) { - _json["verticallyLocked"] = verticallyLocked; - } - if (videoDuration != null) { - _json["videoDuration"] = videoDuration; - } - if (windowMode != null) { - _json["windowMode"] = windowMode; - } - if (zIndex != null) { - _json["zIndex"] = zIndex; - } - if (zipFilename != null) { - _json["zipFilename"] = zipFilename; - } - if (zipFilesize != null) { - _json["zipFilesize"] = zipFilesize; - } - return _json; - } -} - -/** Creative Asset ID. */ -class CreativeAssetId { - /** - * Name of the creative asset. This is a required field while inserting an - * asset. After insertion, this assetIdentifier is used to identify the - * uploaded asset. Characters in the name must be alphanumeric or one of the - * following: ".-_ ". Spaces are allowed. - */ - core.String name; - /** - * Type of asset to upload. This is a required field. FLASH and IMAGE are no - * longer supported for new uploads. All image assets should use HTML_IMAGE. - * Possible string values are: - * - "FLASH" - * - "HTML" - * - "HTML_IMAGE" - * - "IMAGE" - * - "VIDEO" - */ - core.String type; - - CreativeAssetId(); - - CreativeAssetId.fromJson(core.Map _json) { - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (name != null) { - _json["name"] = name; - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** - * CreativeAssets contains properties of a creative asset file which will be - * uploaded or has already been uploaded. Refer to the creative sample code for - * how to upload assets and insert a creative. - */ -class CreativeAssetMetadata { - /** ID of the creative asset. This is a required field. */ - CreativeAssetId assetIdentifier; - /** - * List of detected click tags for assets. This is a read-only auto-generated - * field. - */ - core.List<ClickTag> clickTags; - /** - * List of feature dependencies for the creative asset that are detected by - * DCM. Feature dependencies are features that a browser must be able to - * support in order to render your HTML5 creative correctly. This is a - * read-only, auto-generated field. - */ - core.List<core.String> detectedFeatures; - /** Numeric ID of the asset. This is a read-only, auto-generated field. */ - core.String id; - /** - * Dimension value for the numeric ID of the asset. This is a read-only, - * auto-generated field. - */ - DimensionValue idDimensionValue; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativeAssetMetadata". - */ - core.String kind; - /** - * Rules validated during code generation that generated a warning. This is a - * read-only, auto-generated field. - * - * Possible values are: - * - "ADMOB_REFERENCED" - * - "ASSET_FORMAT_UNSUPPORTED_DCM" - * - "ASSET_INVALID" - * - "CLICK_TAG_HARD_CODED" - * - "CLICK_TAG_INVALID" - * - "CLICK_TAG_IN_GWD" - * - "CLICK_TAG_MISSING" - * - "CLICK_TAG_MORE_THAN_ONE" - * - "CLICK_TAG_NON_TOP_LEVEL" - * - "COMPONENT_UNSUPPORTED_DCM" - * - "ENABLER_UNSUPPORTED_METHOD_DCM" - * - "EXTERNAL_FILE_REFERENCED" - * - "FILE_DETAIL_EMPTY" - * - "FILE_TYPE_INVALID" - * - "GWD_PROPERTIES_INVALID" - * - "HTML5_FEATURE_UNSUPPORTED" - * - "LINKED_FILE_NOT_FOUND" - * - "MAX_FLASH_VERSION_11" - * - "MRAID_REFERENCED" - * - "NOT_SSL_COMPLIANT" - * - "ORPHANED_ASSET" - * - "PRIMARY_HTML_MISSING" - * - "SVG_INVALID" - * - "ZIP_INVALID" - */ - core.List<core.String> warnedValidationRules; - - CreativeAssetMetadata(); - - CreativeAssetMetadata.fromJson(core.Map _json) { - if (_json.containsKey("assetIdentifier")) { - assetIdentifier = new CreativeAssetId.fromJson(_json["assetIdentifier"]); - } - if (_json.containsKey("clickTags")) { - clickTags = _json["clickTags"].map((value) => new ClickTag.fromJson(value)).toList(); - } - if (_json.containsKey("detectedFeatures")) { - detectedFeatures = _json["detectedFeatures"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("warnedValidationRules")) { - warnedValidationRules = _json["warnedValidationRules"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (assetIdentifier != null) { - _json["assetIdentifier"] = (assetIdentifier).toJson(); - } - if (clickTags != null) { - _json["clickTags"] = clickTags.map((value) => (value).toJson()).toList(); - } - if (detectedFeatures != null) { - _json["detectedFeatures"] = detectedFeatures; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (warnedValidationRules != null) { - _json["warnedValidationRules"] = warnedValidationRules; - } - return _json; - } -} - -/** - * Encapsulates the list of rules for asset selection and a default asset in - * case none of the rules match. Applicable to INSTREAM_VIDEO creatives. - */ -class CreativeAssetSelection { - /** - * A creativeAssets[].id. This should refer to one of the parent assets in - * this creative, and will be served if none of the rules match. This is a - * required field. - */ - core.String defaultAssetId; - /** - * Rules determine which asset will be served to a viewer. Rules will be - * evaluated in the order in which they are stored in this list. This list - * must contain at least one rule. Applicable to INSTREAM_VIDEO creatives. - */ - core.List<Rule> rules; - - CreativeAssetSelection(); - - CreativeAssetSelection.fromJson(core.Map _json) { - if (_json.containsKey("defaultAssetId")) { - defaultAssetId = _json["defaultAssetId"]; - } - if (_json.containsKey("rules")) { - rules = _json["rules"].map((value) => new Rule.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (defaultAssetId != null) { - _json["defaultAssetId"] = defaultAssetId; - } - if (rules != null) { - _json["rules"] = rules.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Creative Assignment. */ -class CreativeAssignment { - /** - * Whether this creative assignment is active. When true, the creative will be - * included in the ad's rotation. - */ - core.bool active; - /** - * Whether applicable event tags should fire when this creative assignment is - * rendered. If this value is unset when the ad is inserted or updated, it - * will default to true for all creative types EXCEPT for INTERNAL_REDIRECT, - * INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO. - */ - core.bool applyEventTags; - /** Click-through URL of the creative assignment. */ - ClickThroughUrl clickThroughUrl; - /** - * Companion creative overrides for this creative assignment. Applicable to - * video ads. - */ - core.List<CompanionClickThroughOverride> companionCreativeOverrides; - /** - * Creative group assignments for this creative assignment. Only one - * assignment per creative group number is allowed for a maximum of two - * assignments. - */ - core.List<CreativeGroupAssignment> creativeGroupAssignments; - /** ID of the creative to be assigned. This is a required field. */ - core.String creativeId; - /** - * Dimension value for the ID of the creative. This is a read-only, - * auto-generated field. - */ - DimensionValue creativeIdDimensionValue; - /** - * Date and time that the assigned creative should stop serving. Must be later - * than the start time. - */ - core.DateTime endTime; - /** - * Rich media exit overrides for this creative assignment. - * Applicable when the creative type is any of the following: - * - DISPLAY - * - RICH_MEDIA_INPAGE - * - RICH_MEDIA_INPAGE_FLOATING - * - RICH_MEDIA_IM_EXPAND - * - RICH_MEDIA_EXPANDING - * - RICH_MEDIA_INTERSTITIAL_FLOAT - * - RICH_MEDIA_MOBILE_IN_APP - * - RICH_MEDIA_MULTI_FLOATING - * - RICH_MEDIA_PEEL_DOWN - * - VPAID_LINEAR - * - VPAID_NON_LINEAR - */ - core.List<RichMediaExitOverride> richMediaExitOverrides; - /** - * Sequence number of the creative assignment, applicable when the rotation - * type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1 to - * 65535, inclusive. - */ - core.int sequence; - /** - * Whether the creative to be assigned is SSL-compliant. This is a read-only - * field that is auto-generated when the ad is inserted or updated. - */ - core.bool sslCompliant; - /** Date and time that the assigned creative should start serving. */ - core.DateTime startTime; - /** - * Weight of the creative assignment, applicable when the rotation type is - * CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1. - */ - core.int weight; - - CreativeAssignment(); - - CreativeAssignment.fromJson(core.Map _json) { - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("applyEventTags")) { - applyEventTags = _json["applyEventTags"]; - } - if (_json.containsKey("clickThroughUrl")) { - clickThroughUrl = new ClickThroughUrl.fromJson(_json["clickThroughUrl"]); - } - if (_json.containsKey("companionCreativeOverrides")) { - companionCreativeOverrides = _json["companionCreativeOverrides"].map((value) => new CompanionClickThroughOverride.fromJson(value)).toList(); - } - if (_json.containsKey("creativeGroupAssignments")) { - creativeGroupAssignments = _json["creativeGroupAssignments"].map((value) => new CreativeGroupAssignment.fromJson(value)).toList(); - } - if (_json.containsKey("creativeId")) { - creativeId = _json["creativeId"]; - } - if (_json.containsKey("creativeIdDimensionValue")) { - creativeIdDimensionValue = new DimensionValue.fromJson(_json["creativeIdDimensionValue"]); - } - if (_json.containsKey("endTime")) { - endTime = core.DateTime.parse(_json["endTime"]); - } - if (_json.containsKey("richMediaExitOverrides")) { - richMediaExitOverrides = _json["richMediaExitOverrides"].map((value) => new RichMediaExitOverride.fromJson(value)).toList(); - } - if (_json.containsKey("sequence")) { - sequence = _json["sequence"]; - } - if (_json.containsKey("sslCompliant")) { - sslCompliant = _json["sslCompliant"]; - } - if (_json.containsKey("startTime")) { - startTime = core.DateTime.parse(_json["startTime"]); - } - if (_json.containsKey("weight")) { - weight = _json["weight"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (active != null) { - _json["active"] = active; - } - if (applyEventTags != null) { - _json["applyEventTags"] = applyEventTags; - } - if (clickThroughUrl != null) { - _json["clickThroughUrl"] = (clickThroughUrl).toJson(); - } - if (companionCreativeOverrides != null) { - _json["companionCreativeOverrides"] = companionCreativeOverrides.map((value) => (value).toJson()).toList(); - } - if (creativeGroupAssignments != null) { - _json["creativeGroupAssignments"] = creativeGroupAssignments.map((value) => (value).toJson()).toList(); - } - if (creativeId != null) { - _json["creativeId"] = creativeId; - } - if (creativeIdDimensionValue != null) { - _json["creativeIdDimensionValue"] = (creativeIdDimensionValue).toJson(); - } - if (endTime != null) { - _json["endTime"] = (endTime).toIso8601String(); - } - if (richMediaExitOverrides != null) { - _json["richMediaExitOverrides"] = richMediaExitOverrides.map((value) => (value).toJson()).toList(); - } - if (sequence != null) { - _json["sequence"] = sequence; - } - if (sslCompliant != null) { - _json["sslCompliant"] = sslCompliant; - } - if (startTime != null) { - _json["startTime"] = (startTime).toIso8601String(); - } - if (weight != null) { - _json["weight"] = weight; - } - return _json; - } -} - -/** Creative Custom Event. */ -class CreativeCustomEvent { - /** - * Unique ID of this event used by DDM Reporting and Data Transfer. This is a - * read-only field. - */ - core.String advertiserCustomEventId; - /** User-entered name for the event. */ - core.String advertiserCustomEventName; - /** - * Type of the event. This is a read-only field. - * Possible string values are: - * - "ADVERTISER_EVENT_COUNTER" - * - "ADVERTISER_EVENT_EXIT" - * - "ADVERTISER_EVENT_TIMER" - */ - core.String advertiserCustomEventType; - /** - * Artwork label column, used to link events in DCM back to events in Studio. - * This is a required field and should not be modified after insertion. - */ - core.String artworkLabel; - /** - * Artwork type used by the creative.This is a read-only field. - * Possible string values are: - * - "ARTWORK_TYPE_FLASH" - * - "ARTWORK_TYPE_HTML5" - * - "ARTWORK_TYPE_IMAGE" - * - "ARTWORK_TYPE_MIXED" - */ - core.String artworkType; - /** Exit URL of the event. This field is used only for exit events. */ - core.String exitUrl; - /** - * ID of this event. This is a required field and should not be modified after - * insertion. - */ - core.String id; - /** - * Properties for rich media popup windows. This field is used only for exit - * events. - */ - PopupWindowProperties popupWindowProperties; - /** - * Target type used by the event. - * Possible string values are: - * - "TARGET_BLANK" - * - "TARGET_PARENT" - * - "TARGET_POPUP" - * - "TARGET_SELF" - * - "TARGET_TOP" - */ - core.String targetType; - /** - * Video reporting ID, used to differentiate multiple videos in a single - * creative. This is a read-only field. - */ - core.String videoReportingId; - - CreativeCustomEvent(); - - CreativeCustomEvent.fromJson(core.Map _json) { - if (_json.containsKey("advertiserCustomEventId")) { - advertiserCustomEventId = _json["advertiserCustomEventId"]; - } - if (_json.containsKey("advertiserCustomEventName")) { - advertiserCustomEventName = _json["advertiserCustomEventName"]; - } - if (_json.containsKey("advertiserCustomEventType")) { - advertiserCustomEventType = _json["advertiserCustomEventType"]; - } - if (_json.containsKey("artworkLabel")) { - artworkLabel = _json["artworkLabel"]; - } - if (_json.containsKey("artworkType")) { - artworkType = _json["artworkType"]; - } - if (_json.containsKey("exitUrl")) { - exitUrl = _json["exitUrl"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("popupWindowProperties")) { - popupWindowProperties = new PopupWindowProperties.fromJson(_json["popupWindowProperties"]); - } - if (_json.containsKey("targetType")) { - targetType = _json["targetType"]; - } - if (_json.containsKey("videoReportingId")) { - videoReportingId = _json["videoReportingId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (advertiserCustomEventId != null) { - _json["advertiserCustomEventId"] = advertiserCustomEventId; - } - if (advertiserCustomEventName != null) { - _json["advertiserCustomEventName"] = advertiserCustomEventName; - } - if (advertiserCustomEventType != null) { - _json["advertiserCustomEventType"] = advertiserCustomEventType; - } - if (artworkLabel != null) { - _json["artworkLabel"] = artworkLabel; - } - if (artworkType != null) { - _json["artworkType"] = artworkType; - } - if (exitUrl != null) { - _json["exitUrl"] = exitUrl; - } - if (id != null) { - _json["id"] = id; - } - if (popupWindowProperties != null) { - _json["popupWindowProperties"] = (popupWindowProperties).toJson(); - } - if (targetType != null) { - _json["targetType"] = targetType; - } - if (videoReportingId != null) { - _json["videoReportingId"] = videoReportingId; - } - return _json; - } -} - -/** Contains properties of a creative field. */ -class CreativeField { - /** - * Account ID of this creative field. This is a read-only field that can be - * left blank. - */ - core.String accountId; - /** - * Advertiser ID of this creative field. This is a required field on - * insertion. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** ID of this creative field. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativeField". - */ - core.String kind; - /** - * Name of this creative field. This is a required field and must be less than - * 256 characters long and unique among creative fields of the same - * advertiser. - */ - core.String name; - /** - * Subaccount ID of this creative field. This is a read-only field that can be - * left blank. - */ - core.String subaccountId; - - CreativeField(); - - CreativeField.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - return _json; - } -} - -/** Creative Field Assignment. */ -class CreativeFieldAssignment { - /** ID of the creative field. */ - core.String creativeFieldId; - /** ID of the creative field value. */ - core.String creativeFieldValueId; - - CreativeFieldAssignment(); - - CreativeFieldAssignment.fromJson(core.Map _json) { - if (_json.containsKey("creativeFieldId")) { - creativeFieldId = _json["creativeFieldId"]; - } - if (_json.containsKey("creativeFieldValueId")) { - creativeFieldValueId = _json["creativeFieldValueId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creativeFieldId != null) { - _json["creativeFieldId"] = creativeFieldId; - } - if (creativeFieldValueId != null) { - _json["creativeFieldValueId"] = creativeFieldValueId; - } - return _json; - } -} - -/** Contains properties of a creative field value. */ -class CreativeFieldValue { - /** - * ID of this creative field value. This is a read-only, auto-generated field. - */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativeFieldValue". - */ - core.String kind; - /** - * Value of this creative field value. It needs to be less than 256 characters - * in length and unique per creative field. - */ - core.String value; - - CreativeFieldValue(); - - CreativeFieldValue.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (value != null) { - _json["value"] = value; - } - return _json; - } -} - -/** Creative Field Value List Response */ -class CreativeFieldValuesListResponse { - /** Creative field value collection. */ - core.List<CreativeFieldValue> creativeFieldValues; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativeFieldValuesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - CreativeFieldValuesListResponse(); - - CreativeFieldValuesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("creativeFieldValues")) { - creativeFieldValues = _json["creativeFieldValues"].map((value) => new CreativeFieldValue.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creativeFieldValues != null) { - _json["creativeFieldValues"] = creativeFieldValues.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Creative Field List Response */ -class CreativeFieldsListResponse { - /** Creative field collection. */ - core.List<CreativeField> creativeFields; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativeFieldsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - CreativeFieldsListResponse(); - - CreativeFieldsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("creativeFields")) { - creativeFields = _json["creativeFields"].map((value) => new CreativeField.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creativeFields != null) { - _json["creativeFields"] = creativeFields.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Contains properties of a creative group. */ -class CreativeGroup { - /** - * Account ID of this creative group. This is a read-only field that can be - * left blank. - */ - core.String accountId; - /** - * Advertiser ID of this creative group. This is a required field on - * insertion. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** - * Subgroup of the creative group. Assign your creative groups to a subgroup - * in order to filter or manage them more easily. This field is required on - * insertion and is read-only after insertion. Acceptable values are 1 to 2, - * inclusive. - */ - core.int groupNumber; - /** ID of this creative group. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativeGroup". - */ - core.String kind; - /** - * Name of this creative group. This is a required field and must be less than - * 256 characters long and unique among creative groups of the same - * advertiser. - */ - core.String name; - /** - * Subaccount ID of this creative group. This is a read-only field that can be - * left blank. - */ - core.String subaccountId; - - CreativeGroup(); - - CreativeGroup.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("groupNumber")) { - groupNumber = _json["groupNumber"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (groupNumber != null) { - _json["groupNumber"] = groupNumber; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - return _json; - } -} - -/** Creative Group Assignment. */ -class CreativeGroupAssignment { - /** ID of the creative group to be assigned. */ - core.String creativeGroupId; - /** - * Creative group number of the creative group assignment. - * Possible string values are: - * - "CREATIVE_GROUP_ONE" - * - "CREATIVE_GROUP_TWO" - */ - core.String creativeGroupNumber; - - CreativeGroupAssignment(); - - CreativeGroupAssignment.fromJson(core.Map _json) { - if (_json.containsKey("creativeGroupId")) { - creativeGroupId = _json["creativeGroupId"]; - } - if (_json.containsKey("creativeGroupNumber")) { - creativeGroupNumber = _json["creativeGroupNumber"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creativeGroupId != null) { - _json["creativeGroupId"] = creativeGroupId; - } - if (creativeGroupNumber != null) { - _json["creativeGroupNumber"] = creativeGroupNumber; - } - return _json; - } -} - -/** Creative Group List Response */ -class CreativeGroupsListResponse { - /** Creative group collection. */ - core.List<CreativeGroup> creativeGroups; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativeGroupsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - CreativeGroupsListResponse(); - - CreativeGroupsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("creativeGroups")) { - creativeGroups = _json["creativeGroups"].map((value) => new CreativeGroup.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creativeGroups != null) { - _json["creativeGroups"] = creativeGroups.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Creative optimization settings. */ -class CreativeOptimizationConfiguration { - /** - * ID of this creative optimization config. This field is auto-generated when - * the campaign is inserted or updated. It can be null for existing campaigns. - */ - core.String id; - /** - * Name of this creative optimization config. This is a required field and - * must be less than 129 characters long. - */ - core.String name; - /** List of optimization activities associated with this configuration. */ - core.List<OptimizationActivity> optimizationActivitys; - /** - * Optimization model for this configuration. - * Possible string values are: - * - "CLICK" - * - "POST_CLICK" - * - "POST_CLICK_AND_IMPRESSION" - * - "POST_IMPRESSION" - * - "VIDEO_COMPLETION" - */ - core.String optimizationModel; - - CreativeOptimizationConfiguration(); - - CreativeOptimizationConfiguration.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("optimizationActivitys")) { - optimizationActivitys = _json["optimizationActivitys"].map((value) => new OptimizationActivity.fromJson(value)).toList(); - } - if (_json.containsKey("optimizationModel")) { - optimizationModel = _json["optimizationModel"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (name != null) { - _json["name"] = name; - } - if (optimizationActivitys != null) { - _json["optimizationActivitys"] = optimizationActivitys.map((value) => (value).toJson()).toList(); - } - if (optimizationModel != null) { - _json["optimizationModel"] = optimizationModel; - } - return _json; - } -} - -/** Creative Rotation. */ -class CreativeRotation { - /** Creative assignments in this creative rotation. */ - core.List<CreativeAssignment> creativeAssignments; - /** - * Creative optimization configuration that is used by this ad. It should - * refer to one of the existing optimization configurations in the ad's - * campaign. If it is unset or set to 0, then the campaign's default - * optimization configuration will be used for this ad. - */ - core.String creativeOptimizationConfigurationId; - /** - * Type of creative rotation. Can be used to specify whether to use sequential - * or random rotation. - * Possible string values are: - * - "CREATIVE_ROTATION_TYPE_RANDOM" - * - "CREATIVE_ROTATION_TYPE_SEQUENTIAL" - */ - core.String type; - /** - * Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM. - * Possible string values are: - * - "WEIGHT_STRATEGY_CUSTOM" - * - "WEIGHT_STRATEGY_EQUAL" - * - "WEIGHT_STRATEGY_HIGHEST_CTR" - * - "WEIGHT_STRATEGY_OPTIMIZED" - */ - core.String weightCalculationStrategy; - - CreativeRotation(); - - CreativeRotation.fromJson(core.Map _json) { - if (_json.containsKey("creativeAssignments")) { - creativeAssignments = _json["creativeAssignments"].map((value) => new CreativeAssignment.fromJson(value)).toList(); - } - if (_json.containsKey("creativeOptimizationConfigurationId")) { - creativeOptimizationConfigurationId = _json["creativeOptimizationConfigurationId"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - if (_json.containsKey("weightCalculationStrategy")) { - weightCalculationStrategy = _json["weightCalculationStrategy"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creativeAssignments != null) { - _json["creativeAssignments"] = creativeAssignments.map((value) => (value).toJson()).toList(); - } - if (creativeOptimizationConfigurationId != null) { - _json["creativeOptimizationConfigurationId"] = creativeOptimizationConfigurationId; - } - if (type != null) { - _json["type"] = type; - } - if (weightCalculationStrategy != null) { - _json["weightCalculationStrategy"] = weightCalculationStrategy; - } - return _json; - } -} - -/** Creative Settings */ -class CreativeSettings { - /** - * Header text for iFrames for this site. Must be less than or equal to 2000 - * characters long. - */ - core.String iFrameFooter; - /** - * Header text for iFrames for this site. Must be less than or equal to 2000 - * characters long. - */ - core.String iFrameHeader; - - CreativeSettings(); - - CreativeSettings.fromJson(core.Map _json) { - if (_json.containsKey("iFrameFooter")) { - iFrameFooter = _json["iFrameFooter"]; - } - if (_json.containsKey("iFrameHeader")) { - iFrameHeader = _json["iFrameHeader"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (iFrameFooter != null) { - _json["iFrameFooter"] = iFrameFooter; - } - if (iFrameHeader != null) { - _json["iFrameHeader"] = iFrameHeader; - } - return _json; - } -} - -/** Creative List Response */ -class CreativesListResponse { - /** Creative collection. */ - core.List<Creative> creatives; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - CreativesListResponse(); - - CreativesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("creatives")) { - creatives = _json["creatives"].map((value) => new Creative.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creatives != null) { - _json["creatives"] = creatives.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** - * Represents fields that are compatible to be selected for a report of type - * "CROSS_DIMENSION_REACH". - */ -class CrossDimensionReachReportCompatibleFields { - /** - * Dimensions which are compatible to be selected in the "breakdown" section - * of the report. - */ - core.List<Dimension> breakdown; - /** - * Dimensions which are compatible to be selected in the "dimensionFilters" - * section of the report. - */ - core.List<Dimension> dimensionFilters; - /** - * The kind of resource this is, in this case - * dfareporting#crossDimensionReachReportCompatibleFields. - */ - core.String kind; - /** - * Metrics which are compatible to be selected in the "metricNames" section of - * the report. - */ - core.List<Metric> metrics; - /** - * Metrics which are compatible to be selected in the "overlapMetricNames" - * section of the report. - */ - core.List<Metric> overlapMetrics; - - CrossDimensionReachReportCompatibleFields(); - - CrossDimensionReachReportCompatibleFields.fromJson(core.Map _json) { - if (_json.containsKey("breakdown")) { - breakdown = _json["breakdown"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metrics")) { - metrics = _json["metrics"].map((value) => new Metric.fromJson(value)).toList(); - } - if (_json.containsKey("overlapMetrics")) { - overlapMetrics = _json["overlapMetrics"].map((value) => new Metric.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (breakdown != null) { - _json["breakdown"] = breakdown.map((value) => (value).toJson()).toList(); - } - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (metrics != null) { - _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); - } - if (overlapMetrics != null) { - _json["overlapMetrics"] = overlapMetrics.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** A custom floodlight variable. */ -class CustomFloodlightVariable { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#customFloodlightVariable". - */ - core.String kind; - /** - * The type of custom floodlight variable to supply a value for. These map to - * the "u[1-20]=" in the tags. - * Possible string values are: - * - "U1" - * - "U10" - * - "U100" - * - "U11" - * - "U12" - * - "U13" - * - "U14" - * - "U15" - * - "U16" - * - "U17" - * - "U18" - * - "U19" - * - "U2" - * - "U20" - * - "U21" - * - "U22" - * - "U23" - * - "U24" - * - "U25" - * - "U26" - * - "U27" - * - "U28" - * - "U29" - * - "U3" - * - "U30" - * - "U31" - * - "U32" - * - "U33" - * - "U34" - * - "U35" - * - "U36" - * - "U37" - * - "U38" - * - "U39" - * - "U4" - * - "U40" - * - "U41" - * - "U42" - * - "U43" - * - "U44" - * - "U45" - * - "U46" - * - "U47" - * - "U48" - * - "U49" - * - "U5" - * - "U50" - * - "U51" - * - "U52" - * - "U53" - * - "U54" - * - "U55" - * - "U56" - * - "U57" - * - "U58" - * - "U59" - * - "U6" - * - "U60" - * - "U61" - * - "U62" - * - "U63" - * - "U64" - * - "U65" - * - "U66" - * - "U67" - * - "U68" - * - "U69" - * - "U7" - * - "U70" - * - "U71" - * - "U72" - * - "U73" - * - "U74" - * - "U75" - * - "U76" - * - "U77" - * - "U78" - * - "U79" - * - "U8" - * - "U80" - * - "U81" - * - "U82" - * - "U83" - * - "U84" - * - "U85" - * - "U86" - * - "U87" - * - "U88" - * - "U89" - * - "U9" - * - "U90" - * - "U91" - * - "U92" - * - "U93" - * - "U94" - * - "U95" - * - "U96" - * - "U97" - * - "U98" - * - "U99" - */ - core.String type; - /** - * The value of the custom floodlight variable. The length of string must not - * exceed 50 characters. - */ - core.String value; - - CustomFloodlightVariable(); - - CustomFloodlightVariable.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (type != null) { - _json["type"] = type; - } - if (value != null) { - _json["value"] = value; - } - return _json; - } -} - -/** Represents a Custom Rich Media Events group. */ -class CustomRichMediaEvents { - /** - * List of custom rich media event IDs. Dimension values must be all of type - * dfa:richMediaEventTypeIdAndName. - */ - core.List<DimensionValue> filteredEventIds; - /** - * The kind of resource this is, in this case - * dfareporting#customRichMediaEvents. - */ - core.String kind; - - CustomRichMediaEvents(); - - CustomRichMediaEvents.fromJson(core.Map _json) { - if (_json.containsKey("filteredEventIds")) { - filteredEventIds = _json["filteredEventIds"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (filteredEventIds != null) { - _json["filteredEventIds"] = filteredEventIds.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Represents a date range. */ -class DateRange { - /** - * The end date of the date range, inclusive. A string of the format: - * "yyyy-MM-dd". - */ - core.DateTime endDate; - /** The kind of resource this is, in this case dfareporting#dateRange. */ - core.String kind; - /** - * The date range relative to the date of when the report is run. - * Possible string values are: - * - "LAST_24_MONTHS" - * - "LAST_30_DAYS" - * - "LAST_365_DAYS" - * - "LAST_7_DAYS" - * - "LAST_90_DAYS" - * - "MONTH_TO_DATE" - * - "PREVIOUS_MONTH" - * - "PREVIOUS_QUARTER" - * - "PREVIOUS_WEEK" - * - "PREVIOUS_YEAR" - * - "QUARTER_TO_DATE" - * - "TODAY" - * - "WEEK_TO_DATE" - * - "YEAR_TO_DATE" - * - "YESTERDAY" - */ - core.String relativeDateRange; - /** - * The start date of the date range, inclusive. A string of the format: - * "yyyy-MM-dd". - */ - core.DateTime startDate; - - DateRange(); - - DateRange.fromJson(core.Map _json) { - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("relativeDateRange")) { - relativeDateRange = _json["relativeDateRange"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (kind != null) { - _json["kind"] = kind; - } - if (relativeDateRange != null) { - _json["relativeDateRange"] = relativeDateRange; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - return _json; - } -} - -/** Day Part Targeting. */ -class DayPartTargeting { - /** - * Days of the week when the ad will serve. - * - * Acceptable values are: - * - "SUNDAY" - * - "MONDAY" - * - "TUESDAY" - * - "WEDNESDAY" - * - "THURSDAY" - * - "FRIDAY" - * - "SATURDAY" - */ - core.List<core.String> daysOfWeek; - /** - * Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 - * is 11 PM to midnight. Can be specified with days of week, in which case the - * ad would serve during these hours on the specified days. For example if - * Monday, Wednesday, Friday are the days of week specified and 9-10am, 3-5pm - * (hours 9, 15, and 16) is specified, the ad would serve Monday, Wednesdays, - * and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive. - */ - core.List<core.int> hoursOfDay; - /** - * Whether or not to use the user's local time. If false, the America/New York - * time zone applies. - */ - core.bool userLocalTime; - - DayPartTargeting(); - - DayPartTargeting.fromJson(core.Map _json) { - if (_json.containsKey("daysOfWeek")) { - daysOfWeek = _json["daysOfWeek"]; - } - if (_json.containsKey("hoursOfDay")) { - hoursOfDay = _json["hoursOfDay"]; - } - if (_json.containsKey("userLocalTime")) { - userLocalTime = _json["userLocalTime"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (daysOfWeek != null) { - _json["daysOfWeek"] = daysOfWeek; - } - if (hoursOfDay != null) { - _json["hoursOfDay"] = hoursOfDay; - } - if (userLocalTime != null) { - _json["userLocalTime"] = userLocalTime; - } - return _json; - } -} - -/** - * Properties of inheriting and overriding the default click-through event tag. - * A campaign may override the event tag defined at the advertiser level, and an - * ad may also override the campaign's setting further. - */ -class DefaultClickThroughEventTagProperties { - /** - * ID of the click-through event tag to apply to all ads in this entity's - * scope. - */ - core.String defaultClickThroughEventTagId; - /** - * Whether this entity should override the inherited default click-through - * event tag with its own defined value. - */ - core.bool overrideInheritedEventTag; - - DefaultClickThroughEventTagProperties(); - - DefaultClickThroughEventTagProperties.fromJson(core.Map _json) { - if (_json.containsKey("defaultClickThroughEventTagId")) { - defaultClickThroughEventTagId = _json["defaultClickThroughEventTagId"]; - } - if (_json.containsKey("overrideInheritedEventTag")) { - overrideInheritedEventTag = _json["overrideInheritedEventTag"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (defaultClickThroughEventTagId != null) { - _json["defaultClickThroughEventTagId"] = defaultClickThroughEventTagId; - } - if (overrideInheritedEventTag != null) { - _json["overrideInheritedEventTag"] = overrideInheritedEventTag; - } - return _json; - } -} - -/** Delivery Schedule. */ -class DeliverySchedule { - /** - * Limit on the number of times an individual user can be served the ad within - * a specified period of time. - */ - FrequencyCap frequencyCap; - /** - * Whether or not hard cutoff is enabled. If true, the ad will not serve after - * the end date and time. Otherwise the ad will continue to be served until it - * has reached its delivery goals. - */ - core.bool hardCutoff; - /** - * Impression ratio for this ad. This ratio determines how often each ad is - * served relative to the others. For example, if ad A has an impression ratio - * of 1 and ad B has an impression ratio of 3, then DCM will serve ad B three - * times as often as ad A. Acceptable values are 1 to 10, inclusive. - */ - core.String impressionRatio; - /** - * Serving priority of an ad, with respect to other ads. The lower the - * priority number, the greater the priority with which it is served. - * Possible string values are: - * - "AD_PRIORITY_01" - * - "AD_PRIORITY_02" - * - "AD_PRIORITY_03" - * - "AD_PRIORITY_04" - * - "AD_PRIORITY_05" - * - "AD_PRIORITY_06" - * - "AD_PRIORITY_07" - * - "AD_PRIORITY_08" - * - "AD_PRIORITY_09" - * - "AD_PRIORITY_10" - * - "AD_PRIORITY_11" - * - "AD_PRIORITY_12" - * - "AD_PRIORITY_13" - * - "AD_PRIORITY_14" - * - "AD_PRIORITY_15" - * - "AD_PRIORITY_16" - */ - core.String priority; - - DeliverySchedule(); - - DeliverySchedule.fromJson(core.Map _json) { - if (_json.containsKey("frequencyCap")) { - frequencyCap = new FrequencyCap.fromJson(_json["frequencyCap"]); - } - if (_json.containsKey("hardCutoff")) { - hardCutoff = _json["hardCutoff"]; - } - if (_json.containsKey("impressionRatio")) { - impressionRatio = _json["impressionRatio"]; - } - if (_json.containsKey("priority")) { - priority = _json["priority"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (frequencyCap != null) { - _json["frequencyCap"] = (frequencyCap).toJson(); - } - if (hardCutoff != null) { - _json["hardCutoff"] = hardCutoff; - } - if (impressionRatio != null) { - _json["impressionRatio"] = impressionRatio; - } - if (priority != null) { - _json["priority"] = priority; - } - return _json; - } -} - -/** DFP Settings */ -class DfpSettings { - /** DFP network code for this directory site. */ - core.String dfpNetworkCode; - /** DFP network name for this directory site. */ - core.String dfpNetworkName; - /** Whether this directory site accepts programmatic placements. */ - core.bool programmaticPlacementAccepted; - /** Whether this directory site accepts publisher-paid tags. */ - core.bool pubPaidPlacementAccepted; - /** - * Whether this directory site is available only via DoubleClick Publisher - * Portal. - */ - core.bool publisherPortalOnly; - - DfpSettings(); - - DfpSettings.fromJson(core.Map _json) { - if (_json.containsKey("dfp_network_code")) { - dfpNetworkCode = _json["dfp_network_code"]; - } - if (_json.containsKey("dfp_network_name")) { - dfpNetworkName = _json["dfp_network_name"]; - } - if (_json.containsKey("programmaticPlacementAccepted")) { - programmaticPlacementAccepted = _json["programmaticPlacementAccepted"]; - } - if (_json.containsKey("pubPaidPlacementAccepted")) { - pubPaidPlacementAccepted = _json["pubPaidPlacementAccepted"]; - } - if (_json.containsKey("publisherPortalOnly")) { - publisherPortalOnly = _json["publisherPortalOnly"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dfpNetworkCode != null) { - _json["dfp_network_code"] = dfpNetworkCode; - } - if (dfpNetworkName != null) { - _json["dfp_network_name"] = dfpNetworkName; - } - if (programmaticPlacementAccepted != null) { - _json["programmaticPlacementAccepted"] = programmaticPlacementAccepted; - } - if (pubPaidPlacementAccepted != null) { - _json["pubPaidPlacementAccepted"] = pubPaidPlacementAccepted; - } - if (publisherPortalOnly != null) { - _json["publisherPortalOnly"] = publisherPortalOnly; - } - return _json; - } -} - -/** Represents a dimension. */ -class Dimension { - /** The kind of resource this is, in this case dfareporting#dimension. */ - core.String kind; - /** The dimension name, e.g. dfa:advertiser */ - core.String name; - - Dimension(); - - Dimension.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Represents a dimension filter. */ -class DimensionFilter { - /** The name of the dimension to filter. */ - core.String dimensionName; - /** - * The kind of resource this is, in this case dfareporting#dimensionFilter. - */ - core.String kind; - /** The value of the dimension to filter. */ - core.String value; - - DimensionFilter(); - - DimensionFilter.fromJson(core.Map _json) { - if (_json.containsKey("dimensionName")) { - dimensionName = _json["dimensionName"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dimensionName != null) { - _json["dimensionName"] = dimensionName; - } - if (kind != null) { - _json["kind"] = kind; - } - if (value != null) { - _json["value"] = value; - } - return _json; - } -} - -/** Represents a DimensionValue resource. */ -class DimensionValue { - /** The name of the dimension. */ - core.String dimensionName; - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The ID associated with the value if available. */ - core.String id; - /** - * The kind of resource this is, in this case dfareporting#dimensionValue. - */ - core.String kind; - /** - * Determines how the 'value' field is matched when filtering. If not - * specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed - * as a placeholder for variable length character sequences, and it can be - * escaped with a backslash. Note, only paid search dimensions - * ('dfa:paidSearch*') allow a matchType other than EXACT. - * Possible string values are: - * - "BEGINS_WITH" - * - "CONTAINS" - * - "EXACT" - * - "WILDCARD_EXPRESSION" - */ - core.String matchType; - /** The value of the dimension. */ - core.String value; - - DimensionValue(); - - DimensionValue.fromJson(core.Map _json) { - if (_json.containsKey("dimensionName")) { - dimensionName = _json["dimensionName"]; - } - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("matchType")) { - matchType = _json["matchType"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dimensionName != null) { - _json["dimensionName"] = dimensionName; - } - if (etag != null) { - _json["etag"] = etag; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (matchType != null) { - _json["matchType"] = matchType; - } - if (value != null) { - _json["value"] = value; - } - return _json; - } -} - -/** Represents the list of DimensionValue resources. */ -class DimensionValueList { - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The dimension values returned in this response. */ - core.List<DimensionValue> items; - /** - * The kind of list this is, in this case dfareporting#dimensionValueList. - */ - core.String kind; - /** - * Continuation token used to page through dimension values. To retrieve the - * next page of results, set the next request's "pageToken" to the value of - * this field. The page token is only valid for a limited amount of time and - * should not be persisted. - */ - core.String nextPageToken; - - DimensionValueList(); - - DimensionValueList.fromJson(core.Map _json) { - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("items")) { - items = _json["items"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (etag != null) { - _json["etag"] = etag; - } - if (items != null) { - _json["items"] = items.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Represents a DimensionValuesRequest. */ -class DimensionValueRequest { - /** The name of the dimension for which values should be requested. */ - core.String dimensionName; - /** - * The end date of the date range for which to retrieve dimension values. A - * string of the format "yyyy-MM-dd". - */ - core.DateTime endDate; - /** The list of filters by which to filter values. The filters are ANDed. */ - core.List<DimensionFilter> filters; - /** - * The kind of request this is, in this case - * dfareporting#dimensionValueRequest. - */ - core.String kind; - /** - * The start date of the date range for which to retrieve dimension values. A - * string of the format "yyyy-MM-dd". - */ - core.DateTime startDate; - - DimensionValueRequest(); - - DimensionValueRequest.fromJson(core.Map _json) { - if (_json.containsKey("dimensionName")) { - dimensionName = _json["dimensionName"]; - } - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("filters")) { - filters = _json["filters"].map((value) => new DimensionFilter.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dimensionName != null) { - _json["dimensionName"] = dimensionName; - } - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (filters != null) { - _json["filters"] = filters.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - return _json; - } -} - -/** - * DirectorySites contains properties of a website from the Site Directory. - * Sites need to be added to an account via the Sites resource before they can - * be assigned to a placement. - */ -class DirectorySite { - /** Whether this directory site is active. */ - core.bool active; - /** Directory site contacts. */ - core.List<DirectorySiteContactAssignment> contactAssignments; - /** Country ID of this directory site. This is a read-only field. */ - core.String countryId; - /** - * Currency ID of this directory site. This is a read-only field. - * Possible values are: - * - "1" for USD - * - "2" for GBP - * - "3" for ESP - * - "4" for SEK - * - "5" for CAD - * - "6" for JPY - * - "7" for DEM - * - "8" for AUD - * - "9" for FRF - * - "10" for ITL - * - "11" for DKK - * - "12" for NOK - * - "13" for FIM - * - "14" for ZAR - * - "15" for IEP - * - "16" for NLG - * - "17" for EUR - * - "18" for KRW - * - "19" for TWD - * - "20" for SGD - * - "21" for CNY - * - "22" for HKD - * - "23" for NZD - * - "24" for MYR - * - "25" for BRL - * - "26" for PTE - * - "27" for MXP - * - "28" for CLP - * - "29" for TRY - * - "30" for ARS - * - "31" for PEN - * - "32" for ILS - * - "33" for CHF - * - "34" for VEF - * - "35" for COP - * - "36" for GTQ - * - "37" for PLN - * - "39" for INR - * - "40" for THB - * - "41" for IDR - * - "42" for CZK - * - "43" for RON - * - "44" for HUF - * - "45" for RUB - * - "46" for AED - * - "47" for BGN - * - "48" for HRK - * - "49" for MXN - */ - core.String currencyId; - /** Description of this directory site. This is a read-only field. */ - core.String description; - /** ID of this directory site. This is a read-only, auto-generated field. */ - core.String id; - /** - * Dimension value for the ID of this directory site. This is a read-only, - * auto-generated field. - */ - DimensionValue idDimensionValue; - /** - * Tag types for regular placements. - * - * Acceptable values are: - * - "STANDARD" - * - "IFRAME_JAVASCRIPT_INPAGE" - * - "INTERNAL_REDIRECT_INPAGE" - * - "JAVASCRIPT_INPAGE" - */ - core.List<core.String> inpageTagFormats; - /** - * Tag types for interstitial placements. - * - * Acceptable values are: - * - "IFRAME_JAVASCRIPT_INTERSTITIAL" - * - "INTERNAL_REDIRECT_INTERSTITIAL" - * - "JAVASCRIPT_INTERSTITIAL" - */ - core.List<core.String> interstitialTagFormats; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#directorySite". - */ - core.String kind; - /** Name of this directory site. */ - core.String name; - /** Parent directory site ID. */ - core.String parentId; - /** Directory site settings. */ - DirectorySiteSettings settings; - /** URL of this directory site. */ - core.String url; - - DirectorySite(); - - DirectorySite.fromJson(core.Map _json) { - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("contactAssignments")) { - contactAssignments = _json["contactAssignments"].map((value) => new DirectorySiteContactAssignment.fromJson(value)).toList(); - } - if (_json.containsKey("countryId")) { - countryId = _json["countryId"]; - } - if (_json.containsKey("currencyId")) { - currencyId = _json["currencyId"]; - } - if (_json.containsKey("description")) { - description = _json["description"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("inpageTagFormats")) { - inpageTagFormats = _json["inpageTagFormats"]; - } - if (_json.containsKey("interstitialTagFormats")) { - interstitialTagFormats = _json["interstitialTagFormats"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("parentId")) { - parentId = _json["parentId"]; - } - if (_json.containsKey("settings")) { - settings = new DirectorySiteSettings.fromJson(_json["settings"]); - } - if (_json.containsKey("url")) { - url = _json["url"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (active != null) { - _json["active"] = active; - } - if (contactAssignments != null) { - _json["contactAssignments"] = contactAssignments.map((value) => (value).toJson()).toList(); - } - if (countryId != null) { - _json["countryId"] = countryId; - } - if (currencyId != null) { - _json["currencyId"] = currencyId; - } - if (description != null) { - _json["description"] = description; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (inpageTagFormats != null) { - _json["inpageTagFormats"] = inpageTagFormats; - } - if (interstitialTagFormats != null) { - _json["interstitialTagFormats"] = interstitialTagFormats; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (parentId != null) { - _json["parentId"] = parentId; - } - if (settings != null) { - _json["settings"] = (settings).toJson(); - } - if (url != null) { - _json["url"] = url; - } - return _json; - } -} - -/** Contains properties of a Site Directory contact. */ -class DirectorySiteContact { - /** Address of this directory site contact. */ - core.String address; - /** Email address of this directory site contact. */ - core.String email; - /** First name of this directory site contact. */ - core.String firstName; - /** - * ID of this directory site contact. This is a read-only, auto-generated - * field. - */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#directorySiteContact". - */ - core.String kind; - /** Last name of this directory site contact. */ - core.String lastName; - /** Phone number of this directory site contact. */ - core.String phone; - /** - * Directory site contact role. - * Possible string values are: - * - "ADMIN" - * - "EDIT" - * - "VIEW" - */ - core.String role; - /** Title or designation of this directory site contact. */ - core.String title; - /** - * Directory site contact type. - * Possible string values are: - * - "BILLING" - * - "OTHER" - * - "SALES" - * - "TECHNICAL" - */ - core.String type; - - DirectorySiteContact(); - - DirectorySiteContact.fromJson(core.Map _json) { - if (_json.containsKey("address")) { - address = _json["address"]; - } - if (_json.containsKey("email")) { - email = _json["email"]; - } - if (_json.containsKey("firstName")) { - firstName = _json["firstName"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastName")) { - lastName = _json["lastName"]; - } - if (_json.containsKey("phone")) { - phone = _json["phone"]; - } - if (_json.containsKey("role")) { - role = _json["role"]; - } - if (_json.containsKey("title")) { - title = _json["title"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (address != null) { - _json["address"] = address; - } - if (email != null) { - _json["email"] = email; - } - if (firstName != null) { - _json["firstName"] = firstName; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastName != null) { - _json["lastName"] = lastName; - } - if (phone != null) { - _json["phone"] = phone; - } - if (role != null) { - _json["role"] = role; - } - if (title != null) { - _json["title"] = title; - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** Directory Site Contact Assignment */ -class DirectorySiteContactAssignment { - /** - * ID of this directory site contact. This is a read-only, auto-generated - * field. - */ - core.String contactId; - /** - * Visibility of this directory site contact assignment. When set to PUBLIC - * this contact assignment is visible to all account and agency users; when - * set to PRIVATE it is visible only to the site. - * Possible string values are: - * - "PRIVATE" - * - "PUBLIC" - */ - core.String visibility; - - DirectorySiteContactAssignment(); - - DirectorySiteContactAssignment.fromJson(core.Map _json) { - if (_json.containsKey("contactId")) { - contactId = _json["contactId"]; - } - if (_json.containsKey("visibility")) { - visibility = _json["visibility"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (contactId != null) { - _json["contactId"] = contactId; - } - if (visibility != null) { - _json["visibility"] = visibility; - } - return _json; - } -} - -/** Directory Site Contact List Response */ -class DirectorySiteContactsListResponse { - /** Directory site contact collection */ - core.List<DirectorySiteContact> directorySiteContacts; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#directorySiteContactsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - DirectorySiteContactsListResponse(); - - DirectorySiteContactsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("directorySiteContacts")) { - directorySiteContacts = _json["directorySiteContacts"].map((value) => new DirectorySiteContact.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (directorySiteContacts != null) { - _json["directorySiteContacts"] = directorySiteContacts.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Directory Site Settings */ -class DirectorySiteSettings { - /** Whether this directory site has disabled active view creatives. */ - core.bool activeViewOptOut; - /** Directory site DFP settings. */ - DfpSettings dfpSettings; - /** Whether this site accepts in-stream video ads. */ - core.bool instreamVideoPlacementAccepted; - /** Whether this site accepts interstitial ads. */ - core.bool interstitialPlacementAccepted; - /** Whether this directory site has disabled Nielsen OCR reach ratings. */ - core.bool nielsenOcrOptOut; - /** - * Whether this directory site has disabled generation of Verification ins - * tags. - */ - core.bool verificationTagOptOut; - /** - * Whether this directory site has disabled active view for in-stream video - * creatives. - */ - core.bool videoActiveViewOptOut; - - DirectorySiteSettings(); - - DirectorySiteSettings.fromJson(core.Map _json) { - if (_json.containsKey("activeViewOptOut")) { - activeViewOptOut = _json["activeViewOptOut"]; - } - if (_json.containsKey("dfp_settings")) { - dfpSettings = new DfpSettings.fromJson(_json["dfp_settings"]); - } - if (_json.containsKey("instream_video_placement_accepted")) { - instreamVideoPlacementAccepted = _json["instream_video_placement_accepted"]; - } - if (_json.containsKey("interstitialPlacementAccepted")) { - interstitialPlacementAccepted = _json["interstitialPlacementAccepted"]; - } - if (_json.containsKey("nielsenOcrOptOut")) { - nielsenOcrOptOut = _json["nielsenOcrOptOut"]; - } - if (_json.containsKey("verificationTagOptOut")) { - verificationTagOptOut = _json["verificationTagOptOut"]; - } - if (_json.containsKey("videoActiveViewOptOut")) { - videoActiveViewOptOut = _json["videoActiveViewOptOut"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (activeViewOptOut != null) { - _json["activeViewOptOut"] = activeViewOptOut; - } - if (dfpSettings != null) { - _json["dfp_settings"] = (dfpSettings).toJson(); - } - if (instreamVideoPlacementAccepted != null) { - _json["instream_video_placement_accepted"] = instreamVideoPlacementAccepted; - } - if (interstitialPlacementAccepted != null) { - _json["interstitialPlacementAccepted"] = interstitialPlacementAccepted; - } - if (nielsenOcrOptOut != null) { - _json["nielsenOcrOptOut"] = nielsenOcrOptOut; - } - if (verificationTagOptOut != null) { - _json["verificationTagOptOut"] = verificationTagOptOut; - } - if (videoActiveViewOptOut != null) { - _json["videoActiveViewOptOut"] = videoActiveViewOptOut; - } - return _json; - } -} - -/** Directory Site List Response */ -class DirectorySitesListResponse { - /** Directory site collection. */ - core.List<DirectorySite> directorySites; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#directorySitesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - DirectorySitesListResponse(); - - DirectorySitesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("directorySites")) { - directorySites = _json["directorySites"].map((value) => new DirectorySite.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (directorySites != null) { - _json["directorySites"] = directorySites.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** - * Contains properties of a dynamic targeting key. Dynamic targeting keys are - * unique, user-friendly labels, created at the advertiser level in DCM, that - * can be assigned to ads, creatives, and placements and used for targeting with - * DoubleClick Studio dynamic creatives. Use these labels instead of numeric DCM - * IDs (such as placement IDs) to save time and avoid errors in your dynamic - * feeds. - */ -class DynamicTargetingKey { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#dynamicTargetingKey". - */ - core.String kind; - /** - * Name of this dynamic targeting key. This is a required field. Must be less - * than 256 characters long and cannot contain commas. All characters are - * converted to lowercase. - */ - core.String name; - /** - * ID of the object of this dynamic targeting key. This is a required field. - */ - core.String objectId; - /** - * Type of the object of this dynamic targeting key. This is a required field. - * Possible string values are: - * - "OBJECT_AD" - * - "OBJECT_ADVERTISER" - * - "OBJECT_CREATIVE" - * - "OBJECT_PLACEMENT" - */ - core.String objectType; - - DynamicTargetingKey(); - - DynamicTargetingKey.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("objectId")) { - objectId = _json["objectId"]; - } - if (_json.containsKey("objectType")) { - objectType = _json["objectType"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (objectId != null) { - _json["objectId"] = objectId; - } - if (objectType != null) { - _json["objectType"] = objectType; - } - return _json; - } -} - -/** Dynamic Targeting Key List Response */ -class DynamicTargetingKeysListResponse { - /** Dynamic targeting key collection. */ - core.List<DynamicTargetingKey> dynamicTargetingKeys; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#dynamicTargetingKeysListResponse". - */ - core.String kind; - - DynamicTargetingKeysListResponse(); - - DynamicTargetingKeysListResponse.fromJson(core.Map _json) { - if (_json.containsKey("dynamicTargetingKeys")) { - dynamicTargetingKeys = _json["dynamicTargetingKeys"].map((value) => new DynamicTargetingKey.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dynamicTargetingKeys != null) { - _json["dynamicTargetingKeys"] = dynamicTargetingKeys.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** A description of how user IDs are encrypted. */ -class EncryptionInfo { - /** - * The encryption entity ID. This should match the encryption configuration - * for ad serving or Data Transfer. - */ - core.String encryptionEntityId; - /** - * The encryption entity type. This should match the encryption configuration - * for ad serving or Data Transfer. - * Possible string values are: - * - "ADWORDS_CUSTOMER" - * - "DBM_ADVERTISER" - * - "DBM_PARTNER" - * - "DCM_ACCOUNT" - * - "DCM_ADVERTISER" - * - "ENCRYPTION_ENTITY_TYPE_UNKNOWN" - */ - core.String encryptionEntityType; - /** - * Describes whether the encrypted cookie was received from ad serving (the %m - * macro) or from Data Transfer. - * Possible string values are: - * - "AD_SERVING" - * - "DATA_TRANSFER" - * - "ENCRYPTION_SCOPE_UNKNOWN" - */ - core.String encryptionSource; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#encryptionInfo". - */ - core.String kind; - - EncryptionInfo(); - - EncryptionInfo.fromJson(core.Map _json) { - if (_json.containsKey("encryptionEntityId")) { - encryptionEntityId = _json["encryptionEntityId"]; - } - if (_json.containsKey("encryptionEntityType")) { - encryptionEntityType = _json["encryptionEntityType"]; - } - if (_json.containsKey("encryptionSource")) { - encryptionSource = _json["encryptionSource"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (encryptionEntityId != null) { - _json["encryptionEntityId"] = encryptionEntityId; - } - if (encryptionEntityType != null) { - _json["encryptionEntityType"] = encryptionEntityType; - } - if (encryptionSource != null) { - _json["encryptionSource"] = encryptionSource; - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Contains properties of an event tag. */ -class EventTag { - /** - * Account ID of this event tag. This is a read-only field that can be left - * blank. - */ - core.String accountId; - /** - * Advertiser ID of this event tag. This field or the campaignId field is - * required on insertion. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** - * Campaign ID of this event tag. This field or the advertiserId field is - * required on insertion. - */ - core.String campaignId; - /** - * Dimension value for the ID of the campaign. This is a read-only, - * auto-generated field. - */ - DimensionValue campaignIdDimensionValue; - /** - * Whether this event tag should be automatically enabled for all of the - * advertiser's campaigns and ads. - */ - core.bool enabledByDefault; - /** - * Whether to remove this event tag from ads that are trafficked through - * DoubleClick Bid Manager to Ad Exchange. This may be useful if the event tag - * uses a pixel that is unapproved for Ad Exchange bids on one or more - * networks, such as the Google Display Network. - */ - core.bool excludeFromAdxRequests; - /** ID of this event tag. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#eventTag". - */ - core.String kind; - /** - * Name of this event tag. This is a required field and must be less than 256 - * characters long. - */ - core.String name; - /** - * Site filter type for this event tag. If no type is specified then the event - * tag will be applied to all sites. - * Possible string values are: - * - "BLACKLIST" - * - "WHITELIST" - */ - core.String siteFilterType; - /** - * Filter list of site IDs associated with this event tag. The siteFilterType - * determines whether this is a whitelist or blacklist filter. - */ - core.List<core.String> siteIds; - /** Whether this tag is SSL-compliant or not. This is a read-only field. */ - core.bool sslCompliant; - /** - * Status of this event tag. Must be ENABLED for this event tag to fire. This - * is a required field. - * Possible string values are: - * - "DISABLED" - * - "ENABLED" - */ - core.String status; - /** - * Subaccount ID of this event tag. This is a read-only field that can be left - * blank. - */ - core.String subaccountId; - /** - * Event tag type. Can be used to specify whether to use a third-party pixel, - * a third-party JavaScript URL, or a third-party click-through URL for either - * impression or click tracking. This is a required field. - * Possible string values are: - * - "CLICK_THROUGH_EVENT_TAG" - * - "IMPRESSION_IMAGE_EVENT_TAG" - * - "IMPRESSION_JAVASCRIPT_EVENT_TAG" - */ - core.String type; - /** - * Payload URL for this event tag. The URL on a click-through event tag should - * have a landing page URL appended to the end of it. This field is required - * on insertion. - */ - core.String url; - /** - * Number of times the landing page URL should be URL-escaped before being - * appended to the click-through event tag URL. Only applies to click-through - * event tags as specified by the event tag type. - */ - core.int urlEscapeLevels; - - EventTag(); - - EventTag.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("campaignId")) { - campaignId = _json["campaignId"]; - } - if (_json.containsKey("campaignIdDimensionValue")) { - campaignIdDimensionValue = new DimensionValue.fromJson(_json["campaignIdDimensionValue"]); - } - if (_json.containsKey("enabledByDefault")) { - enabledByDefault = _json["enabledByDefault"]; - } - if (_json.containsKey("excludeFromAdxRequests")) { - excludeFromAdxRequests = _json["excludeFromAdxRequests"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("siteFilterType")) { - siteFilterType = _json["siteFilterType"]; - } - if (_json.containsKey("siteIds")) { - siteIds = _json["siteIds"]; - } - if (_json.containsKey("sslCompliant")) { - sslCompliant = _json["sslCompliant"]; - } - if (_json.containsKey("status")) { - status = _json["status"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - if (_json.containsKey("url")) { - url = _json["url"]; - } - if (_json.containsKey("urlEscapeLevels")) { - urlEscapeLevels = _json["urlEscapeLevels"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (campaignId != null) { - _json["campaignId"] = campaignId; - } - if (campaignIdDimensionValue != null) { - _json["campaignIdDimensionValue"] = (campaignIdDimensionValue).toJson(); - } - if (enabledByDefault != null) { - _json["enabledByDefault"] = enabledByDefault; - } - if (excludeFromAdxRequests != null) { - _json["excludeFromAdxRequests"] = excludeFromAdxRequests; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (siteFilterType != null) { - _json["siteFilterType"] = siteFilterType; - } - if (siteIds != null) { - _json["siteIds"] = siteIds; - } - if (sslCompliant != null) { - _json["sslCompliant"] = sslCompliant; - } - if (status != null) { - _json["status"] = status; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (type != null) { - _json["type"] = type; - } - if (url != null) { - _json["url"] = url; - } - if (urlEscapeLevels != null) { - _json["urlEscapeLevels"] = urlEscapeLevels; - } - return _json; - } -} - -/** Event tag override information. */ -class EventTagOverride { - /** Whether this override is enabled. */ - core.bool enabled; - /** - * ID of this event tag override. This is a read-only, auto-generated field. - */ - core.String id; - - EventTagOverride(); - - EventTagOverride.fromJson(core.Map _json) { - if (_json.containsKey("enabled")) { - enabled = _json["enabled"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (enabled != null) { - _json["enabled"] = enabled; - } - if (id != null) { - _json["id"] = id; - } - return _json; - } -} - -/** Event Tag List Response */ -class EventTagsListResponse { - /** Event tag collection. */ - core.List<EventTag> eventTags; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#eventTagsListResponse". - */ - core.String kind; - - EventTagsListResponse(); - - EventTagsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("eventTags")) { - eventTags = _json["eventTags"].map((value) => new EventTag.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (eventTags != null) { - _json["eventTags"] = eventTags.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** The URLs where the completed report file can be downloaded. */ -class FileUrls { - /** The URL for downloading the report data through the API. */ - core.String apiUrl; - /** The URL for downloading the report data through a browser. */ - core.String browserUrl; - - FileUrls(); - - FileUrls.fromJson(core.Map _json) { - if (_json.containsKey("apiUrl")) { - apiUrl = _json["apiUrl"]; - } - if (_json.containsKey("browserUrl")) { - browserUrl = _json["browserUrl"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (apiUrl != null) { - _json["apiUrl"] = apiUrl; - } - if (browserUrl != null) { - _json["browserUrl"] = browserUrl; - } - return _json; - } -} - -/** - * Represents a File resource. A file contains the metadata for a report run. It - * shows the status of the run and holds the URLs to the generated report data - * if the run is finished and the status is "REPORT_AVAILABLE". - */ -class File { - /** - * The date range for which the file has report data. The date range will - * always be the absolute date range for which the report is run. - */ - DateRange dateRange; - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The filename of the file. */ - core.String fileName; - /** - * The output format of the report. Only available once the file is available. - * Possible string values are: - * - "CSV" - * - "EXCEL" - */ - core.String format; - /** The unique ID of this report file. */ - core.String id; - /** The kind of resource this is, in this case dfareporting#file. */ - core.String kind; - /** - * The timestamp in milliseconds since epoch when this file was last modified. - */ - core.String lastModifiedTime; - /** The ID of the report this file was generated from. */ - core.String reportId; - /** - * The status of the report file. - * Possible string values are: - * - "CANCELLED" - * - "FAILED" - * - "PROCESSING" - * - "REPORT_AVAILABLE" - */ - core.String status; - /** The URLs where the completed report file can be downloaded. */ - FileUrls urls; - - File(); - - File.fromJson(core.Map _json) { - if (_json.containsKey("dateRange")) { - dateRange = new DateRange.fromJson(_json["dateRange"]); - } - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("fileName")) { - fileName = _json["fileName"]; - } - if (_json.containsKey("format")) { - format = _json["format"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedTime")) { - lastModifiedTime = _json["lastModifiedTime"]; - } - if (_json.containsKey("reportId")) { - reportId = _json["reportId"]; - } - if (_json.containsKey("status")) { - status = _json["status"]; - } - if (_json.containsKey("urls")) { - urls = new FileUrls.fromJson(_json["urls"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dateRange != null) { - _json["dateRange"] = (dateRange).toJson(); - } - if (etag != null) { - _json["etag"] = etag; - } - if (fileName != null) { - _json["fileName"] = fileName; - } - if (format != null) { - _json["format"] = format; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedTime != null) { - _json["lastModifiedTime"] = lastModifiedTime; - } - if (reportId != null) { - _json["reportId"] = reportId; - } - if (status != null) { - _json["status"] = status; - } - if (urls != null) { - _json["urls"] = (urls).toJson(); - } - return _json; - } -} - -/** Represents the list of File resources. */ -class FileList { - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The files returned in this response. */ - core.List<File> items; - /** The kind of list this is, in this case dfareporting#fileList. */ - core.String kind; - /** - * Continuation token used to page through files. To retrieve the next page of - * results, set the next request's "pageToken" to the value of this field. The - * page token is only valid for a limited amount of time and should not be - * persisted. - */ - core.String nextPageToken; - - FileList(); - - FileList.fromJson(core.Map _json) { - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("items")) { - items = _json["items"].map((value) => new File.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (etag != null) { - _json["etag"] = etag; - } - if (items != null) { - _json["items"] = items.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Flight */ -class Flight { - /** Inventory item flight end date. */ - core.DateTime endDate; - /** Rate or cost of this flight. */ - core.String rateOrCost; - /** Inventory item flight start date. */ - core.DateTime startDate; - /** Units of this flight. */ - core.String units; - - Flight(); - - Flight.fromJson(core.Map _json) { - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("rateOrCost")) { - rateOrCost = _json["rateOrCost"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - if (_json.containsKey("units")) { - units = _json["units"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (rateOrCost != null) { - _json["rateOrCost"] = rateOrCost; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - if (units != null) { - _json["units"] = units; - } - return _json; - } -} - -/** Floodlight Activity GenerateTag Response */ -class FloodlightActivitiesGenerateTagResponse { - /** Generated tag for this floodlight activity. */ - core.String floodlightActivityTag; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#floodlightActivitiesGenerateTagResponse". - */ - core.String kind; - - FloodlightActivitiesGenerateTagResponse(); - - FloodlightActivitiesGenerateTagResponse.fromJson(core.Map _json) { - if (_json.containsKey("floodlightActivityTag")) { - floodlightActivityTag = _json["floodlightActivityTag"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (floodlightActivityTag != null) { - _json["floodlightActivityTag"] = floodlightActivityTag; - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Floodlight Activity List Response */ -class FloodlightActivitiesListResponse { - /** Floodlight activity collection. */ - core.List<FloodlightActivity> floodlightActivities; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#floodlightActivitiesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - FloodlightActivitiesListResponse(); - - FloodlightActivitiesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("floodlightActivities")) { - floodlightActivities = _json["floodlightActivities"].map((value) => new FloodlightActivity.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (floodlightActivities != null) { - _json["floodlightActivities"] = floodlightActivities.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Contains properties of a Floodlight activity. */ -class FloodlightActivity { - /** - * Account ID of this floodlight activity. This is a read-only field that can - * be left blank. - */ - core.String accountId; - /** - * Advertiser ID of this floodlight activity. If this field is left blank, the - * value will be copied over either from the activity group's advertiser or - * the existing activity's advertiser. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** - * Code type used for cache busting in the generated tag. Applicable only when - * floodlightActivityGroupType is COUNTER and countingMethod is - * STANDARD_COUNTING or UNIQUE_COUNTING. - * Possible string values are: - * - "ACTIVE_SERVER_PAGE" - * - "COLD_FUSION" - * - "JAVASCRIPT" - * - "JSP" - * - "PHP" - */ - core.String cacheBustingType; - /** - * Counting method for conversions for this floodlight activity. This is a - * required field. - * Possible string values are: - * - "ITEMS_SOLD_COUNTING" - * - "SESSION_COUNTING" - * - "STANDARD_COUNTING" - * - "TRANSACTIONS_COUNTING" - * - "UNIQUE_COUNTING" - */ - core.String countingMethod; - /** Dynamic floodlight tags. */ - core.List<FloodlightActivityDynamicTag> defaultTags; - /** - * URL where this tag will be deployed. If specified, must be less than 256 - * characters long. - */ - core.String expectedUrl; - /** - * Floodlight activity group ID of this floodlight activity. This is a - * required field. - */ - core.String floodlightActivityGroupId; - /** - * Name of the associated floodlight activity group. This is a read-only - * field. - */ - core.String floodlightActivityGroupName; - /** - * Tag string of the associated floodlight activity group. This is a read-only - * field. - */ - core.String floodlightActivityGroupTagString; - /** - * Type of the associated floodlight activity group. This is a read-only - * field. - * Possible string values are: - * - "COUNTER" - * - "SALE" - */ - core.String floodlightActivityGroupType; - /** - * Floodlight configuration ID of this floodlight activity. If this field is - * left blank, the value will be copied over either from the activity group's - * floodlight configuration or from the existing activity's floodlight - * configuration. - */ - core.String floodlightConfigurationId; - /** - * Dimension value for the ID of the floodlight configuration. This is a - * read-only, auto-generated field. - */ - DimensionValue floodlightConfigurationIdDimensionValue; - /** Whether this activity is archived. */ - core.bool hidden; - /** - * ID of this floodlight activity. This is a read-only, auto-generated field. - */ - core.String id; - /** - * Dimension value for the ID of this floodlight activity. This is a - * read-only, auto-generated field. - */ - DimensionValue idDimensionValue; - /** Whether the image tag is enabled for this activity. */ - core.bool imageTagEnabled; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#floodlightActivity". - */ - core.String kind; - /** - * Name of this floodlight activity. This is a required field. Must be less - * than 129 characters long and cannot contain quotes. - */ - core.String name; - /** General notes or implementation instructions for the tag. */ - core.String notes; - /** Publisher dynamic floodlight tags. */ - core.List<FloodlightActivityPublisherDynamicTag> publisherTags; - /** Whether this tag should use SSL. */ - core.bool secure; - /** - * Whether the floodlight activity is SSL-compliant. This is a read-only - * field, its value detected by the system from the floodlight tags. - */ - core.bool sslCompliant; - /** Whether this floodlight activity must be SSL-compliant. */ - core.bool sslRequired; - /** - * Subaccount ID of this floodlight activity. This is a read-only field that - * can be left blank. - */ - core.String subaccountId; - /** - * Tag format type for the floodlight activity. If left blank, the tag format - * will default to HTML. - * Possible string values are: - * - "HTML" - * - "XHTML" - */ - core.String tagFormat; - /** - * Value of the cat= paramter in the floodlight tag, which the ad servers use - * to identify the activity. This is optional: if empty, a new tag string will - * be generated for you. This string must be 1 to 8 characters long, with - * valid characters being [a-z][A-Z][0-9][-][ _ ]. This tag string must also - * be unique among activities of the same activity group. This field is - * read-only after insertion. - */ - core.String tagString; - /** - * List of the user-defined variables used by this conversion tag. These map - * to the "u[1-20]=" in the tags. Each of these can have a user defined type. - * Acceptable values are: - * - "U1" - * - "U2" - * - "U3" - * - "U4" - * - "U5" - * - "U6" - * - "U7" - * - "U8" - * - "U9" - * - "U10" - * - "U11" - * - "U12" - * - "U13" - * - "U14" - * - "U15" - * - "U16" - * - "U17" - * - "U18" - * - "U19" - * - "U20" - */ - core.List<core.String> userDefinedVariableTypes; - - FloodlightActivity(); - - FloodlightActivity.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("cacheBustingType")) { - cacheBustingType = _json["cacheBustingType"]; - } - if (_json.containsKey("countingMethod")) { - countingMethod = _json["countingMethod"]; - } - if (_json.containsKey("defaultTags")) { - defaultTags = _json["defaultTags"].map((value) => new FloodlightActivityDynamicTag.fromJson(value)).toList(); - } - if (_json.containsKey("expectedUrl")) { - expectedUrl = _json["expectedUrl"]; - } - if (_json.containsKey("floodlightActivityGroupId")) { - floodlightActivityGroupId = _json["floodlightActivityGroupId"]; - } - if (_json.containsKey("floodlightActivityGroupName")) { - floodlightActivityGroupName = _json["floodlightActivityGroupName"]; - } - if (_json.containsKey("floodlightActivityGroupTagString")) { - floodlightActivityGroupTagString = _json["floodlightActivityGroupTagString"]; - } - if (_json.containsKey("floodlightActivityGroupType")) { - floodlightActivityGroupType = _json["floodlightActivityGroupType"]; - } - if (_json.containsKey("floodlightConfigurationId")) { - floodlightConfigurationId = _json["floodlightConfigurationId"]; - } - if (_json.containsKey("floodlightConfigurationIdDimensionValue")) { - floodlightConfigurationIdDimensionValue = new DimensionValue.fromJson(_json["floodlightConfigurationIdDimensionValue"]); - } - if (_json.containsKey("hidden")) { - hidden = _json["hidden"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("imageTagEnabled")) { - imageTagEnabled = _json["imageTagEnabled"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("notes")) { - notes = _json["notes"]; - } - if (_json.containsKey("publisherTags")) { - publisherTags = _json["publisherTags"].map((value) => new FloodlightActivityPublisherDynamicTag.fromJson(value)).toList(); - } - if (_json.containsKey("secure")) { - secure = _json["secure"]; - } - if (_json.containsKey("sslCompliant")) { - sslCompliant = _json["sslCompliant"]; - } - if (_json.containsKey("sslRequired")) { - sslRequired = _json["sslRequired"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("tagFormat")) { - tagFormat = _json["tagFormat"]; - } - if (_json.containsKey("tagString")) { - tagString = _json["tagString"]; - } - if (_json.containsKey("userDefinedVariableTypes")) { - userDefinedVariableTypes = _json["userDefinedVariableTypes"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (cacheBustingType != null) { - _json["cacheBustingType"] = cacheBustingType; - } - if (countingMethod != null) { - _json["countingMethod"] = countingMethod; - } - if (defaultTags != null) { - _json["defaultTags"] = defaultTags.map((value) => (value).toJson()).toList(); - } - if (expectedUrl != null) { - _json["expectedUrl"] = expectedUrl; - } - if (floodlightActivityGroupId != null) { - _json["floodlightActivityGroupId"] = floodlightActivityGroupId; - } - if (floodlightActivityGroupName != null) { - _json["floodlightActivityGroupName"] = floodlightActivityGroupName; - } - if (floodlightActivityGroupTagString != null) { - _json["floodlightActivityGroupTagString"] = floodlightActivityGroupTagString; - } - if (floodlightActivityGroupType != null) { - _json["floodlightActivityGroupType"] = floodlightActivityGroupType; - } - if (floodlightConfigurationId != null) { - _json["floodlightConfigurationId"] = floodlightConfigurationId; - } - if (floodlightConfigurationIdDimensionValue != null) { - _json["floodlightConfigurationIdDimensionValue"] = (floodlightConfigurationIdDimensionValue).toJson(); - } - if (hidden != null) { - _json["hidden"] = hidden; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (imageTagEnabled != null) { - _json["imageTagEnabled"] = imageTagEnabled; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (notes != null) { - _json["notes"] = notes; - } - if (publisherTags != null) { - _json["publisherTags"] = publisherTags.map((value) => (value).toJson()).toList(); - } - if (secure != null) { - _json["secure"] = secure; - } - if (sslCompliant != null) { - _json["sslCompliant"] = sslCompliant; - } - if (sslRequired != null) { - _json["sslRequired"] = sslRequired; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (tagFormat != null) { - _json["tagFormat"] = tagFormat; - } - if (tagString != null) { - _json["tagString"] = tagString; - } - if (userDefinedVariableTypes != null) { - _json["userDefinedVariableTypes"] = userDefinedVariableTypes; - } - return _json; - } -} - -/** Dynamic Tag */ -class FloodlightActivityDynamicTag { - /** ID of this dynamic tag. This is a read-only, auto-generated field. */ - core.String id; - /** Name of this tag. */ - core.String name; - /** Tag code. */ - core.String tag; - - FloodlightActivityDynamicTag(); - - FloodlightActivityDynamicTag.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("tag")) { - tag = _json["tag"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (name != null) { - _json["name"] = name; - } - if (tag != null) { - _json["tag"] = tag; - } - return _json; - } -} - -/** Contains properties of a Floodlight activity group. */ -class FloodlightActivityGroup { - /** - * Account ID of this floodlight activity group. This is a read-only field - * that can be left blank. - */ - core.String accountId; - /** - * Advertiser ID of this floodlight activity group. If this field is left - * blank, the value will be copied over either from the floodlight - * configuration's advertiser or from the existing activity group's - * advertiser. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** - * Floodlight configuration ID of this floodlight activity group. This is a - * required field. - */ - core.String floodlightConfigurationId; - /** - * Dimension value for the ID of the floodlight configuration. This is a - * read-only, auto-generated field. - */ - DimensionValue floodlightConfigurationIdDimensionValue; - /** - * ID of this floodlight activity group. This is a read-only, auto-generated - * field. - */ - core.String id; - /** - * Dimension value for the ID of this floodlight activity group. This is a - * read-only, auto-generated field. - */ - DimensionValue idDimensionValue; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#floodlightActivityGroup". - */ - core.String kind; - /** - * Name of this floodlight activity group. This is a required field. Must be - * less than 65 characters long and cannot contain quotes. - */ - core.String name; - /** - * Subaccount ID of this floodlight activity group. This is a read-only field - * that can be left blank. - */ - core.String subaccountId; - /** - * Value of the type= parameter in the floodlight tag, which the ad servers - * use to identify the activity group that the activity belongs to. This is - * optional: if empty, a new tag string will be generated for you. This string - * must be 1 to 8 characters long, with valid characters being - * [a-z][A-Z][0-9][-][ _ ]. This tag string must also be unique among activity - * groups of the same floodlight configuration. This field is read-only after - * insertion. - */ - core.String tagString; - /** - * Type of the floodlight activity group. This is a required field that is - * read-only after insertion. - * Possible string values are: - * - "COUNTER" - * - "SALE" - */ - core.String type; - - FloodlightActivityGroup(); - - FloodlightActivityGroup.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("floodlightConfigurationId")) { - floodlightConfigurationId = _json["floodlightConfigurationId"]; - } - if (_json.containsKey("floodlightConfigurationIdDimensionValue")) { - floodlightConfigurationIdDimensionValue = new DimensionValue.fromJson(_json["floodlightConfigurationIdDimensionValue"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("tagString")) { - tagString = _json["tagString"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (floodlightConfigurationId != null) { - _json["floodlightConfigurationId"] = floodlightConfigurationId; - } - if (floodlightConfigurationIdDimensionValue != null) { - _json["floodlightConfigurationIdDimensionValue"] = (floodlightConfigurationIdDimensionValue).toJson(); - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (tagString != null) { - _json["tagString"] = tagString; - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** Floodlight Activity Group List Response */ -class FloodlightActivityGroupsListResponse { - /** Floodlight activity group collection. */ - core.List<FloodlightActivityGroup> floodlightActivityGroups; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#floodlightActivityGroupsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - FloodlightActivityGroupsListResponse(); - - FloodlightActivityGroupsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("floodlightActivityGroups")) { - floodlightActivityGroups = _json["floodlightActivityGroups"].map((value) => new FloodlightActivityGroup.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (floodlightActivityGroups != null) { - _json["floodlightActivityGroups"] = floodlightActivityGroups.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Publisher Dynamic Tag */ -class FloodlightActivityPublisherDynamicTag { - /** Whether this tag is applicable only for click-throughs. */ - core.bool clickThrough; - /** - * Directory site ID of this dynamic tag. This is a write-only field that can - * be used as an alternative to the siteId field. When this resource is - * retrieved, only the siteId field will be populated. - */ - core.String directorySiteId; - /** Dynamic floodlight tag. */ - FloodlightActivityDynamicTag dynamicTag; - /** Site ID of this dynamic tag. */ - core.String siteId; - /** - * Dimension value for the ID of the site. This is a read-only, auto-generated - * field. - */ - DimensionValue siteIdDimensionValue; - /** Whether this tag is applicable only for view-throughs. */ - core.bool viewThrough; - - FloodlightActivityPublisherDynamicTag(); - - FloodlightActivityPublisherDynamicTag.fromJson(core.Map _json) { - if (_json.containsKey("clickThrough")) { - clickThrough = _json["clickThrough"]; - } - if (_json.containsKey("directorySiteId")) { - directorySiteId = _json["directorySiteId"]; - } - if (_json.containsKey("dynamicTag")) { - dynamicTag = new FloodlightActivityDynamicTag.fromJson(_json["dynamicTag"]); - } - if (_json.containsKey("siteId")) { - siteId = _json["siteId"]; - } - if (_json.containsKey("siteIdDimensionValue")) { - siteIdDimensionValue = new DimensionValue.fromJson(_json["siteIdDimensionValue"]); - } - if (_json.containsKey("viewThrough")) { - viewThrough = _json["viewThrough"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (clickThrough != null) { - _json["clickThrough"] = clickThrough; - } - if (directorySiteId != null) { - _json["directorySiteId"] = directorySiteId; - } - if (dynamicTag != null) { - _json["dynamicTag"] = (dynamicTag).toJson(); - } - if (siteId != null) { - _json["siteId"] = siteId; - } - if (siteIdDimensionValue != null) { - _json["siteIdDimensionValue"] = (siteIdDimensionValue).toJson(); - } - if (viewThrough != null) { - _json["viewThrough"] = viewThrough; - } - return _json; - } -} - -/** Contains properties of a Floodlight configuration. */ -class FloodlightConfiguration { - /** - * Account ID of this floodlight configuration. This is a read-only field that - * can be left blank. - */ - core.String accountId; - /** - * Advertiser ID of the parent advertiser of this floodlight configuration. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** Whether advertiser data is shared with Google Analytics. */ - core.bool analyticsDataSharingEnabled; - /** - * Whether the exposure-to-conversion report is enabled. This report shows - * detailed pathway information on up to 10 of the most recent ad exposures - * seen by a user before converting. - */ - core.bool exposureToConversionEnabled; - /** - * Day that will be counted as the first day of the week in reports. This is a - * required field. - * Possible string values are: - * - "MONDAY" - * - "SUNDAY" - */ - core.String firstDayOfWeek; - /** - * ID of this floodlight configuration. This is a read-only, auto-generated - * field. - */ - core.String id; - /** - * Dimension value for the ID of this floodlight configuration. This is a - * read-only, auto-generated field. - */ - DimensionValue idDimensionValue; - /** Whether in-app attribution tracking is enabled. */ - core.bool inAppAttributionTrackingEnabled; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#floodlightConfiguration". - */ - core.String kind; - /** Lookback window settings for this floodlight configuration. */ - LookbackConfiguration lookbackConfiguration; - /** - * Types of attribution options for natural search conversions. - * Possible string values are: - * - "EXCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION" - * - "INCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION" - * - "INCLUDE_NATURAL_SEARCH_TIERED_CONVERSION_ATTRIBUTION" - */ - core.String naturalSearchConversionAttributionOption; - /** Settings for DCM Omniture integration. */ - OmnitureSettings omnitureSettings; - /** - * List of standard variables enabled for this configuration. - * - * Acceptable values are: - * - "ORD" - * - "NUM" - */ - core.List<core.String> standardVariableTypes; - /** - * Subaccount ID of this floodlight configuration. This is a read-only field - * that can be left blank. - */ - core.String subaccountId; - /** Configuration settings for dynamic and image floodlight tags. */ - TagSettings tagSettings; - /** - * List of third-party authentication tokens enabled for this configuration. - */ - core.List<ThirdPartyAuthenticationToken> thirdPartyAuthenticationTokens; - /** List of user defined variables enabled for this configuration. */ - core.List<UserDefinedVariableConfiguration> userDefinedVariableConfigurations; - - FloodlightConfiguration(); - - FloodlightConfiguration.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("analyticsDataSharingEnabled")) { - analyticsDataSharingEnabled = _json["analyticsDataSharingEnabled"]; - } - if (_json.containsKey("exposureToConversionEnabled")) { - exposureToConversionEnabled = _json["exposureToConversionEnabled"]; - } - if (_json.containsKey("firstDayOfWeek")) { - firstDayOfWeek = _json["firstDayOfWeek"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("inAppAttributionTrackingEnabled")) { - inAppAttributionTrackingEnabled = _json["inAppAttributionTrackingEnabled"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lookbackConfiguration")) { - lookbackConfiguration = new LookbackConfiguration.fromJson(_json["lookbackConfiguration"]); - } - if (_json.containsKey("naturalSearchConversionAttributionOption")) { - naturalSearchConversionAttributionOption = _json["naturalSearchConversionAttributionOption"]; - } - if (_json.containsKey("omnitureSettings")) { - omnitureSettings = new OmnitureSettings.fromJson(_json["omnitureSettings"]); - } - if (_json.containsKey("standardVariableTypes")) { - standardVariableTypes = _json["standardVariableTypes"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("tagSettings")) { - tagSettings = new TagSettings.fromJson(_json["tagSettings"]); - } - if (_json.containsKey("thirdPartyAuthenticationTokens")) { - thirdPartyAuthenticationTokens = _json["thirdPartyAuthenticationTokens"].map((value) => new ThirdPartyAuthenticationToken.fromJson(value)).toList(); - } - if (_json.containsKey("userDefinedVariableConfigurations")) { - userDefinedVariableConfigurations = _json["userDefinedVariableConfigurations"].map((value) => new UserDefinedVariableConfiguration.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (analyticsDataSharingEnabled != null) { - _json["analyticsDataSharingEnabled"] = analyticsDataSharingEnabled; - } - if (exposureToConversionEnabled != null) { - _json["exposureToConversionEnabled"] = exposureToConversionEnabled; - } - if (firstDayOfWeek != null) { - _json["firstDayOfWeek"] = firstDayOfWeek; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (inAppAttributionTrackingEnabled != null) { - _json["inAppAttributionTrackingEnabled"] = inAppAttributionTrackingEnabled; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lookbackConfiguration != null) { - _json["lookbackConfiguration"] = (lookbackConfiguration).toJson(); - } - if (naturalSearchConversionAttributionOption != null) { - _json["naturalSearchConversionAttributionOption"] = naturalSearchConversionAttributionOption; - } - if (omnitureSettings != null) { - _json["omnitureSettings"] = (omnitureSettings).toJson(); - } - if (standardVariableTypes != null) { - _json["standardVariableTypes"] = standardVariableTypes; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (tagSettings != null) { - _json["tagSettings"] = (tagSettings).toJson(); - } - if (thirdPartyAuthenticationTokens != null) { - _json["thirdPartyAuthenticationTokens"] = thirdPartyAuthenticationTokens.map((value) => (value).toJson()).toList(); - } - if (userDefinedVariableConfigurations != null) { - _json["userDefinedVariableConfigurations"] = userDefinedVariableConfigurations.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Floodlight Configuration List Response */ -class FloodlightConfigurationsListResponse { - /** Floodlight configuration collection. */ - core.List<FloodlightConfiguration> floodlightConfigurations; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#floodlightConfigurationsListResponse". - */ - core.String kind; - - FloodlightConfigurationsListResponse(); - - FloodlightConfigurationsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("floodlightConfigurations")) { - floodlightConfigurations = _json["floodlightConfigurations"].map((value) => new FloodlightConfiguration.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (floodlightConfigurations != null) { - _json["floodlightConfigurations"] = floodlightConfigurations.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** - * Represents fields that are compatible to be selected for a report of type - * "FlOODLIGHT". - */ -class FloodlightReportCompatibleFields { - /** - * Dimensions which are compatible to be selected in the "dimensionFilters" - * section of the report. - */ - core.List<Dimension> dimensionFilters; - /** - * Dimensions which are compatible to be selected in the "dimensions" section - * of the report. - */ - core.List<Dimension> dimensions; - /** - * The kind of resource this is, in this case - * dfareporting#floodlightReportCompatibleFields. - */ - core.String kind; - /** - * Metrics which are compatible to be selected in the "metricNames" section of - * the report. - */ - core.List<Metric> metrics; - - FloodlightReportCompatibleFields(); - - FloodlightReportCompatibleFields.fromJson(core.Map _json) { - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("dimensions")) { - dimensions = _json["dimensions"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metrics")) { - metrics = _json["metrics"].map((value) => new Metric.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (dimensions != null) { - _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (metrics != null) { - _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Frequency Cap. */ -class FrequencyCap { - /** - * Duration of time, in seconds, for this frequency cap. The maximum duration - * is 90 days. Acceptable values are 1 to 7776000, inclusive. - */ - core.String duration; - /** - * Number of times an individual user can be served the ad within the - * specified duration. Acceptable values are 1 to 15, inclusive. - */ - core.String impressions; - - FrequencyCap(); - - FrequencyCap.fromJson(core.Map _json) { - if (_json.containsKey("duration")) { - duration = _json["duration"]; - } - if (_json.containsKey("impressions")) { - impressions = _json["impressions"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (duration != null) { - _json["duration"] = duration; - } - if (impressions != null) { - _json["impressions"] = impressions; - } - return _json; - } -} - -/** FsCommand. */ -class FsCommand { - /** - * Distance from the left of the browser.Applicable when positionOption is - * DISTANCE_FROM_TOP_LEFT_CORNER. - */ - core.int left; - /** - * Position in the browser where the window will open. - * Possible string values are: - * - "CENTERED" - * - "DISTANCE_FROM_TOP_LEFT_CORNER" - */ - core.String positionOption; - /** - * Distance from the top of the browser. Applicable when positionOption is - * DISTANCE_FROM_TOP_LEFT_CORNER. - */ - core.int top; - /** Height of the window. */ - core.int windowHeight; - /** Width of the window. */ - core.int windowWidth; - - FsCommand(); - - FsCommand.fromJson(core.Map _json) { - if (_json.containsKey("left")) { - left = _json["left"]; - } - if (_json.containsKey("positionOption")) { - positionOption = _json["positionOption"]; - } - if (_json.containsKey("top")) { - top = _json["top"]; - } - if (_json.containsKey("windowHeight")) { - windowHeight = _json["windowHeight"]; - } - if (_json.containsKey("windowWidth")) { - windowWidth = _json["windowWidth"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (left != null) { - _json["left"] = left; - } - if (positionOption != null) { - _json["positionOption"] = positionOption; - } - if (top != null) { - _json["top"] = top; - } - if (windowHeight != null) { - _json["windowHeight"] = windowHeight; - } - if (windowWidth != null) { - _json["windowWidth"] = windowWidth; - } - return _json; - } -} - -/** Geographical Targeting. */ -class GeoTargeting { - /** - * Cities to be targeted. For each city only dartId is required. The other - * fields are populated automatically when the ad is inserted or updated. If - * targeting a city, do not target or exclude the country of the city, and do - * not target the metro or region of the city. - */ - core.List<City> cities; - /** - * Countries to be targeted or excluded from targeting, depending on the - * setting of the excludeCountries field. For each country only dartId is - * required. The other fields are populated automatically when the ad is - * inserted or updated. If targeting or excluding a country, do not target - * regions, cities, metros, or postal codes in the same country. - */ - core.List<Country> countries; - /** - * Whether or not to exclude the countries in the countries field from - * targeting. If false, the countries field refers to countries which will be - * targeted by the ad. - */ - core.bool excludeCountries; - /** - * Metros to be targeted. For each metro only dmaId is required. The other - * fields are populated automatically when the ad is inserted or updated. If - * targeting a metro, do not target or exclude the country of the metro. - */ - core.List<Metro> metros; - /** - * Postal codes to be targeted. For each postal code only id is required. The - * other fields are populated automatically when the ad is inserted or - * updated. If targeting a postal code, do not target or exclude the country - * of the postal code. - */ - core.List<PostalCode> postalCodes; - /** - * Regions to be targeted. For each region only dartId is required. The other - * fields are populated automatically when the ad is inserted or updated. If - * targeting a region, do not target or exclude the country of the region. - */ - core.List<Region> regions; - - GeoTargeting(); - - GeoTargeting.fromJson(core.Map _json) { - if (_json.containsKey("cities")) { - cities = _json["cities"].map((value) => new City.fromJson(value)).toList(); - } - if (_json.containsKey("countries")) { - countries = _json["countries"].map((value) => new Country.fromJson(value)).toList(); - } - if (_json.containsKey("excludeCountries")) { - excludeCountries = _json["excludeCountries"]; - } - if (_json.containsKey("metros")) { - metros = _json["metros"].map((value) => new Metro.fromJson(value)).toList(); - } - if (_json.containsKey("postalCodes")) { - postalCodes = _json["postalCodes"].map((value) => new PostalCode.fromJson(value)).toList(); - } - if (_json.containsKey("regions")) { - regions = _json["regions"].map((value) => new Region.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (cities != null) { - _json["cities"] = cities.map((value) => (value).toJson()).toList(); - } - if (countries != null) { - _json["countries"] = countries.map((value) => (value).toJson()).toList(); - } - if (excludeCountries != null) { - _json["excludeCountries"] = excludeCountries; - } - if (metros != null) { - _json["metros"] = metros.map((value) => (value).toJson()).toList(); - } - if (postalCodes != null) { - _json["postalCodes"] = postalCodes.map((value) => (value).toJson()).toList(); - } - if (regions != null) { - _json["regions"] = regions.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Represents a buy from the DoubleClick Planning inventory store. */ -class InventoryItem { - /** Account ID of this inventory item. */ - core.String accountId; - /** - * Ad slots of this inventory item. If this inventory item represents a - * standalone placement, there will be exactly one ad slot. If this inventory - * item represents a placement group, there will be more than one ad slot, - * each representing one child placement in that placement group. - */ - core.List<AdSlot> adSlots; - /** Advertiser ID of this inventory item. */ - core.String advertiserId; - /** Content category ID of this inventory item. */ - core.String contentCategoryId; - /** Estimated click-through rate of this inventory item. */ - core.String estimatedClickThroughRate; - /** Estimated conversion rate of this inventory item. */ - core.String estimatedConversionRate; - /** ID of this inventory item. */ - core.String id; - /** Whether this inventory item is in plan. */ - core.bool inPlan; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#inventoryItem". - */ - core.String kind; - /** Information about the most recent modification of this inventory item. */ - LastModifiedInfo lastModifiedInfo; - /** - * Name of this inventory item. For standalone inventory items, this is the - * same name as that of its only ad slot. For group inventory items, this can - * differ from the name of any of its ad slots. - */ - core.String name; - /** Negotiation channel ID of this inventory item. */ - core.String negotiationChannelId; - /** Order ID of this inventory item. */ - core.String orderId; - /** Placement strategy ID of this inventory item. */ - core.String placementStrategyId; - /** Pricing of this inventory item. */ - Pricing pricing; - /** Project ID of this inventory item. */ - core.String projectId; - /** RFP ID of this inventory item. */ - core.String rfpId; - /** ID of the site this inventory item is associated with. */ - core.String siteId; - /** Subaccount ID of this inventory item. */ - core.String subaccountId; - /** - * Type of inventory item. - * Possible string values are: - * - "PLANNING_PLACEMENT_TYPE_CREDIT" - * - "PLANNING_PLACEMENT_TYPE_REGULAR" - */ - core.String type; - - InventoryItem(); - - InventoryItem.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("adSlots")) { - adSlots = _json["adSlots"].map((value) => new AdSlot.fromJson(value)).toList(); - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("contentCategoryId")) { - contentCategoryId = _json["contentCategoryId"]; - } - if (_json.containsKey("estimatedClickThroughRate")) { - estimatedClickThroughRate = _json["estimatedClickThroughRate"]; - } - if (_json.containsKey("estimatedConversionRate")) { - estimatedConversionRate = _json["estimatedConversionRate"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("inPlan")) { - inPlan = _json["inPlan"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("negotiationChannelId")) { - negotiationChannelId = _json["negotiationChannelId"]; - } - if (_json.containsKey("orderId")) { - orderId = _json["orderId"]; - } - if (_json.containsKey("placementStrategyId")) { - placementStrategyId = _json["placementStrategyId"]; - } - if (_json.containsKey("pricing")) { - pricing = new Pricing.fromJson(_json["pricing"]); - } - if (_json.containsKey("projectId")) { - projectId = _json["projectId"]; - } - if (_json.containsKey("rfpId")) { - rfpId = _json["rfpId"]; - } - if (_json.containsKey("siteId")) { - siteId = _json["siteId"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (adSlots != null) { - _json["adSlots"] = adSlots.map((value) => (value).toJson()).toList(); - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (contentCategoryId != null) { - _json["contentCategoryId"] = contentCategoryId; - } - if (estimatedClickThroughRate != null) { - _json["estimatedClickThroughRate"] = estimatedClickThroughRate; - } - if (estimatedConversionRate != null) { - _json["estimatedConversionRate"] = estimatedConversionRate; - } - if (id != null) { - _json["id"] = id; - } - if (inPlan != null) { - _json["inPlan"] = inPlan; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (negotiationChannelId != null) { - _json["negotiationChannelId"] = negotiationChannelId; - } - if (orderId != null) { - _json["orderId"] = orderId; - } - if (placementStrategyId != null) { - _json["placementStrategyId"] = placementStrategyId; - } - if (pricing != null) { - _json["pricing"] = (pricing).toJson(); - } - if (projectId != null) { - _json["projectId"] = projectId; - } - if (rfpId != null) { - _json["rfpId"] = rfpId; - } - if (siteId != null) { - _json["siteId"] = siteId; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** Inventory item List Response */ -class InventoryItemsListResponse { - /** Inventory item collection */ - core.List<InventoryItem> inventoryItems; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#inventoryItemsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - InventoryItemsListResponse(); - - InventoryItemsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("inventoryItems")) { - inventoryItems = _json["inventoryItems"].map((value) => new InventoryItem.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (inventoryItems != null) { - _json["inventoryItems"] = inventoryItems.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Key Value Targeting Expression. */ -class KeyValueTargetingExpression { - /** Keyword expression being targeted by the ad. */ - core.String expression; - - KeyValueTargetingExpression(); - - KeyValueTargetingExpression.fromJson(core.Map _json) { - if (_json.containsKey("expression")) { - expression = _json["expression"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (expression != null) { - _json["expression"] = expression; - } - return _json; - } -} - -/** - * Contains information about where a user's browser is taken after the user - * clicks an ad. - */ -class LandingPage { - /** - * Whether or not this landing page will be assigned to any ads or creatives - * that do not have a landing page assigned explicitly. Only one default - * landing page is allowed per campaign. - */ - core.bool default_; - /** ID of this landing page. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#landingPage". - */ - core.String kind; - /** - * Name of this landing page. This is a required field. It must be less than - * 256 characters long, and must be unique among landing pages of the same - * campaign. - */ - core.String name; - /** URL of this landing page. This is a required field. */ - core.String url; - - LandingPage(); - - LandingPage.fromJson(core.Map _json) { - if (_json.containsKey("default")) { - default_ = _json["default"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("url")) { - url = _json["url"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (default_ != null) { - _json["default"] = default_; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (url != null) { - _json["url"] = url; - } - return _json; - } -} - -/** Landing Page List Response */ -class LandingPagesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#landingPagesListResponse". - */ - core.String kind; - /** Landing page collection */ - core.List<LandingPage> landingPages; - - LandingPagesListResponse(); - - LandingPagesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("landingPages")) { - landingPages = _json["landingPages"].map((value) => new LandingPage.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (landingPages != null) { - _json["landingPages"] = landingPages.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Contains information about a language that can be targeted by ads. */ -class Language { - /** - * Language ID of this language. This is the ID used for targeting and - * generating reports. - */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#language". - */ - core.String kind; - /** - * Format of language code is an ISO 639 two-letter language code optionally - * followed by an underscore followed by an ISO 3166 code. Examples are "en" - * for English or "zh_CN" for Simplified Chinese. - */ - core.String languageCode; - /** Name of this language. */ - core.String name; - - Language(); - - Language.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("languageCode")) { - languageCode = _json["languageCode"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (languageCode != null) { - _json["languageCode"] = languageCode; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Language Targeting. */ -class LanguageTargeting { - /** - * Languages that this ad targets. For each language only languageId is - * required. The other fields are populated automatically when the ad is - * inserted or updated. - */ - core.List<Language> languages; - - LanguageTargeting(); - - LanguageTargeting.fromJson(core.Map _json) { - if (_json.containsKey("languages")) { - languages = _json["languages"].map((value) => new Language.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (languages != null) { - _json["languages"] = languages.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Language List Response */ -class LanguagesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#languagesListResponse". - */ - core.String kind; - /** Language collection. */ - core.List<Language> languages; - - LanguagesListResponse(); - - LanguagesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("languages")) { - languages = _json["languages"].map((value) => new Language.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (languages != null) { - _json["languages"] = languages.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Modification timestamp. */ -class LastModifiedInfo { - /** Timestamp of the last change in milliseconds since epoch. */ - core.String time; - - LastModifiedInfo(); - - LastModifiedInfo.fromJson(core.Map _json) { - if (_json.containsKey("time")) { - time = _json["time"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (time != null) { - _json["time"] = time; - } - return _json; - } -} - -/** - * A group clause made up of list population terms representing constraints - * joined by ORs. - */ -class ListPopulationClause { - /** - * Terms of this list population clause. Each clause is made up of list - * population terms representing constraints and are joined by ORs. - */ - core.List<ListPopulationTerm> terms; - - ListPopulationClause(); - - ListPopulationClause.fromJson(core.Map _json) { - if (_json.containsKey("terms")) { - terms = _json["terms"].map((value) => new ListPopulationTerm.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (terms != null) { - _json["terms"] = terms.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Remarketing List Population Rule. */ -class ListPopulationRule { - /** - * Floodlight activity ID associated with this rule. This field can be left - * blank. - */ - core.String floodlightActivityId; - /** - * Name of floodlight activity associated with this rule. This is a read-only, - * auto-generated field. - */ - core.String floodlightActivityName; - /** - * Clauses that make up this list population rule. Clauses are joined by ANDs, - * and the clauses themselves are made up of list population terms which are - * joined by ORs. - */ - core.List<ListPopulationClause> listPopulationClauses; - - ListPopulationRule(); - - ListPopulationRule.fromJson(core.Map _json) { - if (_json.containsKey("floodlightActivityId")) { - floodlightActivityId = _json["floodlightActivityId"]; - } - if (_json.containsKey("floodlightActivityName")) { - floodlightActivityName = _json["floodlightActivityName"]; - } - if (_json.containsKey("listPopulationClauses")) { - listPopulationClauses = _json["listPopulationClauses"].map((value) => new ListPopulationClause.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (floodlightActivityId != null) { - _json["floodlightActivityId"] = floodlightActivityId; - } - if (floodlightActivityName != null) { - _json["floodlightActivityName"] = floodlightActivityName; - } - if (listPopulationClauses != null) { - _json["listPopulationClauses"] = listPopulationClauses.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Remarketing List Population Rule Term. */ -class ListPopulationTerm { - /** - * Will be true if the term should check if the user is in the list and false - * if the term should check if the user is not in the list. This field is only - * relevant when type is set to LIST_MEMBERSHIP_TERM. False by default. - */ - core.bool contains; - /** - * Whether to negate the comparison result of this term during rule - * evaluation. This field is only relevant when type is left unset or set to - * CUSTOM_VARIABLE_TERM or REFERRER_TERM. - */ - core.bool negation; - /** - * Comparison operator of this term. This field is only relevant when type is - * left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. - * Possible string values are: - * - "NUM_EQUALS" - * - "NUM_GREATER_THAN" - * - "NUM_GREATER_THAN_EQUAL" - * - "NUM_LESS_THAN" - * - "NUM_LESS_THAN_EQUAL" - * - "STRING_CONTAINS" - * - "STRING_EQUALS" - */ - core.String operator; - /** - * ID of the list in question. This field is only relevant when type is set to - * LIST_MEMBERSHIP_TERM. - */ - core.String remarketingListId; - /** - * List population term type determines the applicable fields in this object. - * If left unset or set to CUSTOM_VARIABLE_TERM, then variableName, - * variableFriendlyName, operator, value, and negation are applicable. If set - * to LIST_MEMBERSHIP_TERM then remarketingListId and contains are applicable. - * If set to REFERRER_TERM then operator, value, and negation are applicable. - * Possible string values are: - * - "CUSTOM_VARIABLE_TERM" - * - "LIST_MEMBERSHIP_TERM" - * - "REFERRER_TERM" - */ - core.String type; - /** - * Literal to compare the variable to. This field is only relevant when type - * is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. - */ - core.String value; - /** - * Friendly name of this term's variable. This is a read-only, auto-generated - * field. This field is only relevant when type is left unset or set to - * CUSTOM_VARIABLE_TERM. - */ - core.String variableFriendlyName; - /** - * Name of the variable (U1, U2, etc.) being compared in this term. This field - * is only relevant when type is set to null, CUSTOM_VARIABLE_TERM or - * REFERRER_TERM. - */ - core.String variableName; - - ListPopulationTerm(); - - ListPopulationTerm.fromJson(core.Map _json) { - if (_json.containsKey("contains")) { - contains = _json["contains"]; - } - if (_json.containsKey("negation")) { - negation = _json["negation"]; - } - if (_json.containsKey("operator")) { - operator = _json["operator"]; - } - if (_json.containsKey("remarketingListId")) { - remarketingListId = _json["remarketingListId"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - if (_json.containsKey("variableFriendlyName")) { - variableFriendlyName = _json["variableFriendlyName"]; - } - if (_json.containsKey("variableName")) { - variableName = _json["variableName"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (contains != null) { - _json["contains"] = contains; - } - if (negation != null) { - _json["negation"] = negation; - } - if (operator != null) { - _json["operator"] = operator; - } - if (remarketingListId != null) { - _json["remarketingListId"] = remarketingListId; - } - if (type != null) { - _json["type"] = type; - } - if (value != null) { - _json["value"] = value; - } - if (variableFriendlyName != null) { - _json["variableFriendlyName"] = variableFriendlyName; - } - if (variableName != null) { - _json["variableName"] = variableName; - } - return _json; - } -} - -/** Remarketing List Targeting Expression. */ -class ListTargetingExpression { - /** Expression describing which lists are being targeted by the ad. */ - core.String expression; - - ListTargetingExpression(); - - ListTargetingExpression.fromJson(core.Map _json) { - if (_json.containsKey("expression")) { - expression = _json["expression"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (expression != null) { - _json["expression"] = expression; - } - return _json; - } -} - -/** Lookback configuration settings. */ -class LookbackConfiguration { - /** - * Lookback window, in days, from the last time a given user clicked on one of - * your ads. If you enter 0, clicks will not be considered as triggering - * events for floodlight tracking. If you leave this field blank, the default - * value for your account will be used. Acceptable values are 0 to 90, - * inclusive. - */ - core.int clickDuration; - /** - * Lookback window, in days, from the last time a given user viewed one of - * your ads. If you enter 0, impressions will not be considered as triggering - * events for floodlight tracking. If you leave this field blank, the default - * value for your account will be used. Acceptable values are 0 to 90, - * inclusive. - */ - core.int postImpressionActivitiesDuration; - - LookbackConfiguration(); - - LookbackConfiguration.fromJson(core.Map _json) { - if (_json.containsKey("clickDuration")) { - clickDuration = _json["clickDuration"]; - } - if (_json.containsKey("postImpressionActivitiesDuration")) { - postImpressionActivitiesDuration = _json["postImpressionActivitiesDuration"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (clickDuration != null) { - _json["clickDuration"] = clickDuration; - } - if (postImpressionActivitiesDuration != null) { - _json["postImpressionActivitiesDuration"] = postImpressionActivitiesDuration; - } - return _json; - } -} - -/** Represents a metric. */ -class Metric { - /** The kind of resource this is, in this case dfareporting#metric. */ - core.String kind; - /** The metric name, e.g. dfa:impressions */ - core.String name; - - Metric(); - - Metric.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Contains information about a metro region that can be targeted by ads. */ -class Metro { - /** Country code of the country to which this metro region belongs. */ - core.String countryCode; - /** DART ID of the country to which this metro region belongs. */ - core.String countryDartId; - /** DART ID of this metro region. */ - core.String dartId; - /** - * DMA ID of this metro region. This is the ID used for targeting and - * generating reports, and is equivalent to metro_code. - */ - core.String dmaId; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#metro". - */ - core.String kind; - /** Metro code of this metro region. This is equivalent to dma_id. */ - core.String metroCode; - /** Name of this metro region. */ - core.String name; - - Metro(); - - Metro.fromJson(core.Map _json) { - if (_json.containsKey("countryCode")) { - countryCode = _json["countryCode"]; - } - if (_json.containsKey("countryDartId")) { - countryDartId = _json["countryDartId"]; - } - if (_json.containsKey("dartId")) { - dartId = _json["dartId"]; - } - if (_json.containsKey("dmaId")) { - dmaId = _json["dmaId"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metroCode")) { - metroCode = _json["metroCode"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (countryCode != null) { - _json["countryCode"] = countryCode; - } - if (countryDartId != null) { - _json["countryDartId"] = countryDartId; - } - if (dartId != null) { - _json["dartId"] = dartId; - } - if (dmaId != null) { - _json["dmaId"] = dmaId; - } - if (kind != null) { - _json["kind"] = kind; - } - if (metroCode != null) { - _json["metroCode"] = metroCode; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Metro List Response */ -class MetrosListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#metrosListResponse". - */ - core.String kind; - /** Metro collection. */ - core.List<Metro> metros; - - MetrosListResponse(); - - MetrosListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metros")) { - metros = _json["metros"].map((value) => new Metro.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (metros != null) { - _json["metros"] = metros.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Contains information about a mobile carrier that can be targeted by ads. */ -class MobileCarrier { - /** Country code of the country to which this mobile carrier belongs. */ - core.String countryCode; - /** DART ID of the country to which this mobile carrier belongs. */ - core.String countryDartId; - /** ID of this mobile carrier. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#mobileCarrier". - */ - core.String kind; - /** Name of this mobile carrier. */ - core.String name; - - MobileCarrier(); - - MobileCarrier.fromJson(core.Map _json) { - if (_json.containsKey("countryCode")) { - countryCode = _json["countryCode"]; - } - if (_json.containsKey("countryDartId")) { - countryDartId = _json["countryDartId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (countryCode != null) { - _json["countryCode"] = countryCode; - } - if (countryDartId != null) { - _json["countryDartId"] = countryDartId; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Mobile Carrier List Response */ -class MobileCarriersListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#mobileCarriersListResponse". - */ - core.String kind; - /** Mobile carrier collection. */ - core.List<MobileCarrier> mobileCarriers; - - MobileCarriersListResponse(); - - MobileCarriersListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("mobileCarriers")) { - mobileCarriers = _json["mobileCarriers"].map((value) => new MobileCarrier.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (mobileCarriers != null) { - _json["mobileCarriers"] = mobileCarriers.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Object Filter. */ -class ObjectFilter { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#objectFilter". - */ - core.String kind; - /** - * Applicable when status is ASSIGNED. The user has access to objects with - * these object IDs. - */ - core.List<core.String> objectIds; - /** - * Status of the filter. NONE means the user has access to none of the - * objects. ALL means the user has access to all objects. ASSIGNED means the - * user has access to the objects with IDs in the objectIds list. - * Possible string values are: - * - "ALL" - * - "ASSIGNED" - * - "NONE" - */ - core.String status; - - ObjectFilter(); - - ObjectFilter.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("objectIds")) { - objectIds = _json["objectIds"]; - } - if (_json.containsKey("status")) { - status = _json["status"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (objectIds != null) { - _json["objectIds"] = objectIds; - } - if (status != null) { - _json["status"] = status; - } - return _json; - } -} - -/** Offset Position. */ -class OffsetPosition { - /** Offset distance from left side of an asset or a window. */ - core.int left; - /** Offset distance from top side of an asset or a window. */ - core.int top; - - OffsetPosition(); - - OffsetPosition.fromJson(core.Map _json) { - if (_json.containsKey("left")) { - left = _json["left"]; - } - if (_json.containsKey("top")) { - top = _json["top"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (left != null) { - _json["left"] = left; - } - if (top != null) { - _json["top"] = top; - } - return _json; - } -} - -/** Omniture Integration Settings. */ -class OmnitureSettings { - /** - * Whether placement cost data will be sent to Omniture. This property can be - * enabled only if omnitureIntegrationEnabled is true. - */ - core.bool omnitureCostDataEnabled; - /** - * Whether Omniture integration is enabled. This property can be enabled only - * when the "Advanced Ad Serving" account setting is enabled. - */ - core.bool omnitureIntegrationEnabled; - - OmnitureSettings(); - - OmnitureSettings.fromJson(core.Map _json) { - if (_json.containsKey("omnitureCostDataEnabled")) { - omnitureCostDataEnabled = _json["omnitureCostDataEnabled"]; - } - if (_json.containsKey("omnitureIntegrationEnabled")) { - omnitureIntegrationEnabled = _json["omnitureIntegrationEnabled"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (omnitureCostDataEnabled != null) { - _json["omnitureCostDataEnabled"] = omnitureCostDataEnabled; - } - if (omnitureIntegrationEnabled != null) { - _json["omnitureIntegrationEnabled"] = omnitureIntegrationEnabled; - } - return _json; - } -} - -/** - * Contains information about an operating system that can be targeted by ads. - */ -class OperatingSystem { - /** DART ID of this operating system. This is the ID used for targeting. */ - core.String dartId; - /** Whether this operating system is for desktop. */ - core.bool desktop; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#operatingSystem". - */ - core.String kind; - /** Whether this operating system is for mobile. */ - core.bool mobile; - /** Name of this operating system. */ - core.String name; - - OperatingSystem(); - - OperatingSystem.fromJson(core.Map _json) { - if (_json.containsKey("dartId")) { - dartId = _json["dartId"]; - } - if (_json.containsKey("desktop")) { - desktop = _json["desktop"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("mobile")) { - mobile = _json["mobile"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dartId != null) { - _json["dartId"] = dartId; - } - if (desktop != null) { - _json["desktop"] = desktop; - } - if (kind != null) { - _json["kind"] = kind; - } - if (mobile != null) { - _json["mobile"] = mobile; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** - * Contains information about a particular version of an operating system that - * can be targeted by ads. - */ -class OperatingSystemVersion { - /** ID of this operating system version. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#operatingSystemVersion". - */ - core.String kind; - /** Major version (leftmost number) of this operating system version. */ - core.String majorVersion; - /** - * Minor version (number after the first dot) of this operating system - * version. - */ - core.String minorVersion; - /** Name of this operating system version. */ - core.String name; - /** Operating system of this operating system version. */ - OperatingSystem operatingSystem; - - OperatingSystemVersion(); - - OperatingSystemVersion.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("majorVersion")) { - majorVersion = _json["majorVersion"]; - } - if (_json.containsKey("minorVersion")) { - minorVersion = _json["minorVersion"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("operatingSystem")) { - operatingSystem = new OperatingSystem.fromJson(_json["operatingSystem"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (majorVersion != null) { - _json["majorVersion"] = majorVersion; - } - if (minorVersion != null) { - _json["minorVersion"] = minorVersion; - } - if (name != null) { - _json["name"] = name; - } - if (operatingSystem != null) { - _json["operatingSystem"] = (operatingSystem).toJson(); - } - return _json; - } -} - -/** Operating System Version List Response */ -class OperatingSystemVersionsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#operatingSystemVersionsListResponse". - */ - core.String kind; - /** Operating system version collection. */ - core.List<OperatingSystemVersion> operatingSystemVersions; - - OperatingSystemVersionsListResponse(); - - OperatingSystemVersionsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("operatingSystemVersions")) { - operatingSystemVersions = _json["operatingSystemVersions"].map((value) => new OperatingSystemVersion.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (operatingSystemVersions != null) { - _json["operatingSystemVersions"] = operatingSystemVersions.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Operating System List Response */ -class OperatingSystemsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#operatingSystemsListResponse". - */ - core.String kind; - /** Operating system collection. */ - core.List<OperatingSystem> operatingSystems; - - OperatingSystemsListResponse(); - - OperatingSystemsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("operatingSystems")) { - operatingSystems = _json["operatingSystems"].map((value) => new OperatingSystem.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (operatingSystems != null) { - _json["operatingSystems"] = operatingSystems.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Creative optimization activity. */ -class OptimizationActivity { - /** - * Floodlight activity ID of this optimization activity. This is a required - * field. - */ - core.String floodlightActivityId; - /** - * Dimension value for the ID of the floodlight activity. This is a read-only, - * auto-generated field. - */ - DimensionValue floodlightActivityIdDimensionValue; - /** - * Weight associated with this optimization. The weight assigned will be - * understood in proportion to the weights assigned to the other optimization - * activities. Value must be greater than or equal to 1. - */ - core.int weight; - - OptimizationActivity(); - - OptimizationActivity.fromJson(core.Map _json) { - if (_json.containsKey("floodlightActivityId")) { - floodlightActivityId = _json["floodlightActivityId"]; - } - if (_json.containsKey("floodlightActivityIdDimensionValue")) { - floodlightActivityIdDimensionValue = new DimensionValue.fromJson(_json["floodlightActivityIdDimensionValue"]); - } - if (_json.containsKey("weight")) { - weight = _json["weight"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (floodlightActivityId != null) { - _json["floodlightActivityId"] = floodlightActivityId; - } - if (floodlightActivityIdDimensionValue != null) { - _json["floodlightActivityIdDimensionValue"] = (floodlightActivityIdDimensionValue).toJson(); - } - if (weight != null) { - _json["weight"] = weight; - } - return _json; - } -} - -/** Describes properties of a DoubleClick Planning order. */ -class Order { - /** Account ID of this order. */ - core.String accountId; - /** Advertiser ID of this order. */ - core.String advertiserId; - /** IDs for users that have to approve documents created for this order. */ - core.List<core.String> approverUserProfileIds; - /** Buyer invoice ID associated with this order. */ - core.String buyerInvoiceId; - /** Name of the buyer organization. */ - core.String buyerOrganizationName; - /** Comments in this order. */ - core.String comments; - /** Contacts for this order. */ - core.List<OrderContact> contacts; - /** ID of this order. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#order". - */ - core.String kind; - /** Information about the most recent modification of this order. */ - LastModifiedInfo lastModifiedInfo; - /** Name of this order. */ - core.String name; - /** Notes of this order. */ - core.String notes; - /** ID of the terms and conditions template used in this order. */ - core.String planningTermId; - /** Project ID of this order. */ - core.String projectId; - /** Seller order ID associated with this order. */ - core.String sellerOrderId; - /** Name of the seller organization. */ - core.String sellerOrganizationName; - /** Site IDs this order is associated with. */ - core.List<core.String> siteId; - /** Free-form site names this order is associated with. */ - core.List<core.String> siteNames; - /** Subaccount ID of this order. */ - core.String subaccountId; - /** Terms and conditions of this order. */ - core.String termsAndConditions; - - Order(); - - Order.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("approverUserProfileIds")) { - approverUserProfileIds = _json["approverUserProfileIds"]; - } - if (_json.containsKey("buyerInvoiceId")) { - buyerInvoiceId = _json["buyerInvoiceId"]; - } - if (_json.containsKey("buyerOrganizationName")) { - buyerOrganizationName = _json["buyerOrganizationName"]; - } - if (_json.containsKey("comments")) { - comments = _json["comments"]; - } - if (_json.containsKey("contacts")) { - contacts = _json["contacts"].map((value) => new OrderContact.fromJson(value)).toList(); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("notes")) { - notes = _json["notes"]; - } - if (_json.containsKey("planningTermId")) { - planningTermId = _json["planningTermId"]; - } - if (_json.containsKey("projectId")) { - projectId = _json["projectId"]; - } - if (_json.containsKey("sellerOrderId")) { - sellerOrderId = _json["sellerOrderId"]; - } - if (_json.containsKey("sellerOrganizationName")) { - sellerOrganizationName = _json["sellerOrganizationName"]; - } - if (_json.containsKey("siteId")) { - siteId = _json["siteId"]; - } - if (_json.containsKey("siteNames")) { - siteNames = _json["siteNames"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("termsAndConditions")) { - termsAndConditions = _json["termsAndConditions"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (approverUserProfileIds != null) { - _json["approverUserProfileIds"] = approverUserProfileIds; - } - if (buyerInvoiceId != null) { - _json["buyerInvoiceId"] = buyerInvoiceId; - } - if (buyerOrganizationName != null) { - _json["buyerOrganizationName"] = buyerOrganizationName; - } - if (comments != null) { - _json["comments"] = comments; - } - if (contacts != null) { - _json["contacts"] = contacts.map((value) => (value).toJson()).toList(); - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (notes != null) { - _json["notes"] = notes; - } - if (planningTermId != null) { - _json["planningTermId"] = planningTermId; - } - if (projectId != null) { - _json["projectId"] = projectId; - } - if (sellerOrderId != null) { - _json["sellerOrderId"] = sellerOrderId; - } - if (sellerOrganizationName != null) { - _json["sellerOrganizationName"] = sellerOrganizationName; - } - if (siteId != null) { - _json["siteId"] = siteId; - } - if (siteNames != null) { - _json["siteNames"] = siteNames; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (termsAndConditions != null) { - _json["termsAndConditions"] = termsAndConditions; - } - return _json; - } -} - -/** Contact of an order. */ -class OrderContact { - /** - * Free-form information about this contact. It could be any information - * related to this contact in addition to type, title, name, and signature - * user profile ID. - */ - core.String contactInfo; - /** Name of this contact. */ - core.String contactName; - /** Title of this contact. */ - core.String contactTitle; - /** - * Type of this contact. - * Possible string values are: - * - "PLANNING_ORDER_CONTACT_BUYER_BILLING_CONTACT" - * - "PLANNING_ORDER_CONTACT_BUYER_CONTACT" - * - "PLANNING_ORDER_CONTACT_SELLER_CONTACT" - */ - core.String contactType; - /** - * ID of the user profile containing the signature that will be embedded into - * order documents. - */ - core.String signatureUserProfileId; - - OrderContact(); - - OrderContact.fromJson(core.Map _json) { - if (_json.containsKey("contactInfo")) { - contactInfo = _json["contactInfo"]; - } - if (_json.containsKey("contactName")) { - contactName = _json["contactName"]; - } - if (_json.containsKey("contactTitle")) { - contactTitle = _json["contactTitle"]; - } - if (_json.containsKey("contactType")) { - contactType = _json["contactType"]; - } - if (_json.containsKey("signatureUserProfileId")) { - signatureUserProfileId = _json["signatureUserProfileId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (contactInfo != null) { - _json["contactInfo"] = contactInfo; - } - if (contactName != null) { - _json["contactName"] = contactName; - } - if (contactTitle != null) { - _json["contactTitle"] = contactTitle; - } - if (contactType != null) { - _json["contactType"] = contactType; - } - if (signatureUserProfileId != null) { - _json["signatureUserProfileId"] = signatureUserProfileId; - } - return _json; - } -} - -/** Contains properties of a DoubleClick Planning order document. */ -class OrderDocument { - /** Account ID of this order document. */ - core.String accountId; - /** Advertiser ID of this order document. */ - core.String advertiserId; - /** - * The amended order document ID of this order document. An order document can - * be created by optionally amending another order document so that the change - * history can be preserved. - */ - core.String amendedOrderDocumentId; - /** IDs of users who have approved this order document. */ - core.List<core.String> approvedByUserProfileIds; - /** Whether this order document is cancelled. */ - core.bool cancelled; - /** Information about the creation of this order document. */ - LastModifiedInfo createdInfo; - /** Effective date of this order document. */ - core.DateTime effectiveDate; - /** ID of this order document. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#orderDocument". - */ - core.String kind; - /** List of email addresses that received the last sent document. */ - core.List<core.String> lastSentRecipients; - /** Timestamp of the last email sent with this order document. */ - core.DateTime lastSentTime; - /** ID of the order from which this order document is created. */ - core.String orderId; - /** Project ID of this order document. */ - core.String projectId; - /** Whether this order document has been signed. */ - core.bool signed; - /** Subaccount ID of this order document. */ - core.String subaccountId; - /** Title of this order document. */ - core.String title; - /** - * Type of this order document - * Possible string values are: - * - "PLANNING_ORDER_TYPE_CHANGE_ORDER" - * - "PLANNING_ORDER_TYPE_INSERTION_ORDER" - */ - core.String type; - - OrderDocument(); - - OrderDocument.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("amendedOrderDocumentId")) { - amendedOrderDocumentId = _json["amendedOrderDocumentId"]; - } - if (_json.containsKey("approvedByUserProfileIds")) { - approvedByUserProfileIds = _json["approvedByUserProfileIds"]; - } - if (_json.containsKey("cancelled")) { - cancelled = _json["cancelled"]; - } - if (_json.containsKey("createdInfo")) { - createdInfo = new LastModifiedInfo.fromJson(_json["createdInfo"]); - } - if (_json.containsKey("effectiveDate")) { - effectiveDate = core.DateTime.parse(_json["effectiveDate"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastSentRecipients")) { - lastSentRecipients = _json["lastSentRecipients"]; - } - if (_json.containsKey("lastSentTime")) { - lastSentTime = core.DateTime.parse(_json["lastSentTime"]); - } - if (_json.containsKey("orderId")) { - orderId = _json["orderId"]; - } - if (_json.containsKey("projectId")) { - projectId = _json["projectId"]; - } - if (_json.containsKey("signed")) { - signed = _json["signed"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("title")) { - title = _json["title"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (amendedOrderDocumentId != null) { - _json["amendedOrderDocumentId"] = amendedOrderDocumentId; - } - if (approvedByUserProfileIds != null) { - _json["approvedByUserProfileIds"] = approvedByUserProfileIds; - } - if (cancelled != null) { - _json["cancelled"] = cancelled; - } - if (createdInfo != null) { - _json["createdInfo"] = (createdInfo).toJson(); - } - if (effectiveDate != null) { - _json["effectiveDate"] = "${(effectiveDate).year.toString().padLeft(4, '0')}-${(effectiveDate).month.toString().padLeft(2, '0')}-${(effectiveDate).day.toString().padLeft(2, '0')}"; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastSentRecipients != null) { - _json["lastSentRecipients"] = lastSentRecipients; - } - if (lastSentTime != null) { - _json["lastSentTime"] = (lastSentTime).toIso8601String(); - } - if (orderId != null) { - _json["orderId"] = orderId; - } - if (projectId != null) { - _json["projectId"] = projectId; - } - if (signed != null) { - _json["signed"] = signed; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (title != null) { - _json["title"] = title; - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** Order document List Response */ -class OrderDocumentsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#orderDocumentsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Order document collection */ - core.List<OrderDocument> orderDocuments; - - OrderDocumentsListResponse(); - - OrderDocumentsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("orderDocuments")) { - orderDocuments = _json["orderDocuments"].map((value) => new OrderDocument.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (orderDocuments != null) { - _json["orderDocuments"] = orderDocuments.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Order List Response */ -class OrdersListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#ordersListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Order collection. */ - core.List<Order> orders; - - OrdersListResponse(); - - OrdersListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("orders")) { - orders = _json["orders"].map((value) => new Order.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (orders != null) { - _json["orders"] = orders.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** - * Represents fields that are compatible to be selected for a report of type - * "PATH_TO_CONVERSION". - */ -class PathToConversionReportCompatibleFields { - /** - * Conversion dimensions which are compatible to be selected in the - * "conversionDimensions" section of the report. - */ - core.List<Dimension> conversionDimensions; - /** - * Custom floodlight variables which are compatible to be selected in the - * "customFloodlightVariables" section of the report. - */ - core.List<Dimension> customFloodlightVariables; - /** - * The kind of resource this is, in this case - * dfareporting#pathToConversionReportCompatibleFields. - */ - core.String kind; - /** - * Metrics which are compatible to be selected in the "metricNames" section of - * the report. - */ - core.List<Metric> metrics; - /** - * Per-interaction dimensions which are compatible to be selected in the - * "perInteractionDimensions" section of the report. - */ - core.List<Dimension> perInteractionDimensions; - - PathToConversionReportCompatibleFields(); - - PathToConversionReportCompatibleFields.fromJson(core.Map _json) { - if (_json.containsKey("conversionDimensions")) { - conversionDimensions = _json["conversionDimensions"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("customFloodlightVariables")) { - customFloodlightVariables = _json["customFloodlightVariables"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metrics")) { - metrics = _json["metrics"].map((value) => new Metric.fromJson(value)).toList(); - } - if (_json.containsKey("perInteractionDimensions")) { - perInteractionDimensions = _json["perInteractionDimensions"].map((value) => new Dimension.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (conversionDimensions != null) { - _json["conversionDimensions"] = conversionDimensions.map((value) => (value).toJson()).toList(); - } - if (customFloodlightVariables != null) { - _json["customFloodlightVariables"] = customFloodlightVariables.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (metrics != null) { - _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); - } - if (perInteractionDimensions != null) { - _json["perInteractionDimensions"] = perInteractionDimensions.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Contains properties of a placement. */ -class Placement { - /** Account ID of this placement. This field can be left blank. */ - core.String accountId; - /** Advertiser ID of this placement. This field can be left blank. */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** Whether this placement is archived. */ - core.bool archived; - /** - * Campaign ID of this placement. This field is a required field on insertion. - */ - core.String campaignId; - /** - * Dimension value for the ID of the campaign. This is a read-only, - * auto-generated field. - */ - DimensionValue campaignIdDimensionValue; - /** Comments for this placement. */ - core.String comment; - /** - * Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to - * rendering on desktop, on mobile devices or in mobile apps for regular or - * interstitial ads respectively. APP and APP_INTERSTITIAL are no longer - * allowed for new placement insertions. Instead, use DISPLAY or - * DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream - * video ads developed with the VAST standard. This field is required on - * insertion. - * Possible string values are: - * - "APP" - * - "APP_INTERSTITIAL" - * - "DISPLAY" - * - "DISPLAY_INTERSTITIAL" - * - "IN_STREAM_VIDEO" - */ - core.String compatibility; - /** ID of the content category assigned to this placement. */ - core.String contentCategoryId; - /** - * Information about the creation of this placement. This is a read-only - * field. - */ - LastModifiedInfo createInfo; - /** - * Directory site ID of this placement. On insert, you must set either this - * field or the siteId field to specify the site associated with this - * placement. This is a required field that is read-only after insertion. - */ - core.String directorySiteId; - /** - * Dimension value for the ID of the directory site. This is a read-only, - * auto-generated field. - */ - DimensionValue directorySiteIdDimensionValue; - /** External ID for this placement. */ - core.String externalId; - /** ID of this placement. This is a read-only, auto-generated field. */ - core.String id; - /** - * Dimension value for the ID of this placement. This is a read-only, - * auto-generated field. - */ - DimensionValue idDimensionValue; - /** Key name of this placement. This is a read-only, auto-generated field. */ - core.String keyName; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#placement". - */ - core.String kind; - /** - * Information about the most recent modification of this placement. This is a - * read-only field. - */ - LastModifiedInfo lastModifiedInfo; - /** Lookback window settings for this placement. */ - LookbackConfiguration lookbackConfiguration; - /** - * Name of this placement.This is a required field and must be less than 256 - * characters long. - */ - core.String name; - /** - * Whether payment was approved for this placement. This is a read-only field - * relevant only to publisher-paid placements. - */ - core.bool paymentApproved; - /** - * Payment source for this placement. This is a required field that is - * read-only after insertion. - * Possible string values are: - * - "PLACEMENT_AGENCY_PAID" - * - "PLACEMENT_PUBLISHER_PAID" - */ - core.String paymentSource; - /** ID of this placement's group, if applicable. */ - core.String placementGroupId; - /** - * Dimension value for the ID of the placement group. This is a read-only, - * auto-generated field. - */ - DimensionValue placementGroupIdDimensionValue; - /** ID of the placement strategy assigned to this placement. */ - core.String placementStrategyId; - /** - * Pricing schedule of this placement. This field is required on insertion, - * specifically subfields startDate, endDate and pricingType. - */ - PricingSchedule pricingSchedule; - /** - * Whether this placement is the primary placement of a roadblock (placement - * group). You cannot change this field from true to false. Setting this field - * to true will automatically set the primary field on the original primary - * placement of the roadblock to false, and it will automatically set the - * roadblock's primaryPlacementId field to the ID of this placement. - */ - core.bool primary; - /** - * Information about the last publisher update. This is a read-only field. - */ - LastModifiedInfo publisherUpdateInfo; - /** - * Site ID associated with this placement. On insert, you must set either this - * field or the directorySiteId field to specify the site associated with this - * placement. This is a required field that is read-only after insertion. - */ - core.String siteId; - /** - * Dimension value for the ID of the site. This is a read-only, auto-generated - * field. - */ - DimensionValue siteIdDimensionValue; - /** - * Size associated with this placement. When inserting or updating a - * placement, only the size ID field is used. This field is required on - * insertion. - */ - Size size; - /** Whether creatives assigned to this placement must be SSL-compliant. */ - core.bool sslRequired; - /** - * Third-party placement status. - * Possible string values are: - * - "ACKNOWLEDGE_ACCEPTANCE" - * - "ACKNOWLEDGE_REJECTION" - * - "DRAFT" - * - "PAYMENT_ACCEPTED" - * - "PAYMENT_REJECTED" - * - "PENDING_REVIEW" - */ - core.String status; - /** Subaccount ID of this placement. This field can be left blank. */ - core.String subaccountId; - /** - * Tag formats to generate for this placement. This field is required on - * insertion. - * Acceptable values are: - * - "PLACEMENT_TAG_STANDARD" - * - "PLACEMENT_TAG_IFRAME_JAVASCRIPT" - * - "PLACEMENT_TAG_IFRAME_ILAYER" - * - "PLACEMENT_TAG_INTERNAL_REDIRECT" - * - "PLACEMENT_TAG_JAVASCRIPT" - * - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT" - * - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT" - * - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT" - * - "PLACEMENT_TAG_CLICK_COMMANDS" - * - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH" - * - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3" - * - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4" - * - "PLACEMENT_TAG_TRACKING" - * - "PLACEMENT_TAG_TRACKING_IFRAME" - * - "PLACEMENT_TAG_TRACKING_JAVASCRIPT" - */ - core.List<core.String> tagFormats; - /** Tag settings for this placement. */ - TagSetting tagSetting; - /** - * Whether Verification and ActiveView are disabled for in-stream video - * creatives for this placement. The same setting videoActiveViewOptOut exists - * on the site level -- the opt out occurs if either of these settings are - * true. These settings are distinct from - * DirectorySites.settings.activeViewOptOut or - * Sites.siteSettings.activeViewOptOut which only apply to display ads. - * However, Accounts.activeViewOptOut opts out both video traffic, as well as - * display ads, from Verification and ActiveView. - */ - core.bool videoActiveViewOptOut; - /** - * A collection of settings which affect video creatives served through this - * placement. Applicable to placements with IN_STREAM_VIDEO compatibility. - */ - VideoSettings videoSettings; - /** - * VPAID adapter setting for this placement. Controls which VPAID format the - * measurement adapter will use for in-stream video creatives assigned to this - * placement. - * Possible string values are: - * - "BOTH" - * - "DEFAULT" - * - "FLASH" - * - "HTML5" - */ - core.String vpaidAdapterChoice; - - Placement(); - - Placement.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("archived")) { - archived = _json["archived"]; - } - if (_json.containsKey("campaignId")) { - campaignId = _json["campaignId"]; - } - if (_json.containsKey("campaignIdDimensionValue")) { - campaignIdDimensionValue = new DimensionValue.fromJson(_json["campaignIdDimensionValue"]); - } - if (_json.containsKey("comment")) { - comment = _json["comment"]; - } - if (_json.containsKey("compatibility")) { - compatibility = _json["compatibility"]; - } - if (_json.containsKey("contentCategoryId")) { - contentCategoryId = _json["contentCategoryId"]; - } - if (_json.containsKey("createInfo")) { - createInfo = new LastModifiedInfo.fromJson(_json["createInfo"]); - } - if (_json.containsKey("directorySiteId")) { - directorySiteId = _json["directorySiteId"]; - } - if (_json.containsKey("directorySiteIdDimensionValue")) { - directorySiteIdDimensionValue = new DimensionValue.fromJson(_json["directorySiteIdDimensionValue"]); - } - if (_json.containsKey("externalId")) { - externalId = _json["externalId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("keyName")) { - keyName = _json["keyName"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("lookbackConfiguration")) { - lookbackConfiguration = new LookbackConfiguration.fromJson(_json["lookbackConfiguration"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("paymentApproved")) { - paymentApproved = _json["paymentApproved"]; - } - if (_json.containsKey("paymentSource")) { - paymentSource = _json["paymentSource"]; - } - if (_json.containsKey("placementGroupId")) { - placementGroupId = _json["placementGroupId"]; - } - if (_json.containsKey("placementGroupIdDimensionValue")) { - placementGroupIdDimensionValue = new DimensionValue.fromJson(_json["placementGroupIdDimensionValue"]); - } - if (_json.containsKey("placementStrategyId")) { - placementStrategyId = _json["placementStrategyId"]; - } - if (_json.containsKey("pricingSchedule")) { - pricingSchedule = new PricingSchedule.fromJson(_json["pricingSchedule"]); - } - if (_json.containsKey("primary")) { - primary = _json["primary"]; - } - if (_json.containsKey("publisherUpdateInfo")) { - publisherUpdateInfo = new LastModifiedInfo.fromJson(_json["publisherUpdateInfo"]); - } - if (_json.containsKey("siteId")) { - siteId = _json["siteId"]; - } - if (_json.containsKey("siteIdDimensionValue")) { - siteIdDimensionValue = new DimensionValue.fromJson(_json["siteIdDimensionValue"]); - } - if (_json.containsKey("size")) { - size = new Size.fromJson(_json["size"]); - } - if (_json.containsKey("sslRequired")) { - sslRequired = _json["sslRequired"]; - } - if (_json.containsKey("status")) { - status = _json["status"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("tagFormats")) { - tagFormats = _json["tagFormats"]; - } - if (_json.containsKey("tagSetting")) { - tagSetting = new TagSetting.fromJson(_json["tagSetting"]); - } - if (_json.containsKey("videoActiveViewOptOut")) { - videoActiveViewOptOut = _json["videoActiveViewOptOut"]; - } - if (_json.containsKey("videoSettings")) { - videoSettings = new VideoSettings.fromJson(_json["videoSettings"]); - } - if (_json.containsKey("vpaidAdapterChoice")) { - vpaidAdapterChoice = _json["vpaidAdapterChoice"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (archived != null) { - _json["archived"] = archived; - } - if (campaignId != null) { - _json["campaignId"] = campaignId; - } - if (campaignIdDimensionValue != null) { - _json["campaignIdDimensionValue"] = (campaignIdDimensionValue).toJson(); - } - if (comment != null) { - _json["comment"] = comment; - } - if (compatibility != null) { - _json["compatibility"] = compatibility; - } - if (contentCategoryId != null) { - _json["contentCategoryId"] = contentCategoryId; - } - if (createInfo != null) { - _json["createInfo"] = (createInfo).toJson(); - } - if (directorySiteId != null) { - _json["directorySiteId"] = directorySiteId; - } - if (directorySiteIdDimensionValue != null) { - _json["directorySiteIdDimensionValue"] = (directorySiteIdDimensionValue).toJson(); - } - if (externalId != null) { - _json["externalId"] = externalId; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (keyName != null) { - _json["keyName"] = keyName; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (lookbackConfiguration != null) { - _json["lookbackConfiguration"] = (lookbackConfiguration).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (paymentApproved != null) { - _json["paymentApproved"] = paymentApproved; - } - if (paymentSource != null) { - _json["paymentSource"] = paymentSource; - } - if (placementGroupId != null) { - _json["placementGroupId"] = placementGroupId; - } - if (placementGroupIdDimensionValue != null) { - _json["placementGroupIdDimensionValue"] = (placementGroupIdDimensionValue).toJson(); - } - if (placementStrategyId != null) { - _json["placementStrategyId"] = placementStrategyId; - } - if (pricingSchedule != null) { - _json["pricingSchedule"] = (pricingSchedule).toJson(); - } - if (primary != null) { - _json["primary"] = primary; - } - if (publisherUpdateInfo != null) { - _json["publisherUpdateInfo"] = (publisherUpdateInfo).toJson(); - } - if (siteId != null) { - _json["siteId"] = siteId; - } - if (siteIdDimensionValue != null) { - _json["siteIdDimensionValue"] = (siteIdDimensionValue).toJson(); - } - if (size != null) { - _json["size"] = (size).toJson(); - } - if (sslRequired != null) { - _json["sslRequired"] = sslRequired; - } - if (status != null) { - _json["status"] = status; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (tagFormats != null) { - _json["tagFormats"] = tagFormats; - } - if (tagSetting != null) { - _json["tagSetting"] = (tagSetting).toJson(); - } - if (videoActiveViewOptOut != null) { - _json["videoActiveViewOptOut"] = videoActiveViewOptOut; - } - if (videoSettings != null) { - _json["videoSettings"] = (videoSettings).toJson(); - } - if (vpaidAdapterChoice != null) { - _json["vpaidAdapterChoice"] = vpaidAdapterChoice; - } - return _json; - } -} - -/** Placement Assignment. */ -class PlacementAssignment { - /** - * Whether this placement assignment is active. When true, the placement will - * be included in the ad's rotation. - */ - core.bool active; - /** ID of the placement to be assigned. This is a required field. */ - core.String placementId; - /** - * Dimension value for the ID of the placement. This is a read-only, - * auto-generated field. - */ - DimensionValue placementIdDimensionValue; - /** - * Whether the placement to be assigned requires SSL. This is a read-only - * field that is auto-generated when the ad is inserted or updated. - */ - core.bool sslRequired; - - PlacementAssignment(); - - PlacementAssignment.fromJson(core.Map _json) { - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("placementId")) { - placementId = _json["placementId"]; - } - if (_json.containsKey("placementIdDimensionValue")) { - placementIdDimensionValue = new DimensionValue.fromJson(_json["placementIdDimensionValue"]); - } - if (_json.containsKey("sslRequired")) { - sslRequired = _json["sslRequired"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (active != null) { - _json["active"] = active; - } - if (placementId != null) { - _json["placementId"] = placementId; - } - if (placementIdDimensionValue != null) { - _json["placementIdDimensionValue"] = (placementIdDimensionValue).toJson(); - } - if (sslRequired != null) { - _json["sslRequired"] = sslRequired; - } - return _json; - } -} - -/** Contains properties of a package or roadblock. */ -class PlacementGroup { - /** - * Account ID of this placement group. This is a read-only field that can be - * left blank. - */ - core.String accountId; - /** - * Advertiser ID of this placement group. This is a required field on - * insertion. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** Whether this placement group is archived. */ - core.bool archived; - /** - * Campaign ID of this placement group. This field is required on insertion. - */ - core.String campaignId; - /** - * Dimension value for the ID of the campaign. This is a read-only, - * auto-generated field. - */ - DimensionValue campaignIdDimensionValue; - /** - * IDs of placements which are assigned to this placement group. This is a - * read-only, auto-generated field. - */ - core.List<core.String> childPlacementIds; - /** Comments for this placement group. */ - core.String comment; - /** ID of the content category assigned to this placement group. */ - core.String contentCategoryId; - /** - * Information about the creation of this placement group. This is a read-only - * field. - */ - LastModifiedInfo createInfo; - /** - * Directory site ID associated with this placement group. On insert, you must - * set either this field or the site_id field to specify the site associated - * with this placement group. This is a required field that is read-only after - * insertion. - */ - core.String directorySiteId; - /** - * Dimension value for the ID of the directory site. This is a read-only, - * auto-generated field. - */ - DimensionValue directorySiteIdDimensionValue; - /** External ID for this placement. */ - core.String externalId; - /** ID of this placement group. This is a read-only, auto-generated field. */ - core.String id; - /** - * Dimension value for the ID of this placement group. This is a read-only, - * auto-generated field. - */ - DimensionValue idDimensionValue; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#placementGroup". - */ - core.String kind; - /** - * Information about the most recent modification of this placement group. - * This is a read-only field. - */ - LastModifiedInfo lastModifiedInfo; - /** - * Name of this placement group. This is a required field and must be less - * than 256 characters long. - */ - core.String name; - /** - * Type of this placement group. A package is a simple group of placements - * that acts as a single pricing point for a group of tags. A roadblock is a - * group of placements that not only acts as a single pricing point, but also - * assumes that all the tags in it will be served at the same time. A - * roadblock requires one of its assigned placements to be marked as primary - * for reporting. This field is required on insertion. - * Possible string values are: - * - "PLACEMENT_PACKAGE" - * - "PLACEMENT_ROADBLOCK" - */ - core.String placementGroupType; - /** ID of the placement strategy assigned to this placement group. */ - core.String placementStrategyId; - /** - * Pricing schedule of this placement group. This field is required on - * insertion. - */ - PricingSchedule pricingSchedule; - /** - * ID of the primary placement, used to calculate the media cost of a - * roadblock (placement group). Modifying this field will automatically modify - * the primary field on all affected roadblock child placements. - */ - core.String primaryPlacementId; - /** - * Dimension value for the ID of the primary placement. This is a read-only, - * auto-generated field. - */ - DimensionValue primaryPlacementIdDimensionValue; - /** - * Site ID associated with this placement group. On insert, you must set - * either this field or the directorySiteId field to specify the site - * associated with this placement group. This is a required field that is - * read-only after insertion. - */ - core.String siteId; - /** - * Dimension value for the ID of the site. This is a read-only, auto-generated - * field. - */ - DimensionValue siteIdDimensionValue; - /** - * Subaccount ID of this placement group. This is a read-only field that can - * be left blank. - */ - core.String subaccountId; - - PlacementGroup(); - - PlacementGroup.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("archived")) { - archived = _json["archived"]; - } - if (_json.containsKey("campaignId")) { - campaignId = _json["campaignId"]; - } - if (_json.containsKey("campaignIdDimensionValue")) { - campaignIdDimensionValue = new DimensionValue.fromJson(_json["campaignIdDimensionValue"]); - } - if (_json.containsKey("childPlacementIds")) { - childPlacementIds = _json["childPlacementIds"]; - } - if (_json.containsKey("comment")) { - comment = _json["comment"]; - } - if (_json.containsKey("contentCategoryId")) { - contentCategoryId = _json["contentCategoryId"]; - } - if (_json.containsKey("createInfo")) { - createInfo = new LastModifiedInfo.fromJson(_json["createInfo"]); - } - if (_json.containsKey("directorySiteId")) { - directorySiteId = _json["directorySiteId"]; - } - if (_json.containsKey("directorySiteIdDimensionValue")) { - directorySiteIdDimensionValue = new DimensionValue.fromJson(_json["directorySiteIdDimensionValue"]); - } - if (_json.containsKey("externalId")) { - externalId = _json["externalId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("placementGroupType")) { - placementGroupType = _json["placementGroupType"]; - } - if (_json.containsKey("placementStrategyId")) { - placementStrategyId = _json["placementStrategyId"]; - } - if (_json.containsKey("pricingSchedule")) { - pricingSchedule = new PricingSchedule.fromJson(_json["pricingSchedule"]); - } - if (_json.containsKey("primaryPlacementId")) { - primaryPlacementId = _json["primaryPlacementId"]; - } - if (_json.containsKey("primaryPlacementIdDimensionValue")) { - primaryPlacementIdDimensionValue = new DimensionValue.fromJson(_json["primaryPlacementIdDimensionValue"]); - } - if (_json.containsKey("siteId")) { - siteId = _json["siteId"]; - } - if (_json.containsKey("siteIdDimensionValue")) { - siteIdDimensionValue = new DimensionValue.fromJson(_json["siteIdDimensionValue"]); - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (archived != null) { - _json["archived"] = archived; - } - if (campaignId != null) { - _json["campaignId"] = campaignId; - } - if (campaignIdDimensionValue != null) { - _json["campaignIdDimensionValue"] = (campaignIdDimensionValue).toJson(); - } - if (childPlacementIds != null) { - _json["childPlacementIds"] = childPlacementIds; - } - if (comment != null) { - _json["comment"] = comment; - } - if (contentCategoryId != null) { - _json["contentCategoryId"] = contentCategoryId; - } - if (createInfo != null) { - _json["createInfo"] = (createInfo).toJson(); - } - if (directorySiteId != null) { - _json["directorySiteId"] = directorySiteId; - } - if (directorySiteIdDimensionValue != null) { - _json["directorySiteIdDimensionValue"] = (directorySiteIdDimensionValue).toJson(); - } - if (externalId != null) { - _json["externalId"] = externalId; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (placementGroupType != null) { - _json["placementGroupType"] = placementGroupType; - } - if (placementStrategyId != null) { - _json["placementStrategyId"] = placementStrategyId; - } - if (pricingSchedule != null) { - _json["pricingSchedule"] = (pricingSchedule).toJson(); - } - if (primaryPlacementId != null) { - _json["primaryPlacementId"] = primaryPlacementId; - } - if (primaryPlacementIdDimensionValue != null) { - _json["primaryPlacementIdDimensionValue"] = (primaryPlacementIdDimensionValue).toJson(); - } - if (siteId != null) { - _json["siteId"] = siteId; - } - if (siteIdDimensionValue != null) { - _json["siteIdDimensionValue"] = (siteIdDimensionValue).toJson(); - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - return _json; - } -} - -/** Placement Group List Response */ -class PlacementGroupsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#placementGroupsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Placement group collection. */ - core.List<PlacementGroup> placementGroups; - - PlacementGroupsListResponse(); - - PlacementGroupsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("placementGroups")) { - placementGroups = _json["placementGroups"].map((value) => new PlacementGroup.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (placementGroups != null) { - _json["placementGroups"] = placementGroups.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Placement Strategy List Response */ -class PlacementStrategiesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#placementStrategiesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Placement strategy collection. */ - core.List<PlacementStrategy> placementStrategies; - - PlacementStrategiesListResponse(); - - PlacementStrategiesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("placementStrategies")) { - placementStrategies = _json["placementStrategies"].map((value) => new PlacementStrategy.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (placementStrategies != null) { - _json["placementStrategies"] = placementStrategies.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Contains properties of a placement strategy. */ -class PlacementStrategy { - /** - * Account ID of this placement strategy.This is a read-only field that can be - * left blank. - */ - core.String accountId; - /** - * ID of this placement strategy. This is a read-only, auto-generated field. - */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#placementStrategy". - */ - core.String kind; - /** - * Name of this placement strategy. This is a required field. It must be less - * than 256 characters long and unique among placement strategies of the same - * account. - */ - core.String name; - - PlacementStrategy(); - - PlacementStrategy.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Placement Tag */ -class PlacementTag { - /** Placement ID */ - core.String placementId; - /** Tags generated for this placement. */ - core.List<TagData> tagDatas; - - PlacementTag(); - - PlacementTag.fromJson(core.Map _json) { - if (_json.containsKey("placementId")) { - placementId = _json["placementId"]; - } - if (_json.containsKey("tagDatas")) { - tagDatas = _json["tagDatas"].map((value) => new TagData.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (placementId != null) { - _json["placementId"] = placementId; - } - if (tagDatas != null) { - _json["tagDatas"] = tagDatas.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Placement GenerateTags Response */ -class PlacementsGenerateTagsResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#placementsGenerateTagsResponse". - */ - core.String kind; - /** Set of generated tags for the specified placements. */ - core.List<PlacementTag> placementTags; - - PlacementsGenerateTagsResponse(); - - PlacementsGenerateTagsResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("placementTags")) { - placementTags = _json["placementTags"].map((value) => new PlacementTag.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (placementTags != null) { - _json["placementTags"] = placementTags.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Placement List Response */ -class PlacementsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#placementsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Placement collection. */ - core.List<Placement> placements; - - PlacementsListResponse(); - - PlacementsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("placements")) { - placements = _json["placements"].map((value) => new Placement.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (placements != null) { - _json["placements"] = placements.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Contains information about a platform type that can be targeted by ads. */ -class PlatformType { - /** ID of this platform type. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#platformType". - */ - core.String kind; - /** Name of this platform type. */ - core.String name; - - PlatformType(); - - PlatformType.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Platform Type List Response */ -class PlatformTypesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#platformTypesListResponse". - */ - core.String kind; - /** Platform type collection. */ - core.List<PlatformType> platformTypes; - - PlatformTypesListResponse(); - - PlatformTypesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("platformTypes")) { - platformTypes = _json["platformTypes"].map((value) => new PlatformType.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (platformTypes != null) { - _json["platformTypes"] = platformTypes.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Popup Window Properties. */ -class PopupWindowProperties { - /** - * Popup dimension for a creative. This is a read-only field. Applicable to - * the following creative types: all RICH_MEDIA and all VPAID - */ - Size dimension; - /** - * Upper-left corner coordinates of the popup window. Applicable if - * positionType is COORDINATES. - */ - OffsetPosition offset; - /** - * Popup window position either centered or at specific coordinate. - * Possible string values are: - * - "CENTER" - * - "COORDINATES" - */ - core.String positionType; - /** Whether to display the browser address bar. */ - core.bool showAddressBar; - /** Whether to display the browser menu bar. */ - core.bool showMenuBar; - /** Whether to display the browser scroll bar. */ - core.bool showScrollBar; - /** Whether to display the browser status bar. */ - core.bool showStatusBar; - /** Whether to display the browser tool bar. */ - core.bool showToolBar; - /** Title of popup window. */ - core.String title; - - PopupWindowProperties(); - - PopupWindowProperties.fromJson(core.Map _json) { - if (_json.containsKey("dimension")) { - dimension = new Size.fromJson(_json["dimension"]); - } - if (_json.containsKey("offset")) { - offset = new OffsetPosition.fromJson(_json["offset"]); - } - if (_json.containsKey("positionType")) { - positionType = _json["positionType"]; - } - if (_json.containsKey("showAddressBar")) { - showAddressBar = _json["showAddressBar"]; - } - if (_json.containsKey("showMenuBar")) { - showMenuBar = _json["showMenuBar"]; - } - if (_json.containsKey("showScrollBar")) { - showScrollBar = _json["showScrollBar"]; - } - if (_json.containsKey("showStatusBar")) { - showStatusBar = _json["showStatusBar"]; - } - if (_json.containsKey("showToolBar")) { - showToolBar = _json["showToolBar"]; - } - if (_json.containsKey("title")) { - title = _json["title"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dimension != null) { - _json["dimension"] = (dimension).toJson(); - } - if (offset != null) { - _json["offset"] = (offset).toJson(); - } - if (positionType != null) { - _json["positionType"] = positionType; - } - if (showAddressBar != null) { - _json["showAddressBar"] = showAddressBar; - } - if (showMenuBar != null) { - _json["showMenuBar"] = showMenuBar; - } - if (showScrollBar != null) { - _json["showScrollBar"] = showScrollBar; - } - if (showStatusBar != null) { - _json["showStatusBar"] = showStatusBar; - } - if (showToolBar != null) { - _json["showToolBar"] = showToolBar; - } - if (title != null) { - _json["title"] = title; - } - return _json; - } -} - -/** Contains information about a postal code that can be targeted by ads. */ -class PostalCode { - /** Postal code. This is equivalent to the id field. */ - core.String code; - /** Country code of the country to which this postal code belongs. */ - core.String countryCode; - /** DART ID of the country to which this postal code belongs. */ - core.String countryDartId; - /** ID of this postal code. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#postalCode". - */ - core.String kind; - - PostalCode(); - - PostalCode.fromJson(core.Map _json) { - if (_json.containsKey("code")) { - code = _json["code"]; - } - if (_json.containsKey("countryCode")) { - countryCode = _json["countryCode"]; - } - if (_json.containsKey("countryDartId")) { - countryDartId = _json["countryDartId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (code != null) { - _json["code"] = code; - } - if (countryCode != null) { - _json["countryCode"] = countryCode; - } - if (countryDartId != null) { - _json["countryDartId"] = countryDartId; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Postal Code List Response */ -class PostalCodesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#postalCodesListResponse". - */ - core.String kind; - /** Postal code collection. */ - core.List<PostalCode> postalCodes; - - PostalCodesListResponse(); - - PostalCodesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("postalCodes")) { - postalCodes = _json["postalCodes"].map((value) => new PostalCode.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (postalCodes != null) { - _json["postalCodes"] = postalCodes.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Pricing Information */ -class Pricing { - /** - * Cap cost type of this inventory item. - * Possible string values are: - * - "PLANNING_PLACEMENT_CAP_COST_TYPE_CUMULATIVE" - * - "PLANNING_PLACEMENT_CAP_COST_TYPE_MONTHLY" - * - "PLANNING_PLACEMENT_CAP_COST_TYPE_NONE" - */ - core.String capCostType; - /** End date of this inventory item. */ - core.DateTime endDate; - /** - * Flights of this inventory item. A flight (a.k.a. pricing period) represents - * the inventory item pricing information for a specific period of time. - */ - core.List<Flight> flights; - /** - * Group type of this inventory item if it represents a placement group. Is - * null otherwise. There are two type of placement groups: - * PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of inventory items - * that acts as a single pricing point for a group of tags. - * PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory items that - * not only acts as a single pricing point, but also assumes that all the tags - * in it will be served at the same time. A roadblock requires one of its - * assigned inventory items to be marked as primary. - * Possible string values are: - * - "PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE" - * - "PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK" - */ - core.String groupType; - /** - * Pricing type of this inventory item. - * Possible string values are: - * - "PLANNING_PLACEMENT_PRICING_TYPE_CLICKS" - * - "PLANNING_PLACEMENT_PRICING_TYPE_CPA" - * - "PLANNING_PLACEMENT_PRICING_TYPE_CPC" - * - "PLANNING_PLACEMENT_PRICING_TYPE_CPM" - * - "PLANNING_PLACEMENT_PRICING_TYPE_CPM_ACTIVEVIEW" - * - "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_CLICKS" - * - "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_IMPRESSIONS" - * - "PLANNING_PLACEMENT_PRICING_TYPE_IMPRESSIONS" - */ - core.String pricingType; - /** Start date of this inventory item. */ - core.DateTime startDate; - - Pricing(); - - Pricing.fromJson(core.Map _json) { - if (_json.containsKey("capCostType")) { - capCostType = _json["capCostType"]; - } - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("flights")) { - flights = _json["flights"].map((value) => new Flight.fromJson(value)).toList(); - } - if (_json.containsKey("groupType")) { - groupType = _json["groupType"]; - } - if (_json.containsKey("pricingType")) { - pricingType = _json["pricingType"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (capCostType != null) { - _json["capCostType"] = capCostType; - } - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (flights != null) { - _json["flights"] = flights.map((value) => (value).toJson()).toList(); - } - if (groupType != null) { - _json["groupType"] = groupType; - } - if (pricingType != null) { - _json["pricingType"] = pricingType; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - return _json; - } -} - -/** Pricing Schedule */ -class PricingSchedule { - /** - * Placement cap cost option. - * Possible string values are: - * - "CAP_COST_CUMULATIVE" - * - "CAP_COST_MONTHLY" - * - "CAP_COST_NONE" - */ - core.String capCostOption; - /** Whether cap costs are ignored by ad serving. */ - core.bool disregardOverdelivery; - /** - * Placement end date. This date must be later than, or the same day as, the - * placement start date, but not later than the campaign end date. If, for - * example, you set 6/25/2015 as both the start and end dates, the effective - * placement date is just that day only, 6/25/2015. The hours, minutes, and - * seconds of the end date should not be set, as doing so will result in an - * error. This field is required on insertion. - */ - core.DateTime endDate; - /** - * Whether this placement is flighted. If true, pricing periods will be - * computed automatically. - */ - core.bool flighted; - /** - * Floodlight activity ID associated with this placement. This field should be - * set when placement pricing type is set to PRICING_TYPE_CPA. - */ - core.String floodlightActivityId; - /** Pricing periods for this placement. */ - core.List<PricingSchedulePricingPeriod> pricingPeriods; - /** - * Placement pricing type. This field is required on insertion. - * Possible string values are: - * - "PRICING_TYPE_CPA" - * - "PRICING_TYPE_CPC" - * - "PRICING_TYPE_CPM" - * - "PRICING_TYPE_CPM_ACTIVEVIEW" - * - "PRICING_TYPE_FLAT_RATE_CLICKS" - * - "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" - */ - core.String pricingType; - /** - * Placement start date. This date must be later than, or the same day as, the - * campaign start date. The hours, minutes, and seconds of the start date - * should not be set, as doing so will result in an error. This field is - * required on insertion. - */ - core.DateTime startDate; - /** - * Testing start date of this placement. The hours, minutes, and seconds of - * the start date should not be set, as doing so will result in an error. - */ - core.DateTime testingStartDate; - - PricingSchedule(); - - PricingSchedule.fromJson(core.Map _json) { - if (_json.containsKey("capCostOption")) { - capCostOption = _json["capCostOption"]; - } - if (_json.containsKey("disregardOverdelivery")) { - disregardOverdelivery = _json["disregardOverdelivery"]; - } - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("flighted")) { - flighted = _json["flighted"]; - } - if (_json.containsKey("floodlightActivityId")) { - floodlightActivityId = _json["floodlightActivityId"]; - } - if (_json.containsKey("pricingPeriods")) { - pricingPeriods = _json["pricingPeriods"].map((value) => new PricingSchedulePricingPeriod.fromJson(value)).toList(); - } - if (_json.containsKey("pricingType")) { - pricingType = _json["pricingType"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - if (_json.containsKey("testingStartDate")) { - testingStartDate = core.DateTime.parse(_json["testingStartDate"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (capCostOption != null) { - _json["capCostOption"] = capCostOption; - } - if (disregardOverdelivery != null) { - _json["disregardOverdelivery"] = disregardOverdelivery; - } - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (flighted != null) { - _json["flighted"] = flighted; - } - if (floodlightActivityId != null) { - _json["floodlightActivityId"] = floodlightActivityId; - } - if (pricingPeriods != null) { - _json["pricingPeriods"] = pricingPeriods.map((value) => (value).toJson()).toList(); - } - if (pricingType != null) { - _json["pricingType"] = pricingType; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - if (testingStartDate != null) { - _json["testingStartDate"] = "${(testingStartDate).year.toString().padLeft(4, '0')}-${(testingStartDate).month.toString().padLeft(2, '0')}-${(testingStartDate).day.toString().padLeft(2, '0')}"; - } - return _json; - } -} - -/** Pricing Period */ -class PricingSchedulePricingPeriod { - /** - * Pricing period end date. This date must be later than, or the same day as, - * the pricing period start date, but not later than the placement end date. - * The period end date can be the same date as the period start date. If, for - * example, you set 6/25/2015 as both the start and end dates, the effective - * pricing period date is just that day only, 6/25/2015. The hours, minutes, - * and seconds of the end date should not be set, as doing so will result in - * an error. - */ - core.DateTime endDate; - /** Comments for this pricing period. */ - core.String pricingComment; - /** - * Rate or cost of this pricing period in nanos (i.e., multipled by - * 1000000000). Acceptable values are 0 to 1000000000000000000, inclusive. - */ - core.String rateOrCostNanos; - /** - * Pricing period start date. This date must be later than, or the same day - * as, the placement start date. The hours, minutes, and seconds of the start - * date should not be set, as doing so will result in an error. - */ - core.DateTime startDate; - /** - * Units of this pricing period. Acceptable values are 0 to 10000000000, - * inclusive. - */ - core.String units; - - PricingSchedulePricingPeriod(); - - PricingSchedulePricingPeriod.fromJson(core.Map _json) { - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("pricingComment")) { - pricingComment = _json["pricingComment"]; - } - if (_json.containsKey("rateOrCostNanos")) { - rateOrCostNanos = _json["rateOrCostNanos"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - if (_json.containsKey("units")) { - units = _json["units"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (pricingComment != null) { - _json["pricingComment"] = pricingComment; - } - if (rateOrCostNanos != null) { - _json["rateOrCostNanos"] = rateOrCostNanos; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - if (units != null) { - _json["units"] = units; - } - return _json; - } -} - -/** Contains properties of a DoubleClick Planning project. */ -class Project { - /** Account ID of this project. */ - core.String accountId; - /** Advertiser ID of this project. */ - core.String advertiserId; - /** - * Audience age group of this project. - * Possible string values are: - * - "PLANNING_AUDIENCE_AGE_18_24" - * - "PLANNING_AUDIENCE_AGE_25_34" - * - "PLANNING_AUDIENCE_AGE_35_44" - * - "PLANNING_AUDIENCE_AGE_45_54" - * - "PLANNING_AUDIENCE_AGE_55_64" - * - "PLANNING_AUDIENCE_AGE_65_OR_MORE" - * - "PLANNING_AUDIENCE_AGE_UNKNOWN" - */ - core.String audienceAgeGroup; - /** - * Audience gender of this project. - * Possible string values are: - * - "PLANNING_AUDIENCE_GENDER_FEMALE" - * - "PLANNING_AUDIENCE_GENDER_MALE" - */ - core.String audienceGender; - /** - * Budget of this project in the currency specified by the current account. - * The value stored in this field represents only the non-fractional amount. - * For example, for USD, the smallest value that can be represented by this - * field is 1 US dollar. - */ - core.String budget; - /** Client billing code of this project. */ - core.String clientBillingCode; - /** Name of the project client. */ - core.String clientName; - /** End date of the project. */ - core.DateTime endDate; - /** ID of this project. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#project". - */ - core.String kind; - /** Information about the most recent modification of this project. */ - LastModifiedInfo lastModifiedInfo; - /** Name of this project. */ - core.String name; - /** Overview of this project. */ - core.String overview; - /** Start date of the project. */ - core.DateTime startDate; - /** Subaccount ID of this project. */ - core.String subaccountId; - /** Number of clicks that the advertiser is targeting. */ - core.String targetClicks; - /** Number of conversions that the advertiser is targeting. */ - core.String targetConversions; - /** CPA that the advertiser is targeting. */ - core.String targetCpaNanos; - /** CPC that the advertiser is targeting. */ - core.String targetCpcNanos; - /** vCPM from Active View that the advertiser is targeting. */ - core.String targetCpmActiveViewNanos; - /** CPM that the advertiser is targeting. */ - core.String targetCpmNanos; - /** Number of impressions that the advertiser is targeting. */ - core.String targetImpressions; - - Project(); - - Project.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("audienceAgeGroup")) { - audienceAgeGroup = _json["audienceAgeGroup"]; - } - if (_json.containsKey("audienceGender")) { - audienceGender = _json["audienceGender"]; - } - if (_json.containsKey("budget")) { - budget = _json["budget"]; - } - if (_json.containsKey("clientBillingCode")) { - clientBillingCode = _json["clientBillingCode"]; - } - if (_json.containsKey("clientName")) { - clientName = _json["clientName"]; - } - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("overview")) { - overview = _json["overview"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("targetClicks")) { - targetClicks = _json["targetClicks"]; - } - if (_json.containsKey("targetConversions")) { - targetConversions = _json["targetConversions"]; - } - if (_json.containsKey("targetCpaNanos")) { - targetCpaNanos = _json["targetCpaNanos"]; - } - if (_json.containsKey("targetCpcNanos")) { - targetCpcNanos = _json["targetCpcNanos"]; - } - if (_json.containsKey("targetCpmActiveViewNanos")) { - targetCpmActiveViewNanos = _json["targetCpmActiveViewNanos"]; - } - if (_json.containsKey("targetCpmNanos")) { - targetCpmNanos = _json["targetCpmNanos"]; - } - if (_json.containsKey("targetImpressions")) { - targetImpressions = _json["targetImpressions"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (audienceAgeGroup != null) { - _json["audienceAgeGroup"] = audienceAgeGroup; - } - if (audienceGender != null) { - _json["audienceGender"] = audienceGender; - } - if (budget != null) { - _json["budget"] = budget; - } - if (clientBillingCode != null) { - _json["clientBillingCode"] = clientBillingCode; - } - if (clientName != null) { - _json["clientName"] = clientName; - } - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (overview != null) { - _json["overview"] = overview; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (targetClicks != null) { - _json["targetClicks"] = targetClicks; - } - if (targetConversions != null) { - _json["targetConversions"] = targetConversions; - } - if (targetCpaNanos != null) { - _json["targetCpaNanos"] = targetCpaNanos; - } - if (targetCpcNanos != null) { - _json["targetCpcNanos"] = targetCpcNanos; - } - if (targetCpmActiveViewNanos != null) { - _json["targetCpmActiveViewNanos"] = targetCpmActiveViewNanos; - } - if (targetCpmNanos != null) { - _json["targetCpmNanos"] = targetCpmNanos; - } - if (targetImpressions != null) { - _json["targetImpressions"] = targetImpressions; - } - return _json; - } -} - -/** Project List Response */ -class ProjectsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#projectsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Project collection. */ - core.List<Project> projects; - - ProjectsListResponse(); - - ProjectsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("projects")) { - projects = _json["projects"].map((value) => new Project.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (projects != null) { - _json["projects"] = projects.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** - * Represents fields that are compatible to be selected for a report of type - * "REACH". - */ -class ReachReportCompatibleFields { - /** - * Dimensions which are compatible to be selected in the "dimensionFilters" - * section of the report. - */ - core.List<Dimension> dimensionFilters; - /** - * Dimensions which are compatible to be selected in the "dimensions" section - * of the report. - */ - core.List<Dimension> dimensions; - /** - * The kind of resource this is, in this case - * dfareporting#reachReportCompatibleFields. - */ - core.String kind; - /** - * Metrics which are compatible to be selected in the "metricNames" section of - * the report. - */ - core.List<Metric> metrics; - /** - * Metrics which are compatible to be selected as activity metrics to pivot on - * in the "activities" section of the report. - */ - core.List<Metric> pivotedActivityMetrics; - /** - * Metrics which are compatible to be selected in the - * "reachByFrequencyMetricNames" section of the report. - */ - core.List<Metric> reachByFrequencyMetrics; - - ReachReportCompatibleFields(); - - ReachReportCompatibleFields.fromJson(core.Map _json) { - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("dimensions")) { - dimensions = _json["dimensions"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metrics")) { - metrics = _json["metrics"].map((value) => new Metric.fromJson(value)).toList(); - } - if (_json.containsKey("pivotedActivityMetrics")) { - pivotedActivityMetrics = _json["pivotedActivityMetrics"].map((value) => new Metric.fromJson(value)).toList(); - } - if (_json.containsKey("reachByFrequencyMetrics")) { - reachByFrequencyMetrics = _json["reachByFrequencyMetrics"].map((value) => new Metric.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (dimensions != null) { - _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (metrics != null) { - _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); - } - if (pivotedActivityMetrics != null) { - _json["pivotedActivityMetrics"] = pivotedActivityMetrics.map((value) => (value).toJson()).toList(); - } - if (reachByFrequencyMetrics != null) { - _json["reachByFrequencyMetrics"] = reachByFrequencyMetrics.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Represents a recipient. */ -class Recipient { - /** - * The delivery type for the recipient. - * Possible string values are: - * - "ATTACHMENT" - * - "LINK" - */ - core.String deliveryType; - /** The email address of the recipient. */ - core.String email; - /** The kind of resource this is, in this case dfareporting#recipient. */ - core.String kind; - - Recipient(); - - Recipient.fromJson(core.Map _json) { - if (_json.containsKey("deliveryType")) { - deliveryType = _json["deliveryType"]; - } - if (_json.containsKey("email")) { - email = _json["email"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (deliveryType != null) { - _json["deliveryType"] = deliveryType; - } - if (email != null) { - _json["email"] = email; - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Contains information about a region that can be targeted by ads. */ -class Region { - /** Country code of the country to which this region belongs. */ - core.String countryCode; - /** DART ID of the country to which this region belongs. */ - core.String countryDartId; - /** DART ID of this region. */ - core.String dartId; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#region". - */ - core.String kind; - /** Name of this region. */ - core.String name; - /** Region code. */ - core.String regionCode; - - Region(); - - Region.fromJson(core.Map _json) { - if (_json.containsKey("countryCode")) { - countryCode = _json["countryCode"]; - } - if (_json.containsKey("countryDartId")) { - countryDartId = _json["countryDartId"]; - } - if (_json.containsKey("dartId")) { - dartId = _json["dartId"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("regionCode")) { - regionCode = _json["regionCode"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (countryCode != null) { - _json["countryCode"] = countryCode; - } - if (countryDartId != null) { - _json["countryDartId"] = countryDartId; - } - if (dartId != null) { - _json["dartId"] = dartId; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (regionCode != null) { - _json["regionCode"] = regionCode; - } - return _json; - } -} - -/** Region List Response */ -class RegionsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#regionsListResponse". - */ - core.String kind; - /** Region collection. */ - core.List<Region> regions; - - RegionsListResponse(); - - RegionsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("regions")) { - regions = _json["regions"].map((value) => new Region.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (regions != null) { - _json["regions"] = regions.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** - * Contains properties of a remarketing list. Remarketing enables you to create - * lists of users who have performed specific actions on a site, then target ads - * to members of those lists. This resource can be used to manage remarketing - * lists that are owned by your advertisers. To see all remarketing lists that - * are visible to your advertisers, including those that are shared to your - * advertiser or account, use the TargetableRemarketingLists resource. - */ -class RemarketingList { - /** - * Account ID of this remarketing list. This is a read-only, auto-generated - * field that is only returned in GET requests. - */ - core.String accountId; - /** Whether this remarketing list is active. */ - core.bool active; - /** - * Dimension value for the advertiser ID that owns this remarketing list. This - * is a required field. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** Remarketing list description. */ - core.String description; - /** Remarketing list ID. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#remarketingList". - */ - core.String kind; - /** - * Number of days that a user should remain in the remarketing list without an - * impression. Acceptable values are 1 to 540, inclusive. - */ - core.String lifeSpan; - /** Rule used to populate the remarketing list with users. */ - ListPopulationRule listPopulationRule; - /** Number of users currently in the list. This is a read-only field. */ - core.String listSize; - /** - * Product from which this remarketing list was originated. - * Possible string values are: - * - "REMARKETING_LIST_SOURCE_ADX" - * - "REMARKETING_LIST_SOURCE_DBM" - * - "REMARKETING_LIST_SOURCE_DFA" - * - "REMARKETING_LIST_SOURCE_DFP" - * - "REMARKETING_LIST_SOURCE_DMP" - * - "REMARKETING_LIST_SOURCE_GA" - * - "REMARKETING_LIST_SOURCE_GPLUS" - * - "REMARKETING_LIST_SOURCE_OTHER" - * - "REMARKETING_LIST_SOURCE_PLAY_STORE" - * - "REMARKETING_LIST_SOURCE_XFP" - * - "REMARKETING_LIST_SOURCE_YOUTUBE" - */ - core.String listSource; - /** - * Name of the remarketing list. This is a required field. Must be no greater - * than 128 characters long. - */ - core.String name; - /** - * Subaccount ID of this remarketing list. This is a read-only, auto-generated - * field that is only returned in GET requests. - */ - core.String subaccountId; - - RemarketingList(); - - RemarketingList.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("description")) { - description = _json["description"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lifeSpan")) { - lifeSpan = _json["lifeSpan"]; - } - if (_json.containsKey("listPopulationRule")) { - listPopulationRule = new ListPopulationRule.fromJson(_json["listPopulationRule"]); - } - if (_json.containsKey("listSize")) { - listSize = _json["listSize"]; - } - if (_json.containsKey("listSource")) { - listSource = _json["listSource"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (active != null) { - _json["active"] = active; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (description != null) { - _json["description"] = description; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lifeSpan != null) { - _json["lifeSpan"] = lifeSpan; - } - if (listPopulationRule != null) { - _json["listPopulationRule"] = (listPopulationRule).toJson(); - } - if (listSize != null) { - _json["listSize"] = listSize; - } - if (listSource != null) { - _json["listSource"] = listSource; - } - if (name != null) { - _json["name"] = name; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - return _json; - } -} - -/** - * Contains properties of a remarketing list's sharing information. Sharing - * allows other accounts or advertisers to target to your remarketing lists. - * This resource can be used to manage remarketing list sharing to other - * accounts and advertisers. - */ -class RemarketingListShare { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#remarketingListShare". - */ - core.String kind; - /** Remarketing list ID. This is a read-only, auto-generated field. */ - core.String remarketingListId; - /** Accounts that the remarketing list is shared with. */ - core.List<core.String> sharedAccountIds; - /** Advertisers that the remarketing list is shared with. */ - core.List<core.String> sharedAdvertiserIds; - - RemarketingListShare(); - - RemarketingListShare.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("remarketingListId")) { - remarketingListId = _json["remarketingListId"]; - } - if (_json.containsKey("sharedAccountIds")) { - sharedAccountIds = _json["sharedAccountIds"]; - } - if (_json.containsKey("sharedAdvertiserIds")) { - sharedAdvertiserIds = _json["sharedAdvertiserIds"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (remarketingListId != null) { - _json["remarketingListId"] = remarketingListId; - } - if (sharedAccountIds != null) { - _json["sharedAccountIds"] = sharedAccountIds; - } - if (sharedAdvertiserIds != null) { - _json["sharedAdvertiserIds"] = sharedAdvertiserIds; - } - return _json; - } -} - -/** Remarketing list response */ -class RemarketingListsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#remarketingListsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Remarketing list collection. */ - core.List<RemarketingList> remarketingLists; - - RemarketingListsListResponse(); - - RemarketingListsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("remarketingLists")) { - remarketingLists = _json["remarketingLists"].map((value) => new RemarketingList.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (remarketingLists != null) { - _json["remarketingLists"] = remarketingLists.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** The report criteria for a report of type "STANDARD". */ -class ReportCriteria { - /** Activity group. */ - Activities activities; - /** Custom Rich Media Events group. */ - CustomRichMediaEvents customRichMediaEvents; - /** The date range for which this report should be run. */ - DateRange dateRange; - /** - * The list of filters on which dimensions are filtered. - * Filters for different dimensions are ANDed, filters for the same dimension - * are grouped together and ORed. - */ - core.List<DimensionValue> dimensionFilters; - /** The list of standard dimensions the report should include. */ - core.List<SortedDimension> dimensions; - /** The list of names of metrics the report should include. */ - core.List<core.String> metricNames; - - ReportCriteria(); - - ReportCriteria.fromJson(core.Map _json) { - if (_json.containsKey("activities")) { - activities = new Activities.fromJson(_json["activities"]); - } - if (_json.containsKey("customRichMediaEvents")) { - customRichMediaEvents = new CustomRichMediaEvents.fromJson(_json["customRichMediaEvents"]); - } - if (_json.containsKey("dateRange")) { - dateRange = new DateRange.fromJson(_json["dateRange"]); - } - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("dimensions")) { - dimensions = _json["dimensions"].map((value) => new SortedDimension.fromJson(value)).toList(); - } - if (_json.containsKey("metricNames")) { - metricNames = _json["metricNames"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (activities != null) { - _json["activities"] = (activities).toJson(); - } - if (customRichMediaEvents != null) { - _json["customRichMediaEvents"] = (customRichMediaEvents).toJson(); - } - if (dateRange != null) { - _json["dateRange"] = (dateRange).toJson(); - } - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (dimensions != null) { - _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList(); - } - if (metricNames != null) { - _json["metricNames"] = metricNames; - } - return _json; - } -} - -/** The report criteria for a report of type "CROSS_DIMENSION_REACH". */ -class ReportCrossDimensionReachCriteria { - /** The list of dimensions the report should include. */ - core.List<SortedDimension> breakdown; - /** The date range this report should be run for. */ - DateRange dateRange; - /** - * The dimension option. - * Possible string values are: - * - "ADVERTISER" - * - "CAMPAIGN" - * - "SITE_BY_ADVERTISER" - * - "SITE_BY_CAMPAIGN" - */ - core.String dimension; - /** The list of filters on which dimensions are filtered. */ - core.List<DimensionValue> dimensionFilters; - /** The list of names of metrics the report should include. */ - core.List<core.String> metricNames; - /** The list of names of overlap metrics the report should include. */ - core.List<core.String> overlapMetricNames; - /** Whether the report is pivoted or not. Defaults to true. */ - core.bool pivoted; - - ReportCrossDimensionReachCriteria(); - - ReportCrossDimensionReachCriteria.fromJson(core.Map _json) { - if (_json.containsKey("breakdown")) { - breakdown = _json["breakdown"].map((value) => new SortedDimension.fromJson(value)).toList(); - } - if (_json.containsKey("dateRange")) { - dateRange = new DateRange.fromJson(_json["dateRange"]); - } - if (_json.containsKey("dimension")) { - dimension = _json["dimension"]; - } - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("metricNames")) { - metricNames = _json["metricNames"]; - } - if (_json.containsKey("overlapMetricNames")) { - overlapMetricNames = _json["overlapMetricNames"]; - } - if (_json.containsKey("pivoted")) { - pivoted = _json["pivoted"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (breakdown != null) { - _json["breakdown"] = breakdown.map((value) => (value).toJson()).toList(); - } - if (dateRange != null) { - _json["dateRange"] = (dateRange).toJson(); - } - if (dimension != null) { - _json["dimension"] = dimension; - } - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (metricNames != null) { - _json["metricNames"] = metricNames; - } - if (overlapMetricNames != null) { - _json["overlapMetricNames"] = overlapMetricNames; - } - if (pivoted != null) { - _json["pivoted"] = pivoted; - } - return _json; - } -} - -/** The report's email delivery settings. */ -class ReportDelivery { - /** Whether the report should be emailed to the report owner. */ - core.bool emailOwner; - /** - * The type of delivery for the owner to receive, if enabled. - * Possible string values are: - * - "ATTACHMENT" - * - "LINK" - */ - core.String emailOwnerDeliveryType; - /** The message to be sent with each email. */ - core.String message; - /** The list of recipients to which to email the report. */ - core.List<Recipient> recipients; - - ReportDelivery(); - - ReportDelivery.fromJson(core.Map _json) { - if (_json.containsKey("emailOwner")) { - emailOwner = _json["emailOwner"]; - } - if (_json.containsKey("emailOwnerDeliveryType")) { - emailOwnerDeliveryType = _json["emailOwnerDeliveryType"]; - } - if (_json.containsKey("message")) { - message = _json["message"]; - } - if (_json.containsKey("recipients")) { - recipients = _json["recipients"].map((value) => new Recipient.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (emailOwner != null) { - _json["emailOwner"] = emailOwner; - } - if (emailOwnerDeliveryType != null) { - _json["emailOwnerDeliveryType"] = emailOwnerDeliveryType; - } - if (message != null) { - _json["message"] = message; - } - if (recipients != null) { - _json["recipients"] = recipients.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** The properties of the report. */ -class ReportFloodlightCriteriaReportProperties { - /** Include conversions that have no cookie, but do have an exposure path. */ - core.bool includeAttributedIPConversions; - /** - * Include conversions of users with a DoubleClick cookie but without an - * exposure. That means the user did not click or see an ad from the - * advertiser within the Floodlight group, or that the interaction happened - * outside the lookback window. - */ - core.bool includeUnattributedCookieConversions; - /** - * Include conversions that have no associated cookies and no exposures. It’s - * therefore impossible to know how the user was exposed to your ads during - * the lookback window prior to a conversion. - */ - core.bool includeUnattributedIPConversions; - - ReportFloodlightCriteriaReportProperties(); - - ReportFloodlightCriteriaReportProperties.fromJson(core.Map _json) { - if (_json.containsKey("includeAttributedIPConversions")) { - includeAttributedIPConversions = _json["includeAttributedIPConversions"]; - } - if (_json.containsKey("includeUnattributedCookieConversions")) { - includeUnattributedCookieConversions = _json["includeUnattributedCookieConversions"]; - } - if (_json.containsKey("includeUnattributedIPConversions")) { - includeUnattributedIPConversions = _json["includeUnattributedIPConversions"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (includeAttributedIPConversions != null) { - _json["includeAttributedIPConversions"] = includeAttributedIPConversions; - } - if (includeUnattributedCookieConversions != null) { - _json["includeUnattributedCookieConversions"] = includeUnattributedCookieConversions; - } - if (includeUnattributedIPConversions != null) { - _json["includeUnattributedIPConversions"] = includeUnattributedIPConversions; - } - return _json; - } -} - -/** The report criteria for a report of type "FLOODLIGHT". */ -class ReportFloodlightCriteria { - /** The list of custom rich media events to include. */ - core.List<DimensionValue> customRichMediaEvents; - /** The date range this report should be run for. */ - DateRange dateRange; - /** - * The list of filters on which dimensions are filtered. - * Filters for different dimensions are ANDed, filters for the same dimension - * are grouped together and ORed. - */ - core.List<DimensionValue> dimensionFilters; - /** The list of dimensions the report should include. */ - core.List<SortedDimension> dimensions; - /** - * The floodlight ID for which to show data in this report. All advertisers - * associated with that ID will automatically be added. The dimension of the - * value needs to be 'dfa:floodlightConfigId'. - */ - DimensionValue floodlightConfigId; - /** The list of names of metrics the report should include. */ - core.List<core.String> metricNames; - /** The properties of the report. */ - ReportFloodlightCriteriaReportProperties reportProperties; - - ReportFloodlightCriteria(); - - ReportFloodlightCriteria.fromJson(core.Map _json) { - if (_json.containsKey("customRichMediaEvents")) { - customRichMediaEvents = _json["customRichMediaEvents"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("dateRange")) { - dateRange = new DateRange.fromJson(_json["dateRange"]); - } - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("dimensions")) { - dimensions = _json["dimensions"].map((value) => new SortedDimension.fromJson(value)).toList(); - } - if (_json.containsKey("floodlightConfigId")) { - floodlightConfigId = new DimensionValue.fromJson(_json["floodlightConfigId"]); - } - if (_json.containsKey("metricNames")) { - metricNames = _json["metricNames"]; - } - if (_json.containsKey("reportProperties")) { - reportProperties = new ReportFloodlightCriteriaReportProperties.fromJson(_json["reportProperties"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (customRichMediaEvents != null) { - _json["customRichMediaEvents"] = customRichMediaEvents.map((value) => (value).toJson()).toList(); - } - if (dateRange != null) { - _json["dateRange"] = (dateRange).toJson(); - } - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (dimensions != null) { - _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList(); - } - if (floodlightConfigId != null) { - _json["floodlightConfigId"] = (floodlightConfigId).toJson(); - } - if (metricNames != null) { - _json["metricNames"] = metricNames; - } - if (reportProperties != null) { - _json["reportProperties"] = (reportProperties).toJson(); - } - return _json; - } -} - -/** The properties of the report. */ -class ReportPathToConversionCriteriaReportProperties { - /** - * DFA checks to see if a click interaction occurred within the specified - * period of time before a conversion. By default the value is pulled from - * Floodlight or you can manually enter a custom value. Valid values: 1-90. - */ - core.int clicksLookbackWindow; - /** - * DFA checks to see if an impression interaction occurred within the - * specified period of time before a conversion. By default the value is - * pulled from Floodlight or you can manually enter a custom value. Valid - * values: 1-90. - */ - core.int impressionsLookbackWindow; - /** Deprecated: has no effect. */ - core.bool includeAttributedIPConversions; - /** - * Include conversions of users with a DoubleClick cookie but without an - * exposure. That means the user did not click or see an ad from the - * advertiser within the Floodlight group, or that the interaction happened - * outside the lookback window. - */ - core.bool includeUnattributedCookieConversions; - /** - * Include conversions that have no associated cookies and no exposures. It’s - * therefore impossible to know how the user was exposed to your ads during - * the lookback window prior to a conversion. - */ - core.bool includeUnattributedIPConversions; - /** - * The maximum number of click interactions to include in the report. - * Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 - * impressions). If another advertiser in your network is paying for E2C, you - * can have up to 5 total exposures per report. - */ - core.int maximumClickInteractions; - /** - * The maximum number of click interactions to include in the report. - * Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 - * impressions). If another advertiser in your network is paying for E2C, you - * can have up to 5 total exposures per report. - */ - core.int maximumImpressionInteractions; - /** - * The maximum amount of time that can take place between interactions (clicks - * or impressions) by the same user. Valid values: 1-90. - */ - core.int maximumInteractionGap; - /** Enable pivoting on interaction path. */ - core.bool pivotOnInteractionPath; - - ReportPathToConversionCriteriaReportProperties(); - - ReportPathToConversionCriteriaReportProperties.fromJson(core.Map _json) { - if (_json.containsKey("clicksLookbackWindow")) { - clicksLookbackWindow = _json["clicksLookbackWindow"]; - } - if (_json.containsKey("impressionsLookbackWindow")) { - impressionsLookbackWindow = _json["impressionsLookbackWindow"]; - } - if (_json.containsKey("includeAttributedIPConversions")) { - includeAttributedIPConversions = _json["includeAttributedIPConversions"]; - } - if (_json.containsKey("includeUnattributedCookieConversions")) { - includeUnattributedCookieConversions = _json["includeUnattributedCookieConversions"]; - } - if (_json.containsKey("includeUnattributedIPConversions")) { - includeUnattributedIPConversions = _json["includeUnattributedIPConversions"]; - } - if (_json.containsKey("maximumClickInteractions")) { - maximumClickInteractions = _json["maximumClickInteractions"]; - } - if (_json.containsKey("maximumImpressionInteractions")) { - maximumImpressionInteractions = _json["maximumImpressionInteractions"]; - } - if (_json.containsKey("maximumInteractionGap")) { - maximumInteractionGap = _json["maximumInteractionGap"]; - } - if (_json.containsKey("pivotOnInteractionPath")) { - pivotOnInteractionPath = _json["pivotOnInteractionPath"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (clicksLookbackWindow != null) { - _json["clicksLookbackWindow"] = clicksLookbackWindow; - } - if (impressionsLookbackWindow != null) { - _json["impressionsLookbackWindow"] = impressionsLookbackWindow; - } - if (includeAttributedIPConversions != null) { - _json["includeAttributedIPConversions"] = includeAttributedIPConversions; - } - if (includeUnattributedCookieConversions != null) { - _json["includeUnattributedCookieConversions"] = includeUnattributedCookieConversions; - } - if (includeUnattributedIPConversions != null) { - _json["includeUnattributedIPConversions"] = includeUnattributedIPConversions; - } - if (maximumClickInteractions != null) { - _json["maximumClickInteractions"] = maximumClickInteractions; - } - if (maximumImpressionInteractions != null) { - _json["maximumImpressionInteractions"] = maximumImpressionInteractions; - } - if (maximumInteractionGap != null) { - _json["maximumInteractionGap"] = maximumInteractionGap; - } - if (pivotOnInteractionPath != null) { - _json["pivotOnInteractionPath"] = pivotOnInteractionPath; - } - return _json; - } -} - -/** The report criteria for a report of type "PATH_TO_CONVERSION". */ -class ReportPathToConversionCriteria { - /** The list of 'dfa:activity' values to filter on. */ - core.List<DimensionValue> activityFilters; - /** The list of conversion dimensions the report should include. */ - core.List<SortedDimension> conversionDimensions; - /** The list of custom floodlight variables the report should include. */ - core.List<SortedDimension> customFloodlightVariables; - /** The list of custom rich media events to include. */ - core.List<DimensionValue> customRichMediaEvents; - /** The date range this report should be run for. */ - DateRange dateRange; - /** - * The floodlight ID for which to show data in this report. All advertisers - * associated with that ID will automatically be added. The dimension of the - * value needs to be 'dfa:floodlightConfigId'. - */ - DimensionValue floodlightConfigId; - /** The list of names of metrics the report should include. */ - core.List<core.String> metricNames; - /** The list of per interaction dimensions the report should include. */ - core.List<SortedDimension> perInteractionDimensions; - /** The properties of the report. */ - ReportPathToConversionCriteriaReportProperties reportProperties; - - ReportPathToConversionCriteria(); - - ReportPathToConversionCriteria.fromJson(core.Map _json) { - if (_json.containsKey("activityFilters")) { - activityFilters = _json["activityFilters"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("conversionDimensions")) { - conversionDimensions = _json["conversionDimensions"].map((value) => new SortedDimension.fromJson(value)).toList(); - } - if (_json.containsKey("customFloodlightVariables")) { - customFloodlightVariables = _json["customFloodlightVariables"].map((value) => new SortedDimension.fromJson(value)).toList(); - } - if (_json.containsKey("customRichMediaEvents")) { - customRichMediaEvents = _json["customRichMediaEvents"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("dateRange")) { - dateRange = new DateRange.fromJson(_json["dateRange"]); - } - if (_json.containsKey("floodlightConfigId")) { - floodlightConfigId = new DimensionValue.fromJson(_json["floodlightConfigId"]); - } - if (_json.containsKey("metricNames")) { - metricNames = _json["metricNames"]; - } - if (_json.containsKey("perInteractionDimensions")) { - perInteractionDimensions = _json["perInteractionDimensions"].map((value) => new SortedDimension.fromJson(value)).toList(); - } - if (_json.containsKey("reportProperties")) { - reportProperties = new ReportPathToConversionCriteriaReportProperties.fromJson(_json["reportProperties"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (activityFilters != null) { - _json["activityFilters"] = activityFilters.map((value) => (value).toJson()).toList(); - } - if (conversionDimensions != null) { - _json["conversionDimensions"] = conversionDimensions.map((value) => (value).toJson()).toList(); - } - if (customFloodlightVariables != null) { - _json["customFloodlightVariables"] = customFloodlightVariables.map((value) => (value).toJson()).toList(); - } - if (customRichMediaEvents != null) { - _json["customRichMediaEvents"] = customRichMediaEvents.map((value) => (value).toJson()).toList(); - } - if (dateRange != null) { - _json["dateRange"] = (dateRange).toJson(); - } - if (floodlightConfigId != null) { - _json["floodlightConfigId"] = (floodlightConfigId).toJson(); - } - if (metricNames != null) { - _json["metricNames"] = metricNames; - } - if (perInteractionDimensions != null) { - _json["perInteractionDimensions"] = perInteractionDimensions.map((value) => (value).toJson()).toList(); - } - if (reportProperties != null) { - _json["reportProperties"] = (reportProperties).toJson(); - } - return _json; - } -} - -/** The report criteria for a report of type "REACH". */ -class ReportReachCriteria { - /** Activity group. */ - Activities activities; - /** Custom Rich Media Events group. */ - CustomRichMediaEvents customRichMediaEvents; - /** The date range this report should be run for. */ - DateRange dateRange; - /** - * The list of filters on which dimensions are filtered. - * Filters for different dimensions are ANDed, filters for the same dimension - * are grouped together and ORed. - */ - core.List<DimensionValue> dimensionFilters; - /** The list of dimensions the report should include. */ - core.List<SortedDimension> dimensions; - /** - * Whether to enable all reach dimension combinations in the report. Defaults - * to false. If enabled, the date range of the report should be within the - * last three months. - */ - core.bool enableAllDimensionCombinations; - /** The list of names of metrics the report should include. */ - core.List<core.String> metricNames; - /** - * The list of names of Reach By Frequency metrics the report should include. - */ - core.List<core.String> reachByFrequencyMetricNames; - - ReportReachCriteria(); - - ReportReachCriteria.fromJson(core.Map _json) { - if (_json.containsKey("activities")) { - activities = new Activities.fromJson(_json["activities"]); - } - if (_json.containsKey("customRichMediaEvents")) { - customRichMediaEvents = new CustomRichMediaEvents.fromJson(_json["customRichMediaEvents"]); - } - if (_json.containsKey("dateRange")) { - dateRange = new DateRange.fromJson(_json["dateRange"]); - } - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("dimensions")) { - dimensions = _json["dimensions"].map((value) => new SortedDimension.fromJson(value)).toList(); - } - if (_json.containsKey("enableAllDimensionCombinations")) { - enableAllDimensionCombinations = _json["enableAllDimensionCombinations"]; - } - if (_json.containsKey("metricNames")) { - metricNames = _json["metricNames"]; - } - if (_json.containsKey("reachByFrequencyMetricNames")) { - reachByFrequencyMetricNames = _json["reachByFrequencyMetricNames"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (activities != null) { - _json["activities"] = (activities).toJson(); - } - if (customRichMediaEvents != null) { - _json["customRichMediaEvents"] = (customRichMediaEvents).toJson(); - } - if (dateRange != null) { - _json["dateRange"] = (dateRange).toJson(); - } - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (dimensions != null) { - _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList(); - } - if (enableAllDimensionCombinations != null) { - _json["enableAllDimensionCombinations"] = enableAllDimensionCombinations; - } - if (metricNames != null) { - _json["metricNames"] = metricNames; - } - if (reachByFrequencyMetricNames != null) { - _json["reachByFrequencyMetricNames"] = reachByFrequencyMetricNames; - } - return _json; - } -} - -/** - * The report's schedule. Can only be set if the report's 'dateRange' is a - * relative date range and the relative date range is not "TODAY". - */ -class ReportSchedule { - /** - * Whether the schedule is active or not. Must be set to either true or false. - */ - core.bool active; - /** - * Defines every how many days, weeks or months the report should be run. - * Needs to be set when "repeats" is either "DAILY", "WEEKLY" or "MONTHLY". - */ - core.int every; - /** The expiration date when the scheduled report stops running. */ - core.DateTime expirationDate; - /** - * The interval for which the report is repeated. Note: - * - "DAILY" also requires field "every" to be set. - * - "WEEKLY" also requires fields "every" and "repeatsOnWeekDays" to be set. - * - "MONTHLY" also requires fields "every" and "runsOnDayOfMonth" to be set. - */ - core.String repeats; - /** List of week days "WEEKLY" on which scheduled reports should run. */ - core.List<core.String> repeatsOnWeekDays; - /** - * Enum to define for "MONTHLY" scheduled reports whether reports should be - * repeated on the same day of the month as "startDate" or the same day of the - * week of the month. - * Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), - * "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and - * "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the - * month. - * Possible string values are: - * - "DAY_OF_MONTH" - * - "WEEK_OF_MONTH" - */ - core.String runsOnDayOfMonth; - /** Start date of date range for which scheduled reports should be run. */ - core.DateTime startDate; - - ReportSchedule(); - - ReportSchedule.fromJson(core.Map _json) { - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("every")) { - every = _json["every"]; - } - if (_json.containsKey("expirationDate")) { - expirationDate = core.DateTime.parse(_json["expirationDate"]); - } - if (_json.containsKey("repeats")) { - repeats = _json["repeats"]; - } - if (_json.containsKey("repeatsOnWeekDays")) { - repeatsOnWeekDays = _json["repeatsOnWeekDays"]; - } - if (_json.containsKey("runsOnDayOfMonth")) { - runsOnDayOfMonth = _json["runsOnDayOfMonth"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (active != null) { - _json["active"] = active; - } - if (every != null) { - _json["every"] = every; - } - if (expirationDate != null) { - _json["expirationDate"] = "${(expirationDate).year.toString().padLeft(4, '0')}-${(expirationDate).month.toString().padLeft(2, '0')}-${(expirationDate).day.toString().padLeft(2, '0')}"; - } - if (repeats != null) { - _json["repeats"] = repeats; - } - if (repeatsOnWeekDays != null) { - _json["repeatsOnWeekDays"] = repeatsOnWeekDays; - } - if (runsOnDayOfMonth != null) { - _json["runsOnDayOfMonth"] = runsOnDayOfMonth; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - return _json; - } -} - -/** Represents a Report resource. */ -class Report { - /** The account ID to which this report belongs. */ - core.String accountId; - /** The report criteria for a report of type "STANDARD". */ - ReportCriteria criteria; - /** The report criteria for a report of type "CROSS_DIMENSION_REACH". */ - ReportCrossDimensionReachCriteria crossDimensionReachCriteria; - /** The report's email delivery settings. */ - ReportDelivery delivery; - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The filename used when generating report files for this report. */ - core.String fileName; - /** The report criteria for a report of type "FLOODLIGHT". */ - ReportFloodlightCriteria floodlightCriteria; - /** - * The output format of the report. If not specified, default format is "CSV". - * Note that the actual format in the completed report file might differ if - * for instance the report's size exceeds the format's capabilities. "CSV" - * will then be the fallback format. - * Possible string values are: - * - "CSV" - * - "EXCEL" - */ - core.String format; - /** The unique ID identifying this report resource. */ - core.String id; - /** The kind of resource this is, in this case dfareporting#report. */ - core.String kind; - /** - * The timestamp (in milliseconds since epoch) of when this report was last - * modified. - */ - core.String lastModifiedTime; - /** The name of the report. */ - core.String name; - /** The user profile id of the owner of this report. */ - core.String ownerProfileId; - /** The report criteria for a report of type "PATH_TO_CONVERSION". */ - ReportPathToConversionCriteria pathToConversionCriteria; - /** The report criteria for a report of type "REACH". */ - ReportReachCriteria reachCriteria; - /** - * The report's schedule. Can only be set if the report's 'dateRange' is a - * relative date range and the relative date range is not "TODAY". - */ - ReportSchedule schedule; - /** The subaccount ID to which this report belongs if applicable. */ - core.String subAccountId; - /** - * The type of the report. - * Possible string values are: - * - "CROSS_DIMENSION_REACH" - * - "FLOODLIGHT" - * - "PATH_TO_CONVERSION" - * - "REACH" - * - "STANDARD" - */ - core.String type; - - Report(); - - Report.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("criteria")) { - criteria = new ReportCriteria.fromJson(_json["criteria"]); - } - if (_json.containsKey("crossDimensionReachCriteria")) { - crossDimensionReachCriteria = new ReportCrossDimensionReachCriteria.fromJson(_json["crossDimensionReachCriteria"]); - } - if (_json.containsKey("delivery")) { - delivery = new ReportDelivery.fromJson(_json["delivery"]); - } - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("fileName")) { - fileName = _json["fileName"]; - } - if (_json.containsKey("floodlightCriteria")) { - floodlightCriteria = new ReportFloodlightCriteria.fromJson(_json["floodlightCriteria"]); - } - if (_json.containsKey("format")) { - format = _json["format"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedTime")) { - lastModifiedTime = _json["lastModifiedTime"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("ownerProfileId")) { - ownerProfileId = _json["ownerProfileId"]; - } - if (_json.containsKey("pathToConversionCriteria")) { - pathToConversionCriteria = new ReportPathToConversionCriteria.fromJson(_json["pathToConversionCriteria"]); - } - if (_json.containsKey("reachCriteria")) { - reachCriteria = new ReportReachCriteria.fromJson(_json["reachCriteria"]); - } - if (_json.containsKey("schedule")) { - schedule = new ReportSchedule.fromJson(_json["schedule"]); - } - if (_json.containsKey("subAccountId")) { - subAccountId = _json["subAccountId"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (criteria != null) { - _json["criteria"] = (criteria).toJson(); - } - if (crossDimensionReachCriteria != null) { - _json["crossDimensionReachCriteria"] = (crossDimensionReachCriteria).toJson(); - } - if (delivery != null) { - _json["delivery"] = (delivery).toJson(); - } - if (etag != null) { - _json["etag"] = etag; - } - if (fileName != null) { - _json["fileName"] = fileName; - } - if (floodlightCriteria != null) { - _json["floodlightCriteria"] = (floodlightCriteria).toJson(); - } - if (format != null) { - _json["format"] = format; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedTime != null) { - _json["lastModifiedTime"] = lastModifiedTime; - } - if (name != null) { - _json["name"] = name; - } - if (ownerProfileId != null) { - _json["ownerProfileId"] = ownerProfileId; - } - if (pathToConversionCriteria != null) { - _json["pathToConversionCriteria"] = (pathToConversionCriteria).toJson(); - } - if (reachCriteria != null) { - _json["reachCriteria"] = (reachCriteria).toJson(); - } - if (schedule != null) { - _json["schedule"] = (schedule).toJson(); - } - if (subAccountId != null) { - _json["subAccountId"] = subAccountId; - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** - * Represents fields that are compatible to be selected for a report of type - * "STANDARD". - */ -class ReportCompatibleFields { - /** - * Dimensions which are compatible to be selected in the "dimensionFilters" - * section of the report. - */ - core.List<Dimension> dimensionFilters; - /** - * Dimensions which are compatible to be selected in the "dimensions" section - * of the report. - */ - core.List<Dimension> dimensions; - /** - * The kind of resource this is, in this case - * dfareporting#reportCompatibleFields. - */ - core.String kind; - /** - * Metrics which are compatible to be selected in the "metricNames" section of - * the report. - */ - core.List<Metric> metrics; - /** - * Metrics which are compatible to be selected as activity metrics to pivot on - * in the "activities" section of the report. - */ - core.List<Metric> pivotedActivityMetrics; - - ReportCompatibleFields(); - - ReportCompatibleFields.fromJson(core.Map _json) { - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("dimensions")) { - dimensions = _json["dimensions"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metrics")) { - metrics = _json["metrics"].map((value) => new Metric.fromJson(value)).toList(); - } - if (_json.containsKey("pivotedActivityMetrics")) { - pivotedActivityMetrics = _json["pivotedActivityMetrics"].map((value) => new Metric.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (dimensions != null) { - _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (metrics != null) { - _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); - } - if (pivotedActivityMetrics != null) { - _json["pivotedActivityMetrics"] = pivotedActivityMetrics.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Represents the list of reports. */ -class ReportList { - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The reports returned in this response. */ - core.List<Report> items; - /** The kind of list this is, in this case dfareporting#reportList. */ - core.String kind; - /** - * Continuation token used to page through reports. To retrieve the next page - * of results, set the next request's "pageToken" to the value of this field. - * The page token is only valid for a limited amount of time and should not be - * persisted. - */ - core.String nextPageToken; - - ReportList(); - - ReportList.fromJson(core.Map _json) { - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("items")) { - items = _json["items"].map((value) => new Report.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (etag != null) { - _json["etag"] = etag; - } - if (items != null) { - _json["items"] = items.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Reporting Configuration */ -class ReportsConfiguration { - /** - * Whether the exposure to conversion report is enabled. This report shows - * detailed pathway information on up to 10 of the most recent ad exposures - * seen by a user before converting. - */ - core.bool exposureToConversionEnabled; - /** Default lookback windows for new advertisers in this account. */ - LookbackConfiguration lookbackConfiguration; - /** - * Report generation time zone ID of this account. This is a required field - * that can only be changed by a superuser. - * Acceptable values are: - * - * - "1" for "America/New_York" - * - "2" for "Europe/London" - * - "3" for "Europe/Paris" - * - "4" for "Africa/Johannesburg" - * - "5" for "Asia/Jerusalem" - * - "6" for "Asia/Shanghai" - * - "7" for "Asia/Hong_Kong" - * - "8" for "Asia/Tokyo" - * - "9" for "Australia/Sydney" - * - "10" for "Asia/Dubai" - * - "11" for "America/Los_Angeles" - * - "12" for "Pacific/Auckland" - * - "13" for "America/Sao_Paulo" - */ - core.String reportGenerationTimeZoneId; - - ReportsConfiguration(); - - ReportsConfiguration.fromJson(core.Map _json) { - if (_json.containsKey("exposureToConversionEnabled")) { - exposureToConversionEnabled = _json["exposureToConversionEnabled"]; - } - if (_json.containsKey("lookbackConfiguration")) { - lookbackConfiguration = new LookbackConfiguration.fromJson(_json["lookbackConfiguration"]); - } - if (_json.containsKey("reportGenerationTimeZoneId")) { - reportGenerationTimeZoneId = _json["reportGenerationTimeZoneId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (exposureToConversionEnabled != null) { - _json["exposureToConversionEnabled"] = exposureToConversionEnabled; - } - if (lookbackConfiguration != null) { - _json["lookbackConfiguration"] = (lookbackConfiguration).toJson(); - } - if (reportGenerationTimeZoneId != null) { - _json["reportGenerationTimeZoneId"] = reportGenerationTimeZoneId; - } - return _json; - } -} - -/** Rich Media Exit Override. */ -class RichMediaExitOverride { - /** - * Click-through URL of this rich media exit override. Applicable if the - * enabled field is set to true. - */ - ClickThroughUrl clickThroughUrl; - /** - * Whether to use the clickThroughUrl. If false, the creative-level exit will - * be used. - */ - core.bool enabled; - /** ID for the override to refer to a specific exit in the creative. */ - core.String exitId; - - RichMediaExitOverride(); - - RichMediaExitOverride.fromJson(core.Map _json) { - if (_json.containsKey("clickThroughUrl")) { - clickThroughUrl = new ClickThroughUrl.fromJson(_json["clickThroughUrl"]); - } - if (_json.containsKey("enabled")) { - enabled = _json["enabled"]; - } - if (_json.containsKey("exitId")) { - exitId = _json["exitId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (clickThroughUrl != null) { - _json["clickThroughUrl"] = (clickThroughUrl).toJson(); - } - if (enabled != null) { - _json["enabled"] = enabled; - } - if (exitId != null) { - _json["exitId"] = exitId; - } - return _json; - } -} - -/** - * A rule associates an asset with a targeting template for asset-level - * targeting. Applicable to INSTREAM_VIDEO creatives. - */ -class Rule { - /** - * A creativeAssets[].id. This should refer to one of the parent assets in - * this creative. This is a required field. - */ - core.String assetId; - /** A user-friendly name for this rule. This is a required field. */ - core.String name; - /** - * A targeting template ID. The targeting from the targeting template will be - * used to determine whether this asset should be served. This is a required - * field. - */ - core.String targetingTemplateId; - - Rule(); - - Rule.fromJson(core.Map _json) { - if (_json.containsKey("assetId")) { - assetId = _json["assetId"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("targetingTemplateId")) { - targetingTemplateId = _json["targetingTemplateId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (assetId != null) { - _json["assetId"] = assetId; - } - if (name != null) { - _json["name"] = name; - } - if (targetingTemplateId != null) { - _json["targetingTemplateId"] = targetingTemplateId; - } - return _json; - } -} - -/** Contains properties of a site. */ -class Site { - /** - * Account ID of this site. This is a read-only field that can be left blank. - */ - core.String accountId; - /** Whether this site is approved. */ - core.bool approved; - /** - * Directory site associated with this site. This is a required field that is - * read-only after insertion. - */ - core.String directorySiteId; - /** - * Dimension value for the ID of the directory site. This is a read-only, - * auto-generated field. - */ - DimensionValue directorySiteIdDimensionValue; - /** ID of this site. This is a read-only, auto-generated field. */ - core.String id; - /** - * Dimension value for the ID of this site. This is a read-only, - * auto-generated field. - */ - DimensionValue idDimensionValue; - /** Key name of this site. This is a read-only, auto-generated field. */ - core.String keyName; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#site". - */ - core.String kind; - /** - * Name of this site.This is a required field. Must be less than 128 - * characters long. If this site is under a subaccount, the name must be - * unique among sites of the same subaccount. Otherwise, this site is a - * top-level site, and the name must be unique among top-level sites of the - * same account. - */ - core.String name; - /** Site contacts. */ - core.List<SiteContact> siteContacts; - /** Site-wide settings. */ - SiteSettings siteSettings; - /** - * Subaccount ID of this site. This is a read-only field that can be left - * blank. - */ - core.String subaccountId; - - Site(); - - Site.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("approved")) { - approved = _json["approved"]; - } - if (_json.containsKey("directorySiteId")) { - directorySiteId = _json["directorySiteId"]; - } - if (_json.containsKey("directorySiteIdDimensionValue")) { - directorySiteIdDimensionValue = new DimensionValue.fromJson(_json["directorySiteIdDimensionValue"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("keyName")) { - keyName = _json["keyName"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("siteContacts")) { - siteContacts = _json["siteContacts"].map((value) => new SiteContact.fromJson(value)).toList(); - } - if (_json.containsKey("siteSettings")) { - siteSettings = new SiteSettings.fromJson(_json["siteSettings"]); - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (approved != null) { - _json["approved"] = approved; - } - if (directorySiteId != null) { - _json["directorySiteId"] = directorySiteId; - } - if (directorySiteIdDimensionValue != null) { - _json["directorySiteIdDimensionValue"] = (directorySiteIdDimensionValue).toJson(); - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (keyName != null) { - _json["keyName"] = keyName; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (siteContacts != null) { - _json["siteContacts"] = siteContacts.map((value) => (value).toJson()).toList(); - } - if (siteSettings != null) { - _json["siteSettings"] = (siteSettings).toJson(); - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - return _json; - } -} - -/** Site Contact */ -class SiteContact { - /** Address of this site contact. */ - core.String address; - /** - * Site contact type. - * Possible string values are: - * - "SALES_PERSON" - * - "TRAFFICKER" - */ - core.String contactType; - /** Email address of this site contact. This is a required field. */ - core.String email; - /** First name of this site contact. */ - core.String firstName; - /** ID of this site contact. This is a read-only, auto-generated field. */ - core.String id; - /** Last name of this site contact. */ - core.String lastName; - /** Primary phone number of this site contact. */ - core.String phone; - /** Title or designation of this site contact. */ - core.String title; - - SiteContact(); - - SiteContact.fromJson(core.Map _json) { - if (_json.containsKey("address")) { - address = _json["address"]; - } - if (_json.containsKey("contactType")) { - contactType = _json["contactType"]; - } - if (_json.containsKey("email")) { - email = _json["email"]; - } - if (_json.containsKey("firstName")) { - firstName = _json["firstName"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("lastName")) { - lastName = _json["lastName"]; - } - if (_json.containsKey("phone")) { - phone = _json["phone"]; - } - if (_json.containsKey("title")) { - title = _json["title"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (address != null) { - _json["address"] = address; - } - if (contactType != null) { - _json["contactType"] = contactType; - } - if (email != null) { - _json["email"] = email; - } - if (firstName != null) { - _json["firstName"] = firstName; - } - if (id != null) { - _json["id"] = id; - } - if (lastName != null) { - _json["lastName"] = lastName; - } - if (phone != null) { - _json["phone"] = phone; - } - if (title != null) { - _json["title"] = title; - } - return _json; - } -} - -/** Site Settings */ -class SiteSettings { - /** Whether active view creatives are disabled for this site. */ - core.bool activeViewOptOut; - /** Site-wide creative settings. */ - CreativeSettings creativeSettings; - /** Whether brand safe ads are disabled for this site. */ - core.bool disableBrandSafeAds; - /** Whether new cookies are disabled for this site. */ - core.bool disableNewCookie; - /** Lookback window settings for this site. */ - LookbackConfiguration lookbackConfiguration; - /** Configuration settings for dynamic and image floodlight tags. */ - TagSetting tagSetting; - /** - * Whether Verification and ActiveView for in-stream video creatives are - * disabled by default for new placements created under this site. This value - * will be used to populate the placement.videoActiveViewOptOut field, when no - * value is specified for the new placement. - */ - core.bool videoActiveViewOptOutTemplate; - /** - * Default VPAID adapter setting for new placements created under this site. - * This value will be used to populate the placements.vpaidAdapterChoice - * field, when no value is specified for the new placement. Controls which - * VPAID format the measurement adapter will use for in-stream video creatives - * assigned to the placement. The publisher's specifications will typically - * determine this setting. For VPAID creatives, the adapter format will match - * the VPAID format (HTML5 VPAID creatives use the HTML5 adapter, and Flash - * VPAID creatives use the Flash adapter). - * Possible string values are: - * - "BOTH" - * - "DEFAULT" - * - "FLASH" - * - "HTML5" - */ - core.String vpaidAdapterChoiceTemplate; - - SiteSettings(); - - SiteSettings.fromJson(core.Map _json) { - if (_json.containsKey("activeViewOptOut")) { - activeViewOptOut = _json["activeViewOptOut"]; - } - if (_json.containsKey("creativeSettings")) { - creativeSettings = new CreativeSettings.fromJson(_json["creativeSettings"]); - } - if (_json.containsKey("disableBrandSafeAds")) { - disableBrandSafeAds = _json["disableBrandSafeAds"]; - } - if (_json.containsKey("disableNewCookie")) { - disableNewCookie = _json["disableNewCookie"]; - } - if (_json.containsKey("lookbackConfiguration")) { - lookbackConfiguration = new LookbackConfiguration.fromJson(_json["lookbackConfiguration"]); - } - if (_json.containsKey("tagSetting")) { - tagSetting = new TagSetting.fromJson(_json["tagSetting"]); - } - if (_json.containsKey("videoActiveViewOptOutTemplate")) { - videoActiveViewOptOutTemplate = _json["videoActiveViewOptOutTemplate"]; - } - if (_json.containsKey("vpaidAdapterChoiceTemplate")) { - vpaidAdapterChoiceTemplate = _json["vpaidAdapterChoiceTemplate"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (activeViewOptOut != null) { - _json["activeViewOptOut"] = activeViewOptOut; - } - if (creativeSettings != null) { - _json["creativeSettings"] = (creativeSettings).toJson(); - } - if (disableBrandSafeAds != null) { - _json["disableBrandSafeAds"] = disableBrandSafeAds; - } - if (disableNewCookie != null) { - _json["disableNewCookie"] = disableNewCookie; - } - if (lookbackConfiguration != null) { - _json["lookbackConfiguration"] = (lookbackConfiguration).toJson(); - } - if (tagSetting != null) { - _json["tagSetting"] = (tagSetting).toJson(); - } - if (videoActiveViewOptOutTemplate != null) { - _json["videoActiveViewOptOutTemplate"] = videoActiveViewOptOutTemplate; - } - if (vpaidAdapterChoiceTemplate != null) { - _json["vpaidAdapterChoiceTemplate"] = vpaidAdapterChoiceTemplate; - } - return _json; - } -} - -/** Site List Response */ -class SitesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#sitesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Site collection. */ - core.List<Site> sites; - - SitesListResponse(); - - SitesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("sites")) { - sites = _json["sites"].map((value) => new Site.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (sites != null) { - _json["sites"] = sites.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** - * Represents the dimensions of ads, placements, creatives, or creative assets. - */ -class Size { - /** Height of this size. Acceptable values are 0 to 32767, inclusive. */ - core.int height; - /** IAB standard size. This is a read-only, auto-generated field. */ - core.bool iab; - /** ID of this size. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#size". - */ - core.String kind; - /** Width of this size. Acceptable values are 0 to 32767, inclusive. */ - core.int width; - - Size(); - - Size.fromJson(core.Map _json) { - if (_json.containsKey("height")) { - height = _json["height"]; - } - if (_json.containsKey("iab")) { - iab = _json["iab"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("width")) { - width = _json["width"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (height != null) { - _json["height"] = height; - } - if (iab != null) { - _json["iab"] = iab; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (width != null) { - _json["width"] = width; - } - return _json; - } -} - -/** Size List Response */ -class SizesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#sizesListResponse". - */ - core.String kind; - /** Size collection. */ - core.List<Size> sizes; - - SizesListResponse(); - - SizesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("sizes")) { - sizes = _json["sizes"].map((value) => new Size.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (sizes != null) { - _json["sizes"] = sizes.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Skippable Settings */ -class SkippableSetting { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#skippableSetting". - */ - core.String kind; - /** - * Amount of time to play videos served to this placement before counting a - * view. Applicable when skippable is true. - */ - VideoOffset progressOffset; - /** - * Amount of time to play videos served to this placement before the skip - * button should appear. Applicable when skippable is true. - */ - VideoOffset skipOffset; - /** Whether the user can skip creatives served to this placement. */ - core.bool skippable; - - SkippableSetting(); - - SkippableSetting.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("progressOffset")) { - progressOffset = new VideoOffset.fromJson(_json["progressOffset"]); - } - if (_json.containsKey("skipOffset")) { - skipOffset = new VideoOffset.fromJson(_json["skipOffset"]); - } - if (_json.containsKey("skippable")) { - skippable = _json["skippable"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (progressOffset != null) { - _json["progressOffset"] = (progressOffset).toJson(); - } - if (skipOffset != null) { - _json["skipOffset"] = (skipOffset).toJson(); - } - if (skippable != null) { - _json["skippable"] = skippable; - } - return _json; - } -} - -/** Represents a sorted dimension. */ -class SortedDimension { - /** - * The kind of resource this is, in this case dfareporting#sortedDimension. - */ - core.String kind; - /** The name of the dimension. */ - core.String name; - /** - * An optional sort order for the dimension column. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - */ - core.String sortOrder; - - SortedDimension(); - - SortedDimension.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("sortOrder")) { - sortOrder = _json["sortOrder"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (sortOrder != null) { - _json["sortOrder"] = sortOrder; - } - return _json; - } -} - -/** Contains properties of a DCM subaccount. */ -class Subaccount { - /** - * ID of the account that contains this subaccount. This is a read-only field - * that can be left blank. - */ - core.String accountId; - /** IDs of the available user role permissions for this subaccount. */ - core.List<core.String> availablePermissionIds; - /** ID of this subaccount. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#subaccount". - */ - core.String kind; - /** - * Name of this subaccount. This is a required field. Must be less than 128 - * characters long and be unique among subaccounts of the same account. - */ - core.String name; - - Subaccount(); - - Subaccount.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("availablePermissionIds")) { - availablePermissionIds = _json["availablePermissionIds"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (availablePermissionIds != null) { - _json["availablePermissionIds"] = availablePermissionIds; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Subaccount List Response */ -class SubaccountsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#subaccountsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Subaccount collection. */ - core.List<Subaccount> subaccounts; - - SubaccountsListResponse(); - - SubaccountsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("subaccounts")) { - subaccounts = _json["subaccounts"].map((value) => new Subaccount.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (subaccounts != null) { - _json["subaccounts"] = subaccounts.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Placement Tag Data */ -class TagData { - /** - * Ad associated with this placement tag. Applicable only when format is - * PLACEMENT_TAG_TRACKING. - */ - core.String adId; - /** Tag string to record a click. */ - core.String clickTag; - /** - * Creative associated with this placement tag. Applicable only when format is - * PLACEMENT_TAG_TRACKING. - */ - core.String creativeId; - /** - * TagData tag format of this tag. - * Possible string values are: - * - "PLACEMENT_TAG_CLICK_COMMANDS" - * - "PLACEMENT_TAG_IFRAME_ILAYER" - * - "PLACEMENT_TAG_IFRAME_JAVASCRIPT" - * - "PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY" - * - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH" - * - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3" - * - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4" - * - "PLACEMENT_TAG_INTERNAL_REDIRECT" - * - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT" - * - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT_LEGACY" - * - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT" - * - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT" - * - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT_LEGACY" - * - "PLACEMENT_TAG_JAVASCRIPT" - * - "PLACEMENT_TAG_JAVASCRIPT_LEGACY" - * - "PLACEMENT_TAG_STANDARD" - * - "PLACEMENT_TAG_TRACKING" - * - "PLACEMENT_TAG_TRACKING_IFRAME" - * - "PLACEMENT_TAG_TRACKING_JAVASCRIPT" - */ - core.String format; - /** Tag string for serving an ad. */ - core.String impressionTag; - - TagData(); - - TagData.fromJson(core.Map _json) { - if (_json.containsKey("adId")) { - adId = _json["adId"]; - } - if (_json.containsKey("clickTag")) { - clickTag = _json["clickTag"]; - } - if (_json.containsKey("creativeId")) { - creativeId = _json["creativeId"]; - } - if (_json.containsKey("format")) { - format = _json["format"]; - } - if (_json.containsKey("impressionTag")) { - impressionTag = _json["impressionTag"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (adId != null) { - _json["adId"] = adId; - } - if (clickTag != null) { - _json["clickTag"] = clickTag; - } - if (creativeId != null) { - _json["creativeId"] = creativeId; - } - if (format != null) { - _json["format"] = format; - } - if (impressionTag != null) { - _json["impressionTag"] = impressionTag; - } - return _json; - } -} - -/** Tag Settings */ -class TagSetting { - /** - * Additional key-values to be included in tags. Each key-value pair must be - * of the form key=value, and pairs must be separated by a semicolon (;). Keys - * and values must not contain commas. For example, id=2;color=red is a valid - * value for this field. - */ - core.String additionalKeyValues; - /** - * Whether static landing page URLs should be included in the tags. This - * setting applies only to placements. - */ - core.bool includeClickThroughUrls; - /** Whether click-tracking string should be included in the tags. */ - core.bool includeClickTracking; - /** - * Option specifying how keywords are embedded in ad tags. This setting can be - * used to specify whether keyword placeholders are inserted in placement tags - * for this site. Publishers can then add keywords to those placeholders. - * Possible string values are: - * - "GENERATE_SEPARATE_TAG_FOR_EACH_KEYWORD" - * - "IGNORE" - * - "PLACEHOLDER_WITH_LIST_OF_KEYWORDS" - */ - core.String keywordOption; - - TagSetting(); - - TagSetting.fromJson(core.Map _json) { - if (_json.containsKey("additionalKeyValues")) { - additionalKeyValues = _json["additionalKeyValues"]; - } - if (_json.containsKey("includeClickThroughUrls")) { - includeClickThroughUrls = _json["includeClickThroughUrls"]; - } - if (_json.containsKey("includeClickTracking")) { - includeClickTracking = _json["includeClickTracking"]; - } - if (_json.containsKey("keywordOption")) { - keywordOption = _json["keywordOption"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (additionalKeyValues != null) { - _json["additionalKeyValues"] = additionalKeyValues; - } - if (includeClickThroughUrls != null) { - _json["includeClickThroughUrls"] = includeClickThroughUrls; - } - if (includeClickTracking != null) { - _json["includeClickTracking"] = includeClickTracking; - } - if (keywordOption != null) { - _json["keywordOption"] = keywordOption; - } - return _json; - } -} - -/** Dynamic and Image Tag Settings. */ -class TagSettings { - /** Whether dynamic floodlight tags are enabled. */ - core.bool dynamicTagEnabled; - /** Whether image tags are enabled. */ - core.bool imageTagEnabled; - - TagSettings(); - - TagSettings.fromJson(core.Map _json) { - if (_json.containsKey("dynamicTagEnabled")) { - dynamicTagEnabled = _json["dynamicTagEnabled"]; - } - if (_json.containsKey("imageTagEnabled")) { - imageTagEnabled = _json["imageTagEnabled"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dynamicTagEnabled != null) { - _json["dynamicTagEnabled"] = dynamicTagEnabled; - } - if (imageTagEnabled != null) { - _json["imageTagEnabled"] = imageTagEnabled; - } - return _json; - } -} - -/** Target Window. */ -class TargetWindow { - /** User-entered value. */ - core.String customHtml; - /** - * Type of browser window for which the backup image of the flash creative can - * be displayed. - * Possible string values are: - * - "CURRENT_WINDOW" - * - "CUSTOM" - * - "NEW_WINDOW" - */ - core.String targetWindowOption; - - TargetWindow(); - - TargetWindow.fromJson(core.Map _json) { - if (_json.containsKey("customHtml")) { - customHtml = _json["customHtml"]; - } - if (_json.containsKey("targetWindowOption")) { - targetWindowOption = _json["targetWindowOption"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (customHtml != null) { - _json["customHtml"] = customHtml; - } - if (targetWindowOption != null) { - _json["targetWindowOption"] = targetWindowOption; - } - return _json; - } -} - -/** - * Contains properties of a targetable remarketing list. Remarketing enables you - * to create lists of users who have performed specific actions on a site, then - * target ads to members of those lists. This resource is a read-only view of a - * remarketing list to be used to faciliate targeting ads to specific lists. - * Remarketing lists that are owned by your advertisers and those that are - * shared to your advertisers or account are accessible via this resource. To - * manage remarketing lists that are owned by your advertisers, use the - * RemarketingLists resource. - */ -class TargetableRemarketingList { - /** - * Account ID of this remarketing list. This is a read-only, auto-generated - * field that is only returned in GET requests. - */ - core.String accountId; - /** Whether this targetable remarketing list is active. */ - core.bool active; - /** - * Dimension value for the advertiser ID that owns this targetable remarketing - * list. - */ - core.String advertiserId; - /** Dimension value for the ID of the advertiser. */ - DimensionValue advertiserIdDimensionValue; - /** Targetable remarketing list description. */ - core.String description; - /** Targetable remarketing list ID. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#targetableRemarketingList". - */ - core.String kind; - /** - * Number of days that a user should remain in the targetable remarketing list - * without an impression. - */ - core.String lifeSpan; - /** Number of users currently in the list. This is a read-only field. */ - core.String listSize; - /** - * Product from which this targetable remarketing list was originated. - * Possible string values are: - * - "REMARKETING_LIST_SOURCE_ADX" - * - "REMARKETING_LIST_SOURCE_DBM" - * - "REMARKETING_LIST_SOURCE_DFA" - * - "REMARKETING_LIST_SOURCE_DFP" - * - "REMARKETING_LIST_SOURCE_DMP" - * - "REMARKETING_LIST_SOURCE_GA" - * - "REMARKETING_LIST_SOURCE_GPLUS" - * - "REMARKETING_LIST_SOURCE_OTHER" - * - "REMARKETING_LIST_SOURCE_PLAY_STORE" - * - "REMARKETING_LIST_SOURCE_XFP" - * - "REMARKETING_LIST_SOURCE_YOUTUBE" - */ - core.String listSource; - /** - * Name of the targetable remarketing list. Is no greater than 128 characters - * long. - */ - core.String name; - /** - * Subaccount ID of this remarketing list. This is a read-only, auto-generated - * field that is only returned in GET requests. - */ - core.String subaccountId; - - TargetableRemarketingList(); - - TargetableRemarketingList.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("description")) { - description = _json["description"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lifeSpan")) { - lifeSpan = _json["lifeSpan"]; - } - if (_json.containsKey("listSize")) { - listSize = _json["listSize"]; - } - if (_json.containsKey("listSource")) { - listSource = _json["listSource"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (active != null) { - _json["active"] = active; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (description != null) { - _json["description"] = description; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lifeSpan != null) { - _json["lifeSpan"] = lifeSpan; - } - if (listSize != null) { - _json["listSize"] = listSize; - } - if (listSource != null) { - _json["listSource"] = listSource; - } - if (name != null) { - _json["name"] = name; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - return _json; - } -} - -/** Targetable remarketing list response */ -class TargetableRemarketingListsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#targetableRemarketingListsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Targetable remarketing list collection. */ - core.List<TargetableRemarketingList> targetableRemarketingLists; - - TargetableRemarketingListsListResponse(); - - TargetableRemarketingListsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("targetableRemarketingLists")) { - targetableRemarketingLists = _json["targetableRemarketingLists"].map((value) => new TargetableRemarketingList.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (targetableRemarketingLists != null) { - _json["targetableRemarketingLists"] = targetableRemarketingLists.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** - * Contains properties of a targeting template. A targeting template - * encapsulates targeting information which can be reused across multiple ads. - */ -class TargetingTemplate { - /** - * Account ID of this targeting template. This field, if left unset, will be - * auto-generated on insert and is read-only after insert. - */ - core.String accountId; - /** - * Advertiser ID of this targeting template. This is a required field on - * insert and is read-only after insert. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** Time and day targeting criteria. */ - DayPartTargeting dayPartTargeting; - /** Geographical targeting criteria. */ - GeoTargeting geoTargeting; - /** - * ID of this targeting template. This is a read-only, auto-generated field. - */ - core.String id; - /** Key-value targeting criteria. */ - KeyValueTargetingExpression keyValueTargetingExpression; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#targetingTemplate". - */ - core.String kind; - /** Language targeting criteria. */ - LanguageTargeting languageTargeting; - /** Remarketing list targeting criteria. */ - ListTargetingExpression listTargetingExpression; - /** - * Name of this targeting template. This field is required. It must be less - * than 256 characters long and unique within an advertiser. - */ - core.String name; - /** - * Subaccount ID of this targeting template. This field, if left unset, will - * be auto-generated on insert and is read-only after insert. - */ - core.String subaccountId; - /** Technology platform targeting criteria. */ - TechnologyTargeting technologyTargeting; - - TargetingTemplate(); - - TargetingTemplate.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("dayPartTargeting")) { - dayPartTargeting = new DayPartTargeting.fromJson(_json["dayPartTargeting"]); - } - if (_json.containsKey("geoTargeting")) { - geoTargeting = new GeoTargeting.fromJson(_json["geoTargeting"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("keyValueTargetingExpression")) { - keyValueTargetingExpression = new KeyValueTargetingExpression.fromJson(_json["keyValueTargetingExpression"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("languageTargeting")) { - languageTargeting = new LanguageTargeting.fromJson(_json["languageTargeting"]); - } - if (_json.containsKey("listTargetingExpression")) { - listTargetingExpression = new ListTargetingExpression.fromJson(_json["listTargetingExpression"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("technologyTargeting")) { - technologyTargeting = new TechnologyTargeting.fromJson(_json["technologyTargeting"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (dayPartTargeting != null) { - _json["dayPartTargeting"] = (dayPartTargeting).toJson(); - } - if (geoTargeting != null) { - _json["geoTargeting"] = (geoTargeting).toJson(); - } - if (id != null) { - _json["id"] = id; - } - if (keyValueTargetingExpression != null) { - _json["keyValueTargetingExpression"] = (keyValueTargetingExpression).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (languageTargeting != null) { - _json["languageTargeting"] = (languageTargeting).toJson(); - } - if (listTargetingExpression != null) { - _json["listTargetingExpression"] = (listTargetingExpression).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (technologyTargeting != null) { - _json["technologyTargeting"] = (technologyTargeting).toJson(); - } - return _json; - } -} - -/** Targeting Template List Response */ -class TargetingTemplatesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#targetingTemplatesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Targeting template collection. */ - core.List<TargetingTemplate> targetingTemplates; - - TargetingTemplatesListResponse(); - - TargetingTemplatesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("targetingTemplates")) { - targetingTemplates = _json["targetingTemplates"].map((value) => new TargetingTemplate.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (targetingTemplates != null) { - _json["targetingTemplates"] = targetingTemplates.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Technology Targeting. */ -class TechnologyTargeting { - /** - * Browsers that this ad targets. For each browser either set browserVersionId - * or dartId along with the version numbers. If both are specified, only - * browserVersionId will be used. The other fields are populated automatically - * when the ad is inserted or updated. - */ - core.List<Browser> browsers; - /** - * Connection types that this ad targets. For each connection type only id is - * required. The other fields are populated automatically when the ad is - * inserted or updated. - */ - core.List<ConnectionType> connectionTypes; - /** - * Mobile carriers that this ad targets. For each mobile carrier only id is - * required, and the other fields are populated automatically when the ad is - * inserted or updated. If targeting a mobile carrier, do not set targeting - * for any zip codes. - */ - core.List<MobileCarrier> mobileCarriers; - /** - * Operating system versions that this ad targets. To target all versions, use - * operatingSystems. For each operating system version, only id is required. - * The other fields are populated automatically when the ad is inserted or - * updated. If targeting an operating system version, do not set targeting for - * the corresponding operating system in operatingSystems. - */ - core.List<OperatingSystemVersion> operatingSystemVersions; - /** - * Operating systems that this ad targets. To target specific versions, use - * operatingSystemVersions. For each operating system only dartId is required. - * The other fields are populated automatically when the ad is inserted or - * updated. If targeting an operating system, do not set targeting for - * operating system versions for the same operating system. - */ - core.List<OperatingSystem> operatingSystems; - /** - * Platform types that this ad targets. For example, desktop, mobile, or - * tablet. For each platform type, only id is required, and the other fields - * are populated automatically when the ad is inserted or updated. - */ - core.List<PlatformType> platformTypes; - - TechnologyTargeting(); - - TechnologyTargeting.fromJson(core.Map _json) { - if (_json.containsKey("browsers")) { - browsers = _json["browsers"].map((value) => new Browser.fromJson(value)).toList(); - } - if (_json.containsKey("connectionTypes")) { - connectionTypes = _json["connectionTypes"].map((value) => new ConnectionType.fromJson(value)).toList(); - } - if (_json.containsKey("mobileCarriers")) { - mobileCarriers = _json["mobileCarriers"].map((value) => new MobileCarrier.fromJson(value)).toList(); - } - if (_json.containsKey("operatingSystemVersions")) { - operatingSystemVersions = _json["operatingSystemVersions"].map((value) => new OperatingSystemVersion.fromJson(value)).toList(); - } - if (_json.containsKey("operatingSystems")) { - operatingSystems = _json["operatingSystems"].map((value) => new OperatingSystem.fromJson(value)).toList(); - } - if (_json.containsKey("platformTypes")) { - platformTypes = _json["platformTypes"].map((value) => new PlatformType.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (browsers != null) { - _json["browsers"] = browsers.map((value) => (value).toJson()).toList(); - } - if (connectionTypes != null) { - _json["connectionTypes"] = connectionTypes.map((value) => (value).toJson()).toList(); - } - if (mobileCarriers != null) { - _json["mobileCarriers"] = mobileCarriers.map((value) => (value).toJson()).toList(); - } - if (operatingSystemVersions != null) { - _json["operatingSystemVersions"] = operatingSystemVersions.map((value) => (value).toJson()).toList(); - } - if (operatingSystems != null) { - _json["operatingSystems"] = operatingSystems.map((value) => (value).toJson()).toList(); - } - if (platformTypes != null) { - _json["platformTypes"] = platformTypes.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Third Party Authentication Token */ -class ThirdPartyAuthenticationToken { - /** Name of the third-party authentication token. */ - core.String name; - /** - * Value of the third-party authentication token. This is a read-only, - * auto-generated field. - */ - core.String value; - - ThirdPartyAuthenticationToken(); - - ThirdPartyAuthenticationToken.fromJson(core.Map _json) { - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (name != null) { - _json["name"] = name; - } - if (value != null) { - _json["value"] = value; - } - return _json; - } -} - -/** Third-party Tracking URL. */ -class ThirdPartyTrackingUrl { - /** - * Third-party URL type for in-stream video creatives. - * Possible string values are: - * - "CLICK_TRACKING" - * - "IMPRESSION" - * - "RICH_MEDIA_BACKUP_IMPRESSION" - * - "RICH_MEDIA_IMPRESSION" - * - "RICH_MEDIA_RM_IMPRESSION" - * - "SURVEY" - * - "VIDEO_COMPLETE" - * - "VIDEO_CUSTOM" - * - "VIDEO_FIRST_QUARTILE" - * - "VIDEO_FULLSCREEN" - * - "VIDEO_MIDPOINT" - * - "VIDEO_MUTE" - * - "VIDEO_PAUSE" - * - "VIDEO_PROGRESS" - * - "VIDEO_REWIND" - * - "VIDEO_SKIP" - * - "VIDEO_START" - * - "VIDEO_STOP" - * - "VIDEO_THIRD_QUARTILE" - */ - core.String thirdPartyUrlType; - /** URL for the specified third-party URL type. */ - core.String url; - - ThirdPartyTrackingUrl(); - - ThirdPartyTrackingUrl.fromJson(core.Map _json) { - if (_json.containsKey("thirdPartyUrlType")) { - thirdPartyUrlType = _json["thirdPartyUrlType"]; - } - if (_json.containsKey("url")) { - url = _json["url"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (thirdPartyUrlType != null) { - _json["thirdPartyUrlType"] = thirdPartyUrlType; - } - if (url != null) { - _json["url"] = url; - } - return _json; - } -} - -/** Transcode Settings */ -class TranscodeSetting { - /** - * Whitelist of video formats to be served to this placement. Set this list to - * null or empty to serve all video formats. - */ - core.List<core.int> enabledVideoFormats; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#transcodeSetting". - */ - core.String kind; - - TranscodeSetting(); - - TranscodeSetting.fromJson(core.Map _json) { - if (_json.containsKey("enabledVideoFormats")) { - enabledVideoFormats = _json["enabledVideoFormats"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (enabledVideoFormats != null) { - _json["enabledVideoFormats"] = enabledVideoFormats; - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** User Defined Variable configuration. */ -class UserDefinedVariableConfiguration { - /** - * Data type for the variable. This is a required field. - * Possible string values are: - * - "NUMBER" - * - "STRING" - */ - core.String dataType; - /** - * User-friendly name for the variable which will appear in reports. This is a - * required field, must be less than 64 characters long, and cannot contain - * the following characters: ""<>". - */ - core.String reportName; - /** - * Variable name in the tag. This is a required field. - * Possible string values are: - * - "U1" - * - "U10" - * - "U100" - * - "U11" - * - "U12" - * - "U13" - * - "U14" - * - "U15" - * - "U16" - * - "U17" - * - "U18" - * - "U19" - * - "U2" - * - "U20" - * - "U21" - * - "U22" - * - "U23" - * - "U24" - * - "U25" - * - "U26" - * - "U27" - * - "U28" - * - "U29" - * - "U3" - * - "U30" - * - "U31" - * - "U32" - * - "U33" - * - "U34" - * - "U35" - * - "U36" - * - "U37" - * - "U38" - * - "U39" - * - "U4" - * - "U40" - * - "U41" - * - "U42" - * - "U43" - * - "U44" - * - "U45" - * - "U46" - * - "U47" - * - "U48" - * - "U49" - * - "U5" - * - "U50" - * - "U51" - * - "U52" - * - "U53" - * - "U54" - * - "U55" - * - "U56" - * - "U57" - * - "U58" - * - "U59" - * - "U6" - * - "U60" - * - "U61" - * - "U62" - * - "U63" - * - "U64" - * - "U65" - * - "U66" - * - "U67" - * - "U68" - * - "U69" - * - "U7" - * - "U70" - * - "U71" - * - "U72" - * - "U73" - * - "U74" - * - "U75" - * - "U76" - * - "U77" - * - "U78" - * - "U79" - * - "U8" - * - "U80" - * - "U81" - * - "U82" - * - "U83" - * - "U84" - * - "U85" - * - "U86" - * - "U87" - * - "U88" - * - "U89" - * - "U9" - * - "U90" - * - "U91" - * - "U92" - * - "U93" - * - "U94" - * - "U95" - * - "U96" - * - "U97" - * - "U98" - * - "U99" - */ - core.String variableType; - - UserDefinedVariableConfiguration(); - - UserDefinedVariableConfiguration.fromJson(core.Map _json) { - if (_json.containsKey("dataType")) { - dataType = _json["dataType"]; - } - if (_json.containsKey("reportName")) { - reportName = _json["reportName"]; - } - if (_json.containsKey("variableType")) { - variableType = _json["variableType"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dataType != null) { - _json["dataType"] = dataType; - } - if (reportName != null) { - _json["reportName"] = reportName; - } - if (variableType != null) { - _json["variableType"] = variableType; - } - return _json; - } -} - -/** Represents a UserProfile resource. */ -class UserProfile { - /** The account ID to which this profile belongs. */ - core.String accountId; - /** The account name this profile belongs to. */ - core.String accountName; - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The kind of resource this is, in this case dfareporting#userProfile. */ - core.String kind; - /** The unique ID of the user profile. */ - core.String profileId; - /** The sub account ID this profile belongs to if applicable. */ - core.String subAccountId; - /** The sub account name this profile belongs to if applicable. */ - core.String subAccountName; - /** The user name. */ - core.String userName; - - UserProfile(); - - UserProfile.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("accountName")) { - accountName = _json["accountName"]; - } - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("profileId")) { - profileId = _json["profileId"]; - } - if (_json.containsKey("subAccountId")) { - subAccountId = _json["subAccountId"]; - } - if (_json.containsKey("subAccountName")) { - subAccountName = _json["subAccountName"]; - } - if (_json.containsKey("userName")) { - userName = _json["userName"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (accountName != null) { - _json["accountName"] = accountName; - } - if (etag != null) { - _json["etag"] = etag; - } - if (kind != null) { - _json["kind"] = kind; - } - if (profileId != null) { - _json["profileId"] = profileId; - } - if (subAccountId != null) { - _json["subAccountId"] = subAccountId; - } - if (subAccountName != null) { - _json["subAccountName"] = subAccountName; - } - if (userName != null) { - _json["userName"] = userName; - } - return _json; - } -} - -/** Represents the list of user profiles. */ -class UserProfileList { - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The user profiles returned in this response. */ - core.List<UserProfile> items; - /** The kind of list this is, in this case dfareporting#userProfileList. */ - core.String kind; - - UserProfileList(); - - UserProfileList.fromJson(core.Map _json) { - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("items")) { - items = _json["items"].map((value) => new UserProfile.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (etag != null) { - _json["etag"] = etag; - } - if (items != null) { - _json["items"] = items.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Contains properties of auser role, which is used to manage user access. */ -class UserRole { - /** - * Account ID of this user role. This is a read-only field that can be left - * blank. - */ - core.String accountId; - /** - * Whether this is a default user role. Default user roles are created by the - * system for the account/subaccount and cannot be modified or deleted. Each - * default user role comes with a basic set of preassigned permissions. - */ - core.bool defaultUserRole; - /** ID of this user role. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#userRole". - */ - core.String kind; - /** - * Name of this user role. This is a required field. Must be less than 256 - * characters long. If this user role is under a subaccount, the name must be - * unique among sites of the same subaccount. Otherwise, this user role is a - * top-level user role, and the name must be unique among top-level user roles - * of the same account. - */ - core.String name; - /** - * ID of the user role that this user role is based on or copied from. This is - * a required field. - */ - core.String parentUserRoleId; - /** List of permissions associated with this user role. */ - core.List<UserRolePermission> permissions; - /** - * Subaccount ID of this user role. This is a read-only field that can be left - * blank. - */ - core.String subaccountId; - - UserRole(); - - UserRole.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("defaultUserRole")) { - defaultUserRole = _json["defaultUserRole"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("parentUserRoleId")) { - parentUserRoleId = _json["parentUserRoleId"]; - } - if (_json.containsKey("permissions")) { - permissions = _json["permissions"].map((value) => new UserRolePermission.fromJson(value)).toList(); - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (defaultUserRole != null) { - _json["defaultUserRole"] = defaultUserRole; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (parentUserRoleId != null) { - _json["parentUserRoleId"] = parentUserRoleId; - } - if (permissions != null) { - _json["permissions"] = permissions.map((value) => (value).toJson()).toList(); - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - return _json; - } -} - -/** Contains properties of a user role permission. */ -class UserRolePermission { - /** - * Levels of availability for a user role permission. - * Possible string values are: - * - "ACCOUNT_ALWAYS" - * - "ACCOUNT_BY_DEFAULT" - * - "NOT_AVAILABLE_BY_DEFAULT" - * - "SUBACCOUNT_AND_ACCOUNT_ALWAYS" - * - "SUBACCOUNT_AND_ACCOUNT_BY_DEFAULT" - */ - core.String availability; - /** ID of this user role permission. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#userRolePermission". - */ - core.String kind; - /** Name of this user role permission. */ - core.String name; - /** ID of the permission group that this user role permission belongs to. */ - core.String permissionGroupId; - - UserRolePermission(); - - UserRolePermission.fromJson(core.Map _json) { - if (_json.containsKey("availability")) { - availability = _json["availability"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("permissionGroupId")) { - permissionGroupId = _json["permissionGroupId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (availability != null) { - _json["availability"] = availability; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (permissionGroupId != null) { - _json["permissionGroupId"] = permissionGroupId; - } - return _json; - } -} - -/** Represents a grouping of related user role permissions. */ -class UserRolePermissionGroup { - /** ID of this user role permission. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#userRolePermissionGroup". - */ - core.String kind; - /** Name of this user role permission group. */ - core.String name; - - UserRolePermissionGroup(); - - UserRolePermissionGroup.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** User Role Permission Group List Response */ -class UserRolePermissionGroupsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#userRolePermissionGroupsListResponse". - */ - core.String kind; - /** User role permission group collection. */ - core.List<UserRolePermissionGroup> userRolePermissionGroups; - - UserRolePermissionGroupsListResponse(); - - UserRolePermissionGroupsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("userRolePermissionGroups")) { - userRolePermissionGroups = _json["userRolePermissionGroups"].map((value) => new UserRolePermissionGroup.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (userRolePermissionGroups != null) { - _json["userRolePermissionGroups"] = userRolePermissionGroups.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** User Role Permission List Response */ -class UserRolePermissionsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#userRolePermissionsListResponse". - */ - core.String kind; - /** User role permission collection. */ - core.List<UserRolePermission> userRolePermissions; - - UserRolePermissionsListResponse(); - - UserRolePermissionsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("userRolePermissions")) { - userRolePermissions = _json["userRolePermissions"].map((value) => new UserRolePermission.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (userRolePermissions != null) { - _json["userRolePermissions"] = userRolePermissions.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** User Role List Response */ -class UserRolesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#userRolesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** User role collection. */ - core.List<UserRole> userRoles; - - UserRolesListResponse(); - - UserRolesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("userRoles")) { - userRoles = _json["userRoles"].map((value) => new UserRole.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (userRoles != null) { - _json["userRoles"] = userRoles.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Contains information about supported video formats. */ -class VideoFormat { - /** - * File type of the video format. - * Possible string values are: - * - "FLV" - * - "M3U8" - * - "MP4" - * - "THREEGPP" - * - "WEBM" - */ - core.String fileType; - /** ID of the video format. */ - core.int id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#videoFormat". - */ - core.String kind; - /** The resolution of this video format. */ - Size resolution; - /** The target bit rate of this video format. */ - core.int targetBitRate; - - VideoFormat(); - - VideoFormat.fromJson(core.Map _json) { - if (_json.containsKey("fileType")) { - fileType = _json["fileType"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("resolution")) { - resolution = new Size.fromJson(_json["resolution"]); - } - if (_json.containsKey("targetBitRate")) { - targetBitRate = _json["targetBitRate"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (fileType != null) { - _json["fileType"] = fileType; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (resolution != null) { - _json["resolution"] = (resolution).toJson(); - } - if (targetBitRate != null) { - _json["targetBitRate"] = targetBitRate; - } - return _json; - } -} - -/** Video Format List Response */ -class VideoFormatsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#videoFormatsListResponse". - */ - core.String kind; - /** Video format collection. */ - core.List<VideoFormat> videoFormats; - - VideoFormatsListResponse(); - - VideoFormatsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("videoFormats")) { - videoFormats = _json["videoFormats"].map((value) => new VideoFormat.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (videoFormats != null) { - _json["videoFormats"] = videoFormats.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Video Offset */ -class VideoOffset { - /** - * Duration, as a percentage of video duration. Do not set when offsetSeconds - * is set. Acceptable values are 0 to 100, inclusive. - */ - core.int offsetPercentage; - /** - * Duration, in seconds. Do not set when offsetPercentage is set. Acceptable - * values are 0 to 86399, inclusive. - */ - core.int offsetSeconds; - - VideoOffset(); - - VideoOffset.fromJson(core.Map _json) { - if (_json.containsKey("offsetPercentage")) { - offsetPercentage = _json["offsetPercentage"]; - } - if (_json.containsKey("offsetSeconds")) { - offsetSeconds = _json["offsetSeconds"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (offsetPercentage != null) { - _json["offsetPercentage"] = offsetPercentage; - } - if (offsetSeconds != null) { - _json["offsetSeconds"] = offsetSeconds; - } - return _json; - } -} - -/** Video Settings */ -class VideoSettings { - /** - * Settings for the companion creatives of video creatives served to this - * placement. - */ - CompanionSetting companionSettings; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#videoSettings". - */ - core.String kind; - /** - * Settings for the skippability of video creatives served to this placement. - * If this object is provided, the creative-level skippable settings will be - * overridden. - */ - SkippableSetting skippableSettings; - /** - * Settings for the transcodes of video creatives served to this placement. If - * this object is provided, the creative-level transcode settings will be - * overridden. - */ - TranscodeSetting transcodeSettings; - - VideoSettings(); - - VideoSettings.fromJson(core.Map _json) { - if (_json.containsKey("companionSettings")) { - companionSettings = new CompanionSetting.fromJson(_json["companionSettings"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("skippableSettings")) { - skippableSettings = new SkippableSetting.fromJson(_json["skippableSettings"]); - } - if (_json.containsKey("transcodeSettings")) { - transcodeSettings = new TranscodeSetting.fromJson(_json["transcodeSettings"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (companionSettings != null) { - _json["companionSettings"] = (companionSettings).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (skippableSettings != null) { - _json["skippableSettings"] = (skippableSettings).toJson(); - } - if (transcodeSettings != null) { - _json["transcodeSettings"] = (transcodeSettings).toJson(); - } - return _json; - } -}
diff --git a/generated/googleapis/lib/dfareporting/v2_8.dart b/generated/googleapis/lib/dfareporting/v2_8.dart index d6c46ba..18f268f 100644 --- a/generated/googleapis/lib/dfareporting/v2_8.dart +++ b/generated/googleapis/lib/dfareporting/v2_8.dart
@@ -12319,8 +12319,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountPermissionIds != null) { _json["accountPermissionIds"] = accountPermissionIds; } @@ -12429,8 +12429,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -12506,8 +12506,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountProfiles != null) { _json["accountProfiles"] = accountProfiles; } @@ -12559,8 +12559,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -12595,8 +12595,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountPermissionGroups != null) { _json["accountPermissionGroups"] = accountPermissionGroups.map((value) => (value).toJson()).toList(); } @@ -12628,8 +12628,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountPermissions != null) { _json["accountPermissions"] = accountPermissions.map((value) => (value).toJson()).toList(); } @@ -12789,8 +12789,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -12869,8 +12869,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountUserProfiles != null) { _json["accountUserProfiles"] = accountUserProfiles.map((value) => (value).toJson()).toList(); } @@ -12910,8 +12910,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accounts != null) { _json["accounts"] = accounts.map((value) => (value).toJson()).toList(); } @@ -12951,8 +12951,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filters != null) { _json["filters"] = filters.map((value) => (value).toJson()).toList(); } @@ -13283,8 +13283,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -13450,8 +13450,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clickThroughUrl != null) { _json["clickThroughUrl"] = clickThroughUrl; } @@ -13536,8 +13536,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (comment != null) { _json["comment"] = comment; } @@ -13592,8 +13592,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ads != null) { _json["ads"] = ads.map((value) => (value).toJson()).toList(); } @@ -13740,8 +13740,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -13834,8 +13834,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -13878,8 +13878,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (advertiserGroups != null) { _json["advertiserGroups"] = advertiserGroups.map((value) => (value).toJson()).toList(); } @@ -13919,8 +13919,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (advertisers != null) { _json["advertisers"] = advertisers.map((value) => (value).toJson()).toList(); } @@ -13966,8 +13966,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allocation != null) { _json["allocation"] = allocation; } @@ -14013,8 +14013,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (audienceSegments != null) { _json["audienceSegments"] = audienceSegments.map((value) => (value).toJson()).toList(); } @@ -14090,8 +14090,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (browserVersionId != null) { _json["browserVersionId"] = browserVersionId; } @@ -14135,8 +14135,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (browsers != null) { _json["browsers"] = browsers.map((value) => (value).toJson()).toList(); } @@ -14340,8 +14340,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -14453,8 +14453,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creativeId != null) { _json["creativeId"] = creativeId; } @@ -14491,8 +14491,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (campaignCreativeAssociations != null) { _json["campaignCreativeAssociations"] = campaignCreativeAssociations.map((value) => (value).toJson()).toList(); } @@ -14532,8 +14532,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (campaigns != null) { _json["campaigns"] = campaigns.map((value) => (value).toJson()).toList(); } @@ -14635,8 +14635,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -14709,8 +14709,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (changeLogs != null) { _json["changeLogs"] = changeLogs.map((value) => (value).toJson()).toList(); } @@ -14745,8 +14745,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cities != null) { _json["cities"] = cities.map((value) => (value).toJson()).toList(); } @@ -14818,8 +14818,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (countryCode != null) { _json["countryCode"] = countryCode; } @@ -14885,8 +14885,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (eventName != null) { _json["eventName"] = eventName; } @@ -14943,8 +14943,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (computedClickThroughUrl != null) { _json["computedClickThroughUrl"] = computedClickThroughUrl; } @@ -14985,8 +14985,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clickThroughUrlSuffix != null) { _json["clickThroughUrlSuffix"] = clickThroughUrlSuffix; } @@ -15015,8 +15015,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clickThroughUrl != null) { _json["clickThroughUrl"] = (clickThroughUrl).toJson(); } @@ -15061,8 +15061,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (companionsDisabled != null) { _json["companionsDisabled"] = companionsDisabled; } @@ -15134,8 +15134,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (crossDimensionReachReportCompatibleFields != null) { _json["crossDimensionReachReportCompatibleFields"] = (crossDimensionReachReportCompatibleFields).toJson(); } @@ -15188,8 +15188,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -15224,8 +15224,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (connectionTypes != null) { _json["connectionTypes"] = connectionTypes.map((value) => (value).toJson()).toList(); } @@ -15262,8 +15262,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contentCategories != null) { _json["contentCategories"] = contentCategories.map((value) => (value).toJson()).toList(); } @@ -15319,8 +15319,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -15445,8 +15445,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (childDirectedTreatment != null) { _json["childDirectedTreatment"] = childDirectedTreatment; } @@ -15526,8 +15526,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -15570,8 +15570,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (conversion != null) { _json["conversion"] = (conversion).toJson(); } @@ -15615,8 +15615,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (conversions != null) { _json["conversions"] = conversions.map((value) => (value).toJson()).toList(); } @@ -15659,8 +15659,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (hasFailures != null) { _json["hasFailures"] = hasFailures; } @@ -15703,8 +15703,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (conversions != null) { _json["conversions"] = conversions.map((value) => (value).toJson()).toList(); } @@ -15747,8 +15747,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (hasFailures != null) { _json["hasFailures"] = hasFailures; } @@ -15783,8 +15783,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (countries != null) { _json["countries"] = countries.map((value) => (value).toJson()).toList(); } @@ -15834,8 +15834,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (countryCode != null) { _json["countryCode"] = countryCode; } @@ -16490,8 +16490,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -17155,8 +17155,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (actionScript3 != null) { _json["actionScript3"] = actionScript3; } @@ -17325,8 +17325,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -17427,8 +17427,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (assetIdentifier != null) { _json["assetIdentifier"] = (assetIdentifier).toJson(); } @@ -17483,8 +17483,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (defaultAssetId != null) { _json["defaultAssetId"] = defaultAssetId; } @@ -17613,8 +17613,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (active != null) { _json["active"] = active; } @@ -17752,8 +17752,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (advertiserCustomEventId != null) { _json["advertiserCustomEventId"] = advertiserCustomEventId; } @@ -17850,8 +17850,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -17895,8 +17895,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creativeFieldId != null) { _json["creativeFieldId"] = creativeFieldId; } @@ -17938,8 +17938,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -17979,8 +17979,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creativeFieldValues != null) { _json["creativeFieldValues"] = creativeFieldValues.map((value) => (value).toJson()).toList(); } @@ -18020,8 +18020,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creativeFields != null) { _json["creativeFields"] = creativeFields.map((value) => (value).toJson()).toList(); } @@ -18107,8 +18107,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -18160,8 +18160,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creativeGroupId != null) { _json["creativeGroupId"] = creativeGroupId; } @@ -18198,8 +18198,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creativeGroups != null) { _json["creativeGroups"] = creativeGroups.map((value) => (value).toJson()).toList(); } @@ -18255,8 +18255,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -18319,8 +18319,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creativeAssignments != null) { _json["creativeAssignments"] = creativeAssignments.map((value) => (value).toJson()).toList(); } @@ -18361,8 +18361,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (iFrameFooter != null) { _json["iFrameFooter"] = iFrameFooter; } @@ -18399,8 +18399,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creatives != null) { _json["creatives"] = creatives.map((value) => (value).toJson()).toList(); } @@ -18465,8 +18465,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (breakdown != null) { _json["breakdown"] = breakdown.map((value) => (value).toJson()).toList(); } @@ -18619,8 +18619,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -18658,8 +18658,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filteredEventIds != null) { _json["filteredEventIds"] = filteredEventIds.map((value) => (value).toJson()).toList(); } @@ -18722,8 +18722,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endDate != null) { _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; } @@ -18784,8 +18784,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (daysOfWeek != null) { _json["daysOfWeek"] = daysOfWeek; } @@ -18827,8 +18827,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (defaultClickThroughEventTagId != null) { _json["defaultClickThroughEventTagId"] = defaultClickThroughEventTagId; } @@ -18899,8 +18899,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (frequencyCap != null) { _json["frequencyCap"] = (frequencyCap).toJson(); } @@ -18953,8 +18953,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dfpNetworkCode != null) { _json["dfpNetworkCode"] = dfpNetworkCode; } @@ -18992,8 +18992,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -19029,8 +19029,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimensionName != null) { _json["dimensionName"] = dimensionName; } @@ -19095,8 +19095,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimensionName != null) { _json["dimensionName"] = dimensionName; } @@ -19154,8 +19154,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -19214,8 +19214,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimensionName != null) { _json["dimensionName"] = dimensionName; } @@ -19389,8 +19389,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (active != null) { _json["active"] = active; } @@ -19514,8 +19514,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (address != null) { _json["address"] = address; } @@ -19578,8 +19578,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contactId != null) { _json["contactId"] = contactId; } @@ -19616,8 +19616,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (directorySiteContacts != null) { _json["directorySiteContacts"] = directorySiteContacts.map((value) => (value).toJson()).toList(); } @@ -19680,8 +19680,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (activeViewOptOut != null) { _json["activeViewOptOut"] = activeViewOptOut; } @@ -19733,8 +19733,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (directorySites != null) { _json["directorySites"] = directorySites.map((value) => (value).toJson()).toList(); } @@ -19799,8 +19799,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -19838,8 +19838,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dynamicTargetingKeys != null) { _json["dynamicTargetingKeys"] = dynamicTargetingKeys.map((value) => (value).toJson()).toList(); } @@ -19901,8 +19901,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (encryptionEntityId != null) { _json["encryptionEntityId"] = encryptionEntityId; } @@ -20080,8 +20080,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -20160,8 +20160,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (enabled != null) { _json["enabled"] = enabled; } @@ -20193,8 +20193,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (eventTags != null) { _json["eventTags"] = eventTags.map((value) => (value).toJson()).toList(); } @@ -20223,8 +20223,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (apiUrl != null) { _json["apiUrl"] = apiUrl; } @@ -20314,8 +20314,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dateRange != null) { _json["dateRange"] = (dateRange).toJson(); } @@ -20383,8 +20383,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -20429,8 +20429,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endDate != null) { _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; } @@ -20468,8 +20468,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (floodlightActivityTag != null) { _json["floodlightActivityTag"] = floodlightActivityTag; } @@ -20506,8 +20506,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (floodlightActivities != null) { _json["floodlightActivities"] = floodlightActivities.map((value) => (value).toJson()).toList(); } @@ -20778,8 +20778,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -20891,8 +20891,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -21020,8 +21020,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -21088,8 +21088,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (floodlightActivityGroups != null) { _json["floodlightActivityGroups"] = floodlightActivityGroups.map((value) => (value).toJson()).toList(); } @@ -21148,8 +21148,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clickThrough != null) { _json["clickThrough"] = clickThrough; } @@ -21303,8 +21303,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -21381,8 +21381,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (floodlightConfigurations != null) { _json["floodlightConfigurations"] = floodlightConfigurations.map((value) => (value).toJson()).toList(); } @@ -21436,8 +21436,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimensionFilters != null) { _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); } @@ -21478,8 +21478,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (duration != null) { _json["duration"] = duration; } @@ -21534,8 +21534,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (left != null) { _json["left"] = left; } @@ -21621,8 +21621,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cities != null) { _json["cities"] = cities.map((value) => (value).toJson()).toList(); } @@ -21770,8 +21770,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -21862,8 +21862,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (inventoryItems != null) { _json["inventoryItems"] = inventoryItems.map((value) => (value).toJson()).toList(); } @@ -21890,8 +21890,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (expression != null) { _json["expression"] = expression; } @@ -21946,8 +21946,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (default_ != null) { _json["default"] = default_; } @@ -21988,8 +21988,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -22038,8 +22038,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -22073,8 +22073,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (languages != null) { _json["languages"] = languages.map((value) => (value).toJson()).toList(); } @@ -22103,8 +22103,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -22128,8 +22128,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (time != null) { _json["time"] = time; } @@ -22156,8 +22156,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (terms != null) { _json["terms"] = terms.map((value) => (value).toJson()).toList(); } @@ -22198,8 +22198,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (floodlightActivityId != null) { _json["floodlightActivityId"] = floodlightActivityId; } @@ -22304,8 +22304,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contains != null) { _json["contains"] = contains; } @@ -22347,8 +22347,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (expression != null) { _json["expression"] = expression; } @@ -22386,8 +22386,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clickDuration != null) { _json["clickDuration"] = clickDuration; } @@ -22416,8 +22416,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -22477,8 +22477,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (countryCode != null) { _json["countryCode"] = countryCode; } @@ -22525,8 +22525,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -22573,8 +22573,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (countryCode != null) { _json["countryCode"] = countryCode; } @@ -22615,8 +22615,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -22664,8 +22664,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -22697,8 +22697,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (left != null) { _json["left"] = left; } @@ -22733,8 +22733,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (omnitureCostDataEnabled != null) { _json["omnitureCostDataEnabled"] = omnitureCostDataEnabled; } @@ -22783,8 +22783,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dartId != null) { _json["dartId"] = dartId; } @@ -22851,8 +22851,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -22896,8 +22896,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -22929,8 +22929,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -22974,8 +22974,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (floodlightActivityId != null) { _json["floodlightActivityId"] = floodlightActivityId; } @@ -23100,8 +23100,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -23212,8 +23212,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contactInfo != null) { _json["contactInfo"] = contactInfo; } @@ -23338,8 +23338,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -23421,8 +23421,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -23462,8 +23462,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -23528,8 +23528,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (conversionDimensions != null) { _json["conversionDimensions"] = conversionDimensions.map((value) => (value).toJson()).toList(); } @@ -23888,8 +23888,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -24051,8 +24051,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (active != null) { _json["active"] = active; } @@ -24278,8 +24278,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -24388,8 +24388,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -24429,8 +24429,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -24484,8 +24484,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -24520,8 +24520,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (placementId != null) { _json["placementId"] = placementId; } @@ -24553,8 +24553,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -24591,8 +24591,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -24632,8 +24632,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -24668,8 +24668,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -24744,8 +24744,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimension != null) { _json["dimension"] = (dimension).toJson(); } @@ -24813,8 +24813,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -24855,8 +24855,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -24937,8 +24937,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (capCostType != null) { _json["capCostType"] = capCostType; } @@ -25050,8 +25050,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (capCostOption != null) { _json["capCostOption"] = capCostOption; } @@ -25134,8 +25134,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endDate != null) { _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; } @@ -25296,8 +25296,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -25394,8 +25394,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -25468,8 +25468,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimensionFilters != null) { _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); } @@ -25520,8 +25520,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deliveryType != null) { _json["deliveryType"] = deliveryType; } @@ -25576,8 +25576,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (countryCode != null) { _json["countryCode"] = countryCode; } @@ -25621,8 +25621,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -25748,8 +25748,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -25829,8 +25829,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -25873,8 +25873,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -25930,8 +25930,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (activities != null) { _json["activities"] = (activities).toJson(); } @@ -26004,8 +26004,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (breakdown != null) { _json["breakdown"] = breakdown.map((value) => (value).toJson()).toList(); } @@ -26064,8 +26064,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (emailOwner != null) { _json["emailOwner"] = emailOwner; } @@ -26114,8 +26114,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (includeAttributedIPConversions != null) { _json["includeAttributedIPConversions"] = includeAttributedIPConversions; } @@ -26180,8 +26180,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (customRichMediaEvents != null) { _json["customRichMediaEvents"] = customRichMediaEvents.map((value) => (value).toJson()).toList(); } @@ -26291,8 +26291,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clicksLookbackWindow != null) { _json["clicksLookbackWindow"] = clicksLookbackWindow; } @@ -26381,8 +26381,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (activityFilters != null) { _json["activityFilters"] = activityFilters.map((value) => (value).toJson()).toList(); } @@ -26472,8 +26472,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (activities != null) { _json["activities"] = (activities).toJson(); } @@ -26569,8 +26569,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (active != null) { _json["active"] = active; } @@ -26716,8 +26716,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -26827,8 +26827,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimensionFilters != null) { _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); } @@ -26881,8 +26881,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -26944,8 +26944,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (exposureToConversionEnabled != null) { _json["exposureToConversionEnabled"] = exposureToConversionEnabled; } @@ -26988,8 +26988,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clickThroughUrl != null) { _json["clickThroughUrl"] = (clickThroughUrl).toJson(); } @@ -27036,8 +27036,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (assetId != null) { _json["assetId"] = assetId; } @@ -27142,8 +27142,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -27237,8 +27237,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (address != null) { _json["address"] = address; } @@ -27339,8 +27339,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (activeViewOptOut != null) { _json["activeViewOptOut"] = activeViewOptOut; } @@ -27395,8 +27395,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -27448,8 +27448,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -27490,8 +27490,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -27539,8 +27539,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -27587,8 +27587,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -27644,8 +27644,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -27691,8 +27691,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -27767,8 +27767,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adId != null) { _json["adId"] = adId; } @@ -27832,8 +27832,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (additionalKeyValues != null) { _json["additionalKeyValues"] = additionalKeyValues; } @@ -27868,8 +27868,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dynamicTagEnabled != null) { _json["dynamicTagEnabled"] = dynamicTagEnabled; } @@ -27905,8 +27905,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (customHtml != null) { _json["customHtml"] = customHtml; } @@ -28026,8 +28026,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -28094,8 +28094,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -28205,8 +28205,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -28276,8 +28276,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -28359,8 +28359,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (browsers != null) { _json["browsers"] = browsers.map((value) => (value).toJson()).toList(); } @@ -28404,8 +28404,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -28456,8 +28456,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (thirdPartyUrlType != null) { _json["thirdPartyUrlType"] = thirdPartyUrlType; } @@ -28492,8 +28492,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (enabledVideoFormats != null) { _json["enabledVideoFormats"] = enabledVideoFormats; } @@ -28536,8 +28536,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (registry != null) { _json["registry"] = registry; } @@ -28683,8 +28683,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dataType != null) { _json["dataType"] = dataType; } @@ -28746,8 +28746,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -28799,8 +28799,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -28884,8 +28884,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -28958,8 +28958,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (availability != null) { _json["availability"] = availability; } @@ -29005,8 +29005,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -29041,8 +29041,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -29074,8 +29074,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -29112,8 +29112,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -29171,8 +29171,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fileType != null) { _json["fileType"] = fileType; } @@ -29213,8 +29213,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -29249,8 +29249,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (offsetPercentage != null) { _json["offsetPercentage"] = offsetPercentage; } @@ -29303,8 +29303,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (companionSettings != null) { _json["companionSettings"] = (companionSettings).toJson(); }
diff --git a/generated/googleapis/lib/discovery/v1.dart b/generated/googleapis/lib/discovery/v1.dart index e1c640e..b1eb629 100644 --- a/generated/googleapis/lib/discovery/v1.dart +++ b/generated/googleapis/lib/discovery/v1.dart
@@ -145,8 +145,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (x16 != null) { _json["x16"] = x16; } @@ -224,8 +224,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -288,8 +288,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (discoveryVersion != null) { _json["discoveryVersion"] = discoveryVersion; } @@ -316,8 +316,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (required != null) { _json["required"] = required; } @@ -340,8 +340,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (P_ref != null) { _json["\$ref"] = P_ref; } @@ -374,8 +374,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (discriminant != null) { _json["discriminant"] = discriminant; } @@ -510,7 +510,7 @@ pattern = _json["pattern"]; } if (_json.containsKey("properties")) { - properties = commons.mapMap(_json["properties"], (item) => new JsonSchema.fromJson(item)); + properties = commons.mapMap<core.Map<core.String, core.Object>, JsonSchema>(_json["properties"], (core.Map<core.String, core.Object> item) => new JsonSchema.fromJson(item)); } if (_json.containsKey("readOnly")) { readOnly = _json["readOnly"]; @@ -529,8 +529,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (P_ref != null) { _json["\$ref"] = P_ref; } @@ -574,7 +574,7 @@ _json["pattern"] = pattern; } if (properties != null) { - _json["properties"] = commons.mapMap(properties, (item) => (item).toJson()); + _json["properties"] = commons.mapMap<JsonSchema, core.Map<core.String, core.Object>>(properties, (JsonSchema item) => (item).toJson()); } if (readOnly != null) { _json["readOnly"] = readOnly; @@ -608,8 +608,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -626,14 +626,14 @@ RestDescriptionAuthOauth2.fromJson(core.Map _json) { if (_json.containsKey("scopes")) { - scopes = commons.mapMap(_json["scopes"], (item) => new RestDescriptionAuthOauth2ScopesValue.fromJson(item)); + scopes = commons.mapMap<core.Map<core.String, core.Object>, RestDescriptionAuthOauth2ScopesValue>(_json["scopes"], (core.Map<core.String, core.Object> item) => new RestDescriptionAuthOauth2ScopesValue.fromJson(item)); } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (scopes != null) { - _json["scopes"] = commons.mapMap(scopes, (item) => (item).toJson()); + _json["scopes"] = commons.mapMap<RestDescriptionAuthOauth2ScopesValue, core.Map<core.String, core.Object>>(scopes, (RestDescriptionAuthOauth2ScopesValue item) => (item).toJson()); } return _json; } @@ -652,8 +652,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (oauth2 != null) { _json["oauth2"] = (oauth2).toJson(); } @@ -679,8 +679,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (x16 != null) { _json["x16"] = x16; } @@ -810,7 +810,7 @@ labels = _json["labels"]; } if (_json.containsKey("methods")) { - methods = commons.mapMap(_json["methods"], (item) => new RestMethod.fromJson(item)); + methods = commons.mapMap<core.Map<core.String, core.Object>, RestMethod>(_json["methods"], (core.Map<core.String, core.Object> item) => new RestMethod.fromJson(item)); } if (_json.containsKey("name")) { name = _json["name"]; @@ -825,13 +825,13 @@ packagePath = _json["packagePath"]; } if (_json.containsKey("parameters")) { - parameters = commons.mapMap(_json["parameters"], (item) => new JsonSchema.fromJson(item)); + parameters = commons.mapMap<core.Map<core.String, core.Object>, JsonSchema>(_json["parameters"], (core.Map<core.String, core.Object> item) => new JsonSchema.fromJson(item)); } if (_json.containsKey("protocol")) { protocol = _json["protocol"]; } if (_json.containsKey("resources")) { - resources = commons.mapMap(_json["resources"], (item) => new RestResource.fromJson(item)); + resources = commons.mapMap<core.Map<core.String, core.Object>, RestResource>(_json["resources"], (core.Map<core.String, core.Object> item) => new RestResource.fromJson(item)); } if (_json.containsKey("revision")) { revision = _json["revision"]; @@ -840,7 +840,7 @@ rootUrl = _json["rootUrl"]; } if (_json.containsKey("schemas")) { - schemas = commons.mapMap(_json["schemas"], (item) => new JsonSchema.fromJson(item)); + schemas = commons.mapMap<core.Map<core.String, core.Object>, JsonSchema>(_json["schemas"], (core.Map<core.String, core.Object> item) => new JsonSchema.fromJson(item)); } if (_json.containsKey("servicePath")) { servicePath = _json["servicePath"]; @@ -856,8 +856,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (auth != null) { _json["auth"] = (auth).toJson(); } @@ -904,7 +904,7 @@ _json["labels"] = labels; } if (methods != null) { - _json["methods"] = commons.mapMap(methods, (item) => (item).toJson()); + _json["methods"] = commons.mapMap<RestMethod, core.Map<core.String, core.Object>>(methods, (RestMethod item) => (item).toJson()); } if (name != null) { _json["name"] = name; @@ -919,13 +919,13 @@ _json["packagePath"] = packagePath; } if (parameters != null) { - _json["parameters"] = commons.mapMap(parameters, (item) => (item).toJson()); + _json["parameters"] = commons.mapMap<JsonSchema, core.Map<core.String, core.Object>>(parameters, (JsonSchema item) => (item).toJson()); } if (protocol != null) { _json["protocol"] = protocol; } if (resources != null) { - _json["resources"] = commons.mapMap(resources, (item) => (item).toJson()); + _json["resources"] = commons.mapMap<RestResource, core.Map<core.String, core.Object>>(resources, (RestResource item) => (item).toJson()); } if (revision != null) { _json["revision"] = revision; @@ -934,7 +934,7 @@ _json["rootUrl"] = rootUrl; } if (schemas != null) { - _json["schemas"] = commons.mapMap(schemas, (item) => (item).toJson()); + _json["schemas"] = commons.mapMap<JsonSchema, core.Map<core.String, core.Object>>(schemas, (JsonSchema item) => (item).toJson()); } if (servicePath != null) { _json["servicePath"] = servicePath; @@ -973,8 +973,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (multipart != null) { _json["multipart"] = multipart; } @@ -1006,8 +1006,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (multipart != null) { _json["multipart"] = multipart; } @@ -1036,8 +1036,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resumable != null) { _json["resumable"] = (resumable).toJson(); } @@ -1071,8 +1071,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accept != null) { _json["accept"] = accept; } @@ -1104,8 +1104,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (P_ref != null) { _json["\$ref"] = P_ref; } @@ -1129,8 +1129,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (P_ref != null) { _json["\$ref"] = P_ref; } @@ -1208,7 +1208,7 @@ parameterOrder = _json["parameterOrder"]; } if (_json.containsKey("parameters")) { - parameters = commons.mapMap(_json["parameters"], (item) => new JsonSchema.fromJson(item)); + parameters = commons.mapMap<core.Map<core.String, core.Object>, JsonSchema>(_json["parameters"], (core.Map<core.String, core.Object> item) => new JsonSchema.fromJson(item)); } if (_json.containsKey("path")) { path = _json["path"]; @@ -1236,8 +1236,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -1257,7 +1257,7 @@ _json["parameterOrder"] = parameterOrder; } if (parameters != null) { - _json["parameters"] = commons.mapMap(parameters, (item) => (item).toJson()); + _json["parameters"] = commons.mapMap<JsonSchema, core.Map<core.String, core.Object>>(parameters, (JsonSchema item) => (item).toJson()); } if (path != null) { _json["path"] = path; @@ -1297,20 +1297,20 @@ RestResource.fromJson(core.Map _json) { if (_json.containsKey("methods")) { - methods = commons.mapMap(_json["methods"], (item) => new RestMethod.fromJson(item)); + methods = commons.mapMap<core.Map<core.String, core.Object>, RestMethod>(_json["methods"], (core.Map<core.String, core.Object> item) => new RestMethod.fromJson(item)); } if (_json.containsKey("resources")) { - resources = commons.mapMap(_json["resources"], (item) => new RestResource.fromJson(item)); + resources = commons.mapMap<core.Map<core.String, core.Object>, RestResource>(_json["resources"], (core.Map<core.String, core.Object> item) => new RestResource.fromJson(item)); } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (methods != null) { - _json["methods"] = commons.mapMap(methods, (item) => (item).toJson()); + _json["methods"] = commons.mapMap<RestMethod, core.Map<core.String, core.Object>>(methods, (RestMethod item) => (item).toJson()); } if (resources != null) { - _json["resources"] = commons.mapMap(resources, (item) => (item).toJson()); + _json["resources"] = commons.mapMap<RestResource, core.Map<core.String, core.Object>>(resources, (RestResource item) => (item).toJson()); } return _json; }
diff --git a/generated/googleapis/lib/dns/v1.dart b/generated/googleapis/lib/dns/v1.dart index 464bd20..27dd83e 100644 --- a/generated/googleapis/lib/dns/v1.dart +++ b/generated/googleapis/lib/dns/v1.dart
@@ -597,8 +597,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (additions != null) { _json["additions"] = additions.map((value) => (value).toJson()).toList(); } @@ -658,8 +658,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (changes != null) { _json["changes"] = changes.map((value) => (value).toJson()).toList(); } @@ -747,8 +747,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTime != null) { _json["creationTime"] = creationTime; } @@ -810,8 +810,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -863,8 +863,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -935,8 +935,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -1003,8 +1003,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -1057,8 +1057,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; }
diff --git a/generated/googleapis/lib/doubleclickbidmanager/v1.dart b/generated/googleapis/lib/doubleclickbidmanager/v1.dart index d623e77..440de1f 100644 --- a/generated/googleapis/lib/doubleclickbidmanager/v1.dart +++ b/generated/googleapis/lib/doubleclickbidmanager/v1.dart
@@ -427,7 +427,6 @@ * will be returned. Default to EWF. * Possible string values are: * - "EWF" - * - "SDF" */ core.String fileSpec; /** @@ -467,8 +466,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fileSpec != null) { _json["fileSpec"] = fileSpec; } @@ -501,8 +500,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (lineItems != null) { _json["lineItems"] = lineItems; } @@ -555,8 +554,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fileTypes != null) { _json["fileTypes"] = fileTypes; } @@ -601,8 +600,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adGroups != null) { _json["adGroups"] = adGroups; } @@ -633,6 +632,7 @@ * - "FILTER_AGE" * - "FILTER_BRANDSAFE_CHANNEL_ID" * - "FILTER_BROWSER" + * - "FILTER_BUDGET_SEGMENT_DESCRIPTION" * - "FILTER_CAMPAIGN_DAILY_FREQUENCY" * - "FILTER_CARRIER" * - "FILTER_CHANNEL_ID" @@ -757,8 +757,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (type != null) { _json["type"] = type; } @@ -790,8 +790,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -823,8 +823,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -902,8 +902,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filters != null) { _json["filters"] = filters.map((value) => (value).toJson()).toList(); } @@ -984,8 +984,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -1121,8 +1121,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dataRange != null) { _json["dataRange"] = dataRange; } @@ -1203,8 +1203,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTimeMs != null) { _json["endTimeMs"] = endTimeMs; } @@ -1244,8 +1244,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = (key).toJson(); } @@ -1293,8 +1293,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errorCode != null) { _json["errorCode"] = errorCode; } @@ -1320,8 +1320,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (queryId != null) { _json["queryId"] = queryId; } @@ -1363,8 +1363,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (googleCloudStoragePath != null) { _json["googleCloudStoragePath"] = googleCloudStoragePath; } @@ -1421,8 +1421,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (failure != null) { _json["failure"] = (failure).toJson(); } @@ -1477,8 +1477,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (changed != null) { _json["changed"] = changed; } @@ -1561,8 +1561,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dataRange != null) { _json["dataRange"] = dataRange; } @@ -1612,8 +1612,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dryRun != null) { _json["dryRun"] = dryRun; } @@ -1640,8 +1640,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (uploadStatus != null) { _json["uploadStatus"] = (uploadStatus).toJson(); } @@ -1667,8 +1667,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errors != null) { _json["errors"] = errors; }
diff --git a/generated/googleapis/lib/doubleclicksearch/v2.dart b/generated/googleapis/lib/doubleclicksearch/v2.dart index 54caa89..b30c6cc 100644 --- a/generated/googleapis/lib/doubleclicksearch/v2.dart +++ b/generated/googleapis/lib/doubleclicksearch/v2.dart
@@ -631,8 +631,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (advertiserId != null) { _json["advertiserId"] = advertiserId; } @@ -884,8 +884,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adGroupId != null) { _json["adGroupId"] = adGroupId; } @@ -1010,8 +1010,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (conversion != null) { _json["conversion"] = conversion.map((value) => (value).toJson()).toList(); } @@ -1040,8 +1040,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -1070,8 +1070,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -1099,8 +1099,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (byteCount != null) { _json["byteCount"] = byteCount; } @@ -1190,8 +1190,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (files != null) { _json["files"] = files.map((value) => (value).toJson()).toList(); } @@ -1323,8 +1323,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnName != null) { _json["columnName"] = columnName; } @@ -1392,8 +1392,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (column != null) { _json["column"] = (column).toJson(); } @@ -1427,8 +1427,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (column != null) { _json["column"] = (column).toJson(); } @@ -1486,8 +1486,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adGroupId != null) { _json["adGroupId"] = adGroupId; } @@ -1550,8 +1550,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (changedAttributesSinceTimestamp != null) { _json["changedAttributesSinceTimestamp"] = (changedAttributesSinceTimestamp).toIso8601String(); } @@ -1695,8 +1695,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columns != null) { _json["columns"] = columns.map((value) => (value).toJson()).toList(); } @@ -1761,8 +1761,8 @@ }); } - core.Map toJson() { - var _json = {}; + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = <core.String, core.Object>{}; this.forEach((core.String key, value) { _json[key] = value; }); @@ -1811,8 +1811,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -1852,8 +1852,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -1877,8 +1877,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (availabilities != null) { _json["availabilities"] = availabilities.map((value) => (value).toJson()).toList(); } @@ -1899,8 +1899,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (availabilities != null) { _json["availabilities"] = availabilities.map((value) => (value).toJson()).toList(); }
diff --git a/generated/googleapis/lib/drive/v2.dart b/generated/googleapis/lib/drive/v2.dart index 111e2d4..51a3651 100644 --- a/generated/googleapis/lib/drive/v2.dart +++ b/generated/googleapis/lib/drive/v2.dart
@@ -4077,8 +4077,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (additionalRoles != null) { _json["additionalRoles"] = additionalRoles; } @@ -4106,8 +4106,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (roleSets != null) { _json["roleSets"] = roleSets.map((value) => (value).toJson()).toList(); } @@ -4135,8 +4135,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (source != null) { _json["source"] = source; } @@ -4164,8 +4164,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (featureName != null) { _json["featureName"] = featureName; } @@ -4193,8 +4193,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (source != null) { _json["source"] = source; } @@ -4222,8 +4222,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (size != null) { _json["size"] = size; } @@ -4251,8 +4251,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bytesUsed != null) { _json["bytesUsed"] = bytesUsed; } @@ -4285,8 +4285,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (backgroundImageLink != null) { _json["backgroundImageLink"] = backgroundImageLink; } @@ -4458,8 +4458,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (additionalRoleInfo != null) { _json["additionalRoleInfo"] = additionalRoleInfo.map((value) => (value).toJson()).toList(); } @@ -4566,8 +4566,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (category != null) { _json["category"] = category; } @@ -4730,8 +4730,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (authorized != null) { _json["authorized"] = authorized; } @@ -4847,8 +4847,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (defaultAppIds != null) { _json["defaultAppIds"] = defaultAppIds; } @@ -4936,8 +4936,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deleted != null) { _json["deleted"] = deleted; } @@ -5031,8 +5031,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -5131,8 +5131,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (address != null) { _json["address"] = address; } @@ -5213,8 +5213,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -5265,8 +5265,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (childLink != null) { _json["childLink"] = childLink; } @@ -5305,8 +5305,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (type != null) { _json["type"] = type; } @@ -5416,8 +5416,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (anchor != null) { _json["anchor"] = anchor; } @@ -5508,8 +5508,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -5596,8 +5596,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (author != null) { _json["author"] = (author).toJson(); } @@ -5670,8 +5670,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -5820,8 +5820,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (canAddChildren != null) { _json["canAddChildren"] = canAddChildren; } @@ -5900,8 +5900,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (altitude != null) { _json["altitude"] = altitude; } @@ -6036,8 +6036,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aperture != null) { _json["aperture"] = aperture; } @@ -6118,8 +6118,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (text != null) { _json["text"] = text; } @@ -6172,8 +6172,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (hidden != null) { _json["hidden"] = hidden; } @@ -6227,8 +6227,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (image != null) { _json["image"] = image; } @@ -6262,8 +6262,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (durationMillis != null) { _json["durationMillis"] = durationMillis; } @@ -6727,8 +6727,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alternateLink != null) { _json["alternateLink"] = alternateLink; } @@ -6986,8 +6986,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -7036,8 +7036,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ids != null) { _json["ids"] = ids; } @@ -7079,8 +7079,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -7130,8 +7130,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -7203,8 +7203,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (additionalRoles != null) { _json["additionalRoles"] = additionalRoles; } @@ -7231,7 +7231,7 @@ * more may be supported in the future. */ core.List<core.String> additionalRoles; - /** The authkey parameter required for this permission. */ + /** Deprecated. */ core.String authKey; /** * Whether the account associated with this permission has been deleted. This @@ -7367,8 +7367,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (additionalRoles != null) { _json["additionalRoles"] = additionalRoles; } @@ -7442,8 +7442,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -7492,8 +7492,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -7560,8 +7560,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -7615,8 +7615,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -7758,8 +7758,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (downloadUrl != null) { _json["downloadUrl"] = downloadUrl; } @@ -7859,8 +7859,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -7900,8 +7900,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -7963,8 +7963,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -8081,8 +8081,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (canAddChildren != null) { _json["canAddChildren"] = canAddChildren; } @@ -8195,8 +8195,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (backgroundImageFile != null) { _json["backgroundImageFile"] = (backgroundImageFile).toJson(); } @@ -8248,8 +8248,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -8276,8 +8276,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (url != null) { _json["url"] = url; } @@ -8326,8 +8326,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; }
diff --git a/generated/googleapis/lib/drive/v3.dart b/generated/googleapis/lib/drive/v3.dart index 28c1425..476e6f8 100644 --- a/generated/googleapis/lib/drive/v3.dart +++ b/generated/googleapis/lib/drive/v3.dart
@@ -2429,8 +2429,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (limit != null) { _json["limit"] = limit; } @@ -2469,8 +2469,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (backgroundImageLink != null) { _json["backgroundImageLink"] = backgroundImageLink; } @@ -2552,8 +2552,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (appInstalled != null) { _json["appInstalled"] = appInstalled; } @@ -2649,8 +2649,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (file != null) { _json["file"] = (file).toJson(); } @@ -2721,8 +2721,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (changes != null) { _json["changes"] = changes.map((value) => (value).toJson()).toList(); } @@ -2809,8 +2809,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (address != null) { _json["address"] = address; } @@ -2870,8 +2870,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (mimeType != null) { _json["mimeType"] = mimeType; } @@ -2968,8 +2968,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (anchor != null) { _json["anchor"] = anchor; } @@ -3044,8 +3044,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (comments != null) { _json["comments"] = comments.map((value) => (value).toJson()).toList(); } @@ -3188,8 +3188,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (canAddChildren != null) { _json["canAddChildren"] = canAddChildren; } @@ -3273,8 +3273,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (image != null) { _json["image"] = image; } @@ -3312,8 +3312,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (indexableText != null) { _json["indexableText"] = indexableText; } @@ -3347,8 +3347,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (altitude != null) { _json["altitude"] = altitude; } @@ -3480,8 +3480,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aperture != null) { _json["aperture"] = aperture; } @@ -3575,8 +3575,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (durationMillis != null) { _json["durationMillis"] = durationMillis; } @@ -3974,8 +3974,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (appProperties != null) { _json["appProperties"] = appProperties; } @@ -4179,8 +4179,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (files != null) { _json["files"] = files.map((value) => (value).toJson()).toList(); } @@ -4223,8 +4223,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ids != null) { _json["ids"] = ids; } @@ -4283,8 +4283,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (inherited != null) { _json["inherited"] = inherited; } @@ -4410,8 +4410,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allowFileDiscovery != null) { _json["allowFileDiscovery"] = allowFileDiscovery; } @@ -4486,8 +4486,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -4565,8 +4565,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (action != null) { _json["action"] = action; } @@ -4632,8 +4632,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -4741,8 +4741,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -4817,8 +4817,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -4852,8 +4852,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -4915,8 +4915,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -5033,8 +5033,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (canAddChildren != null) { _json["canAddChildren"] = canAddChildren; } @@ -5150,8 +5150,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (backgroundImageFile != null) { _json["backgroundImageFile"] = (backgroundImageFile).toJson(); } @@ -5214,8 +5214,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -5273,8 +5273,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; }
diff --git a/generated/googleapis/lib/firebasedynamiclinks/v1.dart b/generated/googleapis/lib/firebasedynamiclinks/v1.dart index bdfbc0b..81e7189 100644 --- a/generated/googleapis/lib/firebasedynamiclinks/v1.dart +++ b/generated/googleapis/lib/firebasedynamiclinks/v1.dart
@@ -23,6 +23,7 @@ final commons.ApiRequester _requester; ShortLinksResourceApi get shortLinks => new ShortLinksResourceApi(_requester); + V1ResourceApi get v1 => new V1ResourceApi(_requester); FirebasedynamiclinksApi(http.Client client, {core.String rootUrl: "https://firebasedynamiclinks.googleapis.com/", core.String servicePath: ""}) : _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); @@ -85,6 +86,61 @@ } +class V1ResourceApi { + final commons.ApiRequester _requester; + + V1ResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Fetches analytics stats of a short Dynamic Link for a given + * duration. Metrics include number of clicks, redirects, installs, + * app first opens, and app reopens. + * + * Request parameters: + * + * [dynamicLink] - Dynamic Link URL. e.g. https://abcd.app.goo.gl/wxyz + * + * [durationDays] - The span of time requested in days. + * + * Completes with a [DynamicLinkStats]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<DynamicLinkStats> getLinkStats(core.String dynamicLink, {core.String durationDays}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (dynamicLink == null) { + throw new core.ArgumentError("Parameter dynamicLink is required."); + } + if (durationDays != null) { + _queryParams["durationDays"] = [durationDays]; + } + + _url = 'v1/' + commons.Escaper.ecapeVariable('$dynamicLink') + '/linkStats'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new DynamicLinkStats.fromJson(data)); + } + +} + + /** Tracking parameters supported by Dynamic Link. */ class AnalyticsInfo { @@ -104,8 +160,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (googlePlayAnalytics != null) { _json["googlePlayAnalytics"] = (googlePlayAnalytics).toJson(); } @@ -147,8 +203,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (androidFallbackLink != null) { _json["androidFallbackLink"] = androidFallbackLink; } @@ -198,8 +254,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dynamicLinkInfo != null) { _json["dynamicLinkInfo"] = (dynamicLinkInfo).toJson(); } @@ -236,8 +292,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (previewLink != null) { _json["previewLink"] = previewLink; } @@ -251,6 +307,69 @@ } } +/** Dynamic Link event stat. */ +class DynamicLinkEventStat { + /** The number of times this event occurred. */ + core.String count; + /** + * Link event. + * Possible string values are: + * - "DYNAMIC_LINK_EVENT_UNSPECIFIED" : Unspecified type. + * - "CLICK" : Indicates that an FDL is clicked by users. + * - "REDIRECT" : Indicates that an FDL redirects users to fallback link. + * - "APP_INSTALL" : Indicates that an FDL triggers an app install from Play + * store, currently + * it's impossible to get stats from App store. + * - "APP_FIRST_OPEN" : Indicates that the app is opened for the first time + * after an install + * triggered by FDLs + * - "APP_RE_OPEN" : Indicates that the app is opened via an FDL for non-first + * time. + */ + core.String event; + /** + * Requested platform. + * Possible string values are: + * - "DYNAMIC_LINK_PLATFORM_UNSPECIFIED" : Unspecified platform. + * - "ANDROID" : Represents Android platform. + * All apps and browsers on Android are classfied in this category. + * - "IOS" : Represents iOS platform. + * All apps and browsers on iOS are classfied in this category. + * - "DESKTOP" : Represents desktop. + * Note: other platforms like Windows, Blackberry, Amazon fall into this + * category. + */ + core.String platform; + + DynamicLinkEventStat(); + + DynamicLinkEventStat.fromJson(core.Map _json) { + if (_json.containsKey("count")) { + count = _json["count"]; + } + if (_json.containsKey("event")) { + event = _json["event"]; + } + if (_json.containsKey("platform")) { + platform = _json["platform"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (count != null) { + _json["count"] = count; + } + if (event != null) { + _json["event"] = event; + } + if (platform != null) { + _json["platform"] = platform; + } + return _json; + } +} + /** Information about a Dynamic Link. */ class DynamicLinkInfo { /** @@ -320,8 +439,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (analyticsInfo != null) { _json["analyticsInfo"] = (analyticsInfo).toJson(); } @@ -347,6 +466,28 @@ } } +/** Analytics stats of a Dynamic Link for a given timeframe. */ +class DynamicLinkStats { + /** Dynamic Link event stats. */ + core.List<DynamicLinkEventStat> linkEventStats; + + DynamicLinkStats(); + + DynamicLinkStats.fromJson(core.Map _json) { + if (_json.containsKey("linkEventStats")) { + linkEventStats = _json["linkEventStats"].map((value) => new DynamicLinkEventStat.fromJson(value)).toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (linkEventStats != null) { + _json["linkEventStats"] = linkEventStats.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + /** Dynamic Links warning messages. */ class DynamicLinkWarning { /** @@ -414,8 +555,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (warningCode != null) { _json["warningCode"] = warningCode; } @@ -484,8 +625,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (gclid != null) { _json["gclid"] = gclid; } @@ -542,8 +683,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (at != null) { _json["at"] = at; } @@ -602,8 +743,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (iosAppStoreId != null) { _json["iosAppStoreId"] = iosAppStoreId; } @@ -642,8 +783,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (enableForcedRedirect != null) { _json["enableForcedRedirect"] = enableForcedRedirect; } @@ -677,8 +818,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (socialDescription != null) { _json["socialDescription"] = socialDescription; } @@ -720,8 +861,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (option != null) { _json["option"] = option; }
diff --git a/generated/googleapis/lib/firebaserules/v1.dart b/generated/googleapis/lib/firebaserules/v1.dart index ad977e0..12b9724 100644 --- a/generated/googleapis/lib/firebaserules/v1.dart +++ b/generated/googleapis/lib/firebaserules/v1.dart
@@ -292,6 +292,14 @@ * Format: `projects/{project_id}` * Value must have pattern "^projects/[^/]+$". * + * [pageToken] - Next page token for the next batch of `Release` instances. + * + * [pageSize] - Page size to load. Maximum of 100. Defaults to 10. + * Note: `page_size` is just a hint and the service may choose to load fewer + * than `page_size` results due to the size of the output. To traverse all of + * the releases, the caller should iterate until the `page_token` on the + * response is empty. + * * [filter] - `Release` filter. The list method supports filters with * restrictions on the * `Release.name`, `Release.ruleset_name`, and `Release.test_suite_name`. @@ -318,14 +326,6 @@ * relative to the project. Fully qualified prefixed may also be used. e.g. * `test_suite_name=projects/foo/testsuites/uuid1` * - * [pageToken] - Next page token for the next batch of `Release` instances. - * - * [pageSize] - Page size to load. Maximum of 100. Defaults to 10. - * Note: `page_size` is just a hint and the service may choose to load fewer - * than `page_size` results due to the size of the output. To traverse all of - * the releases, the caller should iterate until the `page_token` on the - * response is empty. - * * Completes with a [ListReleasesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -334,7 +334,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListReleasesResponse> list(core.String name, {core.String filter, core.String pageToken, core.int pageSize}) { + async.Future<ListReleasesResponse> list(core.String name, {core.String pageToken, core.int pageSize, core.String filter}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -345,15 +345,15 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } - if (filter != null) { - _queryParams["filter"] = [filter]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (filter != null) { + _queryParams["filter"] = [filter]; + } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/releases'; @@ -662,6 +662,41 @@ +/** Arg matchers for the mock function. */ +class Arg { + /** Argument matches any value provided. */ + Empty anyValue; + /** + * Argument exactly matches value provided. + * + * The values for Object must be JSON objects. It can consist of `num`, + * `String`, `bool` and `null` as well as `Map` and `List` values. + */ + core.Object exactValue; + + Arg(); + + Arg.fromJson(core.Map _json) { + if (_json.containsKey("anyValue")) { + anyValue = new Empty.fromJson(_json["anyValue"]); + } + if (_json.containsKey("exactValue")) { + exactValue = _json["exactValue"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (anyValue != null) { + _json["anyValue"] = (anyValue).toJson(); + } + if (exactValue != null) { + _json["exactValue"] = exactValue; + } + return _json; + } +} + /** * A generic empty message that you can re-use to avoid defining duplicated * empty messages in your APIs. A typical example is to use it as the request @@ -680,8 +715,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -716,8 +751,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (content != null) { _json["content"] = content; } @@ -757,8 +792,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (args != null) { _json["args"] = args; } @@ -769,6 +804,63 @@ } } +/** + * Mock function definition. + * + * Mocks must refer to a function declared by the target service. The type of + * the function args and result will be inferred at test time. If either the + * arg or result values are not compatible with function type declaration, the + * request will be considered invalid. + * + * More than one `FunctionMock` may be provided for a given function name so + * long as the `Arg` matchers are distinct. There may be only one function + * for a given overload where all `Arg` values are `Arg.any_value`. + */ +class FunctionMock { + /** + * The list of `Arg` values to match. The order in which the arguments are + * provided is the order in which they must appear in the function + * invocation. + */ + core.List<Arg> args; + /** + * The name of the function. + * + * The function name must match one provided by a service declaration. + */ + core.String function; + /** The mock result of the function call. */ + Result result; + + FunctionMock(); + + FunctionMock.fromJson(core.Map _json) { + if (_json.containsKey("args")) { + args = _json["args"].map((value) => new Arg.fromJson(value)).toList(); + } + if (_json.containsKey("function")) { + function = _json["function"]; + } + if (_json.containsKey("result")) { + result = new Result.fromJson(_json["result"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (args != null) { + _json["args"] = args.map((value) => (value).toJson()).toList(); + } + if (function != null) { + _json["function"] = function; + } + if (result != null) { + _json["result"] = (result).toJson(); + } + return _json; + } +} + /** Issues include warnings, errors, and deprecation notices. */ class Issue { /** Short error description. */ @@ -802,8 +894,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -838,8 +930,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -871,8 +963,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -948,8 +1040,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createTime != null) { _json["createTime"] = createTime; } @@ -966,6 +1058,42 @@ } } +/** Possible result values from the function mock invocation. */ +class Result { + /** The result is undefined, meaning the result could not be computed. */ + Empty undefined; + /** + * The result is an actual value. The type of the value must match that + * of the type declared by the service. + * + * The values for Object must be JSON objects. It can consist of `num`, + * `String`, `bool` and `null` as well as `Map` and `List` values. + */ + core.Object value; + + Result(); + + Result.fromJson(core.Map _json) { + if (_json.containsKey("undefined")) { + undefined = new Empty.fromJson(_json["undefined"]); + } + if (_json.containsKey("value")) { + value = _json["value"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (undefined != null) { + _json["undefined"] = (undefined).toJson(); + } + if (value != null) { + _json["value"] = value; + } + return _json; + } +} + /** * `Ruleset` is an immutable copy of `Source` with a globally unique identifier * and a creation time. @@ -999,8 +1127,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createTime != null) { _json["createTime"] = createTime; } @@ -1029,8 +1157,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (files != null) { _json["files"] = files.map((value) => (value).toJson()).toList(); } @@ -1064,8 +1192,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (column != null) { _json["column"] = column; } @@ -1080,6 +1208,103 @@ } /** + * `TestCase` messages provide the request context and an expectation as to + * whether the given context will be allowed or denied. Test cases may specify + * the `request`, `resource`, and `function_mocks` to mock a function call to + * a service-provided function. + * + * The `request` object represents context present at request-time. + * + * The `resource` is the value of the target resource as it appears in + * persistent storage before the request is executed. + */ +class TestCase { + /** + * Test expectation. + * Possible string values are: + * - "EXPECTATION_UNSPECIFIED" : Unspecified expectation. + * - "ALLOW" : Expect an allowed result. + * - "DENY" : Expect a denied result. + */ + core.String expectation; + /** + * Optional function mocks for service-defined functions. If not set, any + * service defined function is expected to return an error, which may or may + * not influence the test outcome. + */ + core.List<FunctionMock> functionMocks; + /** + * Request context. + * + * The exact format of the request context is service-dependent. See the + * appropriate service documentation for information about the supported + * fields and types on the request. Minimally, all services support the + * following fields and types: + * + * Request field | Type + * ---------------|----------------- + * auth.uid | `string` + * auth.token | `map<string, string>` + * headers | `map<string, string>` + * method | `string` + * params | `map<string, string>` + * path | `string` + * time | `google.protobuf.Timestamp` + * + * If the request value is not well-formed for the service, the request will + * be rejected as an invalid argument. + * + * The values for Object must be JSON objects. It can consist of `num`, + * `String`, `bool` and `null` as well as `Map` and `List` values. + */ + core.Object request; + /** + * Optional resource value as it appears in persistent storage before the + * request is fulfilled. + * + * The resource type depends on the `request.path` value. + * + * The values for Object must be JSON objects. It can consist of `num`, + * `String`, `bool` and `null` as well as `Map` and `List` values. + */ + core.Object resource; + + TestCase(); + + TestCase.fromJson(core.Map _json) { + if (_json.containsKey("expectation")) { + expectation = _json["expectation"]; + } + if (_json.containsKey("functionMocks")) { + functionMocks = _json["functionMocks"].map((value) => new FunctionMock.fromJson(value)).toList(); + } + if (_json.containsKey("request")) { + request = _json["request"]; + } + if (_json.containsKey("resource")) { + resource = _json["resource"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (expectation != null) { + _json["expectation"] = expectation; + } + if (functionMocks != null) { + _json["functionMocks"] = functionMocks.map((value) => (value).toJson()).toList(); + } + if (request != null) { + _json["request"] = request; + } + if (resource != null) { + _json["resource"] = resource; + } + return _json; + } +} + +/** * Test result message containing the state of the test as well as a * description and source position for test failures. */ @@ -1139,8 +1364,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (debugMessages != null) { _json["debugMessages"] = debugMessages; } @@ -1165,6 +1390,8 @@ * This field must not be set when the resource name refers to a `Ruleset`. */ Source source; + /** Inline `TestSuite` to run. */ + TestSuite testSuite; TestRulesetRequest(); @@ -1172,13 +1399,19 @@ if (_json.containsKey("source")) { source = new Source.fromJson(_json["source"]); } + if (_json.containsKey("testSuite")) { + testSuite = new TestSuite.fromJson(_json["testSuite"]); + } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (source != null) { _json["source"] = (source).toJson(); } + if (testSuite != null) { + _json["testSuite"] = (testSuite).toJson(); + } return _json; } } @@ -1208,8 +1441,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (issues != null) { _json["issues"] = issues.map((value) => (value).toJson()).toList(); } @@ -1219,3 +1452,30 @@ return _json; } } + +/** + * `TestSuite` is a collection of `TestCase` instances that validate the logical + * correctness of a `Ruleset`. The `TestSuite` may be referenced in-line within + * a `TestRuleset` invocation or as part of a `Release` object as a pre-release + * check. + */ +class TestSuite { + /** Collection of test cases associated with the `TestSuite`. */ + core.List<TestCase> testCases; + + TestSuite(); + + TestSuite.fromJson(core.Map _json) { + if (_json.containsKey("testCases")) { + testCases = _json["testCases"].map((value) => new TestCase.fromJson(value)).toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (testCases != null) { + _json["testCases"] = testCases.map((value) => (value).toJson()).toList(); + } + return _json; + } +}
diff --git a/generated/googleapis/lib/fitness/v1.dart b/generated/googleapis/lib/fitness/v1.dart index c7481dd..325b429 100644 --- a/generated/googleapis/lib/fitness/v1.dart +++ b/generated/googleapis/lib/fitness/v1.dart
@@ -920,8 +920,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (activity != null) { _json["activity"] = activity; } @@ -971,8 +971,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dataSourceId != null) { _json["dataSourceId"] = dataSourceId; } @@ -1065,8 +1065,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aggregateBy != null) { _json["aggregateBy"] = aggregateBy.map((value) => (value).toJson()).toList(); } @@ -1107,8 +1107,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bucket != null) { _json["bucket"] = bucket.map((value) => (value).toJson()).toList(); } @@ -1156,8 +1156,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (detailsUrl != null) { _json["detailsUrl"] = detailsUrl; } @@ -1198,8 +1198,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (activityDataSourceId != null) { _json["activityDataSourceId"] = activityDataSourceId; } @@ -1225,8 +1225,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (minDurationMillis != null) { _json["minDurationMillis"] = minDurationMillis; } @@ -1254,8 +1254,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (durationMillis != null) { _json["durationMillis"] = durationMillis; } @@ -1293,8 +1293,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (timeZoneId != null) { _json["timeZoneId"] = timeZoneId; } @@ -1392,8 +1392,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (computationTimeMillis != null) { _json["computationTimeMillis"] = computationTimeMillis; } @@ -1537,8 +1537,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (application != null) { _json["application"] = (application).toJson(); } @@ -1587,8 +1587,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (field != null) { _json["field"] = field.map((value) => (value).toJson()).toList(); } @@ -1642,8 +1642,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (format != null) { _json["format"] = format; } @@ -1715,8 +1715,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dataSourceId != null) { _json["dataSourceId"] = dataSourceId; } @@ -1797,8 +1797,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (manufacturer != null) { _json["manufacturer"] = manufacturer; } @@ -1830,8 +1830,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dataSource != null) { _json["dataSource"] = dataSource.map((value) => (value).toJson()).toList(); } @@ -1877,8 +1877,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deletedSession != null) { _json["deletedSession"] = deletedSession.map((value) => (value).toJson()).toList(); } @@ -1912,8 +1912,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fpVal != null) { _json["fpVal"] = fpVal; } @@ -1986,8 +1986,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (activeTimeMillis != null) { _json["activeTimeMillis"] = activeTimeMillis; } @@ -2061,8 +2061,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fpVal != null) { _json["fpVal"] = fpVal; } @@ -2094,8 +2094,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; }
diff --git a/generated/googleapis/lib/fusiontables/v1.dart b/generated/googleapis/lib/fusiontables/v1.dart index 95c8feb..ce6323a 100644 --- a/generated/googleapis/lib/fusiontables/v1.dart +++ b/generated/googleapis/lib/fusiontables/v1.dart
@@ -1730,8 +1730,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (color != null) { _json["color"] = color; } @@ -1779,8 +1779,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnId != null) { _json["columnId"] = columnId; } @@ -1841,8 +1841,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (baseColumn != null) { _json["baseColumn"] = (baseColumn).toJson(); } @@ -1899,8 +1899,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -1950,8 +1950,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (geometries != null) { _json["geometries"] = geometries; } @@ -1983,8 +1983,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2013,8 +2013,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (coordinates != null) { _json["coordinates"] = coordinates; } @@ -2064,8 +2064,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (strokeColor != null) { _json["strokeColor"] = strokeColor; } @@ -2103,8 +2103,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (coordinates != null) { _json["coordinates"] = coordinates; } @@ -2136,8 +2136,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (iconName != null) { _json["iconName"] = iconName; } @@ -2166,8 +2166,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (coordinates != null) { _json["coordinates"] = coordinates; } @@ -2237,8 +2237,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fillColor != null) { _json["fillColor"] = fillColor; } @@ -2297,8 +2297,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columns != null) { _json["columns"] = columns; } @@ -2329,8 +2329,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (color != null) { _json["color"] = color; } @@ -2372,8 +2372,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (colors != null) { _json["colors"] = colors.map((value) => (value).toJson()).toList(); } @@ -2429,8 +2429,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (buckets != null) { _json["buckets"] = buckets.map((value) => (value).toJson()).toList(); } @@ -2498,8 +2498,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2556,8 +2556,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -2637,8 +2637,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attribution != null) { _json["attribution"] = attribution; } @@ -2699,8 +2699,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -2756,8 +2756,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2808,8 +2808,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -2878,8 +2878,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (automaticColumnNames != null) { _json["automaticColumnNames"] = automaticColumnNames; } @@ -2933,8 +2933,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); }
diff --git a/generated/googleapis/lib/fusiontables/v2.dart b/generated/googleapis/lib/fusiontables/v2.dart index 9861e9a..c315430 100644 --- a/generated/googleapis/lib/fusiontables/v2.dart +++ b/generated/googleapis/lib/fusiontables/v2.dart
@@ -1833,8 +1833,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (color != null) { _json["color"] = color; } @@ -1882,8 +1882,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnId != null) { _json["columnId"] = columnId; } @@ -1999,8 +1999,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (baseColumn != null) { _json["baseColumn"] = (baseColumn).toJson(); } @@ -2075,8 +2075,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -2126,8 +2126,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (geometries != null) { _json["geometries"] = geometries; } @@ -2162,8 +2162,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2192,8 +2192,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (coordinates != null) { _json["coordinates"] = coordinates; } @@ -2243,8 +2243,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (strokeColor != null) { _json["strokeColor"] = strokeColor; } @@ -2282,8 +2282,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (coordinates != null) { _json["coordinates"] = coordinates; } @@ -2315,8 +2315,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (iconName != null) { _json["iconName"] = iconName; } @@ -2345,8 +2345,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (coordinates != null) { _json["coordinates"] = coordinates; } @@ -2416,8 +2416,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fillColor != null) { _json["fillColor"] = fillColor; } @@ -2479,8 +2479,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columns != null) { _json["columns"] = columns; } @@ -2511,8 +2511,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (color != null) { _json["color"] = color; } @@ -2554,8 +2554,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (colors != null) { _json["colors"] = colors.map((value) => (value).toJson()).toList(); } @@ -2610,8 +2610,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (buckets != null) { _json["buckets"] = buckets.map((value) => (value).toJson()).toList(); } @@ -2679,8 +2679,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2740,8 +2740,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -2833,8 +2833,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attribution != null) { _json["attribution"] = attribution; } @@ -2907,8 +2907,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -2961,8 +2961,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -3013,8 +3013,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -3082,8 +3082,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (automaticColumnNames != null) { _json["automaticColumnNames"] = automaticColumnNames; } @@ -3140,8 +3140,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); }
diff --git a/generated/googleapis/lib/games/v1.dart b/generated/googleapis/lib/games/v1.dart index f999bc0..b5d5046 100644 --- a/generated/googleapis/lib/games/v1.dart +++ b/generated/googleapis/lib/games/v1.dart
@@ -3304,8 +3304,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (achievementType != null) { _json["achievementType"] = achievementType; } @@ -3375,8 +3375,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -3419,8 +3419,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currentSteps != null) { _json["currentSteps"] = currentSteps; } @@ -3461,8 +3461,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currentState != null) { _json["currentState"] = currentState; } @@ -3502,8 +3502,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currentSteps != null) { _json["currentSteps"] = currentSteps; } @@ -3541,8 +3541,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -3574,8 +3574,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -3607,8 +3607,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -3669,8 +3669,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (achievementId != null) { _json["achievementId"] = achievementId; } @@ -3740,8 +3740,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (achievementId != null) { _json["achievementId"] = achievementId; } @@ -3800,8 +3800,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (count != null) { _json["count"] = count; } @@ -3847,8 +3847,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (avatarImageUrl != null) { _json["avatarImageUrl"] = avatarImageUrl; } @@ -3949,8 +3949,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (achievementCount != null) { _json["achievement_count"] = achievementCount; } @@ -4020,8 +4020,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -4069,8 +4069,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alternatePlayerId != null) { _json["alternate_player_id"] = alternatePlayerId; } @@ -4110,8 +4110,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (category != null) { _json["category"] = category; } @@ -4151,8 +4151,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -4206,8 +4206,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (failureCause != null) { _json["failureCause"] = failureCause; } @@ -4242,8 +4242,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (childId != null) { _json["childId"] = childId; } @@ -4314,8 +4314,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (childEvents != null) { _json["childEvents"] = childEvents.map((value) => (value).toJson()).toList(); } @@ -4370,8 +4370,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -4417,8 +4417,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -4458,8 +4458,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -4505,8 +4505,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (eventId != null) { _json["eventId"] = eventId; } @@ -4554,8 +4554,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currentTimeMillis != null) { _json["currentTimeMillis"] = currentTimeMillis; } @@ -4598,8 +4598,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (definitionId != null) { _json["definitionId"] = definitionId; } @@ -4644,8 +4644,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (batchFailures != null) { _json["batchFailures"] = batchFailures.map((value) => (value).toJson()).toList(); } @@ -4691,8 +4691,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -4730,8 +4730,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -4778,8 +4778,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -4861,8 +4861,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (acquisitionUri != null) { _json["acquisitionUri"] = acquisitionUri; } @@ -4925,8 +4925,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (enablePiracyCheck != null) { _json["enablePiracyCheck"] = enablePiracyCheck; } @@ -4995,8 +4995,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bundleIdentifier != null) { _json["bundleIdentifier"] = bundleIdentifier; } @@ -5048,8 +5048,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -5114,8 +5114,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (iconUrl != null) { _json["iconUrl"] = iconUrl; } @@ -5206,8 +5206,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (formattedScore != null) { _json["formattedScore"] = formattedScore; } @@ -5265,8 +5265,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -5316,8 +5316,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (formattedNumScores != null) { _json["formattedNumScores"] = formattedNumScores; } @@ -5383,8 +5383,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -5436,8 +5436,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currentVersion != null) { _json["currentVersion"] = currentVersion; } @@ -5510,8 +5510,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (androidNetworkSubtype != null) { _json["androidNetworkSubtype"] = androidNetworkSubtype; } @@ -5584,8 +5584,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -5653,8 +5653,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bytesReceived != null) { _json["bytesReceived"] = (bytesReceived).toJson(); } @@ -5719,8 +5719,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (connectedTimestampMillis != null) { _json["connectedTimestampMillis"] = connectedTimestampMillis; } @@ -5774,8 +5774,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoMatched != null) { _json["autoMatched"] = autoMatched; } @@ -5816,8 +5816,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (familyName != null) { _json["familyName"] = familyName; } @@ -5916,8 +5916,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (avatarImageUrl != null) { _json["avatarImageUrl"] = avatarImageUrl; } @@ -6014,8 +6014,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (achievementState != null) { _json["achievementState"] = achievementState; } @@ -6067,8 +6067,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -6122,8 +6122,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (definitionId != null) { _json["definitionId"] = definitionId; } @@ -6169,8 +6169,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -6228,8 +6228,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currentExperiencePoints != null) { _json["currentExperiencePoints"] = currentExperiencePoints; } @@ -6320,8 +6320,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -6384,8 +6384,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -6433,8 +6433,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -6477,8 +6477,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -6537,8 +6537,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (formattedScore != null) { _json["formattedScore"] = formattedScore; } @@ -6579,8 +6579,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -6646,8 +6646,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (beatenScoreTimeSpans != null) { _json["beatenScoreTimeSpans"] = beatenScoreTimeSpans; } @@ -6691,8 +6691,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -6727,8 +6727,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -6778,8 +6778,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientRevision != null) { _json["clientRevision"] = clientRevision; } @@ -6827,8 +6827,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (apnsDeviceToken != null) { _json["apns_device_token"] = apnsDeviceToken; } @@ -6860,8 +6860,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ios != null) { _json["ios"] = (ios).toJson(); } @@ -6997,8 +6997,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (acceptedTimestampMillis != null) { _json["acceptedTimestampMillis"] = acceptedTimestampMillis; } @@ -7081,8 +7081,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (formattedValue != null) { _json["formattedValue"] = formattedValue; } @@ -7147,8 +7147,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (completionContribution != null) { _json["completionContribution"] = (completionContribution).toJson(); } @@ -7194,8 +7194,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -7265,8 +7265,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (completionRewardData != null) { _json["completionRewardData"] = completionRewardData; } @@ -7323,8 +7323,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (apiVersion != null) { _json["apiVersion"] = apiVersion; } @@ -7446,8 +7446,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (applicationId != null) { _json["applicationId"] = applicationId; } @@ -7517,8 +7517,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -7570,8 +7570,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (exclusiveBitmask != null) { _json["exclusiveBitmask"] = exclusiveBitmask; } @@ -7609,8 +7609,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -7679,8 +7679,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoMatchingCriteria != null) { _json["autoMatchingCriteria"] = (autoMatchingCriteria).toJson(); } @@ -7740,8 +7740,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (capabilities != null) { _json["capabilities"] = capabilities; } @@ -7825,8 +7825,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (androidNetworkSubtype != null) { _json["androidNetworkSubtype"] = androidNetworkSubtype; } @@ -7904,8 +7904,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -7945,8 +7945,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -7989,8 +7989,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -8072,8 +8072,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (connectionSetupLatencyMillis != null) { _json["connectionSetupLatencyMillis"] = connectionSetupLatencyMillis; } @@ -8120,8 +8120,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -8234,8 +8234,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoMatched != null) { _json["autoMatched"] = autoMatched; } @@ -8333,8 +8333,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoMatchingStatus != null) { _json["autoMatchingStatus"] = (autoMatchingStatus).toJson(); } @@ -8399,8 +8399,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -8500,8 +8500,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (coverImage != null) { _json["coverImage"] = (coverImage).toJson(); } @@ -8578,8 +8578,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -8628,8 +8628,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -8684,8 +8684,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (exclusiveBitmask != null) { _json["exclusiveBitmask"] = exclusiveBitmask; } @@ -8863,8 +8863,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (applicationId != null) { _json["applicationId"] = applicationId; } @@ -8972,8 +8972,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoMatchingCriteria != null) { _json["autoMatchingCriteria"] = (autoMatchingCriteria).toJson(); } @@ -9032,8 +9032,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (data != null) { _json["data"] = data; } @@ -9078,8 +9078,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (data != null) { _json["data"] = data; } @@ -9116,8 +9116,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -9160,8 +9160,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -9242,8 +9242,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoMatched != null) { _json["autoMatched"] = autoMatched; } @@ -9298,8 +9298,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -9344,8 +9344,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (data != null) { _json["data"] = (data).toJson(); } @@ -9399,8 +9399,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -9462,8 +9462,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (data != null) { _json["data"] = (data).toJson(); }
diff --git a/generated/googleapis/lib/gamesconfiguration/v1configuration.dart b/generated/googleapis/lib/gamesconfiguration/v1configuration.dart index 31d7699..059a9a1 100644 --- a/generated/googleapis/lib/gamesconfiguration/v1configuration.dart +++ b/generated/googleapis/lib/gamesconfiguration/v1configuration.dart
@@ -715,8 +715,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (achievementType != null) { _json["achievementType"] = achievementType; } @@ -786,8 +786,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = (description).toJson(); } @@ -836,8 +836,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -909,8 +909,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (few != null) { _json["few"] = (few).toJson(); } @@ -974,8 +974,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currencyCode != null) { _json["currencyCode"] = currencyCode; } @@ -1023,8 +1023,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (imageType != null) { _json["imageType"] = imageType; } @@ -1097,8 +1097,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (draft != null) { _json["draft"] = (draft).toJson(); } @@ -1163,8 +1163,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (iconUrl != null) { _json["iconUrl"] = iconUrl; } @@ -1210,8 +1210,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -1251,8 +1251,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -1287,8 +1287,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; }
diff --git a/generated/googleapis/lib/gamesmanagement/v1management.dart b/generated/googleapis/lib/gamesmanagement/v1management.dart index 4f628fc..7041f90 100644 --- a/generated/googleapis/lib/gamesmanagement/v1management.dart +++ b/generated/googleapis/lib/gamesmanagement/v1management.dart
@@ -1205,8 +1205,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -1238,8 +1238,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (achievementIds != null) { _json["achievement_ids"] = achievementIds; } @@ -1288,8 +1288,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currentState != null) { _json["currentState"] = currentState; } @@ -1327,8 +1327,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (eventIds != null) { _json["event_ids"] = eventIds; } @@ -1365,8 +1365,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoMatched != null) { _json["autoMatched"] = autoMatched; } @@ -1413,8 +1413,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currentExperiencePoints != null) { _json["currentExperiencePoints"] = currentExperiencePoints; } @@ -1454,8 +1454,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (level != null) { _json["level"] = level; } @@ -1495,8 +1495,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (hiddenTimeMillis != null) { _json["hiddenTimeMillis"] = hiddenTimeMillis; } @@ -1536,8 +1536,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -1578,8 +1578,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (familyName != null) { _json["familyName"] = familyName; } @@ -1678,8 +1678,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (avatarImageUrl != null) { _json["avatarImageUrl"] = avatarImageUrl; } @@ -1741,8 +1741,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -1785,8 +1785,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (definitionId != null) { _json["definitionId"] = definitionId; } @@ -1824,8 +1824,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -1857,8 +1857,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -1890,8 +1890,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; }
diff --git a/generated/googleapis/lib/genomics/v1.dart b/generated/googleapis/lib/genomics/v1.dart index 2c0c530..26b7531 100644 --- a/generated/googleapis/lib/genomics/v1.dart +++ b/generated/googleapis/lib/genomics/v1.dart
@@ -1407,7 +1407,7 @@ * * Request parameters: * - * [name] - The name of the operation collection. + * [name] - The name of the operation's parent resource. * Value must have pattern "^operations$". * * [filter] - A string for filtering Operations. @@ -1826,6 +1826,16 @@ * [readGroupSetId] - Required. The ID of the read group set over which * coverage is requested. * + * [end] - The end position of the range on the reference, 0-based exclusive. + * If + * specified, `referenceName` must also be specified. If unset or 0, defaults + * to the length of the reference. + * + * [pageToken] - The continuation token, which is used to page through large + * result sets. + * To get the next page of results, set this parameter to the value of + * `nextPageToken` from the previous response. + * * [pageSize] - The maximum number of results to return in a single page. If * unspecified, * defaults to 1024. The maximum value is 2048. @@ -1847,16 +1857,6 @@ * set associated * with this query. Optional. * - * [end] - The end position of the range on the reference, 0-based exclusive. - * If - * specified, `referenceName` must also be specified. If unset or 0, defaults - * to the length of the reference. - * - * [pageToken] - The continuation token, which is used to page through large - * result sets. - * To get the next page of results, set this parameter to the value of - * `nextPageToken` from the previous response. - * * Completes with a [ListCoverageBucketsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1865,7 +1865,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListCoverageBucketsResponse> list(core.String readGroupSetId, {core.int pageSize, core.String start, core.String targetBucketWidth, core.String referenceName, core.String end, core.String pageToken}) { + async.Future<ListCoverageBucketsResponse> list(core.String readGroupSetId, {core.String end, core.String pageToken, core.int pageSize, core.String start, core.String targetBucketWidth, core.String referenceName}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1876,6 +1876,12 @@ if (readGroupSetId == null) { throw new core.ArgumentError("Parameter readGroupSetId is required."); } + if (end != null) { + _queryParams["end"] = [end]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } @@ -1888,12 +1894,6 @@ if (referenceName != null) { _queryParams["referenceName"] = [referenceName]; } - if (end != null) { - _queryParams["end"] = [end]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } _url = 'v1/readgroupsets/' + commons.Escaper.ecapeVariable('$readGroupSetId') + '/coveragebuckets'; @@ -3114,8 +3114,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (annotationSetId != null) { _json["annotationSetId"] = annotationSetId; } @@ -3234,8 +3234,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (datasetId != null) { _json["datasetId"] = datasetId; } @@ -3289,8 +3289,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (annotations != null) { _json["annotations"] = annotations.map((value) => (value).toJson()).toList(); } @@ -3316,8 +3316,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -3370,8 +3370,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (members != null) { _json["members"] = members; } @@ -3438,8 +3438,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (created != null) { _json["created"] = created; } @@ -3470,8 +3470,8 @@ CancelOperationRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -3552,8 +3552,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (operation != null) { _json["operation"] = operation; } @@ -3600,8 +3600,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (conceptId != null) { _json["conceptId"] = conceptId; } @@ -3643,8 +3643,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (end != null) { _json["end"] = end; } @@ -3686,8 +3686,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (diskNames != null) { _json["diskNames"] = diskNames; } @@ -3728,8 +3728,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (meanCoverage != null) { _json["meanCoverage"] = meanCoverage; } @@ -3773,8 +3773,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createTime != null) { _json["createTime"] = createTime; } @@ -3809,8 +3809,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -3832,8 +3832,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (annotation != null) { _json["annotation"] = (annotation).toJson(); } @@ -3888,8 +3888,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (end != null) { _json["end"] = end; } @@ -3942,8 +3942,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instrumentModel != null) { _json["instrumentModel"] = instrumentModel; } @@ -3994,8 +3994,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (exportUri != null) { _json["exportUri"] = exportUri; } @@ -4061,8 +4061,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bigqueryDataset != null) { _json["bigqueryDataset"] = bigqueryDataset; } @@ -4099,8 +4099,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -4119,8 +4119,8 @@ GetIamPolicyRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -4190,8 +4190,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (datasetId != null) { _json["datasetId"] = datasetId; } @@ -4221,8 +4221,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (readGroupSetIds != null) { _json["readGroupSetIds"] = readGroupSetIds; } @@ -4295,8 +4295,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (format != null) { _json["format"] = format; } @@ -4329,8 +4329,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (callSetIds != null) { _json["callSetIds"] = callSetIds; } @@ -4373,8 +4373,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cigar != null) { _json["cigar"] = cigar.map((value) => (value).toJson()).toList(); } @@ -4418,8 +4418,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -4469,8 +4469,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bucketWidth != null) { _json["bucketWidth"] = bucketWidth; } @@ -4506,8 +4506,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (datasets != null) { _json["datasets"] = datasets.map((value) => (value).toJson()).toList(); } @@ -4536,8 +4536,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -4573,8 +4573,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (infoMergeConfig != null) { _json["infoMergeConfig"] = infoMergeConfig; } @@ -4645,8 +4645,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (done != null) { _json["done"] = done; } @@ -4692,8 +4692,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -4782,8 +4782,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientId != null) { _json["clientId"] = clientId; } @@ -4851,7 +4851,6 @@ class Policy { /** * Associates a list of `members` to a `role`. - * Multiple `bindings` must not be specified for the same `role`. * `bindings` with no members will result in an error. */ core.List<Binding> bindings; @@ -4892,8 +4891,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bindings != null) { _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); } @@ -4940,8 +4939,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (position != null) { _json["position"] = position; } @@ -4993,8 +4992,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (commandLine != null) { _json["commandLine"] = commandLine; } @@ -5040,8 +5039,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (end != null) { _json["end"] = end; } @@ -5299,8 +5298,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alignedQuality != null) { _json["alignedQuality"] = alignedQuality; } @@ -5436,8 +5435,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (datasetId != null) { _json["datasetId"] = datasetId; } @@ -5544,8 +5543,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (datasetId != null) { _json["datasetId"] = datasetId; } @@ -5634,8 +5633,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -5685,8 +5684,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (referenceName != null) { _json["referenceName"] = referenceName; } @@ -5774,8 +5773,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (assemblyId != null) { _json["assemblyId"] = assemblyId; } @@ -5821,8 +5820,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (computeEngine != null) { _json["computeEngine"] = (computeEngine).toJson(); } @@ -5886,8 +5885,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (datasetIds != null) { _json["datasetIds"] = datasetIds; } @@ -5931,8 +5930,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (annotationSets != null) { _json["annotationSets"] = annotationSets.map((value) => (value).toJson()).toList(); } @@ -6010,8 +6009,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (annotationSetIds != null) { _json["annotationSetIds"] = annotationSetIds; } @@ -6058,8 +6057,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (annotations != null) { _json["annotations"] = annotations.map((value) => (value).toJson()).toList(); } @@ -6111,8 +6110,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -6151,8 +6150,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (callSets != null) { _json["callSets"] = callSets.map((value) => (value).toJson()).toList(); } @@ -6204,8 +6203,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (datasetIds != null) { _json["datasetIds"] = datasetIds; } @@ -6244,8 +6243,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -6325,8 +6324,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (end != null) { _json["end"] = end; } @@ -6379,8 +6378,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alignments != null) { _json["alignments"] = alignments.map((value) => (value).toJson()).toList(); } @@ -6441,8 +6440,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accessions != null) { _json["accessions"] = accessions; } @@ -6483,8 +6482,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -6542,8 +6541,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accessions != null) { _json["accessions"] = accessions; } @@ -6584,8 +6583,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -6629,8 +6628,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (datasetIds != null) { _json["datasetIds"] = datasetIds; } @@ -6666,8 +6665,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -6757,8 +6756,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (callSetIds != null) { _json["callSetIds"] = callSetIds; } @@ -6812,8 +6811,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -6842,8 +6841,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (policy != null) { _json["policy"] = (policy).toJson(); } @@ -6939,8 +6938,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -6979,8 +6978,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; } @@ -7004,8 +7003,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; } @@ -7070,8 +7069,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (codingSequence != null) { _json["codingSequence"] = (codingSequence).toJson(); } @@ -7092,8 +7091,8 @@ UndeleteDatasetRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -7213,8 +7212,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alternateBases != null) { _json["alternateBases"] = alternateBases; } @@ -7381,8 +7380,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alternateBases != null) { _json["alternateBases"] = alternateBases; } @@ -7483,8 +7482,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (callSetId != null) { _json["callSetId"] = callSetId; } @@ -7570,8 +7569,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (datasetId != null) { _json["datasetId"] = datasetId; } @@ -7668,8 +7667,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; }
diff --git a/generated/googleapis/lib/gmail/v1.dart b/generated/googleapis/lib/gmail/v1.dart index f84765e..739a644 100644 --- a/generated/googleapis/lib/gmail/v1.dart +++ b/generated/googleapis/lib/gmail/v1.dart
@@ -3359,8 +3359,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (disposition != null) { _json["disposition"] = disposition; } @@ -3386,8 +3386,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ids != null) { _json["ids"] = ids; } @@ -3420,8 +3420,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (addLabelIds != null) { _json["addLabelIds"] = addLabelIds; } @@ -3453,8 +3453,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -3491,8 +3491,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (action != null) { _json["action"] = (action).toJson(); } @@ -3529,8 +3529,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (addLabelIds != null) { _json["addLabelIds"] = addLabelIds; } @@ -3622,8 +3622,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (excludeChats != null) { _json["excludeChats"] = excludeChats; } @@ -3680,8 +3680,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (forwardingEmail != null) { _json["forwardingEmail"] = forwardingEmail; } @@ -3739,8 +3739,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -3779,8 +3779,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (labelIds != null) { _json["labelIds"] = labelIds; } @@ -3807,8 +3807,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (labelIds != null) { _json["labelIds"] = labelIds; } @@ -3830,8 +3830,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (message != null) { _json["message"] = (message).toJson(); } @@ -3850,8 +3850,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (message != null) { _json["message"] = (message).toJson(); } @@ -3903,8 +3903,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoExpunge != null) { _json["autoExpunge"] = autoExpunge; } @@ -3999,8 +3999,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -4054,8 +4054,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (drafts != null) { _json["drafts"] = drafts.map((value) => (value).toJson()).toList(); } @@ -4082,8 +4082,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filter != null) { _json["filter"] = filter.map((value) => (value).toJson()).toList(); } @@ -4104,8 +4104,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (forwardingAddresses != null) { _json["forwardingAddresses"] = forwardingAddresses.map((value) => (value).toJson()).toList(); } @@ -4138,8 +4138,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (history != null) { _json["history"] = history.map((value) => (value).toJson()).toList(); } @@ -4165,8 +4165,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (labels != null) { _json["labels"] = labels.map((value) => (value).toJson()).toList(); } @@ -4196,8 +4196,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (messages != null) { _json["messages"] = messages.map((value) => (value).toJson()).toList(); } @@ -4224,8 +4224,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (sendAs != null) { _json["sendAs"] = sendAs.map((value) => (value).toJson()).toList(); } @@ -4245,8 +4245,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (smimeInfo != null) { _json["smimeInfo"] = smimeInfo.map((value) => (value).toJson()).toList(); } @@ -4276,8 +4276,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -4369,8 +4369,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (historyId != null) { _json["historyId"] = historyId; } @@ -4455,8 +4455,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (body != null) { _json["body"] = (body).toJson(); } @@ -4518,8 +4518,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attachmentId != null) { _json["attachmentId"] = attachmentId; } @@ -4553,8 +4553,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -4582,8 +4582,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (addLabelIds != null) { _json["addLabelIds"] = addLabelIds; } @@ -4611,8 +4611,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (addLabelIds != null) { _json["addLabelIds"] = addLabelIds; } @@ -4657,8 +4657,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accessWindow != null) { _json["accessWindow"] = accessWindow; } @@ -4697,8 +4697,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (emailAddress != null) { _json["emailAddress"] = emailAddress; } @@ -4813,8 +4813,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -4908,8 +4908,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (encryptedKeyPassword != null) { _json["encryptedKeyPassword"] = encryptedKeyPassword; } @@ -4984,8 +4984,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (host != null) { _json["host"] = host; } @@ -5033,8 +5033,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (historyId != null) { _json["historyId"] = historyId; } @@ -5126,8 +5126,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (enableAutoReply != null) { _json["enableAutoReply"] = enableAutoReply; } @@ -5197,8 +5197,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (labelFilterAction != null) { _json["labelFilterAction"] = labelFilterAction; } @@ -5233,8 +5233,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (expiration != null) { _json["expiration"] = expiration; }
diff --git a/generated/googleapis/lib/groupsmigration/v1.dart b/generated/googleapis/lib/groupsmigration/v1.dart index c627903..c900848 100644 --- a/generated/googleapis/lib/groupsmigration/v1.dart +++ b/generated/googleapis/lib/groupsmigration/v1.dart
@@ -113,8 +113,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; }
diff --git a/generated/googleapis/lib/groupssettings/v1.dart b/generated/googleapis/lib/groupssettings/v1.dart index b0bfca9..db2d5eb 100644 --- a/generated/googleapis/lib/groupssettings/v1.dart +++ b/generated/googleapis/lib/groupssettings/v1.dart
@@ -256,7 +256,7 @@ /** * Permissions to post messages to the group. Possible values are: * NONE_CAN_POST ALL_MANAGERS_CAN_POST ALL_MEMBERS_CAN_POST - * ALL_IN_DOMAIN_CAN_POST ANYONE_CAN_POST + * ALL_OWNERS_CAN_POST ALL_IN_DOMAIN_CAN_POST ANYONE_CAN_POST */ core.String whoCanPostMessage; /** @@ -368,8 +368,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allowExternalMembers != null) { _json["allowExternalMembers"] = allowExternalMembers; }
diff --git a/generated/googleapis/lib/iam/v1.dart b/generated/googleapis/lib/iam/v1.dart index de55594..8111990 100644 --- a/generated/googleapis/lib/iam/v1.dart +++ b/generated/googleapis/lib/iam/v1.dart
@@ -241,15 +241,15 @@ * accounts, such as `projects/my-project-123`. * Value must have pattern "^projects/[^/]+$". * + * [pageToken] - Optional pagination token returned in an earlier + * ListServiceAccountsResponse.next_page_token. + * * [pageSize] - Optional limit on the number of service accounts to include in * the * response. Further accounts can subsequently be obtained by including the * ListServiceAccountsResponse.next_page_token * in a subsequent request. * - * [pageToken] - Optional pagination token returned in an earlier - * ListServiceAccountsResponse.next_page_token. - * * Completes with a [ListServiceAccountsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -258,7 +258,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListServiceAccountsResponse> list(core.String name, {core.int pageSize, core.String pageToken}) { + async.Future<ListServiceAccountsResponse> list(core.String name, {core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -269,12 +269,12 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/serviceAccounts'; @@ -830,8 +830,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (policyDelta != null) { _json["policyDelta"] = (policyDelta).toJson(); } @@ -884,8 +884,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (members != null) { _json["members"] = members; } @@ -937,8 +937,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (action != null) { _json["action"] = action; } @@ -992,8 +992,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (includePublicKeyData != null) { _json["includePublicKeyData"] = includePublicKeyData; } @@ -1034,8 +1034,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -1064,8 +1064,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1083,8 +1083,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (keys != null) { _json["keys"] = keys.map((value) => (value).toJson()).toList(); } @@ -1114,8 +1114,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accounts != null) { _json["accounts"] = accounts.map((value) => (value).toJson()).toList(); } @@ -1203,8 +1203,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bindings != null) { _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); } @@ -1231,8 +1231,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bindingDeltas != null) { _json["bindingDeltas"] = bindingDeltas.map((value) => (value).toJson()).toList(); } @@ -1272,8 +1272,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fullResourceName != null) { _json["fullResourceName"] = fullResourceName; } @@ -1308,8 +1308,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1354,8 +1354,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -1454,8 +1454,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -1583,8 +1583,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (keyAlgorithm != null) { _json["keyAlgorithm"] = keyAlgorithm; } @@ -1628,8 +1628,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (policy != null) { _json["policy"] = (policy).toJson(); } @@ -1657,8 +1657,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bytesToSign != null) { _json["bytesToSign"] = bytesToSign; } @@ -1691,8 +1691,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (keyId != null) { _json["keyId"] = keyId; } @@ -1716,8 +1716,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (payload != null) { _json["payload"] = payload; } @@ -1743,8 +1743,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (keyId != null) { _json["keyId"] = keyId; } @@ -1773,8 +1773,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; } @@ -1798,8 +1798,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; }
diff --git a/generated/googleapis/lib/identitytoolkit/v3.dart b/generated/googleapis/lib/identitytoolkit/v3.dart index bd52a59..a46d54d 100644 --- a/generated/googleapis/lib/identitytoolkit/v3.dart +++ b/generated/googleapis/lib/identitytoolkit/v3.dart
@@ -751,8 +751,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allProviders != null) { _json["allProviders"] = allProviders; } @@ -794,8 +794,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -829,8 +829,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -882,8 +882,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (body != null) { _json["body"] = body; } @@ -924,8 +924,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -962,8 +962,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (email != null) { _json["email"] = email; } @@ -1003,8 +1003,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -1125,8 +1125,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (appId != null) { _json["appId"] = appId; } @@ -1199,8 +1199,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (delegatedProjectNumber != null) { _json["delegatedProjectNumber"] = delegatedProjectNumber; } @@ -1251,8 +1251,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (delegatedProjectNumber != null) { _json["delegatedProjectNumber"] = delegatedProjectNumber; } @@ -1300,8 +1300,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (delegatedProjectNumber != null) { _json["delegatedProjectNumber"] = delegatedProjectNumber; } @@ -1385,8 +1385,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allowPasswordUser != null) { _json["allowPasswordUser"] = allowPasswordUser; } @@ -1440,8 +1440,8 @@ }); } - core.Map toJson() { - var _json = {}; + core.Map<core.String, core.String> toJson() { + final core.Map<core.String, core.String> _json = <core.String, core.String>{}; this.forEach((core.String key, value) { _json[key] = value; }); @@ -1492,8 +1492,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (email != null) { _json["email"] = email; } @@ -1626,8 +1626,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (captchaChallenge != null) { _json["captchaChallenge"] = captchaChallenge; } @@ -1761,8 +1761,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allowPasswordUser != null) { _json["allowPasswordUser"] = allowPasswordUser; } @@ -1813,8 +1813,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (projectId != null) { _json["projectId"] = projectId; } @@ -1840,8 +1840,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instanceId != null) { _json["instanceId"] = instanceId; } @@ -1865,8 +1865,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (localId != null) { _json["localId"] = localId; } @@ -1941,8 +1941,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (captchaChallenge != null) { _json["captchaChallenge"] = captchaChallenge; } @@ -2061,8 +2061,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allowOverwrite != null) { _json["allowOverwrite"] = allowOverwrite; } @@ -2178,8 +2178,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoCreate != null) { _json["autoCreate"] = autoCreate; } @@ -2248,8 +2248,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (delegatedProjectNumber != null) { _json["delegatedProjectNumber"] = delegatedProjectNumber; } @@ -2325,8 +2325,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (captchaChallenge != null) { _json["captchaChallenge"] = captchaChallenge; } @@ -2399,8 +2399,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientId != null) { _json["clientId"] = clientId; } @@ -2517,8 +2517,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (androidInstallApp != null) { _json["androidInstallApp"] = androidInstallApp; } @@ -2599,8 +2599,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (email != null) { _json["email"] = email; } @@ -2648,8 +2648,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -2744,8 +2744,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -2835,8 +2835,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -2879,8 +2879,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (index != null) { _json["index"] = index; } @@ -2909,8 +2909,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (error != null) { _json["error"] = error.map((value) => (value).toJson()).toList(); } @@ -2972,8 +2972,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -3114,8 +3114,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createdAt != null) { _json["createdAt"] = createdAt; } @@ -3412,8 +3412,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (action != null) { _json["action"] = action; } @@ -3566,8 +3566,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (expiresIn != null) { _json["expiresIn"] = expiresIn; } @@ -3661,8 +3661,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; }
diff --git a/generated/googleapis/lib/kgsearch/v1.dart b/generated/googleapis/lib/kgsearch/v1.dart index 32c4864..ce51ade 100644 --- a/generated/googleapis/lib/kgsearch/v1.dart +++ b/generated/googleapis/lib/kgsearch/v1.dart
@@ -39,10 +39,6 @@ * * Request parameters: * - * [prefix] - Enables prefix match against names and aliases of entities - * - * [query] - The literal query string for search. - * * [types] - Restricts returned entities with these types, e.g. Person * (as defined in http://schema.org/Person). If multiple types are specified, * returned entities will contain one or more of these types. @@ -60,6 +56,10 @@ * * [limit] - Limits the number of entities to be returned. * + * [prefix] - Enables prefix match against names and aliases of entities + * + * [query] - The literal query string for search. + * * Completes with a [SearchResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -68,7 +68,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<SearchResponse> search({core.bool prefix, core.String query, core.List<core.String> types, core.bool indent, core.List<core.String> languages, core.List<core.String> ids, core.int limit}) { + async.Future<SearchResponse> search({core.List<core.String> types, core.bool indent, core.List<core.String> languages, core.List<core.String> ids, core.int limit, core.bool prefix, core.String query}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -76,12 +76,6 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (prefix != null) { - _queryParams["prefix"] = ["${prefix}"]; - } - if (query != null) { - _queryParams["query"] = [query]; - } if (types != null) { _queryParams["types"] = types; } @@ -97,6 +91,12 @@ if (limit != null) { _queryParams["limit"] = ["${limit}"]; } + if (prefix != null) { + _queryParams["prefix"] = ["${prefix}"]; + } + if (query != null) { + _queryParams["query"] = [query]; + } _url = 'v1/entities:search'; @@ -156,8 +156,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (P_context != null) { _json["@context"] = P_context; }
diff --git a/generated/googleapis/lib/language/v1.dart b/generated/googleapis/lib/language/v1.dart index fb888d9..eacff7d 100644 --- a/generated/googleapis/lib/language/v1.dart +++ b/generated/googleapis/lib/language/v1.dart
@@ -240,8 +240,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (document != null) { _json["document"] = (document).toJson(); } @@ -274,8 +274,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entities != null) { _json["entities"] = entities.map((value) => (value).toJson()).toList(); } @@ -322,8 +322,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (document != null) { _json["document"] = (document).toJson(); } @@ -361,8 +361,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (documentSentiment != null) { _json["documentSentiment"] = (documentSentiment).toJson(); } @@ -412,8 +412,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (document != null) { _json["document"] = (document).toJson(); } @@ -451,8 +451,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (language != null) { _json["language"] = language; } @@ -510,8 +510,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (document != null) { _json["document"] = (document).toJson(); } @@ -576,8 +576,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (documentSentiment != null) { _json["documentSentiment"] = (documentSentiment).toJson(); } @@ -706,8 +706,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (headTokenIndex != null) { _json["headTokenIndex"] = headTokenIndex; } @@ -771,8 +771,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (content != null) { _json["content"] = content; } @@ -852,8 +852,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (mentions != null) { _json["mentions"] = mentions.map((value) => (value).toJson()).toList(); } @@ -900,8 +900,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (text != null) { _json["text"] = (text).toJson(); } @@ -938,8 +938,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (extractDocumentSentiment != null) { _json["extractDocumentSentiment"] = extractDocumentSentiment; } @@ -1155,8 +1155,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aspect != null) { _json["aspect"] = aspect; } @@ -1219,8 +1219,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (sentiment != null) { _json["sentiment"] = (sentiment).toJson(); } @@ -1259,8 +1259,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (magnitude != null) { _json["magnitude"] = magnitude; } @@ -1359,8 +1359,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -1395,8 +1395,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (beginOffset != null) { _json["beginOffset"] = beginOffset; } @@ -1437,8 +1437,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dependencyEdge != null) { _json["dependencyEdge"] = (dependencyEdge).toJson(); }
diff --git a/generated/googleapis/lib/licensing/v1.dart b/generated/googleapis/lib/licensing/v1.dart index 171ed55..44a1d9c 100644 --- a/generated/googleapis/lib/licensing/v1.dart +++ b/generated/googleapis/lib/licensing/v1.dart
@@ -465,8 +465,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etags != null) { _json["etags"] = etags; } @@ -508,8 +508,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (userId != null) { _json["userId"] = userId; } @@ -548,8 +548,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; }
diff --git a/generated/googleapis/lib/logging/v2.dart b/generated/googleapis/lib/logging/v2.dart index 464eb66..7365d67 100644 --- a/generated/googleapis/lib/logging/v2.dart +++ b/generated/googleapis/lib/logging/v2.dart
@@ -432,7 +432,8 @@ * there is no change to the sink's writer_identity. * If the old value is false and the new value is true, then writer_identity * is changed to a unique service account. - * It is an error if the old value is true and the new value is false. + * It is an error if the old value is true and the new value is set to false + * or defaulted to false. * * Completes with a [LogSink]. * @@ -949,7 +950,8 @@ * there is no change to the sink's writer_identity. * If the old value is false and the new value is true, then writer_identity * is changed to a unique service account. - * It is an error if the old value is true and the new value is false. + * It is an error if the old value is true and the new value is set to false + * or defaulted to false. * * Completes with a [LogSink]. * @@ -1132,15 +1134,15 @@ * * Value must have pattern "^organizations/[^/]+$". * + * [pageSize] - Optional. The maximum number of results to return from this + * request. Non-positive values are ignored. The presence of nextPageToken in + * the response indicates that more results might be available. + * * [pageToken] - Optional. If present, then retrieve the next batch of results * from the preceding call to this method. pageToken must be the value of * nextPageToken from the previous response. The values of other method * parameters should be identical to those in the previous call. * - * [pageSize] - Optional. The maximum number of results to return from this - * request. Non-positive values are ignored. The presence of nextPageToken in - * the response indicates that more results might be available. - * * Completes with a [ListLogsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1149,7 +1151,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListLogsResponse> list(core.String parent, {core.String pageToken, core.int pageSize}) { + async.Future<ListLogsResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1160,12 +1162,12 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; @@ -1361,15 +1363,15 @@ * * Value must have pattern "^organizations/[^/]+$". * + * [pageSize] - Optional. The maximum number of results to return from this + * request. Non-positive values are ignored. The presence of nextPageToken in + * the response indicates that more results might be available. + * * [pageToken] - Optional. If present, then retrieve the next batch of results * from the preceding call to this method. pageToken must be the value of * nextPageToken from the previous response. The values of other method * parameters should be identical to those in the previous call. * - * [pageSize] - Optional. The maximum number of results to return from this - * request. Non-positive values are ignored. The presence of nextPageToken in - * the response indicates that more results might be available. - * * Completes with a [ListSinksResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1378,7 +1380,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListSinksResponse> list(core.String parent, {core.String pageToken, core.int pageSize}) { + async.Future<ListSinksResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1389,12 +1391,12 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; @@ -1437,7 +1439,8 @@ * there is no change to the sink's writer_identity. * If the old value is false and the new value is true, then writer_identity * is changed to a unique service account. - * It is an error if the old value is true and the new value is false. + * It is an error if the old value is true and the new value is set to false + * or defaulted to false. * * Completes with a [LogSink]. * @@ -2113,7 +2116,8 @@ * there is no change to the sink's writer_identity. * If the old value is false and the new value is true, then writer_identity * is changed to a unique service account. - * It is an error if the old value is true and the new value is false. + * It is an error if the old value is true and the new value is set to false + * or defaulted to false. * * Completes with a [LogSink]. * @@ -2173,8 +2177,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -2298,8 +2302,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cacheFillBytes != null) { _json["cacheFillBytes"] = cacheFillBytes; } @@ -2375,8 +2379,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -2464,8 +2468,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filter != null) { _json["filter"] = filter; } @@ -2516,8 +2520,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -2550,8 +2554,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metrics != null) { _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); } @@ -2587,8 +2591,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (logNames != null) { _json["logNames"] = logNames; } @@ -2621,8 +2625,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -2655,8 +2659,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -2824,8 +2828,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (httpRequest != null) { _json["httpRequest"] = (httpRequest).toJson(); } @@ -2914,8 +2918,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (first != null) { _json["first"] = first; } @@ -2970,8 +2974,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (file != null) { _json["file"] = file; } @@ -3027,8 +3031,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (logMessage != null) { _json["logMessage"] = logMessage; } @@ -3101,8 +3105,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -3234,8 +3238,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (destination != null) { _json["destination"] = destination; } @@ -3303,8 +3307,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (labels != null) { _json["labels"] = labels; } @@ -3379,8 +3383,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -3601,8 +3605,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (appEngineRelease != null) { _json["appEngineRelease"] = appEngineRelease; } @@ -3735,8 +3739,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (file != null) { _json["file"] = file; } @@ -3777,8 +3781,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (repository != null) { _json["repository"] = repository; } @@ -3862,8 +3866,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -3891,8 +3895,8 @@ WriteLogEntriesResponse.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } }
diff --git a/generated/googleapis/lib/manufacturers/v1.dart b/generated/googleapis/lib/manufacturers/v1.dart index 694400b..110e355 100644 --- a/generated/googleapis/lib/manufacturers/v1.dart +++ b/generated/googleapis/lib/manufacturers/v1.dart
@@ -430,8 +430,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (additionalImageLink != null) { _json["additionalImageLink"] = additionalImageLink.map((value) => (value).toJson()).toList(); } @@ -553,8 +553,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (unit != null) { _json["unit"] = unit; } @@ -586,8 +586,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (unit != null) { _json["unit"] = unit; } @@ -624,8 +624,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (headline != null) { _json["headline"] = headline; } @@ -691,8 +691,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (imageUrl != null) { _json["imageUrl"] = imageUrl; } @@ -759,8 +759,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attribute != null) { _json["attribute"] = attribute; } @@ -797,8 +797,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -827,8 +827,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (amount != null) { _json["amount"] = amount; } @@ -945,8 +945,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contentLanguage != null) { _json["contentLanguage"] = contentLanguage; } @@ -1009,8 +1009,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attributeName != null) { _json["attributeName"] = attributeName; }
diff --git a/generated/googleapis/lib/mirror/v1.dart b/generated/googleapis/lib/mirror/v1.dart index e5048ac..3610fcb 100644 --- a/generated/googleapis/lib/mirror/v1.dart +++ b/generated/googleapis/lib/mirror/v1.dart
@@ -1204,8 +1204,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (authTokens != null) { _json["authTokens"] = authTokens.map((value) => (value).toJson()).toList(); } @@ -1257,8 +1257,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contentType != null) { _json["contentType"] = contentType; } @@ -1296,8 +1296,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -1323,8 +1323,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (authToken != null) { _json["authToken"] = authToken; } @@ -1354,8 +1354,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (type != null) { _json["type"] = type; } @@ -1472,8 +1472,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (acceptCommands != null) { _json["acceptCommands"] = acceptCommands.map((value) => (value).toJson()).toList(); } @@ -1535,8 +1535,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -1601,8 +1601,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accuracy != null) { _json["accuracy"] = accuracy; } @@ -1652,8 +1652,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -1761,8 +1761,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (action != null) { _json["action"] = action; } @@ -1819,8 +1819,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -1878,8 +1878,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (collection != null) { _json["collection"] = collection; } @@ -1926,8 +1926,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deliveryTime != null) { _json["deliveryTime"] = (deliveryTime).toIso8601String(); } @@ -1967,8 +1967,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -2063,8 +2063,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (callbackUrl != null) { _json["callbackUrl"] = callbackUrl; } @@ -2117,8 +2117,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -2377,8 +2377,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attachments != null) { _json["attachments"] = attachments.map((value) => (value).toJson()).toList(); } @@ -2490,8 +2490,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -2539,8 +2539,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (payload != null) { _json["payload"] = payload; } @@ -2566,8 +2566,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; }
diff --git a/generated/googleapis/lib/ml/v1.dart b/generated/googleapis/lib/ml/v1.dart index 1c0dda0..ea6b7f1 100644 --- a/generated/googleapis/lib/ml/v1.dart +++ b/generated/googleapis/lib/ml/v1.dart
@@ -288,6 +288,8 @@ * Authorization: requires `Viewer` role on the specified project. * Value must have pattern "^projects/[^/]+$". * + * [filter] - Optional. Specifies the subset of jobs to retrieve. + * * [pageToken] - Optional. A page token to request the next page of results. * * You get the token from the `next_page_token` field of the response from @@ -300,8 +302,6 @@ * * The default value is 20, and the maximum page size is 100. * - * [filter] - Optional. Specifies the subset of jobs to retrieve. - * * Completes with a [GoogleCloudMlV1ListJobsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -310,7 +310,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<GoogleCloudMlV1ListJobsResponse> list(core.String parent, {core.String pageToken, core.int pageSize, core.String filter}) { + async.Future<GoogleCloudMlV1ListJobsResponse> list(core.String parent, {core.String filter, core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -321,15 +321,15 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } + if (filter != null) { + _queryParams["filter"] = [filter]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } - if (filter != null) { - _queryParams["filter"] = [filter]; - } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/jobs'; @@ -733,6 +733,11 @@ * Authorization: requires `Viewer` role on the parent project. * Value must have pattern "^projects/[^/]+/models/[^/]+$". * + * [pageToken] - Optional. A page token to request the next page of results. + * + * You get the token from the `next_page_token` field of the response from + * the previous call. + * * [pageSize] - Optional. The number of versions to retrieve per "page" of * results. If * there are more remaining results than this number, the response message @@ -740,11 +745,6 @@ * * The default value is 20, and the maximum page size is 100. * - * [pageToken] - Optional. A page token to request the next page of results. - * - * You get the token from the `next_page_token` field of the response from - * the previous call. - * * Completes with a [GoogleCloudMlV1ListVersionsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -753,7 +753,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<GoogleCloudMlV1ListVersionsResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) { + async.Future<GoogleCloudMlV1ListVersionsResponse> list(core.String parent, {core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -764,12 +764,12 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/versions'; @@ -987,20 +987,25 @@ * Lists operations that match the specified filter in the request. If the * server doesn't support this method, it returns `UNIMPLEMENTED`. * - * NOTE: the `name` binding below allows API services to override the binding - * to use different resource name schemes, such as `users / * /operations`. + * NOTE: the `name` binding allows API services to override the binding + * to use different resource name schemes, such as `users / * /operations`. To + * override the binding, API services can add a binding such as + * `"/v1/{name=users / * }/operations"` to their service configuration. + * For backwards compatibility, the default name includes the operations + * collection id, however overriding users must ensure the name binding + * is the parent resource, without the operations collection id. * * Request parameters: * - * [name] - The name of the operation collection. + * [name] - The name of the operation's parent resource. * Value must have pattern "^projects/[^/]+$". * - * [pageSize] - The standard list page size. - * * [filter] - The standard list filter. * * [pageToken] - The standard list page token. * + * [pageSize] - The standard list page size. + * * Completes with a [GoogleLongrunningListOperationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1009,7 +1014,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<GoogleLongrunningListOperationsResponse> list(core.String name, {core.int pageSize, core.String filter, core.String pageToken}) { + async.Future<GoogleLongrunningListOperationsResponse> list(core.String name, {core.String filter, core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1020,15 +1025,15 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (filter != null) { _queryParams["filter"] = [filter]; } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/operations'; @@ -1100,6 +1105,14 @@ void set dataAsBytes(core.List<core.int> _bytes) { data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); } + /** + * Application specific response metadata. Must be set in the first response + * for streaming APIs. + * + * The values for Object must be JSON objects. It can consist of `num`, + * `String`, `bool` and `null` as well as `Map` and `List` values. + */ + core.List<core.Map<core.String, core.Object>> extensions; GoogleApiHttpBody(); @@ -1110,16 +1123,22 @@ if (_json.containsKey("data")) { data = _json["data"]; } + if (_json.containsKey("extensions")) { + extensions = _json["extensions"]; + } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contentType != null) { _json["contentType"] = contentType; } if (data != null) { _json["data"] = data; } + if (extensions != null) { + _json["extensions"] = extensions; + } return _json; } } @@ -1142,8 +1161,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (objectiveValue != null) { _json["objectiveValue"] = objectiveValue; } @@ -1154,6 +1173,47 @@ } } +/** Options for automatically scaling a model. */ +class GoogleCloudMlV1AutomaticScaling { + /** + * Optional. The minimum number of nodes to allocate for this model. These + * nodes are always up, starting from the time the model is deployed, so the + * cost of operating this model will be at least + * `rate` * `min_nodes` * number of hours since last billing cycle, + * where `rate` is the cost per node-hour as documented in + * [pricing](https://cloud.google.com/ml-engine/pricing#prediction_pricing), + * even if no predictions are performed. There is additional cost for each + * prediction performed. + * + * Unlike manual scaling, if the load gets too heavy for the nodes + * that are up, the service will automatically add nodes to handle the + * increased load as well as scale back as traffic drops, always maintaining + * at least `min_nodes`. You will be charged for the time in which additional + * nodes are used. + * + * If not specified, `min_nodes` defaults to 0, in which case, when traffic + * to a model stops (and after a cool-down period), nodes will be shut down + * and no charges will be incurred until traffic to the model resumes. + */ + core.int minNodes; + + GoogleCloudMlV1AutomaticScaling(); + + GoogleCloudMlV1AutomaticScaling.fromJson(core.Map _json) { + if (_json.containsKey("minNodes")) { + minNodes = _json["minNodes"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (minNodes != null) { + _json["minNodes"] = minNodes; + } + return _json; + } +} + /** Request message for the CancelJob method. */ class GoogleCloudMlV1CancelJobRequest { @@ -1162,8 +1222,8 @@ GoogleCloudMlV1CancelJobRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1186,8 +1246,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (serviceAccount != null) { _json["serviceAccount"] = serviceAccount; } @@ -1231,8 +1291,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allMetrics != null) { _json["allMetrics"] = allMetrics.map((value) => (value).toJson()).toList(); } @@ -1313,8 +1373,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (goal != null) { _json["goal"] = goal; } @@ -1407,8 +1467,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createTime != null) { _json["createTime"] = createTime; } @@ -1464,8 +1524,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (jobs != null) { _json["jobs"] = jobs.map((value) => (value).toJson()).toList(); } @@ -1497,8 +1557,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (models != null) { _json["models"] = models.map((value) => (value).toJson()).toList(); } @@ -1530,8 +1590,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1547,8 +1607,8 @@ /** * The number of nodes to allocate for this model. These nodes are always up, * starting from the time the model is deployed, so the cost of operating - * this model will be proportional to nodes * number of hours since - * deployment. + * this model will be proportional to `nodes` * number of hours since + * last billing cycle plus the cost for each prediction performed. */ core.int nodes; @@ -1560,8 +1620,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nodes != null) { _json["nodes"] = nodes; } @@ -1631,8 +1691,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (defaultVersion != null) { _json["defaultVersion"] = (defaultVersion).toJson(); } @@ -1702,8 +1762,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createTime != null) { _json["createTime"] = createTime; } @@ -1820,8 +1880,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (categoricalValues != null) { _json["categoricalValues"] = categoricalValues; } @@ -2050,8 +2110,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (httpBody != null) { _json["httpBody"] = (httpBody).toJson(); } @@ -2148,8 +2208,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dataFormat != null) { _json["dataFormat"] = dataFormat; } @@ -2211,8 +2271,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errorCount != null) { _json["errorCount"] = errorCount; } @@ -2237,8 +2297,8 @@ GoogleCloudMlV1SetDefaultVersionRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -2444,8 +2504,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (args != null) { _json["args"] = args; } @@ -2523,8 +2583,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (completedTrialCount != null) { _json["completedTrialCount"] = completedTrialCount; } @@ -2550,6 +2610,13 @@ * [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.versions/list). */ class GoogleCloudMlV1Version { + /** + * Automatically scale the number of nodes used to serve the model in + * response to increases and decreases in traffic. Care should be + * taken to ramp up traffic according to the model's ability to scale + * or you will start seeing increases in latency and 429 response codes. + */ + GoogleCloudMlV1AutomaticScaling automaticScaling; /** Output only. The time the version was created. */ core.String createTime; /** @@ -2582,12 +2649,12 @@ /** Output only. The time the version was last used for prediction. */ core.String lastUseTime; /** - * Optional. Manually select the number of nodes to use for serving the - * model. If unset (i.e., by default), the number of nodes used to serve - * the model automatically scales with traffic. However, care should be - * taken to ramp up traffic according to the model's ability to scale. If - * your model needs to handle bursts of traffic beyond it's ability to - * scale, it is recommended you set this field appropriately. + * Manually select the number of nodes to use for serving the + * model. You should generally use `automatic_scaling` with an appropriate + * `min_nodes` instead, but this option is available if you want more + * predictable billing. Beware that latency and error rates will increase + * if the traffic exceeds that capability of the system to serve it based + * on the selected number of nodes. */ GoogleCloudMlV1ManualScaling manualScaling; /** @@ -2605,6 +2672,9 @@ GoogleCloudMlV1Version(); GoogleCloudMlV1Version.fromJson(core.Map _json) { + if (_json.containsKey("automaticScaling")) { + automaticScaling = new GoogleCloudMlV1AutomaticScaling.fromJson(_json["automaticScaling"]); + } if (_json.containsKey("createTime")) { createTime = _json["createTime"]; } @@ -2631,8 +2701,11 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (automaticScaling != null) { + _json["automaticScaling"] = (automaticScaling).toJson(); + } if (createTime != null) { _json["createTime"] = createTime; } @@ -2661,13 +2734,54 @@ } } +/** Options for automatically scaling a model. */ +class GoogleCloudMlV1beta1AutomaticScaling { + /** + * Optional. The minimum number of nodes to allocate for this model. These + * nodes are always up, starting from the time the model is deployed, so the + * cost of operating this model will be at least + * `rate` * `min_nodes` * number of hours since last billing cycle, + * where `rate` is the cost per node-hour as documented in + * [pricing](https://cloud.google.com/ml-engine/pricing#prediction_pricing), + * even if no predictions are performed. There is additional cost for each + * prediction performed. + * + * Unlike manual scaling, if the load gets too heavy for the nodes + * that are up, the service will automatically add nodes to handle the + * increased load as well as scale back as traffic drops, always maintaining + * at least `min_nodes`. You will be charged for the time in which additional + * nodes are used. + * + * If not specified, `min_nodes` defaults to 0, in which case, when traffic + * to a model stops (and after a cool-down period), nodes will be shut down + * and no charges will be incurred until traffic to the model resumes. + */ + core.int minNodes; + + GoogleCloudMlV1beta1AutomaticScaling(); + + GoogleCloudMlV1beta1AutomaticScaling.fromJson(core.Map _json) { + if (_json.containsKey("minNodes")) { + minNodes = _json["minNodes"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (minNodes != null) { + _json["minNodes"] = minNodes; + } + return _json; + } +} + /** Options for manually scaling a model. */ class GoogleCloudMlV1beta1ManualScaling { /** * The number of nodes to allocate for this model. These nodes are always up, * starting from the time the model is deployed, so the cost of operating - * this model will be proportional to nodes * number of hours since - * deployment. + * this model will be proportional to `nodes` * number of hours since + * last billing cycle. */ core.int nodes; @@ -2679,8 +2793,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nodes != null) { _json["nodes"] = nodes; } @@ -2738,8 +2852,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createTime != null) { _json["createTime"] = createTime; } @@ -2774,6 +2888,13 @@ * [projects.models.versions.list](/ml-engine/reference/rest/v1beta1/projects.models.versions/list). */ class GoogleCloudMlV1beta1Version { + /** + * Automatically scale the number of nodes used to serve the model in + * response to increases and decreases in traffic. Care should be + * taken to ramp up traffic according to the model's ability to scale + * or you will start seeing increases in latency and 429 response codes. + */ + GoogleCloudMlV1beta1AutomaticScaling automaticScaling; /** Output only. The time the version was created. */ core.String createTime; /** @@ -2806,12 +2927,12 @@ /** Output only. The time the version was last used for prediction. */ core.String lastUseTime; /** - * Optional. Manually select the number of nodes to use for serving the - * model. If unset (i.e., by default), the number of nodes used to serve - * the model automatically scales with traffic. However, care should be - * taken to ramp up traffic according to the model's ability to scale. If - * your model needs to handle bursts of traffic beyond it's ability to - * scale, it is recommended you set this field appropriately. + * Manually select the number of nodes to use for serving the + * model. You should generally use `automatic_scaling` with an appropriate + * `min_nodes` instead, but this option is available if you want predictable + * billing. Beware that latency and error rates will increase if the + * traffic exceeds that capability of the system to serve it based on + * the selected number of nodes. */ GoogleCloudMlV1beta1ManualScaling manualScaling; /** @@ -2829,6 +2950,9 @@ GoogleCloudMlV1beta1Version(); GoogleCloudMlV1beta1Version.fromJson(core.Map _json) { + if (_json.containsKey("automaticScaling")) { + automaticScaling = new GoogleCloudMlV1beta1AutomaticScaling.fromJson(_json["automaticScaling"]); + } if (_json.containsKey("createTime")) { createTime = _json["createTime"]; } @@ -2855,8 +2979,11 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (automaticScaling != null) { + _json["automaticScaling"] = (automaticScaling).toJson(); + } if (createTime != null) { _json["createTime"] = createTime; } @@ -2903,8 +3030,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -2979,8 +3106,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (done != null) { _json["done"] = done; } @@ -3018,8 +3145,8 @@ GoogleProtobufEmpty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -3112,8 +3239,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; }
diff --git a/generated/googleapis/lib/monitoring/v3.dart b/generated/googleapis/lib/monitoring/v3.dart index f98ad9f..2303347 100644 --- a/generated/googleapis/lib/monitoring/v3.dart +++ b/generated/googleapis/lib/monitoring/v3.dart
@@ -415,6 +415,15 @@ * "projects/{project_id_or_number}/groups/{group_id}". * Value must have pattern "^projects/[^/]+/groups/[^/]+$". * + * [pageSize] - A positive number that is the maximum number of results to + * return. + * + * [interval_startTime] - Optional. The beginning of the time interval. The + * default value for the start time is the end time. The start time must not + * be later than the end time. + * + * [interval_endTime] - Required. The end of the time interval. + * * [filter] - An optional list filter describing the members to be returned. * The filter may reference the type, labels, and metadata of monitored * resources that comprise the group. For example, to return only resources @@ -426,15 +435,6 @@ * field causes the method to return additional results from the previous * method call. * - * [interval_startTime] - Optional. The beginning of the time interval. The - * default value for the start time is the end time. The start time must not - * be later than the end time. - * - * [pageSize] - A positive number that is the maximum number of results to - * return. - * - * [interval_endTime] - Required. The end of the time interval. - * * Completes with a [ListGroupMembersResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -443,7 +443,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListGroupMembersResponse> list(core.String name, {core.String filter, core.String pageToken, core.String interval_startTime, core.int pageSize, core.String interval_endTime}) { + async.Future<ListGroupMembersResponse> list(core.String name, {core.int pageSize, core.String interval_startTime, core.String interval_endTime, core.String filter, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -454,21 +454,21 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (interval_startTime != null) { + _queryParams["interval.startTime"] = [interval_startTime]; + } + if (interval_endTime != null) { + _queryParams["interval.endTime"] = [interval_endTime]; + } if (filter != null) { _queryParams["filter"] = [filter]; } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } - if (interval_startTime != null) { - _queryParams["interval.startTime"] = [interval_startTime]; - } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } - if (interval_endTime != null) { - _queryParams["interval.endTime"] = [interval_endTime]; - } _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/members'; @@ -635,9 +635,6 @@ * "projects/{project_id_or_number}". * Value must have pattern "^projects/[^/]+$". * - * [pageSize] - A positive number that is the maximum number of results to - * return. - * * [filter] - If this field is empty, all custom and system-defined metric * descriptors are returned. Otherwise, the filter specifies which metric * descriptors are to be returned. For example, the following filter matches @@ -649,6 +646,9 @@ * field causes the method to return additional results from the previous * method call. * + * [pageSize] - A positive number that is the maximum number of results to + * return. + * * Completes with a [ListMetricDescriptorsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -657,7 +657,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListMetricDescriptorsResponse> list(core.String name, {core.int pageSize, core.String filter, core.String pageToken}) { + async.Future<ListMetricDescriptorsResponse> list(core.String name, {core.String filter, core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -668,15 +668,15 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (filter != null) { _queryParams["filter"] = [filter]; } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/metricDescriptors'; @@ -753,9 +753,6 @@ * "projects/{project_id_or_number}". * Value must have pattern "^projects/[^/]+$". * - * [pageSize] - A positive number that is the maximum number of results to - * return. - * * [filter] - An optional filter describing the descriptors to be returned. * The filter can reference the descriptor's type and labels. For example, the * following filter returns only Google Compute Engine descriptors that have @@ -767,6 +764,9 @@ * field causes the method to return additional results from the previous * method call. * + * [pageSize] - A positive number that is the maximum number of results to + * return. + * * Completes with a [ListMonitoredResourceDescriptorsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -775,7 +775,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListMonitoredResourceDescriptorsResponse> list(core.String name, {core.int pageSize, core.String filter, core.String pageToken}) { + async.Future<ListMonitoredResourceDescriptorsResponse> list(core.String name, {core.String filter, core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -786,15 +786,15 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (filter != null) { _queryParams["filter"] = [filter]; } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/monitoredResourceDescriptors'; @@ -1084,8 +1084,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (explicitBuckets != null) { _json["explicitBuckets"] = (explicitBuckets).toJson(); } @@ -1131,7 +1131,7 @@ endTime = _json["endTime"]; } if (_json.containsKey("metadata")) { - metadata = commons.mapMap(_json["metadata"], (item) => new TypedValue.fromJson(item)); + metadata = commons.mapMap<core.Map<core.String, core.Object>, TypedValue>(_json["metadata"], (core.Map<core.String, core.Object> item) => new TypedValue.fromJson(item)); } if (_json.containsKey("plugin")) { plugin = _json["plugin"]; @@ -1153,13 +1153,13 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } if (metadata != null) { - _json["metadata"] = commons.mapMap(metadata, (item) => (item).toJson()); + _json["metadata"] = commons.mapMap<TypedValue, core.Map<core.String, core.Object>>(metadata, (TypedValue item) => (item).toJson()); } if (plugin != null) { _json["plugin"] = plugin; @@ -1222,8 +1222,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dataSourceName != null) { _json["dataSourceName"] = dataSourceName; } @@ -1267,8 +1267,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (collectdPayloads != null) { _json["collectdPayloads"] = collectdPayloads.map((value) => (value).toJson()).toList(); } @@ -1301,8 +1301,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (timeSeries != null) { _json["timeSeries"] = timeSeries.map((value) => (value).toJson()).toList(); } @@ -1390,8 +1390,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bucketCounts != null) { _json["bucketCounts"] = bucketCounts; } @@ -1430,8 +1430,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1456,8 +1456,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bounds != null) { _json["bounds"] = bounds; } @@ -1495,8 +1495,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (growthFactor != null) { _json["growthFactor"] = growthFactor; } @@ -1605,8 +1605,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cardinality != null) { _json["cardinality"] = cardinality; } @@ -1711,8 +1711,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -1761,8 +1761,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -1806,8 +1806,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (numFiniteBuckets != null) { _json["numFiniteBuckets"] = numFiniteBuckets; } @@ -1848,8 +1848,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (members != null) { _json["members"] = members.map((value) => (value).toJson()).toList(); } @@ -1885,8 +1885,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (group != null) { _json["group"] = group.map((value) => (value).toJson()).toList(); } @@ -1922,8 +1922,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metricDescriptors != null) { _json["metricDescriptors"] = metricDescriptors.map((value) => (value).toJson()).toList(); } @@ -1959,8 +1959,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1993,8 +1993,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -2032,8 +2032,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (labels != null) { _json["labels"] = labels; } @@ -2195,8 +2195,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -2264,8 +2264,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (labels != null) { _json["labels"] = labels; } @@ -2340,8 +2340,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -2395,8 +2395,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -2434,8 +2434,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (interval != null) { _json["interval"] = (interval).toJson(); } @@ -2464,8 +2464,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (max != null) { _json["max"] = max; } @@ -2495,8 +2495,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fileName != null) { _json["fileName"] = fileName; } @@ -2530,8 +2530,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } @@ -2627,8 +2627,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metric != null) { _json["metric"] = (metric).toJson(); } @@ -2691,8 +2691,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields.map((value) => (value).toJson()).toList(); } @@ -2754,8 +2754,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (boolValue != null) { _json["boolValue"] = boolValue; }
diff --git a/generated/googleapis/lib/oauth2/v2.dart b/generated/googleapis/lib/oauth2/v2.dart index 7e481e4..63994c2 100644 --- a/generated/googleapis/lib/oauth2/v2.dart +++ b/generated/googleapis/lib/oauth2/v2.dart
@@ -244,8 +244,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alg != null) { _json["alg"] = alg; } @@ -279,8 +279,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (keys != null) { _json["keys"] = keys.map((value) => (value).toJson()).toList(); } @@ -349,8 +349,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accessType != null) { _json["access_type"] = accessType; } @@ -447,8 +447,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (email != null) { _json["email"] = email; }
diff --git a/generated/googleapis/lib/pagespeedonline/v1.dart b/generated/googleapis/lib/pagespeedonline/v1.dart index 96a8a07..6f55fa9 100644 --- a/generated/googleapis/lib/pagespeedonline/v1.dart +++ b/generated/googleapis/lib/pagespeedonline/v1.dart
@@ -134,8 +134,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (type != null) { _json["type"] = type; } @@ -168,8 +168,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (args != null) { _json["args"] = args.map((value) => (value).toJson()).toList(); } @@ -200,8 +200,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (type != null) { _json["type"] = type; } @@ -233,8 +233,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (args != null) { _json["args"] = args.map((value) => (value).toJson()).toList(); } @@ -265,8 +265,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (type != null) { _json["type"] = type; } @@ -301,8 +301,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (args != null) { _json["args"] = args.map((value) => (value).toJson()).toList(); } @@ -336,8 +336,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (details != null) { _json["details"] = details.map((value) => (value).toJson()).toList(); } @@ -368,8 +368,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (header != null) { _json["header"] = (header).toJson(); } @@ -417,8 +417,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (localizedRuleName != null) { _json["localizedRuleName"] = localizedRuleName; } @@ -452,17 +452,17 @@ locale = _json["locale"]; } if (_json.containsKey("ruleResults")) { - ruleResults = commons.mapMap(_json["ruleResults"], (item) => new ResultFormattedResultsRuleResultsValue.fromJson(item)); + ruleResults = commons.mapMap<core.Map<core.String, core.Object>, ResultFormattedResultsRuleResultsValue>(_json["ruleResults"], (core.Map<core.String, core.Object> item) => new ResultFormattedResultsRuleResultsValue.fromJson(item)); } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (locale != null) { _json["locale"] = locale; } if (ruleResults != null) { - _json["ruleResults"] = commons.mapMap(ruleResults, (item) => (item).toJson()); + _json["ruleResults"] = commons.mapMap<ResultFormattedResultsRuleResultsValue, core.Map<core.String, core.Object>>(ruleResults, (ResultFormattedResultsRuleResultsValue item) => (item).toJson()); } return _json; } @@ -550,8 +550,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cssResponseBytes != null) { _json["cssResponseBytes"] = cssResponseBytes; } @@ -630,8 +630,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (data != null) { _json["data"] = data; } @@ -666,8 +666,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (major != null) { _json["major"] = major; } @@ -754,8 +754,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (formattedResults != null) { _json["formattedResults"] = (formattedResults).toJson(); }
diff --git a/generated/googleapis/lib/pagespeedonline/v2.dart b/generated/googleapis/lib/pagespeedonline/v2.dart index f97bf43..ef13500 100644 --- a/generated/googleapis/lib/pagespeedonline/v2.dart +++ b/generated/googleapis/lib/pagespeedonline/v2.dart
@@ -141,8 +141,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -186,8 +186,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -247,8 +247,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -290,8 +290,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (args != null) { _json["args"] = args.map((value) => (value).toJson()).toList(); } @@ -333,8 +333,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -398,8 +398,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (data != null) { _json["data"] = data; } @@ -445,8 +445,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (details != null) { _json["details"] = details.map((value) => (value).toJson()).toList(); } @@ -477,8 +477,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (header != null) { _json["header"] = (header).toJson(); } @@ -543,8 +543,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (groups != null) { _json["groups"] = groups; } @@ -584,17 +584,17 @@ locale = _json["locale"]; } if (_json.containsKey("ruleResults")) { - ruleResults = commons.mapMap(_json["ruleResults"], (item) => new ResultFormattedResultsRuleResultsValue.fromJson(item)); + ruleResults = commons.mapMap<core.Map<core.String, core.Object>, ResultFormattedResultsRuleResultsValue>(_json["ruleResults"], (core.Map<core.String, core.Object> item) => new ResultFormattedResultsRuleResultsValue.fromJson(item)); } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (locale != null) { _json["locale"] = locale; } if (ruleResults != null) { - _json["ruleResults"] = commons.mapMap(ruleResults, (item) => (item).toJson()); + _json["ruleResults"] = commons.mapMap<ResultFormattedResultsRuleResultsValue, core.Map<core.String, core.Object>>(ruleResults, (ResultFormattedResultsRuleResultsValue item) => (item).toJson()); } return _json; } @@ -682,8 +682,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cssResponseBytes != null) { _json["cssResponseBytes"] = cssResponseBytes; } @@ -745,8 +745,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (score != null) { _json["score"] = score; } @@ -772,8 +772,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (major != null) { _json["major"] = major; } @@ -843,7 +843,7 @@ responseCode = _json["responseCode"]; } if (_json.containsKey("ruleGroups")) { - ruleGroups = commons.mapMap(_json["ruleGroups"], (item) => new ResultRuleGroupsValue.fromJson(item)); + ruleGroups = commons.mapMap<core.Map<core.String, core.Object>, ResultRuleGroupsValue>(_json["ruleGroups"], (core.Map<core.String, core.Object> item) => new ResultRuleGroupsValue.fromJson(item)); } if (_json.containsKey("screenshot")) { screenshot = new PagespeedApiImageV2.fromJson(_json["screenshot"]); @@ -856,8 +856,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (formattedResults != null) { _json["formattedResults"] = (formattedResults).toJson(); } @@ -877,7 +877,7 @@ _json["responseCode"] = responseCode; } if (ruleGroups != null) { - _json["ruleGroups"] = commons.mapMap(ruleGroups, (item) => (item).toJson()); + _json["ruleGroups"] = commons.mapMap<ResultRuleGroupsValue, core.Map<core.String, core.Object>>(ruleGroups, (ResultRuleGroupsValue item) => (item).toJson()); } if (screenshot != null) { _json["screenshot"] = (screenshot).toJson();
diff --git a/generated/googleapis/lib/partners/v2.dart b/generated/googleapis/lib/partners/v2.dart index 595baf0..8cadb8a 100644 --- a/generated/googleapis/lib/partners/v2.dart +++ b/generated/googleapis/lib/partners/v2.dart
@@ -50,11 +50,6 @@ * * Request parameters: * - * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to - * indicate where the traffic comes from. - * An identifier has multiple letters created by a team which redirected the - * traffic to us. - * * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate * instead of the user's ID. * @@ -91,6 +86,11 @@ * [requestMetadata_experimentIds] - Experiment IDs the current request * belongs to. * + * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to + * indicate where the traffic comes from. + * An identifier has multiple letters created by a team which redirected the + * traffic to us. + * * Completes with a [ListAnalyticsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -99,7 +99,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListAnalyticsResponse> list({core.String requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId, core.String pageToken, core.int pageSize, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds}) { + async.Future<ListAnalyticsResponse> list({core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId, core.String pageToken, core.int pageSize, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -107,9 +107,6 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (requestMetadata_trafficSource_trafficSubId != null) { - _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; - } if (requestMetadata_userOverrides_userId != null) { _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; } @@ -134,6 +131,9 @@ if (requestMetadata_experimentIds != null) { _queryParams["requestMetadata.experimentIds"] = requestMetadata_experimentIds; } + if (requestMetadata_trafficSource_trafficSubId != null) { + _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; + } _url = 'v2/analytics'; @@ -215,11 +215,37 @@ * * [companyId] - The ID of the company to retrieve. * - * [requestMetadata_partnersSessionId] - Google Partners session ID. + * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate + * where the traffic comes from. + * An identifier has multiple letters created by a team which redirected the + * traffic to us. + * + * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of + * the user's geo-located IP address. + * + * [requestMetadata_experimentIds] - Experiment IDs the current request + * belongs to. + * + * [currencyCode] - If the company's budget is in a different currency code + * than this one, then + * the converted budget is converted to this currency code. + * + * [orderBy] - How to order addresses within the returned company. Currently, + * only + * `address` and `address desc` is supported which will sorted by closest to + * farthest in distance from given address and farthest to closest distance + * from given address respectively. + * + * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to + * indicate where the traffic comes from. + * An identifier has multiple letters created by a team which redirected the + * traffic to us. * * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate * instead of the user's ID. * + * [requestMetadata_partnersSessionId] - Google Partners session ID. + * * [view] - The view of `Company` resource to be returned. This must not be * `COMPANY_VIEW_UNSPECIFIED`. * Possible string values are: @@ -233,32 +259,6 @@ * If not given, the geo-located address of the request is used. * Used when order_by is set. * - * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate - * where the traffic comes from. - * An identifier has multiple letters created by a team which redirected the - * traffic to us. - * - * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of - * the user's geo-located IP address. - * - * [currencyCode] - If the company's budget is in a different currency code - * than this one, then - * the converted budget is converted to this currency code. - * - * [requestMetadata_experimentIds] - Experiment IDs the current request - * belongs to. - * - * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to - * indicate where the traffic comes from. - * An identifier has multiple letters created by a team which redirected the - * traffic to us. - * - * [orderBy] - How to order addresses within the returned company. Currently, - * only - * `address` and `address desc` is supported which will sorted by closest to - * farthest in distance from given address and farthest to closest distance - * from given address respectively. - * * Completes with a [GetCompanyResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -267,7 +267,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<GetCompanyResponse> get(core.String companyId, {core.String requestMetadata_partnersSessionId, core.String requestMetadata_userOverrides_userId, core.String view, core.String requestMetadata_locale, core.String address, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_userOverrides_ipAddress, core.String currencyCode, core.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, core.String orderBy}) { + async.Future<GetCompanyResponse> get(core.String companyId, {core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String currencyCode, core.String orderBy, core.String requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId, core.String view, core.String requestMetadata_locale, core.String address}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -278,12 +278,30 @@ if (companyId == null) { throw new core.ArgumentError("Parameter companyId is required."); } - if (requestMetadata_partnersSessionId != null) { - _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; + if (requestMetadata_trafficSource_trafficSourceId != null) { + _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMetadata_trafficSource_trafficSourceId]; + } + if (requestMetadata_userOverrides_ipAddress != null) { + _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata_userOverrides_ipAddress]; + } + if (requestMetadata_experimentIds != null) { + _queryParams["requestMetadata.experimentIds"] = requestMetadata_experimentIds; + } + if (currencyCode != null) { + _queryParams["currencyCode"] = [currencyCode]; + } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } + if (requestMetadata_trafficSource_trafficSubId != null) { + _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; } if (requestMetadata_userOverrides_userId != null) { _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; } + if (requestMetadata_partnersSessionId != null) { + _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; + } if (view != null) { _queryParams["view"] = [view]; } @@ -293,24 +311,6 @@ if (address != null) { _queryParams["address"] = [address]; } - if (requestMetadata_trafficSource_trafficSourceId != null) { - _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMetadata_trafficSource_trafficSourceId]; - } - if (requestMetadata_userOverrides_ipAddress != null) { - _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata_userOverrides_ipAddress]; - } - if (currencyCode != null) { - _queryParams["currencyCode"] = [currencyCode]; - } - if (requestMetadata_experimentIds != null) { - _queryParams["requestMetadata.experimentIds"] = requestMetadata_experimentIds; - } - if (requestMetadata_trafficSource_trafficSubId != null) { - _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; - } - if (orderBy != null) { - _queryParams["orderBy"] = [orderBy]; - } _url = 'v2/companies/' + commons.Escaper.ecapeVariable('$companyId'); @@ -329,6 +329,44 @@ * * Request parameters: * + * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate + * where the traffic comes from. + * An identifier has multiple letters created by a team which redirected the + * traffic to us. + * + * [maxMonthlyBudget_units] - The whole units of the amount. + * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + * + * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to + * indicate where the traffic comes from. + * An identifier has multiple letters created by a team which redirected the + * traffic to us. + * + * [minMonthlyBudget_nanos] - Number of nano (10^-9) units of the amount. + * The value must be between -999,999,999 and +999,999,999 inclusive. + * If `units` is positive, `nanos` must be positive or zero. + * If `units` is zero, `nanos` can be positive, zero, or negative. + * If `units` is negative, `nanos` must be negative or zero. + * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * + * [requestMetadata_partnersSessionId] - Google Partners session ID. + * + * [companyName] - Company name to search for. + * + * [pageToken] - A token identifying a page of results that the server + * returns. + * Typically, this is the value of `ListCompaniesResponse.next_page_token` + * returned from the previous call to + * ListCompanies. + * + * [industries] - List of industries the company can help with. + * + * [websiteUrl] - Website URL that will help to find a better matched company. + * . + * + * [gpsMotivations] - List of reasons for using Google Partner Search to get + * companies. + * * [languageCodes] - List of language codes that company can support. Only * primary language * subtags are accepted as defined by @@ -359,12 +397,12 @@ * [maxMonthlyBudget_currencyCode] - The 3-letter currency code defined in ISO * 4217. * - * [minMonthlyBudget_currencyCode] - The 3-letter currency code defined in ISO - * 4217. - * * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate * instead of the user's ID. * + * [minMonthlyBudget_currencyCode] - The 3-letter currency code defined in ISO + * 4217. + * * [view] - The view of the `Company` resource to be returned. This must not * be * `COMPANY_VIEW_UNSPECIFIED`. @@ -372,11 +410,11 @@ * - "COMPANY_VIEW_UNSPECIFIED" : A COMPANY_VIEW_UNSPECIFIED. * - "CV_GOOGLE_PARTNER_SEARCH" : A CV_GOOGLE_PARTNER_SEARCH. * - * [requestMetadata_locale] - Locale to use for the current request. - * * [address] - The address to use when searching for companies. * If not given, the geo-located address of the request is used. * + * [requestMetadata_locale] - Locale to use for the current request. + * * [minMonthlyBudget_units] - The whole units of the amount. * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. * @@ -392,44 +430,6 @@ * not empty, any returned agency must have at least one of these services, * or one of the specializations in the "specializations" field. * - * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate - * where the traffic comes from. - * An identifier has multiple letters created by a team which redirected the - * traffic to us. - * - * [maxMonthlyBudget_units] - The whole units of the amount. - * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. - * - * [minMonthlyBudget_nanos] - Number of nano (10^-9) units of the amount. - * The value must be between -999,999,999 and +999,999,999 inclusive. - * If `units` is positive, `nanos` must be positive or zero. - * If `units` is zero, `nanos` can be positive, zero, or negative. - * If `units` is negative, `nanos` must be negative or zero. - * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. - * - * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to - * indicate where the traffic comes from. - * An identifier has multiple letters created by a team which redirected the - * traffic to us. - * - * [requestMetadata_partnersSessionId] - Google Partners session ID. - * - * [pageToken] - A token identifying a page of results that the server - * returns. - * Typically, this is the value of `ListCompaniesResponse.next_page_token` - * returned from the previous call to - * ListCompanies. - * - * [companyName] - Company name to search for. - * - * [industries] - List of industries the company can help with. - * - * [websiteUrl] - Website URL that will help to find a better matched company. - * . - * - * [gpsMotivations] - List of reasons for using Google Partner Search to get - * companies. - * * Completes with a [ListCompaniesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -438,7 +438,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListCompaniesResponse> list({core.List<core.String> languageCodes, core.int pageSize, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String orderBy, core.List<core.String> specializations, core.String maxMonthlyBudget_currencyCode, core.String minMonthlyBudget_currencyCode, core.String requestMetadata_userOverrides_userId, core.String view, core.String requestMetadata_locale, core.String address, core.String minMonthlyBudget_units, core.int maxMonthlyBudget_nanos, core.List<core.String> services, core.String requestMetadata_trafficSource_trafficSourceId, core.String maxMonthlyBudget_units, core.int minMonthlyBudget_nanos, core.String requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_partnersSessionId, core.String pageToken, core.String companyName, core.List<core.String> industries, core.String websiteUrl, core.List<core.String> gpsMotivations}) { + async.Future<ListCompaniesResponse> list({core.String requestMetadata_trafficSource_trafficSourceId, core.String maxMonthlyBudget_units, core.String requestMetadata_trafficSource_trafficSubId, core.int minMonthlyBudget_nanos, core.String requestMetadata_partnersSessionId, core.String companyName, core.String pageToken, core.List<core.String> industries, core.String websiteUrl, core.List<core.String> gpsMotivations, core.List<core.String> languageCodes, core.int pageSize, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String orderBy, core.List<core.String> specializations, core.String maxMonthlyBudget_currencyCode, core.String requestMetadata_userOverrides_userId, core.String minMonthlyBudget_currencyCode, core.String view, core.String address, core.String requestMetadata_locale, core.String minMonthlyBudget_units, core.int maxMonthlyBudget_nanos, core.List<core.String> services}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -446,6 +446,36 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (requestMetadata_trafficSource_trafficSourceId != null) { + _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMetadata_trafficSource_trafficSourceId]; + } + if (maxMonthlyBudget_units != null) { + _queryParams["maxMonthlyBudget.units"] = [maxMonthlyBudget_units]; + } + if (requestMetadata_trafficSource_trafficSubId != null) { + _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; + } + if (minMonthlyBudget_nanos != null) { + _queryParams["minMonthlyBudget.nanos"] = ["${minMonthlyBudget_nanos}"]; + } + if (requestMetadata_partnersSessionId != null) { + _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; + } + if (companyName != null) { + _queryParams["companyName"] = [companyName]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (industries != null) { + _queryParams["industries"] = industries; + } + if (websiteUrl != null) { + _queryParams["websiteUrl"] = [websiteUrl]; + } + if (gpsMotivations != null) { + _queryParams["gpsMotivations"] = gpsMotivations; + } if (languageCodes != null) { _queryParams["languageCodes"] = languageCodes; } @@ -467,21 +497,21 @@ if (maxMonthlyBudget_currencyCode != null) { _queryParams["maxMonthlyBudget.currencyCode"] = [maxMonthlyBudget_currencyCode]; } - if (minMonthlyBudget_currencyCode != null) { - _queryParams["minMonthlyBudget.currencyCode"] = [minMonthlyBudget_currencyCode]; - } if (requestMetadata_userOverrides_userId != null) { _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; } + if (minMonthlyBudget_currencyCode != null) { + _queryParams["minMonthlyBudget.currencyCode"] = [minMonthlyBudget_currencyCode]; + } if (view != null) { _queryParams["view"] = [view]; } - if (requestMetadata_locale != null) { - _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; - } if (address != null) { _queryParams["address"] = [address]; } + if (requestMetadata_locale != null) { + _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; + } if (minMonthlyBudget_units != null) { _queryParams["minMonthlyBudget.units"] = [minMonthlyBudget_units]; } @@ -491,36 +521,6 @@ if (services != null) { _queryParams["services"] = services; } - if (requestMetadata_trafficSource_trafficSourceId != null) { - _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMetadata_trafficSource_trafficSourceId]; - } - if (maxMonthlyBudget_units != null) { - _queryParams["maxMonthlyBudget.units"] = [maxMonthlyBudget_units]; - } - if (minMonthlyBudget_nanos != null) { - _queryParams["minMonthlyBudget.nanos"] = ["${minMonthlyBudget_nanos}"]; - } - if (requestMetadata_trafficSource_trafficSubId != null) { - _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; - } - if (requestMetadata_partnersSessionId != null) { - _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (companyName != null) { - _queryParams["companyName"] = [companyName]; - } - if (industries != null) { - _queryParams["industries"] = industries; - } - if (websiteUrl != null) { - _queryParams["websiteUrl"] = [websiteUrl]; - } - if (gpsMotivations != null) { - _queryParams["gpsMotivations"] = gpsMotivations; - } _url = 'v2/companies'; @@ -616,6 +616,16 @@ * - "CET_DIGITAL_SALES" : A CET_DIGITAL_SALES. * - "CET_MOBILE_SITES" : A CET_MOBILE_SITES. * + * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to + * indicate where the traffic comes from. + * An identifier has multiple letters created by a team which redirected the + * traffic to us. + * + * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate + * instead of the user's ID. + * + * [requestMetadata_partnersSessionId] - Google Partners session ID. + * * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate * where the traffic comes from. * An identifier has multiple letters created by a team which redirected the @@ -629,16 +639,6 @@ * [requestMetadata_experimentIds] - Experiment IDs the current request * belongs to. * - * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to - * indicate where the traffic comes from. - * An identifier has multiple letters created by a team which redirected the - * traffic to us. - * - * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate - * instead of the user's ID. - * - * [requestMetadata_partnersSessionId] - Google Partners session ID. - * * Completes with a [ExamToken]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -647,7 +647,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ExamToken> getToken(core.String examType, {core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId}) { + async.Future<ExamToken> getToken(core.String examType, {core.String requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -658,6 +658,15 @@ if (examType == null) { throw new core.ArgumentError("Parameter examType is required."); } + if (requestMetadata_trafficSource_trafficSubId != null) { + _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; + } + if (requestMetadata_userOverrides_userId != null) { + _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; + } + if (requestMetadata_partnersSessionId != null) { + _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; + } if (requestMetadata_trafficSource_trafficSourceId != null) { _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMetadata_trafficSource_trafficSourceId]; } @@ -670,15 +679,6 @@ if (requestMetadata_experimentIds != null) { _queryParams["requestMetadata.experimentIds"] = requestMetadata_experimentIds; } - if (requestMetadata_trafficSource_trafficSubId != null) { - _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; - } - if (requestMetadata_userOverrides_userId != null) { - _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; - } - if (requestMetadata_partnersSessionId != null) { - _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; - } _url = 'v2/exams/' + commons.Escaper.ecapeVariable('$examType') + '/token'; @@ -724,19 +724,19 @@ * [requestMetadata_experimentIds] - Experiment IDs the current request * belongs to. * + * [orderBy] - How to order Leads. Currently, only `create_time` + * and `create_time desc` are supported + * * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to * indicate where the traffic comes from. * An identifier has multiple letters created by a team which redirected the * traffic to us. * - * [orderBy] - How to order Leads. Currently, only `create_time` - * and `create_time desc` are supported - * - * [requestMetadata_partnersSessionId] - Google Partners session ID. - * * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate * instead of the user's ID. * + * [requestMetadata_partnersSessionId] - Google Partners session ID. + * * [pageToken] - A token identifying a page of results that the server * returns. * Typically, this is the value of `ListLeadsResponse.next_page_token` @@ -751,7 +751,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListLeadsResponse> list({core.int pageSize, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, core.String orderBy, core.String requestMetadata_partnersSessionId, core.String requestMetadata_userOverrides_userId, core.String pageToken}) { + async.Future<ListLeadsResponse> list({core.int pageSize, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String orderBy, core.String requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -774,18 +774,18 @@ if (requestMetadata_experimentIds != null) { _queryParams["requestMetadata.experimentIds"] = requestMetadata_experimentIds; } - if (requestMetadata_trafficSource_trafficSubId != null) { - _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; - } if (orderBy != null) { _queryParams["orderBy"] = [orderBy]; } - if (requestMetadata_partnersSessionId != null) { - _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; + if (requestMetadata_trafficSource_trafficSubId != null) { + _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; } if (requestMetadata_userOverrides_userId != null) { _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; } + if (requestMetadata_partnersSessionId != null) { + _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -905,11 +905,11 @@ * * Request parameters: * + * [requestMetadata_partnersSessionId] - Google Partners session ID. + * * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate * instead of the user's ID. * - * [requestMetadata_partnersSessionId] - Google Partners session ID. - * * [pageToken] - Token to retrieve a specific page. * * [pageSize] - Maximum number of rows to return per page. @@ -924,12 +924,12 @@ * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of * the user's geo-located IP address. * - * [requestMetadata_experimentIds] - Experiment IDs the current request - * belongs to. - * * [entireCompany] - if true, show history for the entire company. Requires * user to be admin. * + * [requestMetadata_experimentIds] - Experiment IDs the current request + * belongs to. + * * [orderBy] - Comma-separated list of fields to order by, e.g.: * "foo,bar,baz". * Use "foo desc" to sort descending. @@ -950,7 +950,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListOffersHistoryResponse> list({core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId, core.String pageToken, core.int pageSize, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.bool entireCompany, core.String orderBy, core.String requestMetadata_trafficSource_trafficSubId}) { + async.Future<ListOffersHistoryResponse> list({core.String requestMetadata_partnersSessionId, core.String requestMetadata_userOverrides_userId, core.String pageToken, core.int pageSize, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.bool entireCompany, core.List<core.String> requestMetadata_experimentIds, core.String orderBy, core.String requestMetadata_trafficSource_trafficSubId}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -958,12 +958,12 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (requestMetadata_userOverrides_userId != null) { - _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; - } if (requestMetadata_partnersSessionId != null) { _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; } + if (requestMetadata_userOverrides_userId != null) { + _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -979,12 +979,12 @@ if (requestMetadata_userOverrides_ipAddress != null) { _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata_userOverrides_ipAddress]; } - if (requestMetadata_experimentIds != null) { - _queryParams["requestMetadata.experimentIds"] = requestMetadata_experimentIds; - } if (entireCompany != null) { _queryParams["entireCompany"] = ["${entireCompany}"]; } + if (requestMetadata_experimentIds != null) { + _queryParams["requestMetadata.experimentIds"] = requestMetadata_experimentIds; + } if (orderBy != null) { _queryParams["orderBy"] = [orderBy]; } @@ -1066,6 +1066,8 @@ * * Request parameters: * + * [requestMetadata_locale] - Locale to use for the current request. + * * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of * the user's geo-located IP address. * @@ -1077,18 +1079,16 @@ * An identifier has multiple letters created by a team which redirected the * traffic to us. * + * [requestMetadata_partnersSessionId] - Google Partners session ID. + * * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate * instead of the user's ID. * - * [requestMetadata_partnersSessionId] - Google Partners session ID. - * * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate * where the traffic comes from. * An identifier has multiple letters created by a team which redirected the * traffic to us. * - * [requestMetadata_locale] - Locale to use for the current request. - * * Completes with a [ListUserStatesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1097,7 +1097,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListUserStatesResponse> list({core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale}) { + async.Future<ListUserStatesResponse> list({core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_partnersSessionId, core.String requestMetadata_userOverrides_userId, core.String requestMetadata_trafficSource_trafficSourceId}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1105,6 +1105,9 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (requestMetadata_locale != null) { + _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; + } if (requestMetadata_userOverrides_ipAddress != null) { _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata_userOverrides_ipAddress]; } @@ -1114,18 +1117,15 @@ if (requestMetadata_trafficSource_trafficSubId != null) { _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; } - if (requestMetadata_userOverrides_userId != null) { - _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; - } if (requestMetadata_partnersSessionId != null) { _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; } + if (requestMetadata_userOverrides_userId != null) { + _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; + } if (requestMetadata_trafficSource_trafficSourceId != null) { _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMetadata_trafficSource_trafficSourceId]; } - if (requestMetadata_locale != null) { - _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; - } _url = 'v2/userStates'; @@ -1158,6 +1158,11 @@ * [userId] - The ID of the user. Can be set to <code>me</code> to mean * the currently authenticated user. * + * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate + * instead of the user's ID. + * + * [requestMetadata_partnersSessionId] - Google Partners session ID. + * * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate * where the traffic comes from. * An identifier has multiple letters created by a team which redirected the @@ -1176,11 +1181,6 @@ * An identifier has multiple letters created by a team which redirected the * traffic to us. * - * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate - * instead of the user's ID. - * - * [requestMetadata_partnersSessionId] - Google Partners session ID. - * * Completes with a [CompanyRelation]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1189,7 +1189,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<CompanyRelation> createCompanyRelation(CompanyRelation request, core.String userId, {core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId}) { + async.Future<CompanyRelation> createCompanyRelation(CompanyRelation request, core.String userId, {core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1203,6 +1203,12 @@ if (userId == null) { throw new core.ArgumentError("Parameter userId is required."); } + if (requestMetadata_userOverrides_userId != null) { + _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; + } + if (requestMetadata_partnersSessionId != null) { + _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; + } if (requestMetadata_trafficSource_trafficSourceId != null) { _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMetadata_trafficSource_trafficSourceId]; } @@ -1218,12 +1224,6 @@ if (requestMetadata_trafficSource_trafficSubId != null) { _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; } - if (requestMetadata_userOverrides_userId != null) { - _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; - } - if (requestMetadata_partnersSessionId != null) { - _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; - } _url = 'v2/users/' + commons.Escaper.ecapeVariable('$userId') + '/companyRelation'; @@ -1330,17 +1330,6 @@ * the currently * authenticated user. * - * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate - * instead of the user's ID. - * - * [requestMetadata_partnersSessionId] - Google Partners session ID. - * - * [userView] - Specifies what parts of the user information to return. - * Possible string values are: - * - "BASIC" : A BASIC. - * - "PROFILE" : A PROFILE. - * - "PUBLIC_PROFILE" : A PUBLIC_PROFILE. - * * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate * where the traffic comes from. * An identifier has multiple letters created by a team which redirected the @@ -1359,6 +1348,17 @@ * An identifier has multiple letters created by a team which redirected the * traffic to us. * + * [requestMetadata_partnersSessionId] - Google Partners session ID. + * + * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate + * instead of the user's ID. + * + * [userView] - Specifies what parts of the user information to return. + * Possible string values are: + * - "BASIC" : A BASIC. + * - "PROFILE" : A PROFILE. + * - "PUBLIC_PROFILE" : A PUBLIC_PROFILE. + * * Completes with a [User]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1367,7 +1367,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<User> get(core.String userId, {core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId, core.String userView, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId}) { + async.Future<User> get(core.String userId, {core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_partnersSessionId, core.String requestMetadata_userOverrides_userId, core.String userView}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1378,15 +1378,6 @@ if (userId == null) { throw new core.ArgumentError("Parameter userId is required."); } - if (requestMetadata_userOverrides_userId != null) { - _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; - } - if (requestMetadata_partnersSessionId != null) { - _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; - } - if (userView != null) { - _queryParams["userView"] = [userView]; - } if (requestMetadata_trafficSource_trafficSourceId != null) { _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMetadata_trafficSource_trafficSourceId]; } @@ -1402,6 +1393,15 @@ if (requestMetadata_trafficSource_trafficSubId != null) { _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; } + if (requestMetadata_partnersSessionId != null) { + _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; + } + if (requestMetadata_userOverrides_userId != null) { + _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; + } + if (userView != null) { + _queryParams["userView"] = [userView]; + } _url = 'v2/users/' + commons.Escaper.ecapeVariable('$userId'); @@ -1423,6 +1423,21 @@ * * Request parameters: * + * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to + * indicate where the traffic comes from. + * An identifier has multiple letters created by a team which redirected the + * traffic to us. + * + * [requestMetadata_partnersSessionId] - Google Partners session ID. + * + * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate + * instead of the user's ID. + * + * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate + * where the traffic comes from. + * An identifier has multiple letters created by a team which redirected the + * traffic to us. + * * [requestMetadata_locale] - Locale to use for the current request. * * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of @@ -1431,21 +1446,6 @@ * [requestMetadata_experimentIds] - Experiment IDs the current request * belongs to. * - * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to - * indicate where the traffic comes from. - * An identifier has multiple letters created by a team which redirected the - * traffic to us. - * - * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate - * instead of the user's ID. - * - * [requestMetadata_partnersSessionId] - Google Partners session ID. - * - * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate - * where the traffic comes from. - * An identifier has multiple letters created by a team which redirected the - * traffic to us. - * * Completes with a [UserProfile]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1454,7 +1454,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<UserProfile> updateProfile(UserProfile request, {core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId, core.String requestMetadata_trafficSource_trafficSourceId}) { + async.Future<UserProfile> updateProfile(UserProfile request, {core.String requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_partnersSessionId, core.String requestMetadata_userOverrides_userId, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1465,6 +1465,18 @@ if (request != null) { _body = convert.JSON.encode((request).toJson()); } + if (requestMetadata_trafficSource_trafficSubId != null) { + _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; + } + if (requestMetadata_partnersSessionId != null) { + _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; + } + if (requestMetadata_userOverrides_userId != null) { + _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; + } + if (requestMetadata_trafficSource_trafficSourceId != null) { + _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMetadata_trafficSource_trafficSourceId]; + } if (requestMetadata_locale != null) { _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; } @@ -1474,18 +1486,6 @@ if (requestMetadata_experimentIds != null) { _queryParams["requestMetadata.experimentIds"] = requestMetadata_experimentIds; } - if (requestMetadata_trafficSource_trafficSubId != null) { - _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; - } - if (requestMetadata_userOverrides_userId != null) { - _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; - } - if (requestMetadata_partnersSessionId != null) { - _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; - } - if (requestMetadata_trafficSource_trafficSourceId != null) { - _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMetadata_trafficSource_trafficSourceId]; - } _url = 'v2/users/profile'; @@ -1514,11 +1514,6 @@ * * Request parameters: * - * [requestMetadata_partnersSessionId] - Google Partners session ID. - * - * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate - * instead of the user's ID. - * * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate * where the traffic comes from. * An identifier has multiple letters created by a team which redirected the @@ -1537,6 +1532,11 @@ * An identifier has multiple letters created by a team which redirected the * traffic to us. * + * [requestMetadata_partnersSessionId] - Google Partners session ID. + * + * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate + * instead of the user's ID. + * * Completes with a [GetPartnersStatusResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1545,7 +1545,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<GetPartnersStatusResponse> getPartnersstatus({core.String requestMetadata_partnersSessionId, core.String requestMetadata_userOverrides_userId, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId}) { + async.Future<GetPartnersStatusResponse> getPartnersstatus({core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_partnersSessionId, core.String requestMetadata_userOverrides_userId}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1553,12 +1553,6 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (requestMetadata_partnersSessionId != null) { - _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; - } - if (requestMetadata_userOverrides_userId != null) { - _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; - } if (requestMetadata_trafficSource_trafficSourceId != null) { _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMetadata_trafficSource_trafficSourceId]; } @@ -1574,6 +1568,12 @@ if (requestMetadata_trafficSource_trafficSubId != null) { _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; } + if (requestMetadata_partnersSessionId != null) { + _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; + } + if (requestMetadata_userOverrides_userId != null) { + _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; + } _url = 'v2/partnersstatus'; @@ -1595,18 +1595,6 @@ * * Request parameters: * - * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate - * instead of the user's ID. - * - * [requestMetadata_partnersSessionId] - Google Partners session ID. - * - * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate - * where the traffic comes from. - * An identifier has multiple letters created by a team which redirected the - * traffic to us. - * - * [requestMetadata_locale] - Locale to use for the current request. - * * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of * the user's geo-located IP address. * @@ -1621,6 +1609,18 @@ * An identifier has multiple letters created by a team which redirected the * traffic to us. * + * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate + * instead of the user's ID. + * + * [requestMetadata_partnersSessionId] - Google Partners session ID. + * + * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate + * where the traffic comes from. + * An identifier has multiple letters created by a team which redirected the + * traffic to us. + * + * [requestMetadata_locale] - Locale to use for the current request. + * * Completes with a [Company]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1629,7 +1629,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<Company> updateCompanies(Company request, {core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.String updateMask, core.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId}) { + async.Future<Company> updateCompanies(Company request, {core.String requestMetadata_userOverrides_ipAddress, core.String updateMask, core.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1640,18 +1640,6 @@ if (request != null) { _body = convert.JSON.encode((request).toJson()); } - if (requestMetadata_userOverrides_userId != null) { - _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; - } - if (requestMetadata_partnersSessionId != null) { - _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; - } - if (requestMetadata_trafficSource_trafficSourceId != null) { - _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMetadata_trafficSource_trafficSourceId]; - } - if (requestMetadata_locale != null) { - _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; - } if (requestMetadata_userOverrides_ipAddress != null) { _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata_userOverrides_ipAddress]; } @@ -1664,6 +1652,18 @@ if (requestMetadata_trafficSource_trafficSubId != null) { _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; } + if (requestMetadata_userOverrides_userId != null) { + _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; + } + if (requestMetadata_partnersSessionId != null) { + _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; + } + if (requestMetadata_trafficSource_trafficSourceId != null) { + _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMetadata_trafficSource_trafficSourceId]; + } + if (requestMetadata_locale != null) { + _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; + } _url = 'v2/companies'; @@ -1706,11 +1706,11 @@ * An identifier has multiple letters created by a team which redirected the * traffic to us. * + * [requestMetadata_partnersSessionId] - Google Partners session ID. + * * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate * instead of the user's ID. * - * [requestMetadata_partnersSessionId] - Google Partners session ID. - * * Completes with a [Lead]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1719,7 +1719,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<Lead> updateLeads(Lead request, {core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.String updateMask, core.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId}) { + async.Future<Lead> updateLeads(Lead request, {core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.String updateMask, core.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_partnersSessionId, core.String requestMetadata_userOverrides_userId}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1748,12 +1748,12 @@ if (requestMetadata_trafficSource_trafficSubId != null) { _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; } - if (requestMetadata_userOverrides_userId != null) { - _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; - } if (requestMetadata_partnersSessionId != null) { _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; } + if (requestMetadata_userOverrides_userId != null) { + _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; + } _url = 'v2/leads'; @@ -1792,8 +1792,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (customerName != null) { _json["customerName"] = customerName; } @@ -1841,8 +1841,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contacts != null) { _json["contacts"] = (contacts).toJson(); } @@ -1880,8 +1880,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (eventCount != null) { _json["eventCount"] = eventCount; } @@ -1923,8 +1923,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contactsCount != null) { _json["contactsCount"] = contactsCount; } @@ -2031,8 +2031,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (available != null) { _json["available"] = available; } @@ -2121,8 +2121,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (achieved != null) { _json["achieved"] = achieved; } @@ -2174,8 +2174,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (numberUsersPass != null) { _json["numberUsersPass"] = numberUsersPass; } @@ -2229,8 +2229,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (examStatuses != null) { _json["examStatuses"] = examStatuses.map((value) => (value).toJson()).toList(); } @@ -2403,8 +2403,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (additionalWebsites != null) { _json["additionalWebsites"] = additionalWebsites; } @@ -2499,6 +2499,11 @@ * @OutputOnly */ core.String creationTime; + /** + * The internal company ID. + * Only available for a whitelisted set of api clients. + */ + core.String internalCompanyId; /** The flag that indicates if the company is pending verification. */ core.bool isPending; /** A URL to a profile photo, e.g. a G+ profile photo. */ @@ -2509,6 +2514,12 @@ core.String name; /** The phone number for the company's primary address. */ core.String phoneNumber; + /** The primary location of the company. */ + Location primaryAddress; + /** The primary country code of the company. */ + core.String primaryCountryCode; + /** The primary language code of the company. */ + core.String primaryLanguageCode; /** * The timestamp when the user was approved. * @OutputOnly @@ -2552,6 +2563,9 @@ if (_json.containsKey("creationTime")) { creationTime = _json["creationTime"]; } + if (_json.containsKey("internalCompanyId")) { + internalCompanyId = _json["internalCompanyId"]; + } if (_json.containsKey("isPending")) { isPending = _json["isPending"]; } @@ -2567,6 +2581,15 @@ if (_json.containsKey("phoneNumber")) { phoneNumber = _json["phoneNumber"]; } + if (_json.containsKey("primaryAddress")) { + primaryAddress = new Location.fromJson(_json["primaryAddress"]); + } + if (_json.containsKey("primaryCountryCode")) { + primaryCountryCode = _json["primaryCountryCode"]; + } + if (_json.containsKey("primaryLanguageCode")) { + primaryLanguageCode = _json["primaryLanguageCode"]; + } if (_json.containsKey("resolvedTimestamp")) { resolvedTimestamp = _json["resolvedTimestamp"]; } @@ -2584,8 +2607,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (address != null) { _json["address"] = address; } @@ -2601,6 +2624,9 @@ if (creationTime != null) { _json["creationTime"] = creationTime; } + if (internalCompanyId != null) { + _json["internalCompanyId"] = internalCompanyId; + } if (isPending != null) { _json["isPending"] = isPending; } @@ -2616,6 +2642,15 @@ if (phoneNumber != null) { _json["phoneNumber"] = phoneNumber; } + if (primaryAddress != null) { + _json["primaryAddress"] = (primaryAddress).toJson(); + } + if (primaryCountryCode != null) { + _json["primaryCountryCode"] = primaryCountryCode; + } + if (primaryLanguageCode != null) { + _json["primaryLanguageCode"] = primaryLanguageCode; + } if (resolvedTimestamp != null) { _json["resolvedTimestamp"] = resolvedTimestamp; } @@ -2670,8 +2705,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (getYAmount != null) { _json["getYAmount"] = getYAmount; } @@ -2716,8 +2751,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (lead != null) { _json["lead"] = (lead).toJson(); } @@ -2765,8 +2800,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (lead != null) { _json["lead"] = (lead).toJson(); } @@ -2817,8 +2852,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (day != null) { _json["day"] = day; } @@ -2855,8 +2890,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (serverInfo != null) { _json["serverInfo"] = serverInfo; } @@ -2888,8 +2923,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -2953,8 +2988,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -3017,8 +3052,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (examType != null) { _json["examType"] = examType; } @@ -3078,8 +3113,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (examId != null) { _json["examId"] = examId; } @@ -3111,8 +3146,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (company != null) { _json["company"] = (company).toJson(); } @@ -3139,8 +3174,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (responseMetadata != null) { _json["responseMetadata"] = (responseMetadata).toJson(); } @@ -3234,8 +3269,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adwordsUrl != null) { _json["adwordsUrl"] = adwordsUrl; } @@ -3316,9 +3351,6 @@ * assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0) * assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0) * assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) - * - * The code in logs/storage/validator/logs_validator_traits.cc treats this type - * as if it were annotated as ST_LOCATION. */ class LatLng { /** The latitude in degrees. It must be in the range [-90.0, +90.0]. */ @@ -3337,8 +3369,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (latitude != null) { _json["latitude"] = latitude; } @@ -3452,8 +3484,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adwordsCustomerId != null) { _json["adwordsCustomerId"] = adwordsCustomerId; } @@ -3547,8 +3579,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (analytics != null) { _json["analytics"] = analytics.map((value) => (value).toJson()).toList(); } @@ -3597,8 +3629,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (companies != null) { _json["companies"] = companies.map((value) => (value).toJson()).toList(); } @@ -3646,8 +3678,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (leads != null) { _json["leads"] = leads.map((value) => (value).toJson()).toList(); } @@ -3704,8 +3736,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (canShowEntireCompany != null) { _json["canShowEntireCompany"] = canShowEntireCompany; } @@ -3758,8 +3790,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (availableOffers != null) { _json["availableOffers"] = availableOffers.map((value) => (value).toJson()).toList(); } @@ -3794,8 +3826,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (responseMetadata != null) { _json["responseMetadata"] = (responseMetadata).toJson(); } @@ -3840,8 +3872,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (countryCodes != null) { _json["countryCodes"] = countryCodes; } @@ -3928,8 +3960,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (address != null) { _json["address"] = address; } @@ -4005,8 +4037,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientInfo != null) { _json["clientInfo"] = clientInfo; } @@ -4039,8 +4071,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (responseMetadata != null) { _json["responseMetadata"] = (responseMetadata).toJson(); } @@ -4420,8 +4452,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (eventAction != null) { _json["eventAction"] = eventAction; } @@ -4463,8 +4495,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (responseMetadata != null) { _json["responseMetadata"] = (responseMetadata).toJson(); } @@ -4505,8 +4537,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currencyCode != null) { _json["currencyCode"] = currencyCode; } @@ -4580,8 +4612,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adwordsUrl != null) { _json["adwordsUrl"] = adwordsUrl; } @@ -4654,8 +4686,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (marketComm != null) { _json["marketComm"] = marketComm; } @@ -4712,8 +4744,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayImageUrl != null) { _json["displayImageUrl"] = displayImageUrl; } @@ -4756,8 +4788,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (type != null) { _json["type"] = type; } @@ -4788,8 +4820,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -4836,8 +4868,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (experimentIds != null) { _json["experimentIds"] = experimentIds; } @@ -4870,8 +4902,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (debugInfo != null) { _json["debugInfo"] = (debugInfo).toJson(); } @@ -4913,8 +4945,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (badgeSpecialization != null) { _json["badgeSpecialization"] = badgeSpecialization; } @@ -4951,8 +4983,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (trafficSourceId != null) { _json["trafficSourceId"] = trafficSourceId; } @@ -4997,6 +5029,11 @@ /** The ID of the user. */ core.String id; /** + * The internal user ID. + * Only available for a whitelisted set of api clients. + */ + core.String internalId; + /** * The most recent time the user interacted with the Partners site. * @OutputOnly */ @@ -5037,6 +5074,9 @@ if (_json.containsKey("id")) { id = _json["id"]; } + if (_json.containsKey("internalId")) { + internalId = _json["internalId"]; + } if (_json.containsKey("lastAccessTime")) { lastAccessTime = _json["lastAccessTime"]; } @@ -5051,8 +5091,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (availableAdwordsManagerAccounts != null) { _json["availableAdwordsManagerAccounts"] = availableAdwordsManagerAccounts.map((value) => (value).toJson()).toList(); } @@ -5071,6 +5111,9 @@ if (id != null) { _json["id"] = id; } + if (internalId != null) { + _json["internalId"] = internalId; + } if (lastAccessTime != null) { _json["lastAccessTime"] = lastAccessTime; } @@ -5108,8 +5151,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ipAddress != null) { _json["ipAddress"] = ipAddress; } @@ -5208,8 +5251,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (address != null) { _json["address"] = (address).toJson(); }
diff --git a/generated/googleapis/lib/people/v1.dart b/generated/googleapis/lib/people/v1.dart index 291325f..99ceee7 100644 --- a/generated/googleapis/lib/people/v1.dart +++ b/generated/googleapis/lib/people/v1.dart
@@ -187,6 +187,15 @@ * `people/me` is valid. * Value must have pattern "^people/[^/]+$". * + * [requestMask_includeField] - Required. Comma-separated list of person + * fields to be included in the + * response. Each path should start with `person.`: for example, + * `person.names` or `person.photos`. + * + * [pageSize] - The number of connections to include in the response. Valid + * values are + * between 1 and 2000, inclusive. Defaults to 100. + * * [syncToken] - A sync token, returned by a previous call to * `people.connections.list`. * Only resources changed since the sync token was created will be returned. @@ -205,15 +214,6 @@ * * [pageToken] - The token of the page to be returned. * - * [pageSize] - The number of connections to include in the response. Valid - * values are - * between 1 and 2000, inclusive. Defaults to 100. - * - * [requestMask_includeField] - Required. Comma-separated list of person - * fields to be included in the - * response. Each path should start with `person.`: for example, - * `person.names` or `person.photos`. - * * Completes with a [ListConnectionsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -222,7 +222,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListConnectionsResponse> list(core.String resourceName, {core.String syncToken, core.String sortOrder, core.bool requestSyncToken, core.String pageToken, core.int pageSize, core.String requestMask_includeField}) { + async.Future<ListConnectionsResponse> list(core.String resourceName, {core.String requestMask_includeField, core.int pageSize, core.String syncToken, core.String sortOrder, core.bool requestSyncToken, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -233,6 +233,12 @@ if (resourceName == null) { throw new core.ArgumentError("Parameter resourceName is required."); } + if (requestMask_includeField != null) { + _queryParams["requestMask.includeField"] = [requestMask_includeField]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if (syncToken != null) { _queryParams["syncToken"] = [syncToken]; } @@ -245,12 +251,6 @@ if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } - if (requestMask_includeField != null) { - _queryParams["requestMask.includeField"] = [requestMask_includeField]; - } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resourceName') + '/connections'; @@ -357,8 +357,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (city != null) { _json["city"] = city; } @@ -424,8 +424,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ageRange != null) { _json["ageRange"] = ageRange; } @@ -465,8 +465,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contentType != null) { _json["contentType"] = contentType; } @@ -507,8 +507,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (date != null) { _json["date"] = (date).toJson(); } @@ -540,8 +540,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metadata != null) { _json["metadata"] = (metadata).toJson(); } @@ -573,8 +573,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contactGroupId != null) { _json["contactGroupId"] = contactGroupId; } @@ -611,8 +611,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (default_ != null) { _json["default"] = default_; } @@ -664,8 +664,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (day != null) { _json["day"] = day; } @@ -692,8 +692,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (inViewerDomain != null) { _json["inViewerDomain"] = inViewerDomain; } @@ -744,8 +744,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -802,8 +802,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (date != null) { _json["date"] = (date).toJson(); } @@ -850,8 +850,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (primary != null) { _json["primary"] = primary; } @@ -900,8 +900,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (formattedValue != null) { _json["formattedValue"] = formattedValue; } @@ -927,8 +927,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (responses != null) { _json["responses"] = responses.map((value) => (value).toJson()).toList(); } @@ -1000,8 +1000,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (formattedProtocol != null) { _json["formattedProtocol"] = formattedProtocol; } @@ -1042,8 +1042,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metadata != null) { _json["metadata"] = (metadata).toJson(); } @@ -1089,8 +1089,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (connections != null) { _json["connections"] = connections.map((value) => (value).toJson()).toList(); } @@ -1131,8 +1131,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metadata != null) { _json["metadata"] = (metadata).toJson(); } @@ -1166,8 +1166,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contactGroupMembership != null) { _json["contactGroupMembership"] = (contactGroupMembership).toJson(); } @@ -1266,8 +1266,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -1348,8 +1348,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metadata != null) { _json["metadata"] = (metadata).toJson(); } @@ -1381,8 +1381,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metadata != null) { _json["metadata"] = (metadata).toJson(); } @@ -1492,8 +1492,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (current != null) { _json["current"] = current; } @@ -1718,8 +1718,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (addresses != null) { _json["addresses"] = addresses.map((value) => (value).toJson()).toList(); } @@ -1866,8 +1866,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deleted != null) { _json["deleted"] = deleted; } @@ -1926,8 +1926,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (httpStatusCode != null) { _json["httpStatusCode"] = httpStatusCode; } @@ -2000,8 +2000,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (canonicalForm != null) { _json["canonicalForm"] = canonicalForm; } @@ -2046,8 +2046,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metadata != null) { _json["metadata"] = (metadata).toJson(); } @@ -2077,8 +2077,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (objectType != null) { _json["objectType"] = objectType; } @@ -2136,8 +2136,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (formattedType != null) { _json["formattedType"] = formattedType; } @@ -2190,8 +2190,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (formattedValue != null) { _json["formattedValue"] = formattedValue; } @@ -2244,8 +2244,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (formattedValue != null) { _json["formattedValue"] = formattedValue; } @@ -2285,8 +2285,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (current != null) { _json["current"] = current; } @@ -2318,8 +2318,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metadata != null) { _json["metadata"] = (metadata).toJson(); } @@ -2377,8 +2377,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -2483,8 +2483,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -2516,8 +2516,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metadata != null) { _json["metadata"] = (metadata).toJson(); } @@ -2572,8 +2572,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (formattedType != null) { _json["formattedType"] = formattedType; }
diff --git a/generated/googleapis/lib/playmoviespartner/v1.dart b/generated/googleapis/lib/playmoviespartner/v1.dart index 3bf57c4..4fb19aa 100644 --- a/generated/googleapis/lib/playmoviespartner/v1.dart +++ b/generated/googleapis/lib/playmoviespartner/v1.dart
@@ -103,24 +103,6 @@ * [accountId] - REQUIRED. See _General rules_ for more information about this * field. * - * [territories] - Filter Avails that match (case-insensitive) any of the - * given country codes, - * using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us"). - * - * [title] - Filter that matches Avails with a `title_internal_alias`, - * `series_title_internal_alias`, `season_title_internal_alias`, - * or `episode_title_internal_alias` that contains the given - * case-insensitive title. - * - * [videoIds] - Filter Avails that match any of the given `video_id`s. - * - * [pageToken] - See _List methods rules_ for info about this field. - * - * [pageSize] - See _List methods rules_ for info about this field. - * - * [altIds] - Filter Avails that match (case-insensitive) any of the given - * partner-specific custom ids. - * * [pphNames] - See _List methods rules_ for info about this field. * * [altId] - Filter Avails that match a case-insensitive, partner-specific @@ -130,6 +112,24 @@ * * [studioNames] - See _List methods rules_ for info about this field. * + * [territories] - Filter Avails that match (case-insensitive) any of the + * given country codes, + * using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us"). + * + * [title] - Filter that matches Avails with a `title_internal_alias`, + * `series_title_internal_alias`, `season_title_internal_alias`, + * or `episode_title_internal_alias` that contains the given + * case-insensitive title. + * + * [pageToken] - See _List methods rules_ for info about this field. + * + * [videoIds] - Filter Avails that match any of the given `video_id`s. + * + * [pageSize] - See _List methods rules_ for info about this field. + * + * [altIds] - Filter Avails that match (case-insensitive) any of the given + * partner-specific custom ids. + * * Completes with a [ListAvailsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -138,7 +138,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListAvailsResponse> list(core.String accountId, {core.List<core.String> territories, core.String title, core.List<core.String> videoIds, core.String pageToken, core.int pageSize, core.List<core.String> altIds, core.List<core.String> pphNames, core.String altId, core.List<core.String> studioNames}) { + async.Future<ListAvailsResponse> list(core.String accountId, {core.List<core.String> pphNames, core.String altId, core.List<core.String> studioNames, core.List<core.String> territories, core.String title, core.String pageToken, core.List<core.String> videoIds, core.int pageSize, core.List<core.String> altIds}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -149,24 +149,6 @@ if (accountId == null) { throw new core.ArgumentError("Parameter accountId is required."); } - if (territories != null) { - _queryParams["territories"] = territories; - } - if (title != null) { - _queryParams["title"] = [title]; - } - if (videoIds != null) { - _queryParams["videoIds"] = videoIds; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } - if (altIds != null) { - _queryParams["altIds"] = altIds; - } if (pphNames != null) { _queryParams["pphNames"] = pphNames; } @@ -176,6 +158,24 @@ if (studioNames != null) { _queryParams["studioNames"] = studioNames; } + if (territories != null) { + _queryParams["territories"] = territories; + } + if (title != null) { + _queryParams["title"] = [title]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (videoIds != null) { + _queryParams["videoIds"] = videoIds; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (altIds != null) { + _queryParams["altIds"] = altIds; + } _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/avails'; @@ -354,6 +354,18 @@ * [accountId] - REQUIRED. See _General rules_ for more information about this * field. * + * [seasonIds] - Filter StoreInfos that match any of the given `season_id`s. + * + * [videoIds] - Filter StoreInfos that match any of the given `video_id`s. + * + * [videoId] - Filter StoreInfos that match a given `video_id`. + * NOTE: this field is deprecated and will be removed on V2; `video_ids` + * should be used instead. + * + * [pageToken] - See _List methods rules_ for info about this field. + * + * [pageSize] - See _List methods rules_ for info about this field. + * * [mids] - Filter StoreInfos that match any of the given `mid`s. * * [pphNames] - See _List methods rules_ for info about this field. @@ -362,22 +374,10 @@ * given country * codes, using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us"). * - * [name] - Filter that matches StoreInfos with a `name` or `show_name` - * that contains the given case-insensitive name. - * * [studioNames] - See _List methods rules_ for info about this field. * - * [seasonIds] - Filter StoreInfos that match any of the given `season_id`s. - * - * [pageToken] - See _List methods rules_ for info about this field. - * - * [videoId] - Filter StoreInfos that match a given `video_id`. - * NOTE: this field is deprecated and will be removed on V2; `video_ids` - * should be used instead. - * - * [videoIds] - Filter StoreInfos that match any of the given `video_id`s. - * - * [pageSize] - See _List methods rules_ for info about this field. + * [name] - Filter that matches StoreInfos with a `name` or `show_name` + * that contains the given case-insensitive name. * * Completes with a [ListStoreInfosResponse]. * @@ -387,7 +387,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListStoreInfosResponse> list(core.String accountId, {core.List<core.String> mids, core.List<core.String> pphNames, core.List<core.String> countries, core.String name, core.List<core.String> studioNames, core.List<core.String> seasonIds, core.String pageToken, core.String videoId, core.List<core.String> videoIds, core.int pageSize}) { + async.Future<ListStoreInfosResponse> list(core.String accountId, {core.List<core.String> seasonIds, core.List<core.String> videoIds, core.String videoId, core.String pageToken, core.int pageSize, core.List<core.String> mids, core.List<core.String> pphNames, core.List<core.String> countries, core.List<core.String> studioNames, core.String name}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -398,6 +398,21 @@ if (accountId == null) { throw new core.ArgumentError("Parameter accountId is required."); } + if (seasonIds != null) { + _queryParams["seasonIds"] = seasonIds; + } + if (videoIds != null) { + _queryParams["videoIds"] = videoIds; + } + if (videoId != null) { + _queryParams["videoId"] = [videoId]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if (mids != null) { _queryParams["mids"] = mids; } @@ -407,26 +422,11 @@ if (countries != null) { _queryParams["countries"] = countries; } - if (name != null) { - _queryParams["name"] = [name]; - } if (studioNames != null) { _queryParams["studioNames"] = studioNames; } - if (seasonIds != null) { - _queryParams["seasonIds"] = seasonIds; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (videoId != null) { - _queryParams["videoId"] = [videoId]; - } - if (videoIds != null) { - _queryParams["videoIds"] = videoIds; - } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; + if (name != null) { + _queryParams["name"] = [name]; } _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/storeInfos'; @@ -844,8 +844,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (altId != null) { _json["altId"] = altId; } @@ -972,8 +972,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (avails != null) { _json["avails"] = avails.map((value) => (value).toJson()).toList(); } @@ -1010,8 +1010,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1048,8 +1048,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1299,8 +1299,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (approvedTime != null) { _json["approvedTime"] = approvedTime; } @@ -1580,8 +1580,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (audioTracks != null) { _json["audioTracks"] = audioTracks; }
diff --git a/generated/googleapis/lib/plus/v1.dart b/generated/googleapis/lib/plus/v1.dart index 95c53ee..9e9ec03 100644 --- a/generated/googleapis/lib/plus/v1.dart +++ b/generated/googleapis/lib/plus/v1.dart
@@ -608,8 +608,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -636,8 +636,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (channelId != null) { _json["channelId"] = channelId; } @@ -658,8 +658,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (youtubeActorInfo != null) { _json["youtubeActorInfo"] = (youtubeActorInfo).toJson(); } @@ -684,8 +684,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (url != null) { _json["url"] = url; } @@ -711,8 +711,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (familyName != null) { _json["familyName"] = familyName; } @@ -736,8 +736,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adHocVerified != null) { _json["adHocVerified"] = adHocVerified; } @@ -788,8 +788,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientSpecificActorInfo != null) { _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson(); } @@ -828,8 +828,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (channelId != null) { _json["channelId"] = channelId; } @@ -850,8 +850,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (youtubeActorInfo != null) { _json["youtubeActorInfo"] = (youtubeActorInfo).toJson(); } @@ -872,8 +872,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (url != null) { _json["url"] = url; } @@ -894,8 +894,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adHocVerified != null) { _json["adHocVerified"] = adHocVerified; } @@ -944,8 +944,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientSpecificActorInfo != null) { _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson(); } @@ -986,8 +986,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (type != null) { _json["type"] = type; } @@ -1026,8 +1026,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -1072,8 +1072,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -1118,8 +1118,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -1158,8 +1158,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -1240,8 +1240,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (content != null) { _json["content"] = content; } @@ -1291,8 +1291,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (selfLink != null) { _json["selfLink"] = selfLink; } @@ -1321,8 +1321,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (selfLink != null) { _json["selfLink"] = selfLink; } @@ -1351,8 +1351,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (selfLink != null) { _json["selfLink"] = selfLink; } @@ -1437,8 +1437,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (actor != null) { _json["actor"] = (actor).toJson(); } @@ -1486,8 +1486,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (title != null) { _json["title"] = title; } @@ -1625,8 +1625,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (access != null) { _json["access"] = (access).toJson(); } @@ -1756,8 +1756,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -1802,8 +1802,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (channelId != null) { _json["channelId"] = channelId; } @@ -1824,8 +1824,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (youtubeActorInfo != null) { _json["youtubeActorInfo"] = (youtubeActorInfo).toJson(); } @@ -1850,8 +1850,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (url != null) { _json["url"] = url; } @@ -1872,8 +1872,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adHocVerified != null) { _json["adHocVerified"] = adHocVerified; } @@ -1919,8 +1919,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientSpecificActorInfo != null) { _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson(); } @@ -1960,8 +1960,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -2002,8 +2002,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (content != null) { _json["content"] = content; } @@ -2030,8 +2030,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (totalItems != null) { _json["totalItems"] = totalItems; } @@ -2111,8 +2111,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (actor != null) { _json["actor"] = (actor).toJson(); } @@ -2207,8 +2207,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -2294,8 +2294,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -2353,8 +2353,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (max != null) { _json["max"] = max; } @@ -2389,8 +2389,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (leftImageOffset != null) { _json["leftImageOffset"] = leftImageOffset; } @@ -2424,8 +2424,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -2466,8 +2466,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (coverInfo != null) { _json["coverInfo"] = (coverInfo).toJson(); } @@ -2505,8 +2505,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (type != null) { _json["type"] = type; } @@ -2539,8 +2539,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (isDefault != null) { _json["isDefault"] = isDefault; } @@ -2591,8 +2591,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (familyName != null) { _json["familyName"] = familyName; } @@ -2677,8 +2677,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (department != null) { _json["department"] = department; } @@ -2730,8 +2730,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (primary != null) { _json["primary"] = primary; } @@ -2771,8 +2771,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (label != null) { _json["label"] = label; } @@ -2988,8 +2988,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aboutMe != null) { _json["aboutMe"] = aboutMe; } @@ -3097,8 +3097,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (formatted != null) { _json["formatted"] = formatted; } @@ -3124,8 +3124,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (latitude != null) { _json["latitude"] = latitude; } @@ -3168,8 +3168,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (address != null) { _json["address"] = (address).toJson(); } @@ -3224,8 +3224,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; }
diff --git a/generated/googleapis/lib/plusdomains/v1.dart b/generated/googleapis/lib/plusdomains/v1.dart index 82dcf6b..bd225ca 100644 --- a/generated/googleapis/lib/plusdomains/v1.dart +++ b/generated/googleapis/lib/plusdomains/v1.dart
@@ -1174,8 +1174,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -1205,8 +1205,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (channelId != null) { _json["channelId"] = channelId; } @@ -1227,8 +1227,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (youtubeActorInfo != null) { _json["youtubeActorInfo"] = (youtubeActorInfo).toJson(); } @@ -1253,8 +1253,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (url != null) { _json["url"] = url; } @@ -1280,8 +1280,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (familyName != null) { _json["familyName"] = familyName; } @@ -1305,8 +1305,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adHocVerified != null) { _json["adHocVerified"] = adHocVerified; } @@ -1357,8 +1357,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientSpecificActorInfo != null) { _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson(); } @@ -1397,8 +1397,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (channelId != null) { _json["channelId"] = channelId; } @@ -1419,8 +1419,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (youtubeActorInfo != null) { _json["youtubeActorInfo"] = (youtubeActorInfo).toJson(); } @@ -1441,8 +1441,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (url != null) { _json["url"] = url; } @@ -1463,8 +1463,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adHocVerified != null) { _json["adHocVerified"] = adHocVerified; } @@ -1513,8 +1513,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientSpecificActorInfo != null) { _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson(); } @@ -1555,8 +1555,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (type != null) { _json["type"] = type; } @@ -1595,8 +1595,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -1641,8 +1641,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -1671,8 +1671,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (url != null) { _json["url"] = url; } @@ -1708,8 +1708,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -1748,8 +1748,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -1839,8 +1839,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (content != null) { _json["content"] = content; } @@ -1893,8 +1893,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (selfLink != null) { _json["selfLink"] = selfLink; } @@ -1923,8 +1923,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (selfLink != null) { _json["selfLink"] = selfLink; } @@ -1953,8 +1953,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (selfLink != null) { _json["selfLink"] = selfLink; } @@ -1998,8 +1998,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (canComment != null) { _json["canComment"] = canComment; } @@ -2098,8 +2098,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (actor != null) { _json["actor"] = (actor).toJson(); } @@ -2150,8 +2150,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (title != null) { _json["title"] = title; } @@ -2289,8 +2289,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (access != null) { _json["access"] = (access).toJson(); } @@ -2420,8 +2420,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -2495,8 +2495,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -2558,8 +2558,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -2592,8 +2592,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (totalItems != null) { _json["totalItems"] = totalItems; } @@ -2643,8 +2643,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -2727,8 +2727,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -2770,8 +2770,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (channelId != null) { _json["channelId"] = channelId; } @@ -2792,8 +2792,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (youtubeActorInfo != null) { _json["youtubeActorInfo"] = (youtubeActorInfo).toJson(); } @@ -2818,8 +2818,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (url != null) { _json["url"] = url; } @@ -2840,8 +2840,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adHocVerified != null) { _json["adHocVerified"] = adHocVerified; } @@ -2887,8 +2887,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientSpecificActorInfo != null) { _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson(); } @@ -2928,8 +2928,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -2970,8 +2970,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (content != null) { _json["content"] = content; } @@ -2998,8 +2998,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (totalItems != null) { _json["totalItems"] = totalItems; } @@ -3079,8 +3079,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (actor != null) { _json["actor"] = (actor).toJson(); } @@ -3175,8 +3175,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -3222,8 +3222,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (url != null) { _json["url"] = url; } @@ -3259,8 +3259,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -3290,8 +3290,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (time != null) { _json["time"] = (time).toIso8601String(); } @@ -3416,8 +3416,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (author != null) { _json["author"] = (author).toJson(); } @@ -3533,8 +3533,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -3584,8 +3584,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (leftImageOffset != null) { _json["leftImageOffset"] = leftImageOffset; } @@ -3619,8 +3619,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -3661,8 +3661,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (coverInfo != null) { _json["coverInfo"] = (coverInfo).toJson(); } @@ -3700,8 +3700,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (type != null) { _json["type"] = type; } @@ -3734,8 +3734,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (isDefault != null) { _json["isDefault"] = isDefault; } @@ -3786,8 +3786,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (familyName != null) { _json["familyName"] = familyName; } @@ -3872,8 +3872,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (department != null) { _json["department"] = department; } @@ -3925,8 +3925,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (primary != null) { _json["primary"] = primary; } @@ -3966,8 +3966,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (label != null) { _json["label"] = label; } @@ -4169,8 +4169,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aboutMe != null) { _json["aboutMe"] = aboutMe; } @@ -4272,8 +4272,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (formatted != null) { _json["formatted"] = formatted; } @@ -4299,8 +4299,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (latitude != null) { _json["latitude"] = latitude; } @@ -4343,8 +4343,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (address != null) { _json["address"] = (address).toJson(); } @@ -4399,8 +4399,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -4441,8 +4441,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; }
diff --git a/generated/googleapis/lib/prediction/v1_6.dart b/generated/googleapis/lib/prediction/v1_6.dart index 6ce4d61..ffff06f 100644 --- a/generated/googleapis/lib/prediction/v1_6.dart +++ b/generated/googleapis/lib/prediction/v1_6.dart
@@ -453,8 +453,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (count != null) { _json["count"] = count; } @@ -483,8 +483,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (count != null) { _json["count"] = count; } @@ -518,8 +518,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (count != null) { _json["count"] = count; } @@ -546,8 +546,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (count != null) { _json["count"] = count; } @@ -582,8 +582,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (categorical != null) { _json["categorical"] = (categorical).toJson(); } @@ -623,8 +623,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (count != null) { _json["count"] = count; } @@ -655,8 +655,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (count != null) { _json["count"] = count; } @@ -685,8 +685,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (numeric != null) { _json["numeric"] = (numeric).toJson(); } @@ -715,8 +715,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (features != null) { _json["features"] = features.map((value) => (value).toJson()).toList(); } @@ -757,8 +757,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (confusionMatrix != null) { _json["confusionMatrix"] = confusionMatrix; } @@ -809,8 +809,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dataDescription != null) { _json["dataDescription"] = (dataDescription).toJson(); } @@ -851,8 +851,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (csvInstance != null) { _json["csvInstance"] = csvInstance; } @@ -872,8 +872,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (input != null) { _json["input"] = (input).toJson(); } @@ -903,8 +903,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (csvInstance != null) { _json["csvInstance"] = csvInstance; } @@ -965,8 +965,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -1046,8 +1046,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (classWeightedAccuracy != null) { _json["classWeightedAccuracy"] = classWeightedAccuracy; } @@ -1135,8 +1135,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (created != null) { _json["created"] = (created).toIso8601String(); } @@ -1201,8 +1201,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -1236,8 +1236,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (label != null) { _json["label"] = label; } @@ -1288,8 +1288,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -1334,8 +1334,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (csvInstance != null) { _json["csvInstance"] = csvInstance; }
diff --git a/generated/googleapis/lib/pubsub/v1.dart b/generated/googleapis/lib/pubsub/v1.dart index 6748967..18db1e5 100644 --- a/generated/googleapis/lib/pubsub/v1.dart +++ b/generated/googleapis/lib/pubsub/v1.dart
@@ -1230,8 +1230,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ackIds != null) { _json["ackIds"] = ackIds; } @@ -1283,8 +1283,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (members != null) { _json["members"] = members; } @@ -1313,8 +1313,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1341,8 +1341,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1375,8 +1375,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1408,8 +1408,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1446,8 +1446,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ackDeadlineSeconds != null) { _json["ackDeadlineSeconds"] = ackDeadlineSeconds; } @@ -1478,8 +1478,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (pushConfig != null) { _json["pushConfig"] = (pushConfig).toJson(); } @@ -1564,8 +1564,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bindings != null) { _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); } @@ -1592,8 +1592,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (messages != null) { _json["messages"] = messages.map((value) => (value).toJson()).toList(); } @@ -1618,8 +1618,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (messageIds != null) { _json["messageIds"] = messageIds; } @@ -1674,8 +1674,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attributes != null) { _json["attributes"] = attributes; } @@ -1720,8 +1720,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (maxMessages != null) { _json["maxMessages"] = maxMessages; } @@ -1750,8 +1750,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (receivedMessages != null) { _json["receivedMessages"] = receivedMessages.map((value) => (value).toJson()).toList(); } @@ -1802,8 +1802,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attributes != null) { _json["attributes"] = attributes; } @@ -1832,8 +1832,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ackId != null) { _json["ackId"] = ackId; } @@ -1862,8 +1862,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (policy != null) { _json["policy"] = (policy).toJson(); } @@ -1935,8 +1935,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ackDeadlineSeconds != null) { _json["ackDeadlineSeconds"] = ackDeadlineSeconds; } @@ -1971,8 +1971,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; } @@ -1996,8 +1996,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; } @@ -2025,8 +2025,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; }
diff --git a/generated/googleapis/lib/qpxexpress/v1.dart b/generated/googleapis/lib/qpxexpress/v1.dart index 29fc7d0..43aaab0 100644 --- a/generated/googleapis/lib/qpxexpress/v1.dart +++ b/generated/googleapis/lib/qpxexpress/v1.dart
@@ -103,8 +103,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -155,8 +155,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (city != null) { _json["city"] = city; } @@ -209,8 +209,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (commercialName != null) { _json["commercialName"] = commercialName; } @@ -262,8 +262,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -314,8 +314,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -380,8 +380,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aircraft != null) { _json["aircraft"] = aircraft.map((value) => (value).toJson()).toList(); } @@ -460,8 +460,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (basisCode != null) { _json["basisCode"] = basisCode; } @@ -512,8 +512,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (carrier != null) { _json["carrier"] = carrier; } @@ -568,8 +568,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bagDescriptor != null) { _json["bagDescriptor"] = bagDescriptor.map((value) => (value).toJson()).toList(); } @@ -716,8 +716,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aircraft != null) { _json["aircraft"] = aircraft; } @@ -821,8 +821,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adultCount != null) { _json["adultCount"] = adultCount; } @@ -944,8 +944,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (baseFareTotal != null) { _json["baseFareTotal"] = baseFareTotal; } @@ -1075,8 +1075,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bookingCode != null) { _json["bookingCode"] = bookingCode; } @@ -1148,8 +1148,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fareId != null) { _json["fareId"] = fareId; } @@ -1203,8 +1203,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (duration != null) { _json["duration"] = duration; } @@ -1303,8 +1303,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alliance != null) { _json["alliance"] = alliance; } @@ -1368,8 +1368,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -1427,8 +1427,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (chargeType != null) { _json["chargeType"] = chargeType; } @@ -1478,8 +1478,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (earliestTime != null) { _json["earliestTime"] = earliestTime; } @@ -1532,8 +1532,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -1610,8 +1610,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (maxPrice != null) { _json["maxPrice"] = maxPrice; } @@ -1668,8 +1668,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (data != null) { _json["data"] = (data).toJson(); } @@ -1702,8 +1702,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (request != null) { _json["request"] = (request).toJson(); } @@ -1732,8 +1732,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; }
diff --git a/generated/googleapis/lib/reseller/v1.dart b/generated/googleapis/lib/reseller/v1.dart index 0676830..f4e1b90 100644 --- a/generated/googleapis/lib/reseller/v1.dart +++ b/generated/googleapis/lib/reseller/v1.dart
@@ -1031,8 +1031,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (addressLine1 != null) { _json["addressLine1"] = addressLine1; } @@ -1130,8 +1130,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dealCode != null) { _json["dealCode"] = dealCode; } @@ -1223,8 +1223,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alternateEmail != null) { _json["alternateEmail"] = alternateEmail; } @@ -1278,8 +1278,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -1308,8 +1308,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (serviceAccountEmailAddresses != null) { _json["serviceAccountEmailAddresses"] = serviceAccountEmailAddresses; } @@ -1333,8 +1333,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (topicName != null) { _json["topicName"] = topicName; } @@ -1410,8 +1410,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -1454,8 +1454,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } @@ -1515,8 +1515,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (commitmentInterval != null) { _json["commitmentInterval"] = (commitmentInterval).toJson(); } @@ -1559,8 +1559,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (minimumTransferableSeats != null) { _json["minimumTransferableSeats"] = minimumTransferableSeats; } @@ -1599,8 +1599,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (isInTrial != null) { _json["isInTrial"] = isInTrial; } @@ -1782,8 +1782,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (billingMethod != null) { _json["billingMethod"] = billingMethod; } @@ -1871,8 +1871,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; }
diff --git a/generated/googleapis/lib/runtimeconfig/v1.dart b/generated/googleapis/lib/runtimeconfig/v1.dart index 9a170f7..0759e47 100644 --- a/generated/googleapis/lib/runtimeconfig/v1.dart +++ b/generated/googleapis/lib/runtimeconfig/v1.dart
@@ -144,12 +144,17 @@ * Lists operations that match the specified filter in the request. If the * server doesn't support this method, it returns `UNIMPLEMENTED`. * - * NOTE: the `name` binding below allows API services to override the binding - * to use different resource name schemes, such as `users / * /operations`. + * NOTE: the `name` binding allows API services to override the binding + * to use different resource name schemes, such as `users / * /operations`. To + * override the binding, API services can add a binding such as + * `"/v1/{name=users / * }/operations"` to their service configuration. + * For backwards compatibility, the default name includes the operations + * collection id, however overriding users must ensure the name binding + * is the parent resource, without the operations collection id. * * Request parameters: * - * [name] - The name of the operation collection. + * [name] - The name of the operation's parent resource. * Value must have pattern "^operations$". * * [filter] - The standard list filter. @@ -211,8 +216,8 @@ CancelOperationRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -235,8 +240,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -259,8 +264,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -335,8 +340,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (done != null) { _json["done"] = done; } @@ -376,7 +381,7 @@ * error message is needed, put the localized message in the error details or * localize it in the client. The optional error details may contain arbitrary * information about the error. There is a predefined set of error detail types - * in the package `google.rpc` which can be used for common error conditions. + * in the package `google.rpc` that can be used for common error conditions. * * # Language mapping * @@ -399,7 +404,7 @@ * errors. * * - Workflow errors. A typical workflow has multiple steps. Each step may - * have a `Status` message for error reporting purpose. + * have a `Status` message for error reporting. * * - Batch operations. If a client uses batch request and batch response, the * `Status` message should be used directly inside batch response, one for @@ -444,8 +449,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; }
diff --git a/generated/googleapis/lib/safebrowsing/v4.dart b/generated/googleapis/lib/safebrowsing/v4.dart index 2af71d3..53c741b 100644 --- a/generated/googleapis/lib/safebrowsing/v4.dart +++ b/generated/googleapis/lib/safebrowsing/v4.dart
@@ -105,12 +105,12 @@ * * [encodedRequest] - A serialized FetchThreatListUpdatesRequest proto. * + * [clientVersion] - The version of the client implementation. + * * [clientId] - A client ID that uniquely identifies the client implementation * of the Safe * Browsing API. * - * [clientVersion] - The version of the client implementation. - * * Completes with a [FetchThreatListUpdatesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -119,7 +119,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<FetchThreatListUpdatesResponse> get(core.String encodedRequest, {core.String clientId, core.String clientVersion}) { + async.Future<FetchThreatListUpdatesResponse> get(core.String encodedRequest, {core.String clientVersion, core.String clientId}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -130,12 +130,12 @@ if (encodedRequest == null) { throw new core.ArgumentError("Parameter encodedRequest is required."); } - if (clientId != null) { - _queryParams["clientId"] = [clientId]; - } if (clientVersion != null) { _queryParams["clientVersion"] = [clientVersion]; } + if (clientId != null) { + _queryParams["clientId"] = [clientId]; + } _url = 'v4/encodedUpdates/' + commons.Escaper.ecapeVariable('$encodedRequest'); @@ -364,8 +364,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (sha256 != null) { _json["sha256"] = sha256; } @@ -394,8 +394,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientId != null) { _json["clientId"] = clientId; } @@ -446,8 +446,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (maxDatabaseEntries != null) { _json["maxDatabaseEntries"] = maxDatabaseEntries; } @@ -487,8 +487,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (client != null) { _json["client"] = (client).toJson(); } @@ -519,8 +519,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (listUpdateResponses != null) { _json["listUpdateResponses"] = listUpdateResponses.map((value) => (value).toJson()).toList(); } @@ -562,8 +562,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (apiClient != null) { _json["apiClient"] = (apiClient).toJson(); } @@ -609,8 +609,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (matches != null) { _json["matches"] = matches.map((value) => (value).toJson()).toList(); } @@ -642,8 +642,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (client != null) { _json["client"] = (client).toJson(); } @@ -666,8 +666,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (matches != null) { _json["matches"] = matches.map((value) => (value).toJson()).toList(); } @@ -687,8 +687,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (threatLists != null) { _json["threatLists"] = threatLists.map((value) => (value).toJson()).toList(); } @@ -747,6 +747,7 @@ * - "UNWANTED_SOFTWARE" : Unwanted software threat type. * - "POTENTIALLY_HARMFUL_APPLICATION" : Potentially harmful application * threat type. + * - "MALICIOUS_BINARY" : Malicious binary threat type. */ core.String threatType; @@ -770,8 +771,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (constraints != null) { _json["constraints"] = (constraints).toJson(); } @@ -868,6 +869,7 @@ * - "UNWANTED_SOFTWARE" : Unwanted software threat type. * - "POTENTIALLY_HARMFUL_APPLICATION" : Potentially harmful application * threat type. + * - "MALICIOUS_BINARY" : Malicious binary threat type. */ core.String threatType; @@ -900,8 +902,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (additions != null) { _json["additions"] = additions.map((value) => (value).toJson()).toList(); } @@ -964,8 +966,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -1016,8 +1018,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (prefixSize != null) { _json["prefixSize"] = prefixSize; } @@ -1041,8 +1043,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (indices != null) { _json["indices"] = indices; } @@ -1098,8 +1100,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (encodedData != null) { _json["encodedData"] = encodedData; } @@ -1163,8 +1165,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (digest != null) { _json["digest"] = digest; } @@ -1194,8 +1196,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -1254,8 +1256,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (compressionType != null) { _json["compressionType"] = compressionType; } @@ -1306,8 +1308,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (platformTypes != null) { _json["platformTypes"] = platformTypes; } @@ -1365,6 +1367,7 @@ * - "UNWANTED_SOFTWARE" : Unwanted software threat type. * - "POTENTIALLY_HARMFUL_APPLICATION" : Potentially harmful application * threat type. + * - "MALICIOUS_BINARY" : Malicious binary threat type. */ core.String threatType; @@ -1382,8 +1385,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (platformType != null) { _json["platformType"] = platformType; } @@ -1443,6 +1446,7 @@ * - "UNWANTED_SOFTWARE" : Unwanted software threat type. * - "POTENTIALLY_HARMFUL_APPLICATION" : Potentially harmful application * threat type. + * - "MALICIOUS_BINARY" : Malicious binary threat type. */ core.String threatType; @@ -1469,8 +1473,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cacheDuration != null) { _json["cacheDuration"] = cacheDuration; }
diff --git a/generated/googleapis/lib/script/v1.dart b/generated/googleapis/lib/script/v1.dart index 23ea15e..3444e08 100644 --- a/generated/googleapis/lib/script/v1.dart +++ b/generated/googleapis/lib/script/v1.dart
@@ -163,8 +163,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errorMessage != null) { _json["errorMessage"] = errorMessage; } @@ -238,8 +238,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (devMode != null) { _json["devMode"] = devMode; } @@ -285,8 +285,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (result != null) { _json["result"] = result; } @@ -326,8 +326,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (names != null) { _json["names"] = names; } @@ -354,14 +354,14 @@ JoinAsyncResponse.fromJson(core.Map _json) { if (_json.containsKey("results")) { - results = commons.mapMap(_json["results"], (item) => new Operation.fromJson(item)); + results = commons.mapMap<core.Map<core.String, core.Object>, Operation>(_json["results"], (core.Map<core.String, core.Object> item) => new Operation.fromJson(item)); } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (results != null) { - _json["results"] = commons.mapMap(results, (item) => (item).toJson()); + _json["results"] = commons.mapMap<Operation, core.Map<core.String, core.Object>>(results, (Operation item) => (item).toJson()); } return _json; } @@ -434,8 +434,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (done != null) { _json["done"] = done; } @@ -473,8 +473,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (function != null) { _json["function"] = function; } @@ -526,8 +526,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; }
diff --git a/generated/googleapis/lib/searchconsole/v1.dart b/generated/googleapis/lib/searchconsole/v1.dart index 605eb88..bc36225 100644 --- a/generated/googleapis/lib/searchconsole/v1.dart +++ b/generated/googleapis/lib/searchconsole/v1.dart
@@ -98,8 +98,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (url != null) { _json["url"] = url; } @@ -135,8 +135,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (data != null) { _json["data"] = data; } @@ -182,8 +182,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (rule != null) { _json["rule"] = rule; } @@ -204,8 +204,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (blockedResource != null) { _json["blockedResource"] = (blockedResource).toJson(); } @@ -231,8 +231,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (requestScreenshot != null) { _json["requestScreenshot"] = requestScreenshot; } @@ -286,8 +286,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (mobileFriendliness != null) { _json["mobileFriendliness"] = mobileFriendliness; } @@ -338,8 +338,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (details != null) { _json["details"] = details; }
diff --git a/generated/googleapis/lib/servicecontrol/v1.dart b/generated/googleapis/lib/servicecontrol/v1.dart index a40a495..709d46b 100644 --- a/generated/googleapis/lib/servicecontrol/v1.dart +++ b/generated/googleapis/lib/servicecontrol/v1.dart
@@ -461,8 +461,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allocateOperation != null) { _json["allocateOperation"] = (allocateOperation).toJson(); } @@ -526,8 +526,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allocateErrors != null) { _json["allocateErrors"] = allocateErrors.map((value) => (value).toJson()).toList(); } @@ -657,8 +657,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (authenticationInfo != null) { _json["authenticationInfo"] = (authenticationInfo).toJson(); } @@ -717,8 +717,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (authoritySelector != null) { _json["authoritySelector"] = authoritySelector; } @@ -759,8 +759,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (granted != null) { _json["granted"] = granted; } @@ -859,8 +859,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -887,8 +887,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (unusedArguments != null) { _json["unusedArguments"] = unusedArguments; } @@ -935,8 +935,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (operation != null) { _json["operation"] = (operation).toJson(); } @@ -997,8 +997,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (checkErrors != null) { _json["checkErrors"] = checkErrors.map((value) => (value).toJson()).toList(); } @@ -1100,8 +1100,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bucketCounts != null) { _json["bucketCounts"] = bucketCounts; } @@ -1154,8 +1154,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (reconciliationOperation != null) { _json["reconciliationOperation"] = (reconciliationOperation).toJson(); } @@ -1217,8 +1217,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (operationId != null) { _json["operationId"] = operationId; } @@ -1264,8 +1264,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bounds != null) { _json["bounds"] = bounds; } @@ -1310,8 +1310,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (growthFactor != null) { _json["growthFactor"] = growthFactor; } @@ -1361,8 +1361,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (numFiniteBuckets != null) { _json["numFiniteBuckets"] = numFiniteBuckets; } @@ -1465,8 +1465,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (insertId != null) { _json["insertId"] = insertId; } @@ -1560,8 +1560,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (boolValue != null) { _json["boolValue"] = boolValue; } @@ -1615,8 +1615,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metricName != null) { _json["metricName"] = metricName; } @@ -1660,8 +1660,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currencyCode != null) { _json["currencyCode"] = currencyCode; } @@ -1820,8 +1820,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (consumerId != null) { _json["consumerId"] = consumerId; } @@ -1869,23 +1869,11 @@ * - "UNSPECIFIED" : This is never used. * - "RESOURCE_EXHAUSTED" : Quota allocation failed. * Same as google.rpc.Code.RESOURCE_EXHAUSTED. - * - "PROJECT_SUSPENDED" : Consumer project has been suspended. - * - "SERVICE_NOT_ENABLED" : Consumer has not enabled the service. - * - "BILLING_NOT_ACTIVE" : Consumer cannot access the service because billing - * is disabled. + * - "BILLING_NOT_ACTIVE" : Consumer cannot access the service because the + * service requires active + * billing. * - "PROJECT_DELETED" : Consumer's project has been marked as deleted (soft * deletion). - * - "PROJECT_INVALID" : Consumer's project number or ID does not represent a - * valid project. - * - "IP_ADDRESS_BLOCKED" : IP address of the consumer is invalid for the - * specific consumer - * project. - * - "REFERER_BLOCKED" : Referer address of the consumer request is invalid - * for the specific - * consumer project. - * - "CLIENT_APP_BLOCKED" : Client application of the consumer request is - * invalid for the - * specific consumer project. * - "API_KEY_INVALID" : Specified API key is invalid. * - "API_KEY_EXPIRED" : Specified API Key has expired. * - "SPATULA_HEADER_INVALID" : Consumer's spatula header is invalid. @@ -1924,8 +1912,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -1988,8 +1976,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (limitExceeded != null) { _json["limitExceeded"] = limitExceeded; } @@ -2108,8 +2096,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (consumerId != null) { _json["consumerId"] = consumerId; } @@ -2180,8 +2168,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (limitByIds != null) { _json["limitByIds"] = limitByIds; } @@ -2214,8 +2202,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (releaseOperation != null) { _json["releaseOperation"] = (releaseOperation).toJson(); } @@ -2272,8 +2260,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (operationId != null) { _json["operationId"] = operationId; } @@ -2308,8 +2296,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (operationId != null) { _json["operationId"] = operationId; } @@ -2337,8 +2325,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (operationId != null) { _json["operationId"] = operationId; } @@ -2384,8 +2372,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (operations != null) { _json["operations"] = operations.map((value) => (value).toJson()).toList(); } @@ -2443,8 +2431,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (reportErrors != null) { _json["reportErrors"] = reportErrors.map((value) => (value).toJson()).toList(); } @@ -2474,6 +2462,8 @@ * + `AppEngine-Google; (+http://code.google.com/appengine; appid: * s~my-project`: * The request was made from the `my-project` App Engine app. + * + * NOLINT */ core.String callerSuppliedUserAgent; @@ -2488,8 +2478,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (callerIp != null) { _json["callerIp"] = callerIp; } @@ -2521,8 +2511,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (reconciliationOperation != null) { _json["reconciliationOperation"] = (reconciliationOperation).toJson(); } @@ -2574,8 +2564,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (operationId != null) { _json["operationId"] = operationId; } @@ -2680,8 +2670,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; }
diff --git a/generated/googleapis/lib/servicemanagement/v1.dart b/generated/googleapis/lib/servicemanagement/v1.dart index cf06c3b..9e7711a 100644 --- a/generated/googleapis/lib/servicemanagement/v1.dart +++ b/generated/googleapis/lib/servicemanagement/v1.dart
@@ -1356,8 +1356,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -1440,8 +1440,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (methods != null) { _json["methods"] = methods.map((value) => (value).toJson()).toList(); } @@ -1548,8 +1548,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (auditLogConfigs != null) { _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson()).toList(); } @@ -1612,8 +1612,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (exemptedMembers != null) { _json["exemptedMembers"] = exemptedMembers; } @@ -1695,8 +1695,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (audiences != null) { _json["audiences"] = audiences; } @@ -1758,8 +1758,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (audiences != null) { _json["audiences"] = audiences; } @@ -1807,8 +1807,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (providers != null) { _json["providers"] = providers.map((value) => (value).toJson()).toList(); } @@ -1874,8 +1874,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allowWithoutCredential != null) { _json["allowWithoutCredential"] = allowWithoutCredential; } @@ -1922,8 +1922,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (provider != null) { _json["provider"] = provider; } @@ -1948,8 +1948,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (rules != null) { _json["rules"] = rules.map((value) => (value).toJson()).toList(); } @@ -1995,8 +1995,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (address != null) { _json["address"] = address; } @@ -2016,6 +2016,14 @@ /** Associates `members` with a `role`. */ class Binding { /** + * The condition that is associated with this binding. + * NOTE: an unsatisfied condition will not allow user access via current + * binding. Different bindings, including their conditions, are examined + * independently. + * This field is GOOGLE_INTERNAL. + */ + Expr condition; + /** * Specifies the identities requesting access for a Cloud Platform resource. * `members` can have the following values: * @@ -2050,6 +2058,9 @@ Binding(); Binding.fromJson(core.Map _json) { + if (_json.containsKey("condition")) { + condition = new Expr.fromJson(_json["condition"]); + } if (_json.containsKey("members")) { members = _json["members"]; } @@ -2058,8 +2069,11 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (condition != null) { + _json["condition"] = (condition).toJson(); + } if (members != null) { _json["members"] = members; } @@ -2094,8 +2108,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (configChanges != null) { _json["configChanges"] = configChanges.map((value) => (value).toJson()).toList(); } @@ -2122,8 +2136,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (logName != null) { _json["logName"] = logName; } @@ -2149,7 +2163,6 @@ * member of the specified group. Approvers can only grant additional * access, and are thus only used in a strictly positive context * (e.g. ALLOW/IN or DENY/NOT_IN). - * See: go/rpc-security-policy-dynamicauth. * - "JUSTIFICATION_TYPE" : What types of justifications have been supplied * with this request. * String values should match enum names from tech.iam.JustificationType, @@ -2217,8 +2230,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (iam != null) { _json["iam"] = iam; } @@ -2314,8 +2327,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (advices != null) { _json["advices"] = advices.map((value) => (value).toJson()).toList(); } @@ -2379,8 +2392,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fileContents != null) { _json["fileContents"] = fileContents; } @@ -2410,8 +2423,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -2447,8 +2460,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (files != null) { _json["files"] = files.map((value) => (value).toJson()).toList(); } @@ -2494,8 +2507,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (rules != null) { _json["rules"] = rules.map((value) => (value).toJson()).toList(); } @@ -2533,8 +2546,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (provided != null) { _json["provided"] = provided; } @@ -2568,8 +2581,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (environment != null) { _json["environment"] = environment; } @@ -2595,8 +2608,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (field != null) { _json["field"] = field; } @@ -2624,8 +2637,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (provider != null) { _json["provider"] = provider; } @@ -2668,8 +2681,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (rules != null) { _json["rules"] = rules.map((value) => (value).toJson()).toList(); } @@ -2705,8 +2718,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (isErrorType != null) { _json["isErrorType"] = isErrorType; } @@ -2735,8 +2748,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2755,8 +2768,8 @@ DataAccessOptions.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -2772,8 +2785,8 @@ DeleteServiceStrategy.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -2806,8 +2819,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2844,8 +2857,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (consumerId != null) { _json["consumerId"] = consumerId; } @@ -2965,8 +2978,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (documentationRootUrl != null) { _json["documentationRootUrl"] = documentationRootUrl; } @@ -3020,8 +3033,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deprecationDescription != null) { _json["deprecationDescription"] = deprecationDescription; } @@ -3058,8 +3071,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (consumerId != null) { _json["consumerId"] = consumerId; } @@ -3146,8 +3159,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aliases != null) { _json["aliases"] = aliases; } @@ -3208,8 +3221,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (enumvalue != null) { _json["enumvalue"] = enumvalue.map((value) => (value).toJson()).toList(); } @@ -3252,8 +3265,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -3283,8 +3296,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (authorization != null) { _json["authorization"] = (authorization).toJson(); } @@ -3292,6 +3305,74 @@ } } +/** + * Represents an expression text. Example: + * + * title: "User account presence" + * description: "Determines whether the request has a user account" + * expression: "size(request.user) > 0" + */ +class Expr { + /** + * An optional description of the expression. This is a longer text which + * describes the expression, e.g. when hovered over it in a UI. + */ + core.String description; + /** + * Textual representation of an expression in + * [Common Expression Language](http://go/api-expr) syntax. + * + * The application context of the containing message determines which + * well-known feature set of CEL is supported. + */ + core.String expression; + /** + * An optional string indicating the location of the expression for error + * reporting, e.g. a file name and a position in the file. + */ + core.String location; + /** + * An optional title for the expression, i.e. a short string describing + * its purpose. This can be used e.g. in UIs which allow to enter the + * expression. + */ + core.String title; + + Expr(); + + Expr.fromJson(core.Map _json) { + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("expression")) { + expression = _json["expression"]; + } + if (_json.containsKey("location")) { + location = _json["location"]; + } + if (_json.containsKey("title")) { + title = _json["title"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (description != null) { + _json["description"] = description; + } + if (expression != null) { + _json["expression"] = expression; + } + if (location != null) { + _json["location"] = location; + } + if (title != null) { + _json["title"] = title; + } + return _json; + } +} + /** A single field of a message type. */ class Field { /** @@ -3387,8 +3468,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cardinality != null) { _json["cardinality"] = cardinality; } @@ -3481,8 +3562,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cancelState != null) { _json["cancelState"] = cancelState; } @@ -3538,8 +3619,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (newConfig != null) { _json["newConfig"] = newConfig; } @@ -3585,8 +3666,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (changeReports != null) { _json["changeReports"] = changeReports.map((value) => (value).toJson()).toList(); } @@ -3611,14 +3692,14 @@ GetIamPolicyRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } /** - * Defines the HTTP configuration for a service. It contains a list of + * Defines the HTTP configuration for an API service. It contains a list of * HttpRule, each specifying the mapping of an RPC method * to one or more HTTP REST API methods. */ @@ -3650,8 +3731,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fullyDecodeReservedExpansion != null) { _json["fullyDecodeReservedExpansion"] = fullyDecodeReservedExpansion; } @@ -3664,11 +3745,11 @@ /** * `HttpRule` defines the mapping of an RPC method to one or more HTTP - * REST APIs. The mapping determines what portions of the request - * message are populated from the path, query parameters, or body of - * the HTTP request. The mapping is typically specified as an - * `google.api.http` annotation, see "google/api/annotations.proto" - * for details. + * REST API methods. The mapping specifies how different portions of the RPC + * request message are mapped to URL path, URL query parameters, and + * HTTP request body. The mapping is typically specified as an + * `google.api.http` annotation on the RPC method, + * see "google/api/annotations.proto" for details. * * The mapping consists of a field specifying the path template and * method kind. The path template can refer to fields in the request @@ -3717,6 +3798,11 @@ * parameters. Assume the following definition of the request message: * * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http).get = "/v1/messages/{message_id}"; + * } + * } * message GetMessageRequest { * message SubMessage { * string subfield = 1; @@ -3834,7 +3920,7 @@ * to the request message are as follows: * * 1. The `body` field specifies either `*` or a field path, or is - * omitted. If omitted, it assumes there is no HTTP body. + * omitted. If omitted, it indicates there is no HTTP request body. * 2. Leaf fields (recursive expansion of nested messages in the * request) can be classified into three types: * (a) Matched in the URL template. @@ -3853,29 +3939,34 @@ * FieldPath = IDENT { "." IDENT } ; * Verb = ":" LITERAL ; * - * The syntax `*` matches a single path segment. It follows the semantics of - * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String - * Expansion. + * The syntax `*` matches a single path segment. The syntax `**` matches zero + * or more path segments, which must be the last part of the path except the + * `Verb`. The syntax `LITERAL` matches literal text in the path. * - * The syntax `**` matches zero or more path segments. It follows the semantics - * of [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.3 Reserved - * Expansion. NOTE: it must be the last segment in the path except the Verb. - * - * The syntax `LITERAL` matches literal text in the URL path. - * - * The syntax `Variable` matches the entire path as specified by its template; - * this nested template must not contain further variables. If a variable + * The syntax `Variable` matches part of the URL path as specified by its + * template. A variable template must not contain other variables. If a variable * matches a single path segment, its template may be omitted, e.g. `{var}` * is equivalent to `{var=*}`. * + * If a variable contains exactly one path segment, such as `"{var}"` or + * `"{var=*}"`, when such a variable is expanded into a URL path, all characters + * except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the + * Discovery Document as `{var}`. + * + * If a variable contains one or more path segments, such as `"{var=foo / * }"` + * or `"{var=**}"`, when such a variable is expanded into a URL path, all + * characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables + * show up in the Discovery Document as `{+var}`. + * + * NOTE: While the single segment variable matches the semantics of + * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 + * Simple String Expansion, the multi segment variable **does not** match + * RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion + * does not expand special characters like `?` and `#`, which would lead + * to invalid URLs. + * * NOTE: the field paths in variables and in the `body` must not refer to * repeated fields or map fields. - * - * Use CustomHttpPattern to specify any HTTP method that is not included in the - * `pattern` field, such as HEAD, or "*" to leave the HTTP method unspecified - * for - * a given URL path rule. The wild-card rule is useful for services that provide - * content to Web (HTML) clients. */ class HttpRule { /** @@ -3891,7 +3982,12 @@ * present at the top-level of request message type. */ core.String body; - /** Custom pattern is used for defining custom verbs. */ + /** + * The custom pattern is used for specifying an HTTP method that is not + * included in the `pattern` field, such as HEAD, or "*" to leave the + * HTTP method unspecified for this rule. The wild-card rule is useful + * for services that provide content to Web (HTML) clients. + */ CustomHttpPattern custom; /** Used for deleting a resource. */ core.String delete; @@ -3944,6 +4040,24 @@ */ core.String restCollection; /** + * Optional. The rest method name is by default derived from the URL + * pattern. If specified, this field overrides the default method name. + * Example: + * + * rpc CreateResource(CreateResourceRequest) + * returns (CreateResourceResponse) { + * option (google.api.http) = { + * post: "/v1/resources", + * body: "resource", + * rest_method_name: "insert" + * }; + * } + * + * This method has the automatically derived rest method name "create", but + * for backwards compatability with apiary, it is specified as insert. + */ + core.String restMethodName; + /** * Selects methods to which this rule applies. * * Refer to selector for syntax details. @@ -3989,13 +4103,16 @@ if (_json.containsKey("restCollection")) { restCollection = _json["restCollection"]; } + if (_json.containsKey("restMethodName")) { + restMethodName = _json["restMethodName"]; + } if (_json.containsKey("selector")) { selector = _json["selector"]; } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (additionalBindings != null) { _json["additionalBindings"] = additionalBindings.map((value) => (value).toJson()).toList(); } @@ -4032,6 +4149,9 @@ if (restCollection != null) { _json["restCollection"] = restCollection; } + if (restMethodName != null) { + _json["restMethodName"] = restMethodName; + } if (selector != null) { _json["selector"] = selector; } @@ -4068,8 +4188,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -4101,8 +4221,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -4131,8 +4251,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -4161,8 +4281,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -4193,8 +4313,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -4228,8 +4348,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cloudAudit != null) { _json["cloudAudit"] = (cloudAudit).toJson(); } @@ -4295,8 +4415,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -4371,8 +4491,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (consumerDestinations != null) { _json["consumerDestinations"] = consumerDestinations.map((value) => (value).toJson()).toList(); } @@ -4412,8 +4532,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (logs != null) { _json["logs"] = logs; } @@ -4448,8 +4568,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (producerProjectId != null) { _json["producerProjectId"] = producerProjectId; } @@ -4516,8 +4636,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (completeNotification != null) { _json["completeNotification"] = completeNotification; } @@ -4609,8 +4729,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (completeNotification != null) { _json["completeNotification"] = completeNotification; } @@ -4687,8 +4807,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -4885,8 +5005,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -4917,10 +5037,7 @@ /** * Bind API methods to metrics. Binding a method to a metric causes that - * metric's configured quota, billing, and monitoring behaviors to apply to the - * method call. - * - * Used by metric-based quotas only. + * metric's configured quota behaviors to apply to the method call. */ class MetricRule { /** @@ -4950,8 +5067,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metricCosts != null) { _json["metricCosts"] = metricCosts; } @@ -5061,8 +5178,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -5139,8 +5256,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -5226,8 +5343,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (consumerDestinations != null) { _json["consumerDestinations"] = consumerDestinations.map((value) => (value).toJson()).toList(); } @@ -5265,8 +5382,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metrics != null) { _json["metrics"] = metrics; } @@ -5317,8 +5434,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (canonicalScopes != null) { _json["canonicalScopes"] = canonicalScopes; } @@ -5390,8 +5507,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (done != null) { _json["done"] = done; } @@ -5442,8 +5559,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (progressPercentage != null) { _json["progressPercentage"] = progressPercentage; } @@ -5494,8 +5611,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -5554,8 +5671,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (content != null) { _json["content"] = content; } @@ -5607,7 +5724,6 @@ core.List<AuditConfig> auditConfigs; /** * Associates a list of `members` to a `role`. - * Multiple `bindings` must not be specified for the same `role`. * `bindings` with no members will result in an error. */ core.List<Binding> bindings; @@ -5670,8 +5786,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (auditConfigs != null) { _json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toList(); } @@ -5745,17 +5861,11 @@ * value_type: INT64 */ class Quota { - /** - * List of `QuotaLimit` definitions for the service. - * - * Used by metric-based quotas only. - */ + /** List of `QuotaLimit` definitions for the service. */ core.List<QuotaLimit> limits; /** * List of `MetricRule` definitions, each one mapping a selected method to one * or more metrics. - * - * Used by metric-based quotas only. */ core.List<MetricRule> metricRules; @@ -5770,8 +5880,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (limits != null) { _json["limits"] = limits.map((value) => (value).toJson()).toList(); } @@ -5858,10 +5968,6 @@ * Name of the quota limit. The name is used to refer to the limit when * overriding the default limit on per-consumer basis. * - * For group-based quota limits, the name must be unique within the quota - * group. If a name is not provided, it will be generated from the limit_by - * and duration fields. - * * For metric-based quota limits, the name must be provided, and it must be * unique within the service. The name can only include alphanumeric * characters as well as '-'. @@ -5887,21 +5993,10 @@ * * "/d" for quota every 24 hours, starting 00:00 US Pacific Time. * * Otherwise the quota won't be reset by time, such as storage limit. * * One and only one of the granted containers: - * * "/{organization}" quota for an organization. - * * "/{project}" quota for a project. - * * "/{folder}" quota for a folder. - * * "/{resource}" quota for a universal resource. - * * Zero or more quota segmentation dimension. Not all combos are valid. - * * "/{region}" quota for every region. Not to be used with time intervals. - * * Otherwise the resources granted on the target is not segmented. - * * "/{zone}" quota for every zone. Not to be used with time intervals. - * * Otherwise the resources granted on the target is not segmented. - * * "/{resource}" quota for a resource associated with a project or org. + * * "/{project}" quota for a project * * Here are some examples: * * "1/min/{project}" for quota per minute per project. - * * "1/min/{user}" for quota per minute per user. - * * "1/min/{organization}" for quota per minute per organization. * * Note: the order of unit components is insignificant. * The "1" at the beginning is required to follow the metric unit syntax. @@ -5909,40 +6004,7 @@ * Used by metric-based quotas only. */ core.String unit; - /** - * Tiered limit values. Also allows for regional or zone overrides for these - * values if "/{region}" or "/{zone}" is specified in the unit field. - * - * Currently supported tiers from low to high: - * VERY_LOW, LOW, STANDARD, HIGH, VERY_HIGH - * - * To apply different limit values for users according to their tiers, specify - * the values for the tiers you want to differentiate. For example: - * {LOW:100, STANDARD:500, HIGH:1000, VERY_HIGH:5000} - * - * The limit value for each tier is optional except for the tier STANDARD. - * The limit value for an unspecified tier falls to the value of its next - * tier towards tier STANDARD. For the above example, the limit value for tier - * STANDARD is 500. - * - * To apply the same limit value for all users, just specify limit value for - * tier STANDARD. For example: {STANDARD:500}. - * - * To apply a regional overide for a tier, add a map entry with key - * "<TIER>/<region>", where <region> is a region name. Similarly, for a zone - * override, add a map entry with key "<TIER>/{zone}". - * Further, a wildcard can be used at the end of a zone name in order to - * specify zone level overrides. For example: - * LOW: 10, STANDARD: 50, HIGH: 100, - * LOW/us-central1: 20, STANDARD/us-central1: 60, HIGH/us-central1: 200, - * LOW/us-central1-*: 10, STANDARD/us-central1-*: 20, HIGH/us-central1-*: 80 - * - * The regional overrides tier set for each region must be the same as - * the tier set for default limit values. Same rule applies for zone overrides - * tier as well. - * - * Used by metric-based quotas only. - */ + /** Tiered limit values, currently only STANDARD is supported. */ core.Map<core.String, core.String> values; QuotaLimit(); @@ -5980,8 +6042,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (defaultLimit != null) { _json["defaultLimit"] = defaultLimit; } @@ -6095,8 +6157,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createTime != null) { _json["createTime"] = createTime; } @@ -6193,8 +6255,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (action != null) { _json["action"] = action; } @@ -6317,11 +6379,7 @@ * e.g. `calendar.googleapis.com`. */ core.String name; - /** - * The id of the Google developer project that owns the service. - * Members of this project can manage the service configuration, - * manage consumption of the service, etc. - */ + /** The Google project that owns this service. */ core.String producerProjectId; /** Quota configuration. */ Quota quota; @@ -6339,7 +6397,7 @@ * to define system APIs in ESF. */ core.List<Type> systemTypes; - /** The product title associated with this service. */ + /** The product title for this service. */ core.String title; /** * A list of all proto message types included in this API service. @@ -6446,8 +6504,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (apis != null) { _json["apis"] = apis.map((value) => (value).toJson()).toList(); } @@ -6565,8 +6623,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (policy != null) { _json["policy"] = (policy).toJson(); } @@ -6596,8 +6654,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fileName != null) { _json["fileName"] = fileName; } @@ -6623,8 +6681,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (sourceFiles != null) { _json["sourceFiles"] = sourceFiles; } @@ -6720,8 +6778,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -6764,8 +6822,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -6798,8 +6856,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (configSource != null) { _json["configSource"] = (configSource).toJson(); } @@ -6823,8 +6881,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (serviceConfig != null) { _json["serviceConfig"] = (serviceConfig).toJson(); } @@ -6867,8 +6925,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (httpHeader != null) { _json["httpHeader"] = httpHeader; } @@ -6914,8 +6972,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (parameters != null) { _json["parameters"] = parameters.map((value) => (value).toJson()).toList(); } @@ -6976,8 +7034,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (rules != null) { _json["rules"] = rules.map((value) => (value).toJson()).toList(); } @@ -7003,8 +7061,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; } @@ -7028,8 +7086,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; } @@ -7038,9 +7096,10 @@ } /** - * Strategy that specifies how Google Service Control should select - * different - * versions of service configurations based on traffic percentage. + * Strategy that specifies how clients of Google Service Controller want to + * send traffic to use different config versions. This is generally + * used by API proxy to split traffic based on your configured precentage for + * each config version. * * One example of how to gradually rollout a new service configuration using * this @@ -7084,8 +7143,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (percentages != null) { _json["percentages"] = percentages; } @@ -7136,8 +7195,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields.map((value) => (value).toJson()).toList(); } @@ -7173,8 +7232,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (service != null) { _json["service"] = (service).toJson(); } @@ -7222,8 +7281,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (producerNotificationChannel != null) { _json["producerNotificationChannel"] = producerNotificationChannel; } @@ -7286,8 +7345,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allowUnregisteredCalls != null) { _json["allowUnregisteredCalls"] = allowUnregisteredCalls; } @@ -7338,8 +7397,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (rules != null) { _json["rules"] = rules.map((value) => (value).toJson()).toList(); } @@ -7388,8 +7447,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (restriction != null) { _json["restriction"] = restriction; }
diff --git a/generated/googleapis/lib/serviceuser/v1.dart b/generated/googleapis/lib/serviceuser/v1.dart index ed04a8a..d67f257 100644 --- a/generated/googleapis/lib/serviceuser/v1.dart +++ b/generated/googleapis/lib/serviceuser/v1.dart
@@ -356,8 +356,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (methods != null) { _json["methods"] = methods.map((value) => (value).toJson()).toList(); } @@ -454,8 +454,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (audiences != null) { _json["audiences"] = audiences; } @@ -517,8 +517,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (audiences != null) { _json["audiences"] = audiences; } @@ -566,8 +566,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (providers != null) { _json["providers"] = providers.map((value) => (value).toJson()).toList(); } @@ -633,8 +633,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allowWithoutCredential != null) { _json["allowWithoutCredential"] = allowWithoutCredential; } @@ -681,8 +681,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (provider != null) { _json["provider"] = provider; } @@ -707,8 +707,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (rules != null) { _json["rules"] = rules.map((value) => (value).toJson()).toList(); } @@ -754,8 +754,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (address != null) { _json["address"] = address; } @@ -807,8 +807,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (rules != null) { _json["rules"] = rules.map((value) => (value).toJson()).toList(); } @@ -846,8 +846,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (provided != null) { _json["provided"] = provided; } @@ -881,8 +881,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (environment != null) { _json["environment"] = environment; } @@ -907,8 +907,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (provider != null) { _json["provider"] = provider; } @@ -951,8 +951,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (rules != null) { _json["rules"] = rules.map((value) => (value).toJson()).toList(); } @@ -988,8 +988,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (isErrorType != null) { _json["isErrorType"] = isErrorType; } @@ -1018,8 +1018,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -1038,8 +1038,8 @@ DisableServiceRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1156,8 +1156,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (documentationRootUrl != null) { _json["documentationRootUrl"] = documentationRootUrl; } @@ -1211,8 +1211,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deprecationDescription != null) { _json["deprecationDescription"] = deprecationDescription; } @@ -1234,8 +1234,8 @@ EnableServiceRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1319,8 +1319,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aliases != null) { _json["aliases"] = aliases; } @@ -1381,8 +1381,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (enumvalue != null) { _json["enumvalue"] = enumvalue.map((value) => (value).toJson()).toList(); } @@ -1425,8 +1425,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -1456,8 +1456,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (authorization != null) { _json["authorization"] = (authorization).toJson(); } @@ -1560,8 +1560,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cardinality != null) { _json["cardinality"] = cardinality; } @@ -1597,7 +1597,7 @@ } /** - * Defines the HTTP configuration for a service. It contains a list of + * Defines the HTTP configuration for an API service. It contains a list of * HttpRule, each specifying the mapping of an RPC method * to one or more HTTP REST API methods. */ @@ -1629,8 +1629,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fullyDecodeReservedExpansion != null) { _json["fullyDecodeReservedExpansion"] = fullyDecodeReservedExpansion; } @@ -1643,11 +1643,11 @@ /** * `HttpRule` defines the mapping of an RPC method to one or more HTTP - * REST APIs. The mapping determines what portions of the request - * message are populated from the path, query parameters, or body of - * the HTTP request. The mapping is typically specified as an - * `google.api.http` annotation, see "google/api/annotations.proto" - * for details. + * REST API methods. The mapping specifies how different portions of the RPC + * request message are mapped to URL path, URL query parameters, and + * HTTP request body. The mapping is typically specified as an + * `google.api.http` annotation on the RPC method, + * see "google/api/annotations.proto" for details. * * The mapping consists of a field specifying the path template and * method kind. The path template can refer to fields in the request @@ -1696,6 +1696,11 @@ * parameters. Assume the following definition of the request message: * * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http).get = "/v1/messages/{message_id}"; + * } + * } * message GetMessageRequest { * message SubMessage { * string subfield = 1; @@ -1813,7 +1818,7 @@ * to the request message are as follows: * * 1. The `body` field specifies either `*` or a field path, or is - * omitted. If omitted, it assumes there is no HTTP body. + * omitted. If omitted, it indicates there is no HTTP request body. * 2. Leaf fields (recursive expansion of nested messages in the * request) can be classified into three types: * (a) Matched in the URL template. @@ -1832,29 +1837,34 @@ * FieldPath = IDENT { "." IDENT } ; * Verb = ":" LITERAL ; * - * The syntax `*` matches a single path segment. It follows the semantics of - * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String - * Expansion. + * The syntax `*` matches a single path segment. The syntax `**` matches zero + * or more path segments, which must be the last part of the path except the + * `Verb`. The syntax `LITERAL` matches literal text in the path. * - * The syntax `**` matches zero or more path segments. It follows the semantics - * of [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.3 Reserved - * Expansion. NOTE: it must be the last segment in the path except the Verb. - * - * The syntax `LITERAL` matches literal text in the URL path. - * - * The syntax `Variable` matches the entire path as specified by its template; - * this nested template must not contain further variables. If a variable + * The syntax `Variable` matches part of the URL path as specified by its + * template. A variable template must not contain other variables. If a variable * matches a single path segment, its template may be omitted, e.g. `{var}` * is equivalent to `{var=*}`. * + * If a variable contains exactly one path segment, such as `"{var}"` or + * `"{var=*}"`, when such a variable is expanded into a URL path, all characters + * except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the + * Discovery Document as `{var}`. + * + * If a variable contains one or more path segments, such as `"{var=foo / * }"` + * or `"{var=**}"`, when such a variable is expanded into a URL path, all + * characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables + * show up in the Discovery Document as `{+var}`. + * + * NOTE: While the single segment variable matches the semantics of + * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 + * Simple String Expansion, the multi segment variable **does not** match + * RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion + * does not expand special characters like `?` and `#`, which would lead + * to invalid URLs. + * * NOTE: the field paths in variables and in the `body` must not refer to * repeated fields or map fields. - * - * Use CustomHttpPattern to specify any HTTP method that is not included in the - * `pattern` field, such as HEAD, or "*" to leave the HTTP method unspecified - * for - * a given URL path rule. The wild-card rule is useful for services that provide - * content to Web (HTML) clients. */ class HttpRule { /** @@ -1870,7 +1880,12 @@ * present at the top-level of request message type. */ core.String body; - /** Custom pattern is used for defining custom verbs. */ + /** + * The custom pattern is used for specifying an HTTP method that is not + * included in the `pattern` field, such as HEAD, or "*" to leave the + * HTTP method unspecified for this rule. The wild-card rule is useful + * for services that provide content to Web (HTML) clients. + */ CustomHttpPattern custom; /** Used for deleting a resource. */ core.String delete; @@ -1923,6 +1938,24 @@ */ core.String restCollection; /** + * Optional. The rest method name is by default derived from the URL + * pattern. If specified, this field overrides the default method name. + * Example: + * + * rpc CreateResource(CreateResourceRequest) + * returns (CreateResourceResponse) { + * option (google.api.http) = { + * post: "/v1/resources", + * body: "resource", + * rest_method_name: "insert" + * }; + * } + * + * This method has the automatically derived rest method name "create", but + * for backwards compatability with apiary, it is specified as insert. + */ + core.String restMethodName; + /** * Selects methods to which this rule applies. * * Refer to selector for syntax details. @@ -1968,13 +2001,16 @@ if (_json.containsKey("restCollection")) { restCollection = _json["restCollection"]; } + if (_json.containsKey("restMethodName")) { + restMethodName = _json["restMethodName"]; + } if (_json.containsKey("selector")) { selector = _json["selector"]; } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (additionalBindings != null) { _json["additionalBindings"] = additionalBindings.map((value) => (value).toJson()).toList(); } @@ -2011,6 +2047,9 @@ if (restCollection != null) { _json["restCollection"] = restCollection; } + if (restMethodName != null) { + _json["restMethodName"] = restMethodName; + } if (selector != null) { _json["selector"] = selector; } @@ -2047,8 +2086,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -2083,8 +2122,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -2147,8 +2186,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -2223,8 +2262,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (consumerDestinations != null) { _json["consumerDestinations"] = consumerDestinations.map((value) => (value).toJson()).toList(); } @@ -2264,8 +2303,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (logs != null) { _json["logs"] = logs; } @@ -2332,8 +2371,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (completeNotification != null) { _json["completeNotification"] = completeNotification; } @@ -2425,8 +2464,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (completeNotification != null) { _json["completeNotification"] = completeNotification; } @@ -2503,8 +2542,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -2701,8 +2740,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -2733,10 +2772,7 @@ /** * Bind API methods to metrics. Binding a method to a metric causes that - * metric's configured quota, billing, and monitoring behaviors to apply to the - * method call. - * - * Used by metric-based quotas only. + * metric's configured quota behaviors to apply to the method call. */ class MetricRule { /** @@ -2766,8 +2802,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metricCosts != null) { _json["metricCosts"] = metricCosts; } @@ -2877,8 +2913,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -2955,8 +2991,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -3042,8 +3078,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (consumerDestinations != null) { _json["consumerDestinations"] = consumerDestinations.map((value) => (value).toJson()).toList(); } @@ -3081,8 +3117,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metrics != null) { _json["metrics"] = metrics; } @@ -3133,8 +3169,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (canonicalScopes != null) { _json["canonicalScopes"] = canonicalScopes; } @@ -3206,8 +3242,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (done != null) { _json["done"] = done; } @@ -3258,8 +3294,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (progressPercentage != null) { _json["progressPercentage"] = progressPercentage; } @@ -3310,8 +3346,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -3370,8 +3406,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (content != null) { _json["content"] = content; } @@ -3411,8 +3447,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -3474,17 +3510,11 @@ * value_type: INT64 */ class Quota { - /** - * List of `QuotaLimit` definitions for the service. - * - * Used by metric-based quotas only. - */ + /** List of `QuotaLimit` definitions for the service. */ core.List<QuotaLimit> limits; /** * List of `MetricRule` definitions, each one mapping a selected method to one * or more metrics. - * - * Used by metric-based quotas only. */ core.List<MetricRule> metricRules; @@ -3499,8 +3529,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (limits != null) { _json["limits"] = limits.map((value) => (value).toJson()).toList(); } @@ -3587,10 +3617,6 @@ * Name of the quota limit. The name is used to refer to the limit when * overriding the default limit on per-consumer basis. * - * For group-based quota limits, the name must be unique within the quota - * group. If a name is not provided, it will be generated from the limit_by - * and duration fields. - * * For metric-based quota limits, the name must be provided, and it must be * unique within the service. The name can only include alphanumeric * characters as well as '-'. @@ -3616,21 +3642,10 @@ * * "/d" for quota every 24 hours, starting 00:00 US Pacific Time. * * Otherwise the quota won't be reset by time, such as storage limit. * * One and only one of the granted containers: - * * "/{organization}" quota for an organization. - * * "/{project}" quota for a project. - * * "/{folder}" quota for a folder. - * * "/{resource}" quota for a universal resource. - * * Zero or more quota segmentation dimension. Not all combos are valid. - * * "/{region}" quota for every region. Not to be used with time intervals. - * * Otherwise the resources granted on the target is not segmented. - * * "/{zone}" quota for every zone. Not to be used with time intervals. - * * Otherwise the resources granted on the target is not segmented. - * * "/{resource}" quota for a resource associated with a project or org. + * * "/{project}" quota for a project * * Here are some examples: * * "1/min/{project}" for quota per minute per project. - * * "1/min/{user}" for quota per minute per user. - * * "1/min/{organization}" for quota per minute per organization. * * Note: the order of unit components is insignificant. * The "1" at the beginning is required to follow the metric unit syntax. @@ -3638,40 +3653,7 @@ * Used by metric-based quotas only. */ core.String unit; - /** - * Tiered limit values. Also allows for regional or zone overrides for these - * values if "/{region}" or "/{zone}" is specified in the unit field. - * - * Currently supported tiers from low to high: - * VERY_LOW, LOW, STANDARD, HIGH, VERY_HIGH - * - * To apply different limit values for users according to their tiers, specify - * the values for the tiers you want to differentiate. For example: - * {LOW:100, STANDARD:500, HIGH:1000, VERY_HIGH:5000} - * - * The limit value for each tier is optional except for the tier STANDARD. - * The limit value for an unspecified tier falls to the value of its next - * tier towards tier STANDARD. For the above example, the limit value for tier - * STANDARD is 500. - * - * To apply the same limit value for all users, just specify limit value for - * tier STANDARD. For example: {STANDARD:500}. - * - * To apply a regional overide for a tier, add a map entry with key - * "<TIER>/<region>", where <region> is a region name. Similarly, for a zone - * override, add a map entry with key "<TIER>/{zone}". - * Further, a wildcard can be used at the end of a zone name in order to - * specify zone level overrides. For example: - * LOW: 10, STANDARD: 50, HIGH: 100, - * LOW/us-central1: 20, STANDARD/us-central1: 60, HIGH/us-central1: 200, - * LOW/us-central1-*: 10, STANDARD/us-central1-*: 20, HIGH/us-central1-*: 80 - * - * The regional overrides tier set for each region must be the same as - * the tier set for default limit values. Same rule applies for zone overrides - * tier as well. - * - * Used by metric-based quotas only. - */ + /** Tiered limit values, currently only STANDARD is supported. */ core.Map<core.String, core.String> values; QuotaLimit(); @@ -3709,8 +3691,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (defaultLimit != null) { _json["defaultLimit"] = defaultLimit; } @@ -3766,8 +3748,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -3875,11 +3857,7 @@ * e.g. `calendar.googleapis.com`. */ core.String name; - /** - * The id of the Google developer project that owns the service. - * Members of this project can manage the service configuration, - * manage consumption of the service, etc. - */ + /** The Google project that owns this service. */ core.String producerProjectId; /** Quota configuration. */ Quota quota; @@ -3897,7 +3875,7 @@ * to define system APIs in ESF. */ core.List<Type> systemTypes; - /** The product title associated with this service. */ + /** The product title for this service. */ core.String title; /** * A list of all proto message types included in this API service. @@ -4004,8 +3982,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (apis != null) { _json["apis"] = apis.map((value) => (value).toJson()).toList(); } @@ -4113,8 +4091,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fileName != null) { _json["fileName"] = fileName; } @@ -4140,8 +4118,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (sourceFiles != null) { _json["sourceFiles"] = sourceFiles; } @@ -4237,8 +4215,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -4281,8 +4259,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -4328,8 +4306,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (httpHeader != null) { _json["httpHeader"] = httpHeader; } @@ -4375,8 +4353,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (parameters != null) { _json["parameters"] = parameters.map((value) => (value).toJson()).toList(); } @@ -4437,8 +4415,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (rules != null) { _json["rules"] = rules.map((value) => (value).toJson()).toList(); } @@ -4489,8 +4467,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields.map((value) => (value).toJson()).toList(); } @@ -4553,8 +4531,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (producerNotificationChannel != null) { _json["producerNotificationChannel"] = producerNotificationChannel; } @@ -4617,8 +4595,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allowUnregisteredCalls != null) { _json["allowUnregisteredCalls"] = allowUnregisteredCalls; } @@ -4669,8 +4647,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (rules != null) { _json["rules"] = rules.map((value) => (value).toJson()).toList(); } @@ -4719,8 +4697,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (restriction != null) { _json["restriction"] = restriction; }
diff --git a/generated/googleapis/lib/sheets/v4.dart b/generated/googleapis/lib/sheets/v4.dart index 41655c8..4627c81 100644 --- a/generated/googleapis/lib/sheets/v4.dart +++ b/generated/googleapis/lib/sheets/v4.dart
@@ -317,6 +317,14 @@ * [range] - The A1 notation of a range to search for a logical table of data. * Values will be appended after the last row of the table. * + * [responseValueRenderOption] - Determines how values in the response should + * be rendered. + * The default render option is ValueRenderOption.FORMATTED_VALUE. + * Possible string values are: + * - "FORMATTED_VALUE" : A FORMATTED_VALUE. + * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE. + * - "FORMULA" : A FORMULA. + * * [insertDataOption] - How the input data should be inserted. * Possible string values are: * - "OVERWRITE" : A OVERWRITE. @@ -342,14 +350,6 @@ * of the cells that were appended. By default, responses * do not include the updated values. * - * [responseValueRenderOption] - Determines how values in the response should - * be rendered. - * The default render option is ValueRenderOption.FORMATTED_VALUE. - * Possible string values are: - * - "FORMATTED_VALUE" : A FORMATTED_VALUE. - * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE. - * - "FORMULA" : A FORMULA. - * * Completes with a [AppendValuesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -358,7 +358,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<AppendValuesResponse> append(ValueRange request, core.String spreadsheetId, core.String range, {core.String insertDataOption, core.String valueInputOption, core.String responseDateTimeRenderOption, core.bool includeValuesInResponse, core.String responseValueRenderOption}) { + async.Future<AppendValuesResponse> append(ValueRange request, core.String spreadsheetId, core.String range, {core.String responseValueRenderOption, core.String insertDataOption, core.String valueInputOption, core.String responseDateTimeRenderOption, core.bool includeValuesInResponse}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -375,6 +375,9 @@ if (range == null) { throw new core.ArgumentError("Parameter range is required."); } + if (responseValueRenderOption != null) { + _queryParams["responseValueRenderOption"] = [responseValueRenderOption]; + } if (insertDataOption != null) { _queryParams["insertDataOption"] = [insertDataOption]; } @@ -387,9 +390,6 @@ if (includeValuesInResponse != null) { _queryParams["includeValuesInResponse"] = ["${includeValuesInResponse}"]; } - if (responseValueRenderOption != null) { - _queryParams["responseValueRenderOption"] = [responseValueRenderOption]; - } _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId') + '/values/' + commons.Escaper.ecapeVariable('$range') + ':append'; @@ -726,6 +726,14 @@ * * [range] - The A1 notation of the values to update. * + * [includeValuesInResponse] - Determines if the update response should + * include the values + * of the cells that were updated. By default, responses + * do not include the updated values. + * If the range to write was larger than than the range actually written, + * the response will include all values in the requested range (excluding + * trailing empty rows and columns). + * * [responseValueRenderOption] - Determines how values in the response should * be rendered. * The default render option is ValueRenderOption.FORMATTED_VALUE. @@ -749,14 +757,6 @@ * - "SERIAL_NUMBER" : A SERIAL_NUMBER. * - "FORMATTED_STRING" : A FORMATTED_STRING. * - * [includeValuesInResponse] - Determines if the update response should - * include the values - * of the cells that were updated. By default, responses - * do not include the updated values. - * If the range to write was larger than than the range actually written, - * the response will include all values in the requested range (excluding - * trailing empty rows and columns). - * * Completes with a [UpdateValuesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -765,7 +765,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<UpdateValuesResponse> update(ValueRange request, core.String spreadsheetId, core.String range, {core.String responseValueRenderOption, core.String valueInputOption, core.String responseDateTimeRenderOption, core.bool includeValuesInResponse}) { + async.Future<UpdateValuesResponse> update(ValueRange request, core.String spreadsheetId, core.String range, {core.bool includeValuesInResponse, core.String responseValueRenderOption, core.String valueInputOption, core.String responseDateTimeRenderOption}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -782,6 +782,9 @@ if (range == null) { throw new core.ArgumentError("Parameter range is required."); } + if (includeValuesInResponse != null) { + _queryParams["includeValuesInResponse"] = ["${includeValuesInResponse}"]; + } if (responseValueRenderOption != null) { _queryParams["responseValueRenderOption"] = [responseValueRenderOption]; } @@ -791,9 +794,6 @@ if (responseDateTimeRenderOption != null) { _queryParams["responseDateTimeRenderOption"] = [responseDateTimeRenderOption]; } - if (includeValuesInResponse != null) { - _queryParams["includeValuesInResponse"] = ["${includeValuesInResponse}"]; - } _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId') + '/values/' + commons.Escaper.ecapeVariable('$range'); @@ -828,8 +828,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bandedRange != null) { _json["bandedRange"] = (bandedRange).toJson(); } @@ -850,8 +850,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bandedRange != null) { _json["bandedRange"] = (bandedRange).toJson(); } @@ -877,8 +877,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (chart != null) { _json["chart"] = (chart).toJson(); } @@ -899,8 +899,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (chart != null) { _json["chart"] = (chart).toJson(); } @@ -929,8 +929,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (index != null) { _json["index"] = index; } @@ -958,8 +958,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filter != null) { _json["filter"] = (filter).toJson(); } @@ -980,8 +980,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filter != null) { _json["filter"] = (filter).toJson(); } @@ -1006,8 +1006,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (namedRange != null) { _json["namedRange"] = (namedRange).toJson(); } @@ -1028,8 +1028,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (namedRange != null) { _json["namedRange"] = (namedRange).toJson(); } @@ -1055,8 +1055,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (protectedRange != null) { _json["protectedRange"] = (protectedRange).toJson(); } @@ -1077,8 +1077,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (protectedRange != null) { _json["protectedRange"] = (protectedRange).toJson(); } @@ -1112,8 +1112,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (properties != null) { _json["properties"] = (properties).toJson(); } @@ -1134,8 +1134,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (properties != null) { _json["properties"] = (properties).toJson(); } @@ -1174,8 +1174,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields; } @@ -1218,8 +1218,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimension != null) { _json["dimension"] = dimension; } @@ -1260,8 +1260,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (spreadsheetId != null) { _json["spreadsheetId"] = spreadsheetId; } @@ -1309,8 +1309,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (range != null) { _json["range"] = (range).toJson(); } @@ -1343,8 +1343,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimensions != null) { _json["dimensions"] = (dimensions).toJson(); } @@ -1388,8 +1388,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bandedRangeId != null) { _json["bandedRangeId"] = bandedRangeId; } @@ -1460,8 +1460,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (firstBandColor != null) { _json["firstBandColor"] = (firstBandColor).toJson(); } @@ -1524,8 +1524,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (format != null) { _json["format"] = (format).toJson(); } @@ -1549,6 +1549,12 @@ * this is the data representing the dates. */ ChartData domain; + /** + * True to reverse the order of the domain values (horizontal axis). + * Not applicable to Gauge, Geo, Histogram, Org, Pie, Radar, and Treemap + * charts. + */ + core.bool reversed; BasicChartDomain(); @@ -1556,13 +1562,19 @@ if (_json.containsKey("domain")) { domain = new ChartData.fromJson(_json["domain"]); } + if (_json.containsKey("reversed")) { + reversed = _json["reversed"]; + } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (domain != null) { _json["domain"] = (domain).toJson(); } + if (reversed != null) { + _json["reversed"] = reversed; + } return _json; } } @@ -1617,6 +1629,9 @@ * href="/chart/interactive/docs/gallery/scatterchart">scatter chart</a>. * - "COMBO" : A <a href="/chart/interactive/docs/gallery/combochart">combo * chart</a>. + * - "STEPPED_AREA" : A <a + * href="/chart/interactive/docs/gallery/steppedareachart">stepped area + * chart</a>. */ core.String type; @@ -1634,8 +1649,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (series != null) { _json["series"] = (series).toJson(); } @@ -1672,6 +1687,9 @@ * href="/chart/interactive/docs/gallery/scatterchart">scatter chart</a>. * - "COMBO" : A <a href="/chart/interactive/docs/gallery/combochart">combo * chart</a>. + * - "STEPPED_AREA" : A <a + * href="/chart/interactive/docs/gallery/steppedareachart">stepped area + * chart</a>. */ core.String chartType; /** @@ -1689,6 +1707,13 @@ */ core.int headerCount; /** + * If some values in a series are missing, gaps may appear in the chart (e.g, + * segments of lines in a line chart will be missing). To eliminate these + * gaps set this to true. + * Applies to Line, Area, and Combo charts. + */ + core.bool interpolateNulls; + /** * The position of the chart legend. * Possible string values are: * - "BASIC_CHART_LEGEND_POSITION_UNSPECIFIED" : Default value, do not use. @@ -1699,8 +1724,32 @@ * - "NO_LEGEND" : No legend is rendered. */ core.String legendPosition; + /** + * Gets whether all lines should be rendered smooth or straight by default. + * Applies to Line charts. + */ + core.bool lineSmoothing; /** The data this chart is visualizing. */ core.List<BasicChartSeries> series; + /** + * The stacked type for charts that support vertical stacking. + * Applies to Area, Bar, Column, and Stepped Area charts. + * Possible string values are: + * - "BASIC_CHART_STACKED_TYPE_UNSPECIFIED" : Default value, do not use. + * - "NOT_STACKED" : Series are not stacked. + * - "STACKED" : Series values are stacked, each value is rendered vertically + * beginning + * from the top of the value below it. + * - "PERCENT_STACKED" : Vertical stacks are stretched to reach the top of the + * chart, with + * values laid out as percentages of each other. + */ + core.String stackedType; + /** + * True to make the chart 3D. + * Applies to Bar and Column charts. + */ + core.bool threeDimensional; BasicChartSpec(); @@ -1717,16 +1766,28 @@ if (_json.containsKey("headerCount")) { headerCount = _json["headerCount"]; } + if (_json.containsKey("interpolateNulls")) { + interpolateNulls = _json["interpolateNulls"]; + } if (_json.containsKey("legendPosition")) { legendPosition = _json["legendPosition"]; } + if (_json.containsKey("lineSmoothing")) { + lineSmoothing = _json["lineSmoothing"]; + } if (_json.containsKey("series")) { series = _json["series"].map((value) => new BasicChartSeries.fromJson(value)).toList(); } + if (_json.containsKey("stackedType")) { + stackedType = _json["stackedType"]; + } + if (_json.containsKey("threeDimensional")) { + threeDimensional = _json["threeDimensional"]; + } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (axis != null) { _json["axis"] = axis.map((value) => (value).toJson()).toList(); } @@ -1739,12 +1800,24 @@ if (headerCount != null) { _json["headerCount"] = headerCount; } + if (interpolateNulls != null) { + _json["interpolateNulls"] = interpolateNulls; + } if (legendPosition != null) { _json["legendPosition"] = legendPosition; } + if (lineSmoothing != null) { + _json["lineSmoothing"] = lineSmoothing; + } if (series != null) { _json["series"] = series.map((value) => (value).toJson()).toList(); } + if (stackedType != null) { + _json["stackedType"] = stackedType; + } + if (threeDimensional != null) { + _json["threeDimensional"] = threeDimensional; + } return _json; } } @@ -1769,7 +1842,7 @@ BasicFilter.fromJson(core.Map _json) { if (_json.containsKey("criteria")) { - criteria = commons.mapMap(_json["criteria"], (item) => new FilterCriteria.fromJson(item)); + criteria = commons.mapMap<core.Map<core.String, core.Object>, FilterCriteria>(_json["criteria"], (core.Map<core.String, core.Object> item) => new FilterCriteria.fromJson(item)); } if (_json.containsKey("range")) { range = new GridRange.fromJson(_json["range"]); @@ -1779,10 +1852,10 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (criteria != null) { - _json["criteria"] = commons.mapMap(criteria, (item) => (item).toJson()); + _json["criteria"] = commons.mapMap<FilterCriteria, core.Map<core.String, core.Object>>(criteria, (FilterCriteria item) => (item).toJson()); } if (range != null) { _json["range"] = (range).toJson(); @@ -1807,8 +1880,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ranges != null) { _json["ranges"] = ranges; } @@ -1839,8 +1912,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clearedRanges != null) { _json["clearedRanges"] = clearedRanges; } @@ -1874,8 +1947,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (spreadsheetId != null) { _json["spreadsheetId"] = spreadsheetId; } @@ -1928,8 +2001,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (includeSpreadsheetInResponse != null) { _json["includeSpreadsheetInResponse"] = includeSpreadsheetInResponse; } @@ -1975,8 +2048,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (replies != null) { _json["replies"] = replies.map((value) => (value).toJson()).toList(); } @@ -2083,8 +2156,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (data != null) { _json["data"] = data.map((value) => (value).toJson()).toList(); } @@ -2153,8 +2226,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (responses != null) { _json["responses"] = responses.map((value) => (value).toJson()).toList(); } @@ -2315,8 +2388,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (type != null) { _json["type"] = type; } @@ -2355,8 +2428,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (condition != null) { _json["condition"] = (condition).toJson(); } @@ -2405,8 +2478,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (color != null) { _json["color"] = (color).toJson(); } @@ -2448,8 +2521,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bottom != null) { _json["bottom"] = (bottom).toJson(); } @@ -2466,6 +2539,297 @@ } } +/** + * A <a href="/chart/interactive/docs/gallery/bubblechart">bubble chart</a>. + */ +class BubbleChartSpec { + /** The bubble border color. */ + Color bubbleBorderColor; + /** + * The data containing the bubble labels. These do not need to be unique. + */ + ChartData bubbleLabels; + /** + * The max radius size of the bubbles, in pixels. + * If specified, the field must be a positive value. + */ + core.int bubbleMaxRadiusSize; + /** + * The minimum radius size of the bubbles, in pixels. + * If specific, the field must be a positive value. + */ + core.int bubbleMinRadiusSize; + /** + * The opacity of the bubbles between 0 and 1.0. + * 0 is fully transparent and 1 is fully opaque. + */ + core.double bubbleOpacity; + /** + * The data contianing the bubble sizes. Bubble sizes are used to draw + * the bubbles at different sizes relative to each other. + * If specified, group_ids must also be specified. This field is + * optional. + */ + ChartData bubbleSizes; + /** + * The format of the text inside the bubbles. + * Underline and Strikethrough are not supported. + */ + TextFormat bubbleTextStyle; + /** + * The data containing the bubble x-values. These values locate the bubbles + * in the chart horizontally. + */ + ChartData domain; + /** + * The data containing the bubble group IDs. All bubbles with the same group + * ID will be drawn in the same color. If bubble_sizes is specified then + * this field must also be specified but may contain blank values. + * This field is optional. + */ + ChartData groupIds; + /** + * Where the legend of the chart should be drawn. + * Possible string values are: + * - "BUBBLE_CHART_LEGEND_POSITION_UNSPECIFIED" : Default value, do not use. + * - "BOTTOM_LEGEND" : The legend is rendered on the bottom of the chart. + * - "LEFT_LEGEND" : The legend is rendered on the left of the chart. + * - "RIGHT_LEGEND" : The legend is rendered on the right of the chart. + * - "TOP_LEGEND" : The legend is rendered on the top of the chart. + * - "NO_LEGEND" : No legend is rendered. + * - "INSIDE_LEGEND" : The legend is rendered inside the chart area. + */ + core.String legendPosition; + /** + * The data contianing the bubble y-values. These values locate the bubbles + * in the chart vertically. + */ + ChartData series; + + BubbleChartSpec(); + + BubbleChartSpec.fromJson(core.Map _json) { + if (_json.containsKey("bubbleBorderColor")) { + bubbleBorderColor = new Color.fromJson(_json["bubbleBorderColor"]); + } + if (_json.containsKey("bubbleLabels")) { + bubbleLabels = new ChartData.fromJson(_json["bubbleLabels"]); + } + if (_json.containsKey("bubbleMaxRadiusSize")) { + bubbleMaxRadiusSize = _json["bubbleMaxRadiusSize"]; + } + if (_json.containsKey("bubbleMinRadiusSize")) { + bubbleMinRadiusSize = _json["bubbleMinRadiusSize"]; + } + if (_json.containsKey("bubbleOpacity")) { + bubbleOpacity = _json["bubbleOpacity"]; + } + if (_json.containsKey("bubbleSizes")) { + bubbleSizes = new ChartData.fromJson(_json["bubbleSizes"]); + } + if (_json.containsKey("bubbleTextStyle")) { + bubbleTextStyle = new TextFormat.fromJson(_json["bubbleTextStyle"]); + } + if (_json.containsKey("domain")) { + domain = new ChartData.fromJson(_json["domain"]); + } + if (_json.containsKey("groupIds")) { + groupIds = new ChartData.fromJson(_json["groupIds"]); + } + if (_json.containsKey("legendPosition")) { + legendPosition = _json["legendPosition"]; + } + if (_json.containsKey("series")) { + series = new ChartData.fromJson(_json["series"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (bubbleBorderColor != null) { + _json["bubbleBorderColor"] = (bubbleBorderColor).toJson(); + } + if (bubbleLabels != null) { + _json["bubbleLabels"] = (bubbleLabels).toJson(); + } + if (bubbleMaxRadiusSize != null) { + _json["bubbleMaxRadiusSize"] = bubbleMaxRadiusSize; + } + if (bubbleMinRadiusSize != null) { + _json["bubbleMinRadiusSize"] = bubbleMinRadiusSize; + } + if (bubbleOpacity != null) { + _json["bubbleOpacity"] = bubbleOpacity; + } + if (bubbleSizes != null) { + _json["bubbleSizes"] = (bubbleSizes).toJson(); + } + if (bubbleTextStyle != null) { + _json["bubbleTextStyle"] = (bubbleTextStyle).toJson(); + } + if (domain != null) { + _json["domain"] = (domain).toJson(); + } + if (groupIds != null) { + _json["groupIds"] = (groupIds).toJson(); + } + if (legendPosition != null) { + _json["legendPosition"] = legendPosition; + } + if (series != null) { + _json["series"] = (series).toJson(); + } + return _json; + } +} + +/** + * A <a href="/chart/interactive/docs/gallery/candlestickchart">candlestick + * chart</a>. + */ +class CandlestickChartSpec { + /** + * The Candlestick chart data. + * Only one CandlestickData is supported. + */ + core.List<CandlestickData> data; + /** + * The domain data (horizontal axis) for the candlestick chart. String data + * will be treated as discrete labels, other data will be treated as continous + * values. + */ + CandlestickDomain domain; + + CandlestickChartSpec(); + + CandlestickChartSpec.fromJson(core.Map _json) { + if (_json.containsKey("data")) { + data = _json["data"].map((value) => new CandlestickData.fromJson(value)).toList(); + } + if (_json.containsKey("domain")) { + domain = new CandlestickDomain.fromJson(_json["domain"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (data != null) { + _json["data"] = data.map((value) => (value).toJson()).toList(); + } + if (domain != null) { + _json["domain"] = (domain).toJson(); + } + return _json; + } +} + +/** + * The Candlestick chart data, each containing the low, open, close, and high + * values for a series. + */ +class CandlestickData { + /** + * The range data (vertical axis) for the close/final value for each candle. + * This is the top of the candle body. If greater than the open value the + * candle will be filled. Otherwise the candle will be hollow. + */ + CandlestickSeries closeSeries; + /** + * The range data (vertical axis) for the high/maximum value for each + * candle. This is the top of the candle's center line. + */ + CandlestickSeries highSeries; + /** + * The range data (vertical axis) for the low/minimum value for each candle. + * This is the bottom of the candle's center line. + */ + CandlestickSeries lowSeries; + /** + * The range data (vertical axis) for the open/initial value for each + * candle. This is the bottom of the candle body. If less than the close + * value the candle will be filled. Otherwise the candle will be hollow. + */ + CandlestickSeries openSeries; + + CandlestickData(); + + CandlestickData.fromJson(core.Map _json) { + if (_json.containsKey("closeSeries")) { + closeSeries = new CandlestickSeries.fromJson(_json["closeSeries"]); + } + if (_json.containsKey("highSeries")) { + highSeries = new CandlestickSeries.fromJson(_json["highSeries"]); + } + if (_json.containsKey("lowSeries")) { + lowSeries = new CandlestickSeries.fromJson(_json["lowSeries"]); + } + if (_json.containsKey("openSeries")) { + openSeries = new CandlestickSeries.fromJson(_json["openSeries"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (closeSeries != null) { + _json["closeSeries"] = (closeSeries).toJson(); + } + if (highSeries != null) { + _json["highSeries"] = (highSeries).toJson(); + } + if (lowSeries != null) { + _json["lowSeries"] = (lowSeries).toJson(); + } + if (openSeries != null) { + _json["openSeries"] = (openSeries).toJson(); + } + return _json; + } +} + +/** The domain of a CandlestickChart. */ +class CandlestickDomain { + /** The data of the CandlestickDomain. */ + ChartData data; + + CandlestickDomain(); + + CandlestickDomain.fromJson(core.Map _json) { + if (_json.containsKey("data")) { + data = new ChartData.fromJson(_json["data"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (data != null) { + _json["data"] = (data).toJson(); + } + return _json; + } +} + +/** The series of a CandlestickData. */ +class CandlestickSeries { + /** The data of the CandlestickSeries. */ + ChartData data; + + CandlestickSeries(); + + CandlestickSeries.fromJson(core.Map _json) { + if (_json.containsKey("data")) { + data = new ChartData.fromJson(_json["data"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (data != null) { + _json["data"] = (data).toJson(); + } + return _json; + } +} + /** Data about a specific cell. */ class CellData { /** @@ -2573,8 +2937,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dataValidation != null) { _json["dataValidation"] = (dataValidation).toJson(); } @@ -2747,8 +3111,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (backgroundColor != null) { _json["backgroundColor"] = (backgroundColor).toJson(); } @@ -2799,8 +3163,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (sourceRange != null) { _json["sourceRange"] = (sourceRange).toJson(); } @@ -2839,8 +3203,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (sources != null) { _json["sources"] = sources.map((value) => (value).toJson()).toList(); } @@ -2851,11 +3215,26 @@ /** The specifications of a chart. */ class ChartSpec { /** + * The background color of the entire chart. + * Not applicable to Org charts. + */ + Color backgroundColor; + /** * A basic chart specification, can be one of many kinds of charts. * See BasicChartType for the list of all * charts this supports. */ BasicChartSpec basicChart; + /** A bubble chart specification. */ + BubbleChartSpec bubbleChart; + /** A candlestick chart specification. */ + CandlestickChartSpec candlestickChart; + /** + * The name of the font to use by default for all chart text (e.g. title, + * axis labels, legend). If a font is specified for a specific part of the + * chart it will override this font name. + */ + core.String fontName; /** * Determines how the charts will use hidden rows or columns. * Possible string values are: @@ -2868,42 +3247,105 @@ * - "SHOW_ALL" : Charts will not skip any hidden rows or columns. */ core.String hiddenDimensionStrategy; + /** A histogram chart specification. */ + HistogramChartSpec histogramChart; + /** + * True to make a chart fill the entire space in which it's rendered with + * minimum padding. False to use the default padding. + * (Not applicable to Geo and Org charts.) + */ + core.bool maximized; + /** An org chart specification. */ + OrgChartSpec orgChart; /** A pie chart specification. */ PieChartSpec pieChart; /** The title of the chart. */ core.String title; + /** + * The title text format. + * Strikethrough and underline are not supported. + */ + TextFormat titleTextFormat; ChartSpec(); ChartSpec.fromJson(core.Map _json) { + if (_json.containsKey("backgroundColor")) { + backgroundColor = new Color.fromJson(_json["backgroundColor"]); + } if (_json.containsKey("basicChart")) { basicChart = new BasicChartSpec.fromJson(_json["basicChart"]); } + if (_json.containsKey("bubbleChart")) { + bubbleChart = new BubbleChartSpec.fromJson(_json["bubbleChart"]); + } + if (_json.containsKey("candlestickChart")) { + candlestickChart = new CandlestickChartSpec.fromJson(_json["candlestickChart"]); + } + if (_json.containsKey("fontName")) { + fontName = _json["fontName"]; + } if (_json.containsKey("hiddenDimensionStrategy")) { hiddenDimensionStrategy = _json["hiddenDimensionStrategy"]; } + if (_json.containsKey("histogramChart")) { + histogramChart = new HistogramChartSpec.fromJson(_json["histogramChart"]); + } + if (_json.containsKey("maximized")) { + maximized = _json["maximized"]; + } + if (_json.containsKey("orgChart")) { + orgChart = new OrgChartSpec.fromJson(_json["orgChart"]); + } if (_json.containsKey("pieChart")) { pieChart = new PieChartSpec.fromJson(_json["pieChart"]); } if (_json.containsKey("title")) { title = _json["title"]; } + if (_json.containsKey("titleTextFormat")) { + titleTextFormat = new TextFormat.fromJson(_json["titleTextFormat"]); + } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (backgroundColor != null) { + _json["backgroundColor"] = (backgroundColor).toJson(); + } if (basicChart != null) { _json["basicChart"] = (basicChart).toJson(); } + if (bubbleChart != null) { + _json["bubbleChart"] = (bubbleChart).toJson(); + } + if (candlestickChart != null) { + _json["candlestickChart"] = (candlestickChart).toJson(); + } + if (fontName != null) { + _json["fontName"] = fontName; + } if (hiddenDimensionStrategy != null) { _json["hiddenDimensionStrategy"] = hiddenDimensionStrategy; } + if (histogramChart != null) { + _json["histogramChart"] = (histogramChart).toJson(); + } + if (maximized != null) { + _json["maximized"] = maximized; + } + if (orgChart != null) { + _json["orgChart"] = (orgChart).toJson(); + } if (pieChart != null) { _json["pieChart"] = (pieChart).toJson(); } if (title != null) { _json["title"] = title; } + if (titleTextFormat != null) { + _json["titleTextFormat"] = (titleTextFormat).toJson(); + } return _json; } } @@ -2921,8 +3363,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (sheetId != null) { _json["sheetId"] = sheetId; } @@ -2938,8 +3380,8 @@ ClearValuesRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -2967,8 +3409,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clearedRange != null) { _json["clearedRange"] = clearedRange; } @@ -3134,8 +3576,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alpha != null) { _json["alpha"] = alpha; } @@ -3193,8 +3635,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (relativeDate != null) { _json["relativeDate"] = relativeDate; } @@ -3231,8 +3673,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (booleanRule != null) { _json["booleanRule"] = (booleanRule).toJson(); } @@ -3298,8 +3740,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (destination != null) { _json["destination"] = (destination).toJson(); } @@ -3329,8 +3771,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (destinationSpreadsheetId != null) { _json["destinationSpreadsheetId"] = destinationSpreadsheetId; } @@ -3374,8 +3816,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (destination != null) { _json["destination"] = (destination).toJson(); } @@ -3420,8 +3862,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (condition != null) { _json["condition"] = (condition).toJson(); } @@ -3451,8 +3893,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bandedRangeId != null) { _json["bandedRangeId"] = bandedRangeId; } @@ -3481,8 +3923,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (index != null) { _json["index"] = index; } @@ -3506,8 +3948,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (rule != null) { _json["rule"] = (rule).toJson(); } @@ -3528,8 +3970,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (range != null) { _json["range"] = (range).toJson(); } @@ -3550,8 +3992,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (objectId != null) { _json["objectId"] = objectId; } @@ -3572,8 +4014,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filterId != null) { _json["filterId"] = filterId; } @@ -3594,8 +4036,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (namedRangeId != null) { _json["namedRangeId"] = namedRangeId; } @@ -3616,8 +4058,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (protectedRangeId != null) { _json["protectedRangeId"] = protectedRangeId; } @@ -3652,8 +4094,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (range != null) { _json["range"] = (range).toJson(); } @@ -3677,8 +4119,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (sheetId != null) { _json["sheetId"] = sheetId; } @@ -3714,8 +4156,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (hiddenByFilter != null) { _json["hiddenByFilter"] = hiddenByFilter; } @@ -3769,8 +4211,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimension != null) { _json["dimension"] = dimension; } @@ -3800,8 +4242,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filterId != null) { _json["filterId"] = filterId; } @@ -3822,8 +4264,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filter != null) { _json["filter"] = (filter).toJson(); } @@ -3866,8 +4308,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (insertSheetIndex != null) { _json["insertSheetIndex"] = insertSheetIndex; } @@ -3897,8 +4339,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (properties != null) { _json["properties"] = (properties).toJson(); } @@ -3932,8 +4374,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (domainUsersCanEdit != null) { _json["domainUsersCanEdit"] = domainUsersCanEdit; } @@ -3970,8 +4412,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (chartId != null) { _json["chartId"] = chartId; } @@ -4014,8 +4456,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (newSheet != null) { _json["newSheet"] = newSheet; } @@ -4063,8 +4505,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (message != null) { _json["message"] = message; } @@ -4120,8 +4562,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (boolValue != null) { _json["boolValue"] = boolValue; } @@ -4163,8 +4605,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (condition != null) { _json["condition"] = (condition).toJson(); } @@ -4211,7 +4653,7 @@ FilterView.fromJson(core.Map _json) { if (_json.containsKey("criteria")) { - criteria = commons.mapMap(_json["criteria"], (item) => new FilterCriteria.fromJson(item)); + criteria = commons.mapMap<core.Map<core.String, core.Object>, FilterCriteria>(_json["criteria"], (core.Map<core.String, core.Object> item) => new FilterCriteria.fromJson(item)); } if (_json.containsKey("filterViewId")) { filterViewId = _json["filterViewId"]; @@ -4230,10 +4672,10 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (criteria != null) { - _json["criteria"] = commons.mapMap(criteria, (item) => (item).toJson()); + _json["criteria"] = commons.mapMap<FilterCriteria, core.Map<core.String, core.Object>>(criteria, (FilterCriteria item) => (item).toJson()); } if (filterViewId != null) { _json["filterViewId"] = filterViewId; @@ -4319,8 +4761,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allSheets != null) { _json["allSheets"] = allSheets; } @@ -4389,8 +4831,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (formulasChanged != null) { _json["formulasChanged"] = formulasChanged; } @@ -4438,8 +4880,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (maxpoint != null) { _json["maxpoint"] = (maxpoint).toJson(); } @@ -4479,8 +4921,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnIndex != null) { _json["columnIndex"] = columnIndex; } @@ -4538,8 +4980,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnMetadata != null) { _json["columnMetadata"] = columnMetadata.map((value) => (value).toJson()).toList(); } @@ -4592,8 +5034,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnCount != null) { _json["columnCount"] = columnCount; } @@ -4676,8 +5118,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endColumnIndex != null) { _json["endColumnIndex"] = endColumnIndex; } @@ -4697,6 +5139,131 @@ } } +/** + * A <a href="/chart/interactive/docs/gallery/histogram">histogram chart</a>. + * A histogram chart groups data items into bins, displaying each bin as a + * column of stacked items. Histograms are used to display the distribution + * of a dataset. Each column of items represents a range into which those + * items fall. The number of bins can be chosen automatically or specified + * explicitly. + */ +class HistogramChartSpec { + /** + * By default the bucket size (the range of values stacked in a single + * column) is chosen automatically, but it may be overridden here. + * E.g., A bucket size of 1.5 results in buckets from 0 - 1.5, 1.5 - 3.0, etc. + * Cannot be negative. + * This field is optional. + */ + core.double bucketSize; + /** + * The position of the chart legend. + * Possible string values are: + * - "HISTOGRAM_CHART_LEGEND_POSITION_UNSPECIFIED" : Default value, do not + * use. + * - "BOTTOM_LEGEND" : The legend is rendered on the bottom of the chart. + * - "LEFT_LEGEND" : The legend is rendered on the left of the chart. + * - "RIGHT_LEGEND" : The legend is rendered on the right of the chart. + * - "TOP_LEGEND" : The legend is rendered on the top of the chart. + * - "NO_LEGEND" : No legend is rendered. + * - "INSIDE_LEGEND" : The legend is rendered inside the chart area. + */ + core.String legendPosition; + /** + * The outlier percentile is used to ensure that outliers do not adversely + * affect the calculation of bucket sizes. For example, setting an outlier + * percentile of 0.05 indicates that the top and bottom 5% of values when + * calculating buckets. The values are still included in the chart, they will + * be added to the first or last buckets instead of their own buckets. + * Must be between 0.0 and 0.5. + */ + core.double outlierPercentile; + /** + * The series for a histogram may be either a single series of values to be + * bucketed or multiple series, each of the same length, containing the name + * of the series followed by the values to be bucketed for that series. + */ + core.List<HistogramSeries> series; + /** + * Whether horizontal divider lines should be displayed between items in each + * column. + */ + core.bool showItemDividers; + + HistogramChartSpec(); + + HistogramChartSpec.fromJson(core.Map _json) { + if (_json.containsKey("bucketSize")) { + bucketSize = _json["bucketSize"]; + } + if (_json.containsKey("legendPosition")) { + legendPosition = _json["legendPosition"]; + } + if (_json.containsKey("outlierPercentile")) { + outlierPercentile = _json["outlierPercentile"]; + } + if (_json.containsKey("series")) { + series = _json["series"].map((value) => new HistogramSeries.fromJson(value)).toList(); + } + if (_json.containsKey("showItemDividers")) { + showItemDividers = _json["showItemDividers"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (bucketSize != null) { + _json["bucketSize"] = bucketSize; + } + if (legendPosition != null) { + _json["legendPosition"] = legendPosition; + } + if (outlierPercentile != null) { + _json["outlierPercentile"] = outlierPercentile; + } + if (series != null) { + _json["series"] = series.map((value) => (value).toJson()).toList(); + } + if (showItemDividers != null) { + _json["showItemDividers"] = showItemDividers; + } + return _json; + } +} + +/** A histogram series containing the series color and data. */ +class HistogramSeries { + /** + * The color of the column representing this series in each bucket. + * This field is optional. + */ + Color barColor; + /** The data for this histogram series. */ + ChartData data; + + HistogramSeries(); + + HistogramSeries.fromJson(core.Map _json) { + if (_json.containsKey("barColor")) { + barColor = new Color.fromJson(_json["barColor"]); + } + if (_json.containsKey("data")) { + data = new ChartData.fromJson(_json["data"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (barColor != null) { + _json["barColor"] = (barColor).toJson(); + } + if (data != null) { + _json["data"] = (data).toJson(); + } + return _json; + } +} + /** Inserts rows or columns in a sheet at a particular index. */ class InsertDimensionRequest { /** @@ -4730,8 +5297,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (inheritFromBefore != null) { _json["inheritFromBefore"] = inheritFromBefore; } @@ -4768,8 +5335,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (range != null) { _json["range"] = (range).toJson(); } @@ -4832,8 +5399,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (color != null) { _json["color"] = (color).toJson(); } @@ -4874,8 +5441,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (convergenceThreshold != null) { _json["convergenceThreshold"] = convergenceThreshold; } @@ -4910,8 +5477,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (mergeType != null) { _json["mergeType"] = mergeType; } @@ -4953,8 +5520,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (destinationIndex != null) { _json["destinationIndex"] = destinationIndex; } @@ -4988,8 +5555,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -5042,8 +5609,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (pattern != null) { _json["pattern"] = pattern; } @@ -5054,6 +5621,99 @@ } } +/** + * An <a href="/chart/interactive/docs/gallery/orgchart">org chart</a>. + * Org charts require a unique set of labels in labels and may + * optionally include parent_labels and tooltips. + * parent_labels contain, for each node, the label identifying the parent + * node. tooltips contain, for each node, an optional tooltip. + * + * For example, to describe an OrgChart with Alice as the CEO, Bob as the + * President (reporting to Alice) and Cathy as VP of Sales (also reporting to + * Alice), have labels contain "Alice", "Bob", "Cathy", + * parent_labels contain "", "Alice", "Alice" and tooltips contain + * "CEO", "President", "VP Sales". + */ +class OrgChartSpec { + /** + * The data containing the labels for all the nodes in the chart. Labels + * must be unique. + */ + ChartData labels; + /** The color of the org chart nodes. */ + Color nodeColor; + /** + * The size of the org chart nodes. + * Possible string values are: + * - "ORG_CHART_LABEL_SIZE_UNSPECIFIED" : Default value, do not use. + * - "SMALL" : The small org chart node size. + * - "MEDIUM" : The medium org chart node size. + * - "LARGE" : The large org chart node size. + */ + core.String nodeSize; + /** + * The data containing the label of the parent for the corresponding node. + * A blank value indicates that the node has no parent and is a top-level + * node. + * This field is optional. + */ + ChartData parentLabels; + /** The color of the selected org chart nodes. */ + Color selectedNodeColor; + /** + * The data containing the tooltip for the corresponding node. A blank value + * results in no tooltip being displayed for the node. + * This field is optional. + */ + ChartData tooltips; + + OrgChartSpec(); + + OrgChartSpec.fromJson(core.Map _json) { + if (_json.containsKey("labels")) { + labels = new ChartData.fromJson(_json["labels"]); + } + if (_json.containsKey("nodeColor")) { + nodeColor = new Color.fromJson(_json["nodeColor"]); + } + if (_json.containsKey("nodeSize")) { + nodeSize = _json["nodeSize"]; + } + if (_json.containsKey("parentLabels")) { + parentLabels = new ChartData.fromJson(_json["parentLabels"]); + } + if (_json.containsKey("selectedNodeColor")) { + selectedNodeColor = new Color.fromJson(_json["selectedNodeColor"]); + } + if (_json.containsKey("tooltips")) { + tooltips = new ChartData.fromJson(_json["tooltips"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (labels != null) { + _json["labels"] = (labels).toJson(); + } + if (nodeColor != null) { + _json["nodeColor"] = (nodeColor).toJson(); + } + if (nodeSize != null) { + _json["nodeSize"] = nodeSize; + } + if (parentLabels != null) { + _json["parentLabels"] = (parentLabels).toJson(); + } + if (selectedNodeColor != null) { + _json["selectedNodeColor"] = (selectedNodeColor).toJson(); + } + if (tooltips != null) { + _json["tooltips"] = (tooltips).toJson(); + } + return _json; + } +} + /** The location an object is overlaid on top of a grid. */ class OverlayPosition { /** The cell the object is anchored to. */ @@ -5093,8 +5753,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (anchorCell != null) { _json["anchorCell"] = (anchorCell).toJson(); } @@ -5145,8 +5805,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bottom != null) { _json["bottom"] = bottom; } @@ -5208,8 +5868,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (coordinate != null) { _json["coordinate"] = (coordinate).toJson(); } @@ -5272,8 +5932,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (domain != null) { _json["domain"] = (domain).toJson(); } @@ -5306,8 +5966,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (visibleValues != null) { _json["visibleValues"] = visibleValues; } @@ -5363,8 +6023,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (showTotals != null) { _json["showTotals"] = showTotals; } @@ -5417,8 +6077,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (buckets != null) { _json["buckets"] = buckets.map((value) => (value).toJson()).toList(); } @@ -5451,8 +6111,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (collapsed != null) { _json["collapsed"] = collapsed; } @@ -5500,7 +6160,7 @@ columns = _json["columns"].map((value) => new PivotGroup.fromJson(value)).toList(); } if (_json.containsKey("criteria")) { - criteria = commons.mapMap(_json["criteria"], (item) => new PivotFilterCriteria.fromJson(item)); + criteria = commons.mapMap<core.Map<core.String, core.Object>, PivotFilterCriteria>(_json["criteria"], (core.Map<core.String, core.Object> item) => new PivotFilterCriteria.fromJson(item)); } if (_json.containsKey("rows")) { rows = _json["rows"].map((value) => new PivotGroup.fromJson(value)).toList(); @@ -5516,13 +6176,13 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columns != null) { _json["columns"] = columns.map((value) => (value).toJson()).toList(); } if (criteria != null) { - _json["criteria"] = commons.mapMap(criteria, (item) => (item).toJson()); + _json["criteria"] = commons.mapMap<PivotFilterCriteria, core.Map<core.String, core.Object>>(criteria, (PivotFilterCriteria item) => (item).toJson()); } if (rows != null) { _json["rows"] = rows.map((value) => (value).toJson()).toList(); @@ -5604,8 +6264,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (formula != null) { _json["formula"] = formula; } @@ -5707,8 +6367,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -5778,8 +6438,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cell != null) { _json["cell"] = (cell).toJson(); } @@ -6049,8 +6709,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (addBanding != null) { _json["addBanding"] = (addBanding).toJson(); } @@ -6270,8 +6930,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (addBanding != null) { _json["addBanding"] = (addBanding).toJson(); } @@ -6325,8 +6985,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (values != null) { _json["values"] = values.map((value) => (value).toJson()).toList(); } @@ -6347,8 +7007,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filter != null) { _json["filter"] = (filter).toJson(); } @@ -6380,8 +7040,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (range != null) { _json["range"] = (range).toJson(); } @@ -6454,8 +7114,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bandedRanges != null) { _json["bandedRanges"] = bandedRanges.map((value) => (value).toJson()).toList(); } @@ -6562,8 +7222,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (gridProperties != null) { _json["gridProperties"] = (gridProperties).toJson(); } @@ -6613,8 +7273,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (range != null) { _json["range"] = (range).toJson(); } @@ -6649,8 +7309,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimensionIndex != null) { _json["dimensionIndex"] = dimensionIndex; } @@ -6695,8 +7355,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimension != null) { _json["dimension"] = dimension; } @@ -6749,8 +7409,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (namedRanges != null) { _json["namedRanges"] = namedRanges.map((value) => (value).toJson()).toList(); } @@ -6840,8 +7500,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoRecalc != null) { _json["autoRecalc"] = autoRecalc; } @@ -6910,8 +7570,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bold != null) { _json["bold"] = bold; } @@ -6959,8 +7619,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (format != null) { _json["format"] = (format).toJson(); } @@ -7009,8 +7669,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (angle != null) { _json["angle"] = angle; } @@ -7060,8 +7720,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (delimiter != null) { _json["delimiter"] = delimiter; } @@ -7092,8 +7752,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (range != null) { _json["range"] = (range).toJson(); } @@ -7123,8 +7783,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bandedRange != null) { _json["bandedRange"] = (bandedRange).toJson(); } @@ -7190,8 +7850,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bottom != null) { _json["bottom"] = (bottom).toJson(); } @@ -7259,8 +7919,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields; } @@ -7299,8 +7959,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (chartId != null) { _json["chartId"] = chartId; } @@ -7345,8 +8005,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (index != null) { _json["index"] = index; } @@ -7400,8 +8060,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (newIndex != null) { _json["newIndex"] = newIndex; } @@ -7445,8 +8105,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields; } @@ -7500,8 +8160,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields; } @@ -7528,8 +8188,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (position != null) { _json["position"] = (position).toJson(); } @@ -7559,8 +8219,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields; } @@ -7596,8 +8256,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields; } @@ -7633,8 +8293,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields; } @@ -7670,8 +8330,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields; } @@ -7704,8 +8364,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields; } @@ -7760,8 +8420,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (spreadsheetId != null) { _json["spreadsheetId"] = spreadsheetId; } @@ -7845,8 +8505,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (majorDimension != null) { _json["majorDimension"] = majorDimension; }
diff --git a/generated/googleapis/lib/siteverification/v1.dart b/generated/googleapis/lib/siteverification/v1.dart index 0458eb0..eccbbea 100644 --- a/generated/googleapis/lib/siteverification/v1.dart +++ b/generated/googleapis/lib/siteverification/v1.dart
@@ -351,8 +351,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (identifier != null) { _json["identifier"] = identifier; } @@ -383,8 +383,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (site != null) { _json["site"] = (site).toJson(); } @@ -421,8 +421,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (method != null) { _json["method"] = method; } @@ -445,8 +445,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -475,8 +475,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (identifier != null) { _json["identifier"] = identifier; } @@ -512,8 +512,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; }
diff --git a/generated/googleapis/lib/slides/v1.dart b/generated/googleapis/lib/slides/v1.dart index 5bcfa34..1843e3b 100644 --- a/generated/googleapis/lib/slides/v1.dart +++ b/generated/googleapis/lib/slides/v1.dart
@@ -385,8 +385,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (scaleX != null) { _json["scaleX"] = scaleX; } @@ -441,8 +441,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (content != null) { _json["content"] = content; } @@ -474,8 +474,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (requests != null) { _json["requests"] = requests.map((value) => (value).toJson()).toList(); } @@ -507,8 +507,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (presentationId != null) { _json["presentationId"] = presentationId; } @@ -547,8 +547,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bulletStyle != null) { _json["bulletStyle"] = (bulletStyle).toJson(); } @@ -578,8 +578,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (colors != null) { _json["colors"] = colors.map((value) => (value).toJson()).toList(); } @@ -616,8 +616,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alpha != null) { _json["alpha"] = alpha; } @@ -679,8 +679,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (elementProperties != null) { _json["elementProperties"] = (elementProperties).toJson(); } @@ -707,8 +707,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (objectId != null) { _json["objectId"] = objectId; } @@ -758,8 +758,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (elementProperties != null) { _json["elementProperties"] = (elementProperties).toJson(); } @@ -786,8 +786,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (objectId != null) { _json["objectId"] = objectId; } @@ -892,8 +892,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bulletPreset != null) { _json["bulletPreset"] = bulletPreset; } @@ -1260,8 +1260,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (elementProperties != null) { _json["elementProperties"] = (elementProperties).toJson(); } @@ -1288,8 +1288,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (objectId != null) { _json["objectId"] = objectId; } @@ -1360,8 +1360,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (chartId != null) { _json["chartId"] = chartId; } @@ -1394,8 +1394,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (objectId != null) { _json["objectId"] = objectId; } @@ -1464,8 +1464,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (insertionIndex != null) { _json["insertionIndex"] = insertionIndex; } @@ -1495,8 +1495,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (objectId != null) { _json["objectId"] = objectId; } @@ -1551,8 +1551,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columns != null) { _json["columns"] = columns; } @@ -1582,8 +1582,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (objectId != null) { _json["objectId"] = objectId; } @@ -1640,8 +1640,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (elementProperties != null) { _json["elementProperties"] = (elementProperties).toJson(); } @@ -1671,8 +1671,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (objectId != null) { _json["objectId"] = objectId; } @@ -1753,8 +1753,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (angle != null) { _json["angle"] = angle; } @@ -1799,8 +1799,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (objectId != null) { _json["objectId"] = objectId; } @@ -1845,8 +1845,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cellLocation != null) { _json["cellLocation"] = (cellLocation).toJson(); } @@ -1884,8 +1884,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cellLocation != null) { _json["cellLocation"] = (cellLocation).toJson(); } @@ -1920,8 +1920,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cellLocation != null) { _json["cellLocation"] = (cellLocation).toJson(); } @@ -1975,8 +1975,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cellLocation != null) { _json["cellLocation"] = (cellLocation).toJson(); } @@ -2016,8 +2016,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (magnitude != null) { _json["magnitude"] = magnitude; } @@ -2071,8 +2071,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (objectId != null) { _json["objectId"] = objectId; } @@ -2096,8 +2096,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (objectId != null) { _json["objectId"] = objectId; } @@ -2123,8 +2123,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (children != null) { _json["children"] = children.map((value) => (value).toJson()).toList(); } @@ -2158,8 +2158,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contentUrl != null) { _json["contentUrl"] = contentUrl; } @@ -2237,8 +2237,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (brightness != null) { _json["brightness"] = brightness; } @@ -2310,8 +2310,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cellLocation != null) { _json["cellLocation"] = (cellLocation).toJson(); } @@ -2367,8 +2367,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cellLocation != null) { _json["cellLocation"] = (cellLocation).toJson(); } @@ -2440,8 +2440,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cellLocation != null) { _json["cellLocation"] = (cellLocation).toJson(); } @@ -2504,8 +2504,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (layoutPlaceholder != null) { _json["layoutPlaceholder"] = (layoutPlaceholder).toJson(); } @@ -2545,8 +2545,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -2600,8 +2600,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (layoutId != null) { _json["layoutId"] = layoutId; } @@ -2664,8 +2664,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (lineProperties != null) { _json["lineProperties"] = (lineProperties).toJson(); } @@ -2689,8 +2689,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (solidFill != null) { _json["solidFill"] = (solidFill).toJson(); } @@ -2802,8 +2802,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dashStyle != null) { _json["dashStyle"] = dashStyle; } @@ -2869,8 +2869,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (pageObjectId != null) { _json["pageObjectId"] = pageObjectId; } @@ -2909,17 +2909,17 @@ listId = _json["listId"]; } if (_json.containsKey("nestingLevel")) { - nestingLevel = commons.mapMap(_json["nestingLevel"], (item) => new NestingLevel.fromJson(item)); + nestingLevel = commons.mapMap<core.Map<core.String, core.Object>, NestingLevel>(_json["nestingLevel"], (core.Map<core.String, core.Object> item) => new NestingLevel.fromJson(item)); } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (listId != null) { _json["listId"] = listId; } if (nestingLevel != null) { - _json["nestingLevel"] = commons.mapMap(nestingLevel, (item) => (item).toJson()); + _json["nestingLevel"] = commons.mapMap<NestingLevel, core.Map<core.String, core.Object>>(nestingLevel, (NestingLevel item) => (item).toJson()); } return _json; } @@ -2941,8 +2941,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bulletStyle != null) { _json["bulletStyle"] = (bulletStyle).toJson(); } @@ -2973,8 +2973,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (speakerNotesObjectId != null) { _json["speakerNotesObjectId"] = speakerNotesObjectId; } @@ -3022,8 +3022,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (rgbColor != null) { _json["rgbColor"] = (rgbColor).toJson(); } @@ -3050,8 +3050,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (opaqueColor != null) { _json["opaqueColor"] = (opaqueColor).toJson(); } @@ -3140,8 +3140,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dashStyle != null) { _json["dashStyle"] = dashStyle; } @@ -3171,8 +3171,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (solidFill != null) { _json["solidFill"] = (solidFill).toJson(); } @@ -3253,8 +3253,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (layoutProperties != null) { _json["layoutProperties"] = (layoutProperties).toJson(); } @@ -3331,8 +3331,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (propertyState != null) { _json["propertyState"] = propertyState; } @@ -3432,8 +3432,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -3507,8 +3507,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (pageObjectId != null) { _json["pageObjectId"] = pageObjectId; } @@ -3555,8 +3555,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (colorScheme != null) { _json["colorScheme"] = (colorScheme).toJson(); } @@ -3588,8 +3588,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bullet != null) { _json["bullet"] = (bullet).toJson(); } @@ -3717,8 +3717,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alignment != null) { _json["alignment"] = alignment; } @@ -3802,8 +3802,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (index != null) { _json["index"] = index; } @@ -3913,8 +3913,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (layouts != null) { _json["layouts"] = layouts.map((value) => (value).toJson()).toList(); } @@ -3991,8 +3991,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endIndex != null) { _json["endIndex"] = endIndex; } @@ -4106,8 +4106,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -4137,8 +4137,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (objectId != null) { _json["objectId"] = objectId; } @@ -4165,6 +4165,15 @@ */ core.String imageUrl; /** + * If non-empty, limits the matches to page elements only on the given pages. + * + * Returns a 400 bad request error if given the page object ID of a + * notes page or a + * notes master, or if a + * page with that object ID doesn't exist in the presentation. + */ + core.List<core.String> pageObjectIds; + /** * The replace method. * Possible string values are: * - "CENTER_INSIDE" : Scales and centers the image to fit within the bounds @@ -4188,19 +4197,25 @@ if (_json.containsKey("imageUrl")) { imageUrl = _json["imageUrl"]; } + if (_json.containsKey("pageObjectIds")) { + pageObjectIds = _json["pageObjectIds"]; + } if (_json.containsKey("replaceMethod")) { replaceMethod = _json["replaceMethod"]; } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (containsText != null) { _json["containsText"] = (containsText).toJson(); } if (imageUrl != null) { _json["imageUrl"] = imageUrl; } + if (pageObjectIds != null) { + _json["pageObjectIds"] = pageObjectIds; + } if (replaceMethod != null) { _json["replaceMethod"] = replaceMethod; } @@ -4221,8 +4236,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (occurrencesChanged != null) { _json["occurrencesChanged"] = occurrencesChanged; } @@ -4258,6 +4273,15 @@ * see a link to the spreadsheet. */ core.String linkingMode; + /** + * If non-empty, limits the matches to page elements only on the given pages. + * + * Returns a 400 bad request error if given the page object ID of a + * notes page or a + * notes master, or if a + * page with that object ID doesn't exist in the presentation. + */ + core.List<core.String> pageObjectIds; /** The ID of the Google Sheets spreadsheet that contains the chart. */ core.String spreadsheetId; @@ -4273,13 +4297,16 @@ if (_json.containsKey("linkingMode")) { linkingMode = _json["linkingMode"]; } + if (_json.containsKey("pageObjectIds")) { + pageObjectIds = _json["pageObjectIds"]; + } if (_json.containsKey("spreadsheetId")) { spreadsheetId = _json["spreadsheetId"]; } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (chartId != null) { _json["chartId"] = chartId; } @@ -4289,6 +4316,9 @@ if (linkingMode != null) { _json["linkingMode"] = linkingMode; } + if (pageObjectIds != null) { + _json["pageObjectIds"] = pageObjectIds; + } if (spreadsheetId != null) { _json["spreadsheetId"] = spreadsheetId; } @@ -4309,8 +4339,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (occurrencesChanged != null) { _json["occurrencesChanged"] = occurrencesChanged; } @@ -4322,6 +4352,14 @@ class ReplaceAllTextRequest { /** Finds text in a shape matching this substring. */ SubstringMatchCriteria containsText; + /** + * If non-empty, limits the matches to page elements only on the given pages. + * + * Returns a 400 bad request error if given the page object ID of a + * notes master, + * or if a page with that object ID doesn't exist in the presentation. + */ + core.List<core.String> pageObjectIds; /** The text that will replace the matched text. */ core.String replaceText; @@ -4331,16 +4369,22 @@ if (_json.containsKey("containsText")) { containsText = new SubstringMatchCriteria.fromJson(_json["containsText"]); } + if (_json.containsKey("pageObjectIds")) { + pageObjectIds = _json["pageObjectIds"]; + } if (_json.containsKey("replaceText")) { replaceText = _json["replaceText"]; } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (containsText != null) { _json["containsText"] = (containsText).toJson(); } + if (pageObjectIds != null) { + _json["pageObjectIds"] = pageObjectIds; + } if (replaceText != null) { _json["replaceText"] = replaceText; } @@ -4361,8 +4405,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (occurrencesChanged != null) { _json["occurrencesChanged"] = occurrencesChanged; } @@ -4533,8 +4577,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createImage != null) { _json["createImage"] = (createImage).toJson(); } @@ -4701,8 +4745,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createImage != null) { _json["createImage"] = (createImage).toJson(); } @@ -4763,8 +4807,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (blue != null) { _json["blue"] = blue; } @@ -4883,8 +4927,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alignment != null) { _json["alignment"] = alignment; } @@ -5268,8 +5312,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (placeholder != null) { _json["placeholder"] = (placeholder).toJson(); } @@ -5329,8 +5373,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (propertyState != null) { _json["propertyState"] = propertyState; } @@ -5395,8 +5439,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (link != null) { _json["link"] = (link).toJson(); } @@ -5454,8 +5498,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (chartId != null) { _json["chartId"] = chartId; } @@ -5485,8 +5529,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (chartImageProperties != null) { _json["chartImageProperties"] = (chartImageProperties).toJson(); } @@ -5512,8 +5556,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = (height).toJson(); } @@ -5560,8 +5604,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (layoutObjectId != null) { _json["layoutObjectId"] = layoutObjectId; } @@ -5607,8 +5651,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alpha != null) { _json["alpha"] = alpha; } @@ -5654,8 +5698,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contentUrl != null) { _json["contentUrl"] = contentUrl; } @@ -5689,8 +5733,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (matchCase != null) { _json["matchCase"] = matchCase; } @@ -5738,8 +5782,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columns != null) { _json["columns"] = columns; } @@ -5789,8 +5833,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnSpan != null) { _json["columnSpan"] = columnSpan; } @@ -5853,8 +5897,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (propertyState != null) { _json["propertyState"] = propertyState; } @@ -5883,8 +5927,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnIndex != null) { _json["columnIndex"] = columnIndex; } @@ -5911,8 +5955,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (tableCellBackgroundFill != null) { _json["tableCellBackgroundFill"] = (tableCellBackgroundFill).toJson(); } @@ -5933,8 +5977,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnWidth != null) { _json["columnWidth"] = (columnWidth).toJson(); } @@ -5981,8 +6025,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnSpan != null) { _json["columnSpan"] = columnSpan; } @@ -6021,8 +6065,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (rowHeight != null) { _json["rowHeight"] = (rowHeight).toJson(); } @@ -6050,17 +6094,17 @@ TextContent.fromJson(core.Map _json) { if (_json.containsKey("lists")) { - lists = commons.mapMap(_json["lists"], (item) => new List.fromJson(item)); + lists = commons.mapMap<core.Map<core.String, core.Object>, List>(_json["lists"], (core.Map<core.String, core.Object> item) => new List.fromJson(item)); } if (_json.containsKey("textElements")) { textElements = _json["textElements"].map((value) => new TextElement.fromJson(value)).toList(); } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (lists != null) { - _json["lists"] = commons.mapMap(lists, (item) => (item).toJson()); + _json["lists"] = commons.mapMap<List, core.Map<core.String, core.Object>>(lists, (List item) => (item).toJson()); } if (textElements != null) { _json["textElements"] = textElements.map((value) => (value).toJson()).toList(); @@ -6128,8 +6172,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoText != null) { _json["autoText"] = (autoText).toJson(); } @@ -6170,8 +6214,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (content != null) { _json["content"] = content; } @@ -6351,8 +6395,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (backgroundColor != null) { _json["backgroundColor"] = (backgroundColor).toJson(); } @@ -6433,8 +6477,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (color != null) { _json["color"] = (color).toJson(); } @@ -6477,8 +6521,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contentUrl != null) { _json["contentUrl"] = contentUrl; } @@ -6527,8 +6571,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields; } @@ -6577,8 +6621,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields; } @@ -6624,8 +6668,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (applyMode != null) { _json["applyMode"] = applyMode; } @@ -6674,8 +6718,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields; } @@ -6741,8 +6785,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cellLocation != null) { _json["cellLocation"] = (cellLocation).toJson(); } @@ -6797,8 +6841,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields; } @@ -6838,8 +6882,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (insertionIndex != null) { _json["insertionIndex"] = insertionIndex; } @@ -6894,8 +6938,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields; } @@ -6979,8 +7023,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cellLocation != null) { _json["cellLocation"] = (cellLocation).toJson(); } @@ -7035,8 +7079,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields; } @@ -7089,8 +7133,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -7123,8 +7167,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (outline != null) { _json["outline"] = (outline).toJson(); } @@ -7165,8 +7209,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fontFamily != null) { _json["fontFamily"] = fontFamily; } @@ -7193,8 +7237,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (renderedText != null) { _json["renderedText"] = renderedText; } @@ -7220,8 +7264,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (requiredRevisionId != null) { _json["requiredRevisionId"] = requiredRevisionId; }
diff --git a/generated/googleapis/lib/sourcerepo/v1.dart b/generated/googleapis/lib/sourcerepo/v1.dart index d54b488..423a2e6 100644 --- a/generated/googleapis/lib/sourcerepo/v1.dart +++ b/generated/googleapis/lib/sourcerepo/v1.dart
@@ -19,6 +19,12 @@ /** View and manage your data across Google Cloud Platform services */ static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"; + /** View the contents of your source code repositories */ + static const SourceReadOnlyScope = "https://www.googleapis.com/auth/source.read_only"; + + /** Manage the contents of your source code repositories */ + static const SourceReadWriteScope = "https://www.googleapis.com/auth/source.read_write"; + final commons.ApiRequester _requester; @@ -46,7 +52,7 @@ _requester = client; /** - * Creates a repo in the given project with the given name.. + * Creates a repo in the given project with the given name. * * If the named repository already exists, `CreateRepo` returns * `ALREADY_EXISTS`. @@ -221,7 +227,8 @@ } /** - * Returns all repos belonging to a project. + * Returns all repos belonging to a project. The sizes of the repos are + * not set by ListRepos. To get the size of a repo, use GetRepo. * * Request parameters: * @@ -457,8 +464,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (auditLogConfigs != null) { _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson()).toList(); } @@ -521,8 +528,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (exemptedMembers != null) { _json["exemptedMembers"] = exemptedMembers; } @@ -555,6 +562,7 @@ * * `group:{emailid}`: An email address that represents a Google group. * For example, `admins@example.com`. * + * * * `domain:{domain}`: A Google Apps domain name that represents all the * users of that domain. For example, `google.com` or `example.com`. */ @@ -577,8 +585,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (members != null) { _json["members"] = members; } @@ -591,14 +599,28 @@ /** Write a Cloud Audit log */ class CloudAuditOptions { + /** + * The log_name to populate in the Cloud Audit Record. + * Possible string values are: + * - "UNSPECIFIED_LOG_NAME" : Default. Should not be used. + * - "ADMIN_ACTIVITY" : Corresponds to "cloudaudit.googleapis.com/activity" + * - "DATA_ACCESS" : Corresponds to "cloudaudit.googleapis.com/data_access" + */ + core.String logName; CloudAuditOptions(); CloudAuditOptions.fromJson(core.Map _json) { + if (_json.containsKey("logName")) { + logName = _json["logName"]; + } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (logName != null) { + _json["logName"] = logName; + } return _json; } } @@ -689,8 +711,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (iam != null) { _json["iam"] = iam; } @@ -731,8 +753,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (field != null) { _json["field"] = field; } @@ -751,8 +773,8 @@ DataAccessOptions.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -775,13 +797,15 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } -/** Response for ListRepos. */ +/** + * Response for ListRepos. The size is not set in the returned repositories. + */ class ListReposResponse { /** * If non-empty, additional repositories exist within the project. These @@ -803,8 +827,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -838,8 +862,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cloudAudit != null) { _json["cloudAudit"] = (cloudAudit).toJson(); } @@ -888,8 +912,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deployKeyId != null) { _json["deployKeyId"] = deployKeyId; } @@ -1004,8 +1028,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (auditConfigs != null) { _json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toList(); } @@ -1036,7 +1060,8 @@ MirrorConfig mirrorConfig; /** * Resource name of the repository, of the form - * `projects/<project>/repos/<repo>`. + * `projects/<project>/repos/<repo>`. The repo name may contain slashes. + * eg, `projects/myproject/repos/name/with/slash` */ core.String name; /** @@ -1064,8 +1089,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (mirrorConfig != null) { _json["mirrorConfig"] = (mirrorConfig).toJson(); } @@ -1153,8 +1178,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (action != null) { _json["action"] = action; } @@ -1209,8 +1234,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (policy != null) { _json["policy"] = (policy).toJson(); } @@ -1239,8 +1264,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; } @@ -1264,8 +1289,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; }
diff --git a/generated/googleapis/lib/spanner/v1.dart b/generated/googleapis/lib/spanner/v1.dart index 34df556..fadcaf2 100644 --- a/generated/googleapis/lib/spanner/v1.dart +++ b/generated/googleapis/lib/spanner/v1.dart
@@ -396,14 +396,6 @@ * requested. Values are of the form `projects/<project>`. * Value must have pattern "^projects/[^/]+$". * - * [pageToken] - If non-empty, `page_token` should contain a - * next_page_token from a - * previous ListInstancesResponse. - * - * [pageSize] - Number of instances to be returned in the response. If 0 or - * less, defaults - * to the server's maximum allowed page size. - * * [filter] - An expression for filtering the results of the request. Filter * rules are * case insensitive. The fields eligible for filtering are: @@ -425,6 +417,14 @@ * it has the label "env" with its value * containing "dev". * + * [pageToken] - If non-empty, `page_token` should contain a + * next_page_token from a + * previous ListInstancesResponse. + * + * [pageSize] - Number of instances to be returned in the response. If 0 or + * less, defaults + * to the server's maximum allowed page size. + * * Completes with a [ListInstancesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -433,7 +433,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListInstancesResponse> list(core.String parent, {core.String pageToken, core.int pageSize, core.String filter}) { + async.Future<ListInstancesResponse> list(core.String parent, {core.String filter, core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -444,15 +444,15 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } + if (filter != null) { + _queryParams["filter"] = [filter]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } - if (filter != null) { - _queryParams["filter"] = [filter]; - } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/instances'; @@ -1271,12 +1271,12 @@ * Value must have pattern * "^projects/[^/]+/instances/[^/]+/databases/[^/]+/operations$". * + * [filter] - The standard list filter. + * * [pageToken] - The standard list page token. * * [pageSize] - The standard list page size. * - * [filter] - The standard list filter. - * * Completes with a [ListOperationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1285,7 +1285,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListOperationsResponse> list(core.String name, {core.String pageToken, core.int pageSize, core.String filter}) { + async.Future<ListOperationsResponse> list(core.String name, {core.String filter, core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1296,15 +1296,15 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } + if (filter != null) { + _queryParams["filter"] = [filter]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } - if (filter != null) { - _queryParams["filter"] = [filter]; - } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); @@ -2000,12 +2000,12 @@ * [name] - The name of the operation collection. * Value must have pattern "^projects/[^/]+/instances/[^/]+/operations$". * + * [pageSize] - The standard list page size. + * * [filter] - The standard list filter. * * [pageToken] - The standard list page token. * - * [pageSize] - The standard list page size. - * * Completes with a [ListOperationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -2014,7 +2014,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListOperationsResponse> list(core.String name, {core.String filter, core.String pageToken, core.int pageSize}) { + async.Future<ListOperationsResponse> list(core.String name, {core.int pageSize, core.String filter, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -2025,15 +2025,15 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if (filter != null) { _queryParams["filter"] = [filter]; } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); @@ -2132,8 +2132,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (auditLogConfigs != null) { _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson()).toList(); } @@ -2196,8 +2196,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (exemptedMembers != null) { _json["exemptedMembers"] = exemptedMembers; } @@ -2221,8 +2221,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (options != null) { _json["options"] = (options).toJson(); } @@ -2274,8 +2274,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (members != null) { _json["members"] = members; } @@ -2326,8 +2326,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (childIndex != null) { _json["childIndex"] = childIndex; } @@ -2349,8 +2349,8 @@ CloudAuditOptions.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -2399,8 +2399,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (mutations != null) { _json["mutations"] = mutations.map((value) => (value).toJson()).toList(); } @@ -2427,8 +2427,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (commitTimestamp != null) { _json["commitTimestamp"] = commitTimestamp; } @@ -2529,8 +2529,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (iam != null) { _json["iam"] = iam; } @@ -2571,8 +2571,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (field != null) { _json["field"] = field; } @@ -2599,8 +2599,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (database != null) { _json["database"] = database; } @@ -2637,8 +2637,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createStatement != null) { _json["createStatement"] = createStatement; } @@ -2688,8 +2688,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cancelTime != null) { _json["cancelTime"] = cancelTime; } @@ -2731,8 +2731,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instance != null) { _json["instance"] = (instance).toJson(); } @@ -2751,8 +2751,8 @@ DataAccessOptions.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -2789,8 +2789,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -2819,8 +2819,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (keySet != null) { _json["keySet"] = (keySet).toJson(); } @@ -2849,8 +2849,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -2934,7 +2934,7 @@ ExecuteSqlRequest.fromJson(core.Map _json) { if (_json.containsKey("paramTypes")) { - paramTypes = commons.mapMap(_json["paramTypes"], (item) => new Type.fromJson(item)); + paramTypes = commons.mapMap<core.Map<core.String, core.Object>, Type>(_json["paramTypes"], (core.Map<core.String, core.Object> item) => new Type.fromJson(item)); } if (_json.containsKey("params")) { params = _json["params"]; @@ -2953,10 +2953,10 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (paramTypes != null) { - _json["paramTypes"] = commons.mapMap(paramTypes, (item) => (item).toJson()); + _json["paramTypes"] = commons.mapMap<Type, core.Map<core.String, core.Object>>(paramTypes, (Type item) => (item).toJson()); } if (params != null) { _json["params"] = params; @@ -3003,8 +3003,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -3031,8 +3031,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (statements != null) { _json["statements"] = statements; } @@ -3048,8 +3048,8 @@ GetIamPolicyRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -3145,8 +3145,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (config != null) { _json["config"] = config; } @@ -3194,8 +3194,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -3345,8 +3345,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endClosed != null) { _json["endClosed"] = endClosed; } @@ -3409,8 +3409,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (all != null) { _json["all"] = all; } @@ -3446,8 +3446,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (databases != null) { _json["databases"] = databases.map((value) => (value).toJson()).toList(); } @@ -3480,8 +3480,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instanceConfigs != null) { _json["instanceConfigs"] = instanceConfigs.map((value) => (value).toJson()).toList(); } @@ -3514,8 +3514,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instances != null) { _json["instances"] = instances.map((value) => (value).toJson()).toList(); } @@ -3544,8 +3544,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -3579,8 +3579,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cloudAudit != null) { _json["cloudAudit"] = (cloudAudit).toJson(); } @@ -3649,8 +3649,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (delete != null) { _json["delete"] = (delete).toJson(); } @@ -3734,8 +3734,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (done != null) { _json["done"] = done; } @@ -3894,8 +3894,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (chunkedValue != null) { _json["chunkedValue"] = chunkedValue; } @@ -3995,8 +3995,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (childLinks != null) { _json["childLinks"] = childLinks.map((value) => (value).toJson()).toList(); } @@ -4123,8 +4123,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (auditConfigs != null) { _json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toList(); } @@ -4164,8 +4164,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (planNodes != null) { _json["planNodes"] = planNodes.map((value) => (value).toJson()).toList(); } @@ -4261,8 +4261,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (exactStaleness != null) { _json["exactStaleness"] = exactStaleness; } @@ -4369,8 +4369,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columns != null) { _json["columns"] = columns; } @@ -4404,8 +4404,8 @@ ReadWrite.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -4450,8 +4450,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metadata != null) { _json["metadata"] = (metadata).toJson(); } @@ -4495,8 +4495,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (rowType != null) { _json["rowType"] = (rowType).toJson(); } @@ -4538,8 +4538,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (queryPlan != null) { _json["queryPlan"] = (queryPlan).toJson(); } @@ -4570,8 +4570,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (transactionId != null) { _json["transactionId"] = transactionId; } @@ -4650,8 +4650,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (action != null) { _json["action"] = action; } @@ -4690,8 +4690,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -4728,8 +4728,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (policy != null) { _json["policy"] = (policy).toJson(); } @@ -4767,8 +4767,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -4867,8 +4867,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -4902,8 +4902,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields.map((value) => (value).toJson()).toList(); } @@ -4928,8 +4928,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; } @@ -4953,8 +4953,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; } @@ -5000,8 +5000,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -5260,8 +5260,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (readOnly != null) { _json["readOnly"] = (readOnly).toJson(); } @@ -5316,8 +5316,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (begin != null) { _json["begin"] = (begin).toJson(); } @@ -5383,8 +5383,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (arrayElementType != null) { _json["arrayElementType"] = (arrayElementType).toJson(); } @@ -5431,8 +5431,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (commitTimestamps != null) { _json["commitTimestamps"] = commitTimestamps; } @@ -5501,8 +5501,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (operationId != null) { _json["operationId"] = operationId; } @@ -5551,8 +5551,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cancelTime != null) { _json["cancelTime"] = cancelTime; } @@ -5600,8 +5600,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fieldMask != null) { _json["fieldMask"] = fieldMask; } @@ -5656,8 +5656,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columns != null) { _json["columns"] = columns; }
diff --git a/generated/googleapis/lib/speech/v1.dart b/generated/googleapis/lib/speech/v1.dart index 55b2092..b2169f5 100644 --- a/generated/googleapis/lib/speech/v1.dart +++ b/generated/googleapis/lib/speech/v1.dart
@@ -179,19 +179,24 @@ * Lists operations that match the specified filter in the request. If the * server doesn't support this method, it returns `UNIMPLEMENTED`. * - * NOTE: the `name` binding below allows API services to override the binding - * to use different resource name schemes, such as `users / * /operations`. + * NOTE: the `name` binding allows API services to override the binding + * to use different resource name schemes, such as `users / * /operations`. To + * override the binding, API services can add a binding such as + * `"/v1/{name=users / * }/operations"` to their service configuration. + * For backwards compatibility, the default name includes the operations + * collection id, however overriding users must ensure the name binding + * is the parent resource, without the operations collection id. * * Request parameters: * + * [name] - The name of the operation's parent resource. + * + * [pageToken] - The standard list page token. + * * [pageSize] - The standard list page size. * * [filter] - The standard list filter. * - * [name] - The name of the operation collection. - * - * [pageToken] - The standard list page token. - * * Completes with a [ListOperationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -200,7 +205,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListOperationsResponse> list({core.int pageSize, core.String filter, core.String name, core.String pageToken}) { + async.Future<ListOperationsResponse> list({core.String name, core.String pageToken, core.int pageSize, core.String filter}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -208,18 +213,18 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } - if (filter != null) { - _queryParams["filter"] = [filter]; - } if (name != null) { _queryParams["name"] = [name]; } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (filter != null) { + _queryParams["filter"] = [filter]; + } _url = 'v1/operations'; @@ -336,8 +341,8 @@ CancelOperationRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -360,8 +365,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -384,8 +389,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -420,8 +425,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (audio != null) { _json["audio"] = (audio).toJson(); } @@ -496,8 +501,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (done != null) { _json["done"] = done; } @@ -558,8 +563,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (content != null) { _json["content"] = content; } @@ -674,8 +679,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (encoding != null) { _json["encoding"] = encoding; } @@ -719,8 +724,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (audio != null) { _json["audio"] = (audio).toJson(); } @@ -751,8 +756,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (results != null) { _json["results"] = results.map((value) => (value).toJson()).toList(); } @@ -783,8 +788,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (phrases != null) { _json["phrases"] = phrases; } @@ -820,8 +825,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (confidence != null) { _json["confidence"] = confidence; } @@ -850,8 +855,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alternatives != null) { _json["alternatives"] = alternatives.map((value) => (value).toJson()).toList(); } @@ -947,8 +952,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; }
diff --git a/generated/googleapis/lib/storage/v1.dart b/generated/googleapis/lib/storage/v1.dart index 4b666af..5e5bcd2 100644 --- a/generated/googleapis/lib/storage/v1.dart +++ b/generated/googleapis/lib/storage/v1.dart
@@ -68,8 +68,8 @@ * user-emailAddress, group-groupId, group-emailAddress, allUsers, or * allAuthenticatedUsers. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an * error. @@ -120,8 +120,8 @@ * user-emailAddress, group-groupId, group-emailAddress, allUsers, or * allAuthenticatedUsers. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [BucketAccessControl]. * @@ -170,8 +170,8 @@ * * [bucket] - Name of a bucket. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [BucketAccessControl]. * @@ -218,8 +218,8 @@ * * [bucket] - Name of a bucket. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [BucketAccessControls]. * @@ -270,8 +270,8 @@ * user-emailAddress, group-groupId, group-emailAddress, allUsers, or * allAuthenticatedUsers. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [BucketAccessControl]. * @@ -327,8 +327,8 @@ * user-emailAddress, group-groupId, group-emailAddress, allUsers, or * allAuthenticatedUsers. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [BucketAccessControl]. * @@ -393,8 +393,8 @@ * [ifMetagenerationNotMatch] - If set, only deletes the bucket if its * metageneration does not match this value. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an * error. @@ -457,8 +457,8 @@ * - "full" : Include all properties. * - "noAcl" : Omit owner, acl and defaultObjectAcl properties. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [Bucket]. * @@ -511,8 +511,8 @@ * * [bucket] - Name of a bucket. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [Policy]. * @@ -753,8 +753,8 @@ * - "full" : Include all properties. * - "noAcl" : Omit owner, acl and defaultObjectAcl properties. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [Bucket]. * @@ -818,8 +818,8 @@ * * [bucket] - Name of a bucket. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [Policy]. * @@ -869,8 +869,8 @@ * * [permissions] - Permissions to test. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [TestIamPermissionsResponse]. * @@ -961,8 +961,8 @@ * - "full" : Include all properties. * - "noAcl" : Omit owner, acl and defaultObjectAcl properties. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [Bucket]. * @@ -1086,8 +1086,8 @@ * user-emailAddress, group-groupId, group-emailAddress, allUsers, or * allAuthenticatedUsers. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an * error. @@ -1139,8 +1139,8 @@ * user-emailAddress, group-groupId, group-emailAddress, allUsers, or * allAuthenticatedUsers. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [ObjectAccessControl]. * @@ -1189,8 +1189,8 @@ * * [bucket] - Name of a bucket. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [ObjectAccessControl]. * @@ -1243,8 +1243,8 @@ * [ifMetagenerationNotMatch] - If present, only return default ACL listing if * the bucket's current metageneration does not match the given value. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [ObjectAccessControls]. * @@ -1301,8 +1301,8 @@ * user-emailAddress, group-groupId, group-emailAddress, allUsers, or * allAuthenticatedUsers. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [ObjectAccessControl]. * @@ -1358,8 +1358,8 @@ * user-emailAddress, group-groupId, group-emailAddress, allUsers, or * allAuthenticatedUsers. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [ObjectAccessControl]. * @@ -1420,8 +1420,8 @@ * * [notification] - ID of the notification to delete. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an * error. @@ -1470,8 +1470,8 @@ * * [notification] - Notification ID * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [Notification]. * @@ -1520,8 +1520,8 @@ * * [bucket] - The parent bucket of the notification. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [Notification]. * @@ -1568,8 +1568,8 @@ * * [bucket] - Name of a GCS bucket. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [Notifications]. * @@ -1633,8 +1633,8 @@ * [generation] - If present, selects a specific revision of this object (as * opposed to the latest version, the default). * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an * error. @@ -1697,8 +1697,8 @@ * [generation] - If present, selects a specific revision of this object (as * opposed to the latest version, the default). * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [ObjectAccessControl]. * @@ -1759,8 +1759,8 @@ * [generation] - If present, selects a specific revision of this object (as * opposed to the latest version, the default). * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [ObjectAccessControl]. * @@ -1819,8 +1819,8 @@ * [generation] - If present, selects a specific revision of this object (as * opposed to the latest version, the default). * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [ObjectAccessControls]. * @@ -1883,8 +1883,8 @@ * [generation] - If present, selects a specific revision of this object (as * opposed to the latest version, the default). * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [ObjectAccessControl]. * @@ -1952,8 +1952,8 @@ * [generation] - If present, selects a specific revision of this object (as * opposed to the latest version, the default). * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [ObjectAccessControl]. * @@ -2045,8 +2045,13 @@ * [ifMetagenerationMatch] - Makes the operation conditional on whether the * object's current metageneration matches the given value. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [kmsKeyName] - Resource name of the Cloud KMS key, of the form + * projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that + * will be used to encrypt the object. Overrides the object metadata's + * kms_key_name value, if any. + * + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * [downloadOptions] - Options for downloading. A download can be either a * Metadata (default) or Media download. Partial Media downloads are possible @@ -2064,7 +2069,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future compose(ComposeRequest request, core.String destinationBucket, core.String destinationObject, {core.String destinationPredefinedAcl, core.String ifGenerationMatch, core.String ifMetagenerationMatch, core.String userProject, commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { + async.Future compose(ComposeRequest request, core.String destinationBucket, core.String destinationObject, {core.String destinationPredefinedAcl, core.String ifGenerationMatch, core.String ifMetagenerationMatch, core.String kmsKeyName, core.String userProject, commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -2090,6 +2095,9 @@ if (ifMetagenerationMatch != null) { _queryParams["ifMetagenerationMatch"] = [ifMetagenerationMatch]; } + if (kmsKeyName != null) { + _queryParams["kmsKeyName"] = [kmsKeyName]; + } if (userProject != null) { _queryParams["userProject"] = [userProject]; } @@ -2184,8 +2192,8 @@ * [sourceGeneration] - If present, selects a specific revision of the source * object (as opposed to the latest version, the default). * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * [downloadOptions] - Options for downloading. A download can be either a * Metadata (default) or Media download. Partial Media downloads are possible @@ -2308,8 +2316,8 @@ * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the * object's current metageneration does not match the given value. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an * error. @@ -2394,8 +2402,8 @@ * - "full" : Include all properties. * - "noAcl" : Omit the owner, acl property. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * [downloadOptions] - Options for downloading. A download can be either a * Metadata (default) or Media download. Partial Media downloads are possible @@ -2481,8 +2489,8 @@ * [generation] - If present, selects a specific revision of this object (as * opposed to the latest version, the default). * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [Policy]. * @@ -2553,6 +2561,11 @@ * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the * object's current metageneration does not match the given value. * + * [kmsKeyName] - Resource name of the Cloud KMS key, of the form + * projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that + * will be used to encrypt the object. Overrides the object metadata's + * kms_key_name value, if any. + * * [name] - Name of the object. Required when the object metadata is not * otherwise provided. Overrides the object metadata's name value, if any. For * information about how to URL encode object names to be path safe, see @@ -2578,8 +2591,8 @@ * - "full" : Include all properties. * - "noAcl" : Omit the owner, acl property. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * [uploadMedia] - The media to upload. * @@ -2602,7 +2615,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future insert(Object request, core.String bucket, {core.String contentEncoding, core.String ifGenerationMatch, core.String ifGenerationNotMatch, core.String ifMetagenerationMatch, core.String ifMetagenerationNotMatch, core.String name, core.String predefinedAcl, core.String projection, core.String userProject, commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia, commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { + async.Future insert(Object request, core.String bucket, {core.String contentEncoding, core.String ifGenerationMatch, core.String ifGenerationNotMatch, core.String ifMetagenerationMatch, core.String ifMetagenerationNotMatch, core.String kmsKeyName, core.String name, core.String predefinedAcl, core.String projection, core.String userProject, commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia, commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -2631,6 +2644,9 @@ if (ifMetagenerationNotMatch != null) { _queryParams["ifMetagenerationNotMatch"] = [ifMetagenerationNotMatch]; } + if (kmsKeyName != null) { + _queryParams["kmsKeyName"] = [kmsKeyName]; + } if (name != null) { _queryParams["name"] = [name]; } @@ -2701,8 +2717,8 @@ * - "full" : Include all properties. * - "noAcl" : Omit the owner, acl property. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * [versions] - If true, lists all versions of an object as distinct results. * The default is false. For more information, see Object Versioning. @@ -2806,8 +2822,8 @@ * - "full" : Include all properties. * - "noAcl" : Omit the owner, acl property. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [Object]. * @@ -2892,6 +2908,11 @@ * value, if any. For information about how to URL encode object names to be * path safe, see Encoding URI Path Parts. * + * [destinationKmsKeyName] - Resource name of the Cloud KMS key, of the form + * projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that + * will be used to encrypt the object. Overrides the object metadata's + * kms_key_name value, if any. + * * [destinationPredefinedAcl] - Apply a predefined set of access controls to * the destination object. * Possible string values are: @@ -2955,8 +2976,8 @@ * [sourceGeneration] - If present, selects a specific revision of the source * object (as opposed to the latest version, the default). * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [RewriteResponse]. * @@ -2966,7 +2987,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<RewriteResponse> rewrite(Object request, core.String sourceBucket, core.String sourceObject, core.String destinationBucket, core.String destinationObject, {core.String destinationPredefinedAcl, core.String ifGenerationMatch, core.String ifGenerationNotMatch, core.String ifMetagenerationMatch, core.String ifMetagenerationNotMatch, core.String ifSourceGenerationMatch, core.String ifSourceGenerationNotMatch, core.String ifSourceMetagenerationMatch, core.String ifSourceMetagenerationNotMatch, core.String maxBytesRewrittenPerCall, core.String projection, core.String rewriteToken, core.String sourceGeneration, core.String userProject}) { + async.Future<RewriteResponse> rewrite(Object request, core.String sourceBucket, core.String sourceObject, core.String destinationBucket, core.String destinationObject, {core.String destinationKmsKeyName, core.String destinationPredefinedAcl, core.String ifGenerationMatch, core.String ifGenerationNotMatch, core.String ifMetagenerationMatch, core.String ifMetagenerationNotMatch, core.String ifSourceGenerationMatch, core.String ifSourceGenerationNotMatch, core.String ifSourceMetagenerationMatch, core.String ifSourceMetagenerationNotMatch, core.String maxBytesRewrittenPerCall, core.String projection, core.String rewriteToken, core.String sourceGeneration, core.String userProject}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -2989,6 +3010,9 @@ if (destinationObject == null) { throw new core.ArgumentError("Parameter destinationObject is required."); } + if (destinationKmsKeyName != null) { + _queryParams["destinationKmsKeyName"] = [destinationKmsKeyName]; + } if (destinationPredefinedAcl != null) { _queryParams["destinationPredefinedAcl"] = [destinationPredefinedAcl]; } @@ -3059,8 +3083,8 @@ * [generation] - If present, selects a specific revision of this object (as * opposed to the latest version, the default). * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [Policy]. * @@ -3122,8 +3146,8 @@ * [generation] - If present, selects a specific revision of this object (as * opposed to the latest version, the default). * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * Completes with a [TestIamPermissionsResponse]. * @@ -3216,8 +3240,8 @@ * - "full" : Include all properties. * - "noAcl" : Omit the owner, acl property. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * [downloadOptions] - Options for downloading. A download can be either a * Metadata (default) or Media download. Partial Media downloads are possible @@ -3326,8 +3350,8 @@ * - "full" : Include all properties. * - "noAcl" : Omit the owner, acl property. * - * [userProject] - The project number to be billed for this request, for - * Requester Pays buckets. + * [userProject] - The project to be billed for this request, for Requester + * Pays buckets. * * [versions] - If true, lists all versions of an object as distinct results. * The default is false. For more information, see Object Versioning. @@ -3463,8 +3487,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (requesterPays != null) { _json["requesterPays"] = requesterPays; } @@ -3512,8 +3536,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (maxAgeSeconds != null) { _json["maxAgeSeconds"] = maxAgeSeconds; } @@ -3530,6 +3554,30 @@ } } +/** + * Encryption configuration used by default for newly inserted objects, when no + * encryption config is specified. + */ +class BucketEncryption { + core.String defaultKmsKeyName; + + BucketEncryption(); + + BucketEncryption.fromJson(core.Map _json) { + if (_json.containsKey("defaultKmsKeyName")) { + defaultKmsKeyName = _json["defaultKmsKeyName"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (defaultKmsKeyName != null) { + _json["defaultKmsKeyName"] = defaultKmsKeyName; + } + return _json; + } +} + /** The action to take. */ class BucketLifecycleRuleAction { /** @@ -3554,8 +3602,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (storageClass != null) { _json["storageClass"] = storageClass; } @@ -3617,8 +3665,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (age != null) { _json["age"] = age; } @@ -3655,8 +3703,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (action != null) { _json["action"] = (action).toJson(); } @@ -3686,8 +3734,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (rule != null) { _json["rule"] = rule.map((value) => (value).toJson()).toList(); } @@ -3718,8 +3766,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (logBucket != null) { _json["logBucket"] = logBucket; } @@ -3748,8 +3796,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entity != null) { _json["entity"] = entity; } @@ -3773,8 +3821,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (enabled != null) { _json["enabled"] = enabled; } @@ -3813,8 +3861,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (mainPageSuffix != null) { _json["mainPageSuffix"] = mainPageSuffix; } @@ -3837,6 +3885,11 @@ * Default access controls to apply to new objects when no ACL is provided. */ core.List<ObjectAccessControl> defaultObjectAcl; + /** + * Encryption configuration used by default for newly inserted objects, when + * no encryption config is specified. + */ + BucketEncryption encryption; /** HTTP 1.1 Entity tag for the bucket. */ core.String etag; /** @@ -3914,6 +3967,9 @@ if (_json.containsKey("defaultObjectAcl")) { defaultObjectAcl = _json["defaultObjectAcl"].map((value) => new ObjectAccessControl.fromJson(value)).toList(); } + if (_json.containsKey("encryption")) { + encryption = new BucketEncryption.fromJson(_json["encryption"]); + } if (_json.containsKey("etag")) { etag = _json["etag"]; } @@ -3967,8 +4023,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (acl != null) { _json["acl"] = acl.map((value) => (value).toJson()).toList(); } @@ -3981,6 +4037,9 @@ if (defaultObjectAcl != null) { _json["defaultObjectAcl"] = defaultObjectAcl.map((value) => (value).toJson()).toList(); } + if (encryption != null) { + _json["encryption"] = (encryption).toJson(); + } if (etag != null) { _json["etag"] = etag; } @@ -4054,8 +4113,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (projectNumber != null) { _json["projectNumber"] = projectNumber; } @@ -4147,8 +4206,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bucket != null) { _json["bucket"] = bucket; } @@ -4207,8 +4266,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -4248,8 +4307,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -4333,8 +4392,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (address != null) { _json["address"] = address; } @@ -4386,8 +4445,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ifGenerationMatch != null) { _json["ifGenerationMatch"] = ifGenerationMatch; } @@ -4420,8 +4479,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (generation != null) { _json["generation"] = generation; } @@ -4460,8 +4519,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (destination != null) { _json["destination"] = (destination).toJson(); } @@ -4543,8 +4602,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (customAttributes != null) { _json["custom_attributes"] = customAttributes; } @@ -4597,8 +4656,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -4630,8 +4689,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (encryptionAlgorithm != null) { _json["encryptionAlgorithm"] = encryptionAlgorithm; } @@ -4660,8 +4719,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entity != null) { _json["entity"] = entity; } @@ -4723,6 +4782,11 @@ /** The kind of item this is. For objects, this is always storage#object. */ core.String kind; /** + * Cloud KMS Key used to encrypt this object, if the object is encrypted by + * such a key. + */ + core.String kmsKeyName; + /** * MD5 hash of the data; encoded using base64. For more information about * using the MD5 hash, see Hashes and ETags: Best Practices. */ @@ -4810,6 +4874,9 @@ if (_json.containsKey("kind")) { kind = _json["kind"]; } + if (_json.containsKey("kmsKeyName")) { + kmsKeyName = _json["kmsKeyName"]; + } if (_json.containsKey("md5Hash")) { md5Hash = _json["md5Hash"]; } @@ -4851,8 +4918,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (acl != null) { _json["acl"] = acl.map((value) => (value).toJson()).toList(); } @@ -4895,6 +4962,9 @@ if (kind != null) { _json["kind"] = kind; } + if (kmsKeyName != null) { + _json["kmsKeyName"] = kmsKeyName; + } if (md5Hash != null) { _json["md5Hash"] = md5Hash; } @@ -4956,8 +5026,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (projectNumber != null) { _json["projectNumber"] = projectNumber; } @@ -5059,8 +5129,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bucket != null) { _json["bucket"] = bucket; } @@ -5125,8 +5195,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -5174,8 +5244,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -5257,8 +5327,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (members != null) { _json["members"] = members; } @@ -5316,8 +5386,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bindings != null) { _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); } @@ -5387,8 +5457,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (done != null) { _json["done"] = done; } @@ -5432,8 +5502,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (emailAddress != null) { _json["email_address"] = emailAddress; } @@ -5480,8 +5550,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; }
diff --git a/generated/googleapis/lib/storagetransfer/v1.dart b/generated/googleapis/lib/storagetransfer/v1.dart index c107e1b..e3f750c 100644 --- a/generated/googleapis/lib/storagetransfer/v1.dart +++ b/generated/googleapis/lib/storagetransfer/v1.dart
@@ -426,14 +426,21 @@ * Lists operations that match the specified filter in the request. If the * server doesn't support this method, it returns `UNIMPLEMENTED`. * - * NOTE: the `name` binding below allows API services to override the binding - * to use different resource name schemes, such as `users / * /operations`. + * NOTE: the `name` binding allows API services to override the binding + * to use different resource name schemes, such as `users / * /operations`. To + * override the binding, API services can add a binding such as + * `"/v1/{name=users / * }/operations"` to their service configuration. + * For backwards compatibility, the default name includes the operations + * collection id, however overriding users must ensure the name binding + * is the parent resource, without the operations collection id. * * Request parameters: * * [name] - The value `transferOperations`. * Value must have pattern "^transferOperations$". * + * [pageSize] - The list page size. The max allowed value is 256. + * * [filter] - A list of query parameters specified as JSON text in the form of * {\"project_id\" : \"my_project_id\", \"job_names\" : [\"jobid1\", * \"jobid2\",...], \"operation_names\" : [\"opid1\", \"opid2\",...], @@ -444,8 +451,6 @@ * * [pageToken] - The list page token. * - * [pageSize] - The list page size. The max allowed value is 256. - * * Completes with a [ListOperationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -454,7 +459,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListOperationsResponse> list(core.String name, {core.String filter, core.String pageToken, core.int pageSize}) { + async.Future<ListOperationsResponse> list(core.String name, {core.int pageSize, core.String filter, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -465,15 +470,15 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if (filter != null) { _queryParams["filter"] = [filter]; } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); @@ -611,8 +616,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accessKeyId != null) { _json["accessKeyId"] = accessKeyId; } @@ -654,8 +659,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (awsAccessKey != null) { _json["awsAccessKey"] = (awsAccessKey).toJson(); } @@ -703,8 +708,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (day != null) { _json["day"] = day; } @@ -736,8 +741,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -764,8 +769,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errorDetails != null) { _json["errorDetails"] = errorDetails; } @@ -940,8 +945,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errorCode != null) { _json["errorCode"] = errorCode; } @@ -977,8 +982,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bucketName != null) { _json["bucketName"] = bucketName; } @@ -999,8 +1004,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountEmail != null) { _json["accountEmail"] = accountEmail; } @@ -1070,8 +1075,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (listUrl != null) { _json["listUrl"] = listUrl; } @@ -1097,8 +1102,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1127,8 +1132,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1218,8 +1223,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (excludePrefixes != null) { _json["excludePrefixes"] = excludePrefixes; } @@ -1297,8 +1302,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (done != null) { _json["done"] = done; } @@ -1326,8 +1331,8 @@ PauseTransferOperationRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1340,8 +1345,8 @@ ResumeTransferOperationRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1386,8 +1391,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (scheduleEndDate != null) { _json["scheduleEndDate"] = (scheduleEndDate).toJson(); } @@ -1489,8 +1494,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -1542,8 +1547,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (hours != null) { _json["hours"] = hours; } @@ -1664,8 +1669,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bytesCopiedToSink != null) { _json["bytesCopiedToSink"] = bytesCopiedToSink; } @@ -1807,8 +1812,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTime != null) { _json["creationTime"] = creationTime; } @@ -1909,8 +1914,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (counters != null) { _json["counters"] = (counters).toJson(); } @@ -1971,8 +1976,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deleteObjectsFromSourceAfterTransfer != null) { _json["deleteObjectsFromSourceAfterTransfer"] = deleteObjectsFromSourceAfterTransfer; } @@ -2032,8 +2037,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (awsS3DataSource != null) { _json["awsS3DataSource"] = (awsS3DataSource).toJson(); } @@ -2092,8 +2097,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (projectId != null) { _json["projectId"] = projectId; }
diff --git a/generated/googleapis/lib/surveys/v2.dart b/generated/googleapis/lib/surveys/v2.dart index c99660b..b33c41f 100644 --- a/generated/googleapis/lib/surveys/v2.dart +++ b/generated/googleapis/lib/surveys/v2.dart
@@ -573,8 +573,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields.map((value) => (value).toJson()).toList(); } @@ -642,8 +642,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (country != null) { _json["country"] = country; } @@ -694,8 +694,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (pageInfo != null) { _json["pageInfo"] = (pageInfo).toJson(); } @@ -731,8 +731,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resultPerPage != null) { _json["resultPerPage"] = resultPerPage; } @@ -757,8 +757,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resultMask != null) { _json["resultMask"] = (resultMask).toJson(); } @@ -781,8 +781,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fields != null) { _json["fields"] = fields.map((value) => (value).toJson()).toList(); } @@ -873,8 +873,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (audience != null) { _json["audience"] = (audience).toJson(); } @@ -979,8 +979,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ages != null) { _json["ages"] = ages; } @@ -1057,8 +1057,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (costPerResponseNanos != null) { _json["costPerResponseNanos"] = costPerResponseNanos; } @@ -1211,8 +1211,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (answerOrder != null) { _json["answerOrder"] = answerOrder; } @@ -1304,8 +1304,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (altText != null) { _json["altText"] = altText; } @@ -1340,8 +1340,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (explanation != null) { _json["explanation"] = explanation; } @@ -1370,8 +1370,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (status != null) { _json["status"] = status; } @@ -1397,8 +1397,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (requestId != null) { _json["requestId"] = requestId; } @@ -1434,8 +1434,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (pageInfo != null) { _json["pageInfo"] = (pageInfo).toJson(); } @@ -1467,8 +1467,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (maxCostPerResponseNanos != null) { _json["maxCostPerResponseNanos"] = maxCostPerResponseNanos; } @@ -1491,8 +1491,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (requestId != null) { _json["requestId"] = requestId; } @@ -1515,8 +1515,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (requestId != null) { _json["requestId"] = requestId; } @@ -1539,8 +1539,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; }
diff --git a/generated/googleapis/lib/tagmanager/v1.dart b/generated/googleapis/lib/tagmanager/v1.dart index e5b7d88..ba1e8d1 100644 --- a/generated/googleapis/lib/tagmanager/v1.dart +++ b/generated/googleapis/lib/tagmanager/v1.dart
@@ -2683,8 +2683,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -2716,8 +2716,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permission != null) { _json["permission"] = permission; } @@ -2768,8 +2768,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (parameter != null) { _json["parameter"] = parameter.map((value) => (value).toJson()).toList(); } @@ -2856,8 +2856,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -2916,8 +2916,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (containerId != null) { _json["containerId"] = containerId; } @@ -3011,8 +3011,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -3119,8 +3119,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -3181,8 +3181,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -3214,8 +3214,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (compilerError != null) { _json["compilerError"] = compilerError; } @@ -3313,8 +3313,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -3391,8 +3391,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -3435,8 +3435,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (tag != null) { _json["tag"] = tag.map((value) => (value).toJson()).toList(); } @@ -3463,8 +3463,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (userAccess != null) { _json["userAccess"] = userAccess.map((value) => (value).toJson()).toList(); } @@ -3485,8 +3485,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accounts != null) { _json["accounts"] = accounts.map((value) => (value).toJson()).toList(); } @@ -3512,8 +3512,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (containerVersion != null) { _json["containerVersion"] = containerVersion.map((value) => (value).toJson()).toList(); } @@ -3537,8 +3537,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (containers != null) { _json["containers"] = containers.map((value) => (value).toJson()).toList(); } @@ -3559,8 +3559,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (environments != null) { _json["environments"] = environments.map((value) => (value).toJson()).toList(); } @@ -3581,8 +3581,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (folders != null) { _json["folders"] = folders.map((value) => (value).toJson()).toList(); } @@ -3603,8 +3603,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (tags != null) { _json["tags"] = tags.map((value) => (value).toJson()).toList(); } @@ -3625,8 +3625,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (triggers != null) { _json["triggers"] = triggers.map((value) => (value).toJson()).toList(); } @@ -3647,8 +3647,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (variables != null) { _json["variables"] = variables.map((value) => (value).toJson()).toList(); } @@ -3740,8 +3740,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -3838,8 +3838,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -3877,8 +3877,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (compilerError != null) { _json["compilerError"] = compilerError; } @@ -3937,8 +3937,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -3984,8 +3984,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (stopOnSetupFailure != null) { _json["stopOnSetupFailure"] = stopOnSetupFailure; } @@ -4132,8 +4132,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -4219,8 +4219,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (stopTeardownOnFailure != null) { _json["stopTeardownOnFailure"] = stopTeardownOnFailure; } @@ -4390,8 +4390,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -4486,8 +4486,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountAccess != null) { _json["accountAccess"] = (accountAccess).toJson(); } @@ -4591,8 +4591,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; }
diff --git a/generated/googleapis/lib/tagmanager/v2.dart b/generated/googleapis/lib/tagmanager/v2.dart index 0d0e382..a329e2c 100644 --- a/generated/googleapis/lib/tagmanager/v2.dart +++ b/generated/googleapis/lib/tagmanager/v2.dart
@@ -3561,8 +3561,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -3605,8 +3605,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permission != null) { _json["permission"] = permission; } @@ -3750,8 +3750,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -3818,8 +3818,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (parameter != null) { _json["parameter"] = parameter.map((value) => (value).toJson()).toList(); } @@ -3897,8 +3897,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -3960,8 +3960,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (containerId != null) { _json["containerId"] = containerId; } @@ -4062,8 +4062,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -4178,8 +4178,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -4229,8 +4229,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (builtInVariable != null) { _json["builtInVariable"] = builtInVariable.map((value) => (value).toJson()).toList(); } @@ -4256,8 +4256,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -4303,8 +4303,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (compilerError != null) { _json["compilerError"] = compilerError; } @@ -4341,8 +4341,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (initialComment != null) { _json["initialComment"] = (initialComment).toJson(); } @@ -4397,8 +4397,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (changeStatus != null) { _json["changeStatus"] = changeStatus; } @@ -4521,8 +4521,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -4628,8 +4628,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -4689,8 +4689,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -4728,8 +4728,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (mergeConflict != null) { _json["mergeConflict"] = mergeConflict.map((value) => (value).toJson()).toList(); } @@ -4758,8 +4758,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (account != null) { _json["account"] = account.map((value) => (value).toJson()).toList(); } @@ -4788,8 +4788,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (containerVersionHeader != null) { _json["containerVersionHeader"] = containerVersionHeader.map((value) => (value).toJson()).toList(); } @@ -4818,8 +4818,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (container != null) { _json["container"] = container.map((value) => (value).toJson()).toList(); } @@ -4848,8 +4848,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (builtInVariable != null) { _json["builtInVariable"] = builtInVariable.map((value) => (value).toJson()).toList(); } @@ -4878,8 +4878,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (environment != null) { _json["environment"] = environment.map((value) => (value).toJson()).toList(); } @@ -4908,8 +4908,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (folder != null) { _json["folder"] = folder.map((value) => (value).toJson()).toList(); } @@ -4938,8 +4938,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -4968,8 +4968,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -4998,8 +4998,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -5028,8 +5028,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -5058,8 +5058,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -5096,8 +5096,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entityInBaseVersion != null) { _json["entityInBaseVersion"] = (entityInBaseVersion).toJson(); } @@ -5162,8 +5162,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -5201,8 +5201,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (compilerError != null) { _json["compilerError"] = compilerError; } @@ -5239,8 +5239,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (compilerError != null) { _json["compilerError"] = compilerError; } @@ -5267,8 +5267,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (enabled != null) { _json["enabled"] = enabled; } @@ -5293,8 +5293,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (folder != null) { _json["folder"] = (folder).toJson(); } @@ -5319,8 +5319,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (tag != null) { _json["tag"] = (tag).toJson(); } @@ -5345,8 +5345,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (trigger != null) { _json["trigger"] = (trigger).toJson(); } @@ -5371,8 +5371,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (variable != null) { _json["variable"] = (variable).toJson(); } @@ -5404,8 +5404,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (stopOnSetupFailure != null) { _json["stopOnSetupFailure"] = stopOnSetupFailure; } @@ -5434,8 +5434,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (mergeConflict != null) { _json["mergeConflict"] = mergeConflict; } @@ -5472,8 +5472,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (mergeConflict != null) { _json["mergeConflict"] = mergeConflict.map((value) => (value).toJson()).toList(); } @@ -5636,8 +5636,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -5736,8 +5736,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (stopTeardownOnFailure != null) { _json["stopTeardownOnFailure"] = stopTeardownOnFailure; } @@ -5846,8 +5846,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nanos != null) { _json["nanos"] = nanos; } @@ -6117,8 +6117,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -6258,8 +6258,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fingerprint != null) { _json["fingerprint"] = fingerprint; } @@ -6309,8 +6309,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountAccess != null) { _json["accountAccess"] = (accountAccess).toJson(); } @@ -6429,8 +6429,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -6534,8 +6534,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -6617,8 +6617,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (authors != null) { _json["authors"] = authors.map((value) => (value).toJson()).toList(); } @@ -6682,8 +6682,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (comment != null) { _json["comment"] = (comment).toJson(); } @@ -6716,8 +6716,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (content != null) { _json["content"] = content; } @@ -6761,8 +6761,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (newStatus != null) { _json["newStatus"] = newStatus; } @@ -6798,8 +6798,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (gaiaId != null) { _json["gaiaId"] = gaiaId; }
diff --git a/generated/googleapis/lib/tasks/v1.dart b/generated/googleapis/lib/tasks/v1.dart index 83e7190..0faa6b1 100644 --- a/generated/googleapis/lib/tasks/v1.dart +++ b/generated/googleapis/lib/tasks/v1.dart
@@ -767,8 +767,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -886,8 +886,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (completed != null) { _json["completed"] = (completed).toIso8601String(); } @@ -977,8 +977,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -1028,8 +1028,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -1073,8 +1073,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; }
diff --git a/generated/googleapis/lib/tracing/v2.dart b/generated/googleapis/lib/tracing/v2.dart index 664fc61..2639486 100644 --- a/generated/googleapis/lib/tracing/v2.dart +++ b/generated/googleapis/lib/tracing/v2.dart
@@ -112,6 +112,20 @@ * `projects/PROJECT_ID`. * Value must have pattern "^projects/[^/]+$". * + * [orderBy] - Field used to sort the returned traces. Optional. + * Can be one of the following: + * + * * `trace_id` + * * `name` (`name` field of root span in the trace) + * * `duration` (difference between `end_time` and `start_time` fields of + * the root span) + * * `start` (`start_time` field of the root span) + * + * Descending order can be specified by appending `desc` to the sort field + * (for example, `name desc`). + * + * Only one sort field is permitted. + * * [filter] - An optional filter for the request. * Example: * `version_label_key:a some_label:some_label_key` @@ -134,20 +148,6 @@ * implementation selects a reasonable value. The implementation may * return fewer traces than the requested page size. Optional. * - * [orderBy] - Field used to sort the returned traces. Optional. - * Can be one of the following: - * - * * `trace_id` - * * `name` (`name` field of root span in the trace) - * * `duration` (difference between `end_time` and `start_time` fields of - * the root span) - * * `start` (`start_time` field of the root span) - * - * Descending order can be specified by appending `desc` to the sort field - * (for example, `name desc`). - * - * Only one sort field is permitted. - * * Completes with a [ListTracesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -156,7 +156,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListTracesResponse> list(core.String parent, {core.String filter, core.String endTime, core.String pageToken, core.String startTime, core.int pageSize, core.String orderBy}) { + async.Future<ListTracesResponse> list(core.String parent, {core.String orderBy, core.String filter, core.String endTime, core.String pageToken, core.String startTime, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -167,6 +167,9 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (filter != null) { _queryParams["filter"] = [filter]; } @@ -182,9 +185,6 @@ if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } - if (orderBy != null) { - _queryParams["orderBy"] = [orderBy]; - } _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/traces'; @@ -337,8 +337,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attributes != null) { _json["attributes"] = (attributes).toJson(); } @@ -372,8 +372,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (boolValue != null) { _json["boolValue"] = boolValue; } @@ -416,17 +416,17 @@ Attributes.fromJson(core.Map _json) { if (_json.containsKey("attributeMap")) { - attributeMap = commons.mapMap(_json["attributeMap"], (item) => new AttributeValue.fromJson(item)); + attributeMap = commons.mapMap<core.Map<core.String, core.Object>, AttributeValue>(_json["attributeMap"], (core.Map<core.String, core.Object> item) => new AttributeValue.fromJson(item)); } if (_json.containsKey("droppedAttributesCount")) { droppedAttributesCount = _json["droppedAttributesCount"]; } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attributeMap != null) { - _json["attributeMap"] = commons.mapMap(attributeMap, (item) => (item).toJson()); + _json["attributeMap"] = commons.mapMap<AttributeValue, core.Map<core.String, core.Object>>(attributeMap, (AttributeValue item) => (item).toJson()); } if (droppedAttributesCount != null) { _json["droppedAttributesCount"] = droppedAttributesCount; @@ -448,8 +448,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (spans != null) { _json["spans"] = spans.map((value) => (value).toJson()).toList(); } @@ -475,8 +475,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -524,8 +524,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (spanId != null) { _json["spanId"] = spanId; } @@ -563,8 +563,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (droppedLinksCount != null) { _json["droppedLinksCount"] = droppedLinksCount; } @@ -597,8 +597,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -631,8 +631,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -667,8 +667,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (buildId != null) { _json["buildId"] = (buildId).toJson(); } @@ -723,8 +723,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (messageId != null) { _json["messageId"] = messageId; } @@ -852,8 +852,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attributes != null) { _json["attributes"] = (attributes).toJson(); } @@ -944,8 +944,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnNumber != null) { _json["columnNumber"] = columnNumber; } @@ -992,8 +992,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (droppedFramesCount != null) { _json["droppedFramesCount"] = droppedFramesCount; } @@ -1013,7 +1013,7 @@ * stack traces within a single trace. * * Often multiple spans will have identical stack traces. - * The first occurance of a stack trace should contain both the + * The first occurrence of a stack trace should contain both the * `stackFrame` content and a value in `stackTraceHashId`. * * Subsequent spans within the same request can refer @@ -1032,8 +1032,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (stackFrames != null) { _json["stackFrames"] = (stackFrames).toJson(); } @@ -1132,8 +1132,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -1170,8 +1170,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (annotation != null) { _json["annotation"] = (annotation).toJson(); } @@ -1218,8 +1218,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (droppedAnnotationsCount != null) { _json["droppedAnnotationsCount"] = droppedAnnotationsCount; } @@ -1255,8 +1255,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -1288,8 +1288,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (truncatedCharacterCount != null) { _json["truncatedCharacterCount"] = truncatedCharacterCount; }
diff --git a/generated/googleapis/lib/translate/v2.dart b/generated/googleapis/lib/translate/v2.dart index 9b7b8e8..35663b5 100644 --- a/generated/googleapis/lib/translate/v2.dart +++ b/generated/googleapis/lib/translate/v2.dart
@@ -15,8 +15,17 @@ const core.String USER_AGENT = 'dart-api-client translate/v2'; -/** Translates text from one language to another. */ +/** + * The Google Cloud Translation API lets websites and programs integrate with + * Google Translate programmatically. + */ class TranslateApi { + /** View and manage your data across Google Cloud Platform services */ + static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"; + + /** Translate text from one language to another using Google Translate */ + static const CloudTranslationScope = "https://www.googleapis.com/auth/cloud-translation"; + final commons.ApiRequester _requester; @@ -24,7 +33,7 @@ LanguagesResourceApi get languages => new LanguagesResourceApi(_requester); TranslationsResourceApi get translations => new TranslationsResourceApi(_requester); - TranslateApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "language/translate/"}) : + TranslateApi(http.Client client, {core.String rootUrl: "https://translation.googleapis.com/", core.String servicePath: "language/translate/"}) : _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); } @@ -36,11 +45,51 @@ _requester = client; /** - * Detect the language of text. + * Detects the language of text within a request. + * + * [request] - The metadata request object. * * Request parameters: * - * [q] - The text to detect + * Completes with a [DetectionsListResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<DetectionsListResponse> detect(DetectLanguageRequest request) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + + _url = 'v2/detect'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new DetectionsListResponse.fromJson(data)); + } + + /** + * Detects the language of text within a request. + * + * Request parameters: + * + * [q] - The input text upon which to perform language detection. Repeat this + * parameter to perform language detection on multiple text inputs. * * Completes with a [DetectionsListResponse]. * @@ -85,12 +134,15 @@ _requester = client; /** - * List the source/target languages supported by the API + * Returns a list of supported languages for translation. * * Request parameters: * - * [target] - the language and collation in which the localized results should - * be returned + * [target] - The language to use to return localized, human readable names of + * supported + * languages. + * + * [model] - The model type for which supported languages should be returned. * * Completes with a [LanguagesListResponse]. * @@ -100,7 +152,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<LanguagesListResponse> list({core.String target}) { + async.Future<LanguagesListResponse> list({core.String target, core.String model}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -111,6 +163,9 @@ if (target != null) { _queryParams["target"] = [target]; } + if (model != null) { + _queryParams["model"] = [model]; + } _url = 'v2/languages'; @@ -134,22 +189,35 @@ _requester = client; /** - * Returns text translations from one language to another. + * Translates input text, returning translated text. * * Request parameters: * - * [q] - The text to translate + * [q] - The input text to translate. Repeat this parameter to perform + * translation + * operations on multiple text inputs. * - * [target] - The target language into which the text should be translated + * [target] - The language to use for translation of the input text, set to + * one of the + * language codes listed in Language Support. + * + * [source] - The language of the source text, set to one of the language + * codes listed in + * Language Support. If the source language is not specified, the API will + * attempt to identify the source language automatically and return it within + * the response. * * [cid] - The customization id for translate * - * [format] - The format of the text + * [format] - The format of the source text, in either HTML (default) or + * plain-text. A + * value of "html" indicates HTML and a value of "text" indicates plain-text. * Possible string values are: * - "html" : Specifies the input is in HTML * - "text" : Specifies the input is in plain textual format * - * [source] - The source language of the text + * [model] - The `model` type requested for this translation. Valid values are + * listed in public documentation. * * Completes with a [TranslationsListResponse]. * @@ -159,7 +227,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<TranslationsListResponse> list(core.List<core.String> q, core.String target, {core.List<core.String> cid, core.String format, core.String source}) { + async.Future<TranslationsListResponse> list(core.List<core.String> q, core.String target, {core.String source, core.List<core.String> cid, core.String format, core.String model}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -175,14 +243,17 @@ throw new core.ArgumentError("Parameter target is required."); } _queryParams["target"] = [target]; + if (source != null) { + _queryParams["source"] = [source]; + } if (cid != null) { _queryParams["cid"] = cid; } if (format != null) { _queryParams["format"] = [format]; } - if (source != null) { - _queryParams["source"] = [source]; + if (model != null) { + _queryParams["model"] = [model]; } _url = 'v2'; @@ -197,10 +268,74 @@ return _response.then((data) => new TranslationsListResponse.fromJson(data)); } + /** + * Translates input text, returning translated text. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * Completes with a [TranslationsListResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<TranslationsListResponse> translate(TranslateTextRequest request) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + + _url = 'v2'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new TranslationsListResponse.fromJson(data)); + } + } +/** The request message for language detection. */ +class DetectLanguageRequest { + /** + * The input text upon which to perform language detection. Repeat this + * parameter to perform language detection on multiple text inputs. + */ + core.List<core.String> q; + + DetectLanguageRequest(); + + DetectLanguageRequest.fromJson(core.Map _json) { + if (_json.containsKey("q")) { + q = _json["q"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (q != null) { + _json["q"] = q; + } + return _json; + } +} + class DetectionsListResponse { /** A detections contains detection results of several text */ core.List<DetectionsResource> detections; @@ -213,8 +348,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (detections != null) { _json["detections"] = detections.map((value) => (value).toJson()).toList(); } @@ -223,11 +358,11 @@ } class DetectionsResourceElement { - /** The confidence of the detection resul of this language. */ + /** The confidence of the detection result of this language. */ core.double confidence; /** A boolean to indicate is the language detection result reliable. */ core.bool isReliable; - /** The language we detect */ + /** The language we detected. */ core.String language; DetectionsResourceElement(); @@ -244,8 +379,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (confidence != null) { _json["confidence"] = confidence; } @@ -272,7 +407,7 @@ DetectionsResource.fromJson(core.List json) : _inner = json.map((value) => new DetectionsResourceElement.fromJson(value)).toList(); - core.List toJson() { + core.List<core.Map<core.String, core.Object>> toJson() { return _inner.map((value) => (value).toJson()).toList(); } @@ -289,6 +424,31 @@ } } +/** The request message for discovering supported languages. */ +class GetSupportedLanguagesRequest { + /** + * The language to use to return localized, human readable names of supported + * languages. + */ + core.String target; + + GetSupportedLanguagesRequest(); + + GetSupportedLanguagesRequest.fromJson(core.Map _json) { + if (_json.containsKey("target")) { + target = _json["target"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (target != null) { + _json["target"] = target; + } + return _json; + } +} + class LanguagesListResponse { /** * List of source/target languages supported by the translation API. If target @@ -306,8 +466,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (languages != null) { _json["languages"] = languages.map((value) => (value).toJson()).toList(); } @@ -316,9 +476,13 @@ } class LanguagesResource { - /** The language code. */ + /** + * Supported language code, generally consisting of its ISO 639-1 + * identifier. (E.g. 'en', 'ja'). In certain cases, BCP-47 codes including + * language + region identifiers are returned (e.g. 'zh-TW' and 'zh-CH') + */ core.String language; - /** The localized name of the language if target parameter is given. */ + /** Human readable name of the language localized to the target language. */ core.String name; LanguagesResource(); @@ -332,8 +496,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (language != null) { _json["language"] = language; } @@ -344,6 +508,78 @@ } } +/** The main translation request message for the Cloud Translation API. */ +class TranslateTextRequest { + /** + * The format of the source text, in either HTML (default) or plain-text. A + * value of "html" indicates HTML and a value of "text" indicates plain-text. + */ + core.String format; + /** + * The `model` type requested for this translation. Valid values are + * listed in public documentation. + */ + core.String model; + /** + * The input text to translate. Repeat this parameter to perform translation + * operations on multiple text inputs. + */ + core.List<core.String> q; + /** + * The language of the source text, set to one of the language codes listed in + * Language Support. If the source language is not specified, the API will + * attempt to identify the source language automatically and return it within + * the response. + */ + core.String source; + /** + * The language to use for translation of the input text, set to one of the + * language codes listed in Language Support. + */ + core.String target; + + TranslateTextRequest(); + + TranslateTextRequest.fromJson(core.Map _json) { + if (_json.containsKey("format")) { + format = _json["format"]; + } + if (_json.containsKey("model")) { + model = _json["model"]; + } + if (_json.containsKey("q")) { + q = _json["q"]; + } + if (_json.containsKey("source")) { + source = _json["source"]; + } + if (_json.containsKey("target")) { + target = _json["target"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (format != null) { + _json["format"] = format; + } + if (model != null) { + _json["model"] = model; + } + if (q != null) { + _json["q"] = q; + } + if (source != null) { + _json["source"] = source; + } + if (target != null) { + _json["target"] = target; + } + return _json; + } +} + +/** The main language translation response message. */ class TranslationsListResponse { /** Translations contains list of translation results of given text */ core.List<TranslationsResource> translations; @@ -356,8 +592,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (translations != null) { _json["translations"] = translations.map((value) => (value).toJson()).toList(); } @@ -366,9 +602,20 @@ } class TranslationsResource { - /** Detected source language if source parameter is unspecified. */ + /** + * The source language of the initial request, detected automatically, if + * no source language was passed within the initial request. If the + * source language was passed, auto-detection of the language will not + * occur and this field will be empty. + */ core.String detectedSourceLanguage; - /** The translation. */ + /** + * The `model` type used for this translation. Valid values are + * listed in public documentation. Can be different from requested `model`. + * Present only if specific model type was explicitly requested. + */ + core.String model; + /** Text translated into the target language. */ core.String translatedText; TranslationsResource(); @@ -377,16 +624,22 @@ if (_json.containsKey("detectedSourceLanguage")) { detectedSourceLanguage = _json["detectedSourceLanguage"]; } + if (_json.containsKey("model")) { + model = _json["model"]; + } if (_json.containsKey("translatedText")) { translatedText = _json["translatedText"]; } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (detectedSourceLanguage != null) { _json["detectedSourceLanguage"] = detectedSourceLanguage; } + if (model != null) { + _json["model"] = model; + } if (translatedText != null) { _json["translatedText"] = translatedText; }
diff --git a/generated/googleapis/lib/urlshortener/v1.dart b/generated/googleapis/lib/urlshortener/v1.dart index 9891f05..b77b2b1 100644 --- a/generated/googleapis/lib/urlshortener/v1.dart +++ b/generated/googleapis/lib/urlshortener/v1.dart
@@ -223,8 +223,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (browsers != null) { _json["browsers"] = browsers.map((value) => (value).toJson()).toList(); } @@ -279,8 +279,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allTime != null) { _json["allTime"] = (allTime).toJson(); } @@ -320,8 +320,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (count != null) { _json["count"] = count; } @@ -382,8 +382,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (analytics != null) { _json["analytics"] = (analytics).toJson(); } @@ -443,8 +443,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); }
diff --git a/generated/googleapis/lib/vision/v1.dart b/generated/googleapis/lib/vision/v1.dart index f35a01c..5111e2d 100644 --- a/generated/googleapis/lib/vision/v1.dart +++ b/generated/googleapis/lib/vision/v1.dart
@@ -108,8 +108,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (features != null) { _json["features"] = features.map((value) => (value).toJson()).toList(); } @@ -195,8 +195,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cropHintsAnnotation != null) { _json["cropHintsAnnotation"] = (cropHintsAnnotation).toJson(); } @@ -249,8 +249,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (requests != null) { _json["requests"] = requests.map((value) => (value).toJson()).toList(); } @@ -271,8 +271,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (responses != null) { _json["responses"] = responses.map((value) => (value).toJson()).toList(); } @@ -333,8 +333,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (blockType != null) { _json["blockType"] = blockType; } @@ -364,8 +364,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (vertices != null) { _json["vertices"] = vertices.map((value) => (value).toJson()).toList(); } @@ -528,8 +528,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alpha != null) { _json["alpha"] = alpha; } @@ -575,8 +575,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (color != null) { _json["color"] = (color).toJson(); } @@ -621,8 +621,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (boundingPoly != null) { _json["boundingPoly"] = (boundingPoly).toJson(); } @@ -651,8 +651,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cropHints != null) { _json["cropHints"] = cropHints.map((value) => (value).toJson()).toList(); } @@ -680,8 +680,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aspectRatios != null) { _json["aspectRatios"] = aspectRatios; } @@ -718,8 +718,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (isPrefix != null) { _json["isPrefix"] = isPrefix; } @@ -752,8 +752,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (confidence != null) { _json["confidence"] = confidence; } @@ -777,8 +777,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (colors != null) { _json["colors"] = colors.map((value) => (value).toJson()).toList(); } @@ -789,10 +789,8 @@ /** Set of detected entity features. */ class EntityAnnotation { /** - * Image region to which this entity belongs. Currently not produced - * for `LABEL_DETECTION` features. For `TEXT_DETECTION` (OCR), `boundingPoly`s - * are produced for the entire text detected in an image region, followed by - * `boundingPoly`s for each word within the detected text. + * Image region to which this entity belongs. Not produced + * for `LABEL_DETECTION` features. */ BoundingPoly boundingPoly; /** @@ -871,8 +869,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (boundingPoly != null) { _json["boundingPoly"] = (boundingPoly).toJson(); } @@ -1104,8 +1102,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (angerLikelihood != null) { _json["angerLikelihood"] = angerLikelihood; } @@ -1196,8 +1194,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (maxResults != null) { _json["maxResults"] = maxResults; } @@ -1241,8 +1239,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (content != null) { _json["content"] = content; } @@ -1285,8 +1283,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cropHintsParams != null) { _json["cropHintsParams"] = (cropHintsParams).toJson(); } @@ -1313,8 +1311,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dominantColors != null) { _json["dominantColors"] = (dominantColors).toJson(); } @@ -1358,8 +1356,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (gcsImageUri != null) { _json["gcsImageUri"] = gcsImageUri; } @@ -1433,8 +1431,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (position != null) { _json["position"] = (position).toJson(); } @@ -1503,8 +1501,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (latitude != null) { _json["latitude"] = latitude; } @@ -1533,8 +1531,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (maxLatLng != null) { _json["maxLatLng"] = (maxLatLng).toJson(); } @@ -1558,8 +1556,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (latLng != null) { _json["latLng"] = (latLng).toJson(); } @@ -1595,8 +1593,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (blocks != null) { _json["blocks"] = blocks.map((value) => (value).toJson()).toList(); } @@ -1652,8 +1650,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (boundingBox != null) { _json["boundingBox"] = (boundingBox).toJson(); } @@ -1694,8 +1692,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (x != null) { _json["x"] = x; } @@ -1732,8 +1730,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -1833,8 +1831,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adult != null) { _json["adult"] = adult; } @@ -1939,8 +1937,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -1993,8 +1991,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (boundingBox != null) { _json["boundingBox"] = (boundingBox).toJson(); } @@ -2034,8 +2032,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (pages != null) { _json["pages"] = pages.map((value) => (value).toJson()).toList(); } @@ -2064,8 +2062,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (detectedBreak != null) { _json["detectedBreak"] = (detectedBreak).toJson(); } @@ -2097,8 +2095,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (x != null) { _json["x"] = x; } @@ -2149,8 +2147,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fullMatchingImages != null) { _json["fullMatchingImages"] = fullMatchingImages.map((value) => (value).toJson()).toList(); } @@ -2196,8 +2194,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -2232,8 +2230,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (score != null) { _json["score"] = score; } @@ -2265,8 +2263,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (score != null) { _json["score"] = score; } @@ -2319,8 +2317,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (boundingBox != null) { _json["boundingBox"] = (boundingBox).toJson(); }
diff --git a/generated/googleapis/lib/webfonts/v1.dart b/generated/googleapis/lib/webfonts/v1.dart index dd5c49a..93797a6 100644 --- a/generated/googleapis/lib/webfonts/v1.dart +++ b/generated/googleapis/lib/webfonts/v1.dart
@@ -138,8 +138,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (category != null) { _json["category"] = category; } @@ -187,8 +187,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); }
diff --git a/generated/googleapis/lib/webmasters/v3.dart b/generated/googleapis/lib/webmasters/v3.dart index 2ffb4df..8f4abba 100644 --- a/generated/googleapis/lib/webmasters/v3.dart +++ b/generated/googleapis/lib/webmasters/v3.dart
@@ -790,8 +790,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clicks != null) { _json["clicks"] = clicks; } @@ -830,8 +830,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dimension != null) { _json["dimension"] = dimension; } @@ -860,8 +860,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filters != null) { _json["filters"] = filters.map((value) => (value).toJson()).toList(); } @@ -958,8 +958,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aggregationType != null) { _json["aggregationType"] = aggregationType; } @@ -1012,8 +1012,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (responseAggregationType != null) { _json["responseAggregationType"] = responseAggregationType; } @@ -1039,8 +1039,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (sitemap != null) { _json["sitemap"] = sitemap.map((value) => (value).toJson()).toList(); } @@ -1064,8 +1064,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (siteEntry != null) { _json["siteEntry"] = siteEntry.map((value) => (value).toJson()).toList(); } @@ -1093,8 +1093,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (count != null) { _json["count"] = count; } @@ -1134,8 +1134,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (category != null) { _json["category"] = category; } @@ -1168,8 +1168,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (countPerTypes != null) { _json["countPerTypes"] = countPerTypes.map((value) => (value).toJson()).toList(); } @@ -1210,8 +1210,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (firstDetected != null) { _json["first_detected"] = (firstDetected).toIso8601String(); } @@ -1244,8 +1244,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (urlCrawlErrorSample != null) { _json["urlCrawlErrorSample"] = urlCrawlErrorSample.map((value) => (value).toJson()).toList(); } @@ -1271,8 +1271,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (containingSitemaps != null) { _json["containingSitemaps"] = containingSitemaps; } @@ -1304,8 +1304,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissionLevel != null) { _json["permissionLevel"] = permissionLevel; } @@ -1383,8 +1383,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contents != null) { _json["contents"] = contents.map((value) => (value).toJson()).toList(); } @@ -1442,8 +1442,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (indexed != null) { _json["indexed"] = indexed; }
diff --git a/generated/googleapis/lib/youtube/v3.dart b/generated/googleapis/lib/youtube/v3.dart index 4201282..446a579 100644 --- a/generated/googleapis/lib/youtube/v3.dart +++ b/generated/googleapis/lib/youtube/v3.dart
@@ -6136,8 +6136,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allowed != null) { _json["allowed"] = allowed; } @@ -6199,8 +6199,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contentDetails != null) { _json["contentDetails"] = (contentDetails).toJson(); } @@ -6325,8 +6325,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bulletin != null) { _json["bulletin"] = (bulletin).toJson(); } @@ -6380,8 +6380,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resourceId != null) { _json["resourceId"] = (resourceId).toJson(); } @@ -6405,8 +6405,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resourceId != null) { _json["resourceId"] = (resourceId).toJson(); } @@ -6430,8 +6430,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resourceId != null) { _json["resourceId"] = (resourceId).toJson(); } @@ -6455,8 +6455,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resourceId != null) { _json["resourceId"] = (resourceId).toJson(); } @@ -6480,8 +6480,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resourceId != null) { _json["resourceId"] = (resourceId).toJson(); } @@ -6515,8 +6515,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (playlistId != null) { _json["playlistId"] = playlistId; } @@ -6613,8 +6613,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adTag != null) { _json["adTag"] = adTag; } @@ -6685,8 +6685,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (reason != null) { _json["reason"] = reason; } @@ -6743,8 +6743,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (author != null) { _json["author"] = author; } @@ -6780,8 +6780,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resourceId != null) { _json["resourceId"] = (resourceId).toJson(); } @@ -6802,8 +6802,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (videoId != null) { _json["videoId"] = videoId; } @@ -6870,8 +6870,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -6988,8 +6988,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (channelId != null) { _json["channelId"] = channelId; } @@ -7052,8 +7052,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -7105,8 +7105,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -7258,8 +7258,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (audioTrackType != null) { _json["audioTrackType"] = audioTrackType; } @@ -7359,8 +7359,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (format != null) { _json["format"] = format; } @@ -7472,7 +7472,7 @@ kind = _json["kind"]; } if (_json.containsKey("localizations")) { - localizations = commons.mapMap(_json["localizations"], (item) => new ChannelLocalization.fromJson(item)); + localizations = commons.mapMap<core.Map<core.String, core.Object>, ChannelLocalization>(_json["localizations"], (core.Map<core.String, core.Object> item) => new ChannelLocalization.fromJson(item)); } if (_json.containsKey("snippet")) { snippet = new ChannelSnippet.fromJson(_json["snippet"]); @@ -7488,8 +7488,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (auditDetails != null) { _json["auditDetails"] = (auditDetails).toJson(); } @@ -7518,7 +7518,7 @@ _json["kind"] = kind; } if (localizations != null) { - _json["localizations"] = commons.mapMap(localizations, (item) => (item).toJson()); + _json["localizations"] = commons.mapMap<ChannelLocalization, core.Map<core.String, core.Object>>(localizations, (ChannelLocalization item) => (item).toJson()); } if (snippet != null) { _json["snippet"] = (snippet).toJson(); @@ -7573,8 +7573,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (communityGuidelinesGoodStanding != null) { _json["communityGuidelinesGoodStanding"] = communityGuidelinesGoodStanding; } @@ -7619,8 +7619,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -7662,8 +7662,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (channel != null) { _json["channel"] = (channel).toJson(); } @@ -7732,8 +7732,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (favorites != null) { _json["favorites"] = favorites; } @@ -7765,8 +7765,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (relatedPlaylists != null) { _json["relatedPlaylists"] = (relatedPlaylists).toJson(); } @@ -7798,8 +7798,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contentOwner != null) { _json["contentOwner"] = contentOwner; } @@ -7846,8 +7846,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (context != null) { _json["context"] = context; } @@ -7878,8 +7878,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (pings != null) { _json["pings"] = pings.map((value) => (value).toJson()).toList(); } @@ -7946,8 +7946,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -7997,8 +7997,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -8036,8 +8036,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (channelId != null) { _json["channelId"] = channelId; } @@ -8098,7 +8098,7 @@ kind = _json["kind"]; } if (_json.containsKey("localizations")) { - localizations = commons.mapMap(_json["localizations"], (item) => new ChannelSectionLocalization.fromJson(item)); + localizations = commons.mapMap<core.Map<core.String, core.Object>, ChannelSectionLocalization>(_json["localizations"], (core.Map<core.String, core.Object> item) => new ChannelSectionLocalization.fromJson(item)); } if (_json.containsKey("snippet")) { snippet = new ChannelSectionSnippet.fromJson(_json["snippet"]); @@ -8108,8 +8108,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contentDetails != null) { _json["contentDetails"] = (contentDetails).toJson(); } @@ -8123,7 +8123,7 @@ _json["kind"] = kind; } if (localizations != null) { - _json["localizations"] = commons.mapMap(localizations, (item) => (item).toJson()); + _json["localizations"] = commons.mapMap<ChannelSectionLocalization, core.Map<core.String, core.Object>>(localizations, (ChannelSectionLocalization item) => (item).toJson()); } if (snippet != null) { _json["snippet"] = (snippet).toJson(); @@ -8156,8 +8156,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (channels != null) { _json["channels"] = channels; } @@ -8203,8 +8203,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -8237,8 +8237,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (title != null) { _json["title"] = title; } @@ -8322,8 +8322,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (channelId != null) { _json["channelId"] = channelId; } @@ -8372,8 +8372,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (countries != null) { _json["countries"] = countries; } @@ -8470,8 +8470,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (country != null) { _json["country"] = country; } @@ -8576,8 +8576,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (country != null) { _json["country"] = country; } @@ -8642,8 +8642,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (commentCount != null) { _json["commentCount"] = commentCount; } @@ -8702,8 +8702,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (isLinked != null) { _json["isLinked"] = isLinked; } @@ -8738,8 +8738,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (topicCategories != null) { _json["topicCategories"] = topicCategories; } @@ -8781,8 +8781,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -8850,8 +8850,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -9004,8 +9004,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (authorChannelId != null) { _json["authorChannelId"] = authorChannelId; } @@ -9101,8 +9101,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -9173,8 +9173,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -9220,8 +9220,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (comments != null) { _json["comments"] = comments.map((value) => (value).toJson()).toList(); } @@ -9280,8 +9280,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (canReply != null) { _json["canReply"] = canReply; } @@ -10336,8 +10336,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (acbRating != null) { _json["acbRating"] = acbRating; } @@ -10583,8 +10583,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -10652,8 +10652,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -10735,8 +10735,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (amountMicros != null) { _json["amountMicros"] = amountMicros; } @@ -10785,8 +10785,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (altitude != null) { _json["altitude"] = altitude; } @@ -10840,8 +10840,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -10921,8 +10921,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -10971,8 +10971,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (channelId != null) { _json["channelId"] = channelId; } @@ -11020,8 +11020,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -11076,8 +11076,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -11118,8 +11118,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (hl != null) { _json["hl"] = hl; } @@ -11164,8 +11164,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -11220,8 +11220,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -11262,8 +11262,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (gl != null) { _json["gl"] = gl; } @@ -11411,8 +11411,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (backgroundImageUrl != null) { _json["backgroundImageUrl"] = (backgroundImageUrl).toJson(); } @@ -11519,8 +11519,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (backupIngestionAddress != null) { _json["backupIngestionAddress"] = backupIngestionAddress; } @@ -11568,8 +11568,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (imageBytes != null) { _json["imageBytes"] = imageBytes; } @@ -11621,8 +11621,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cornerPosition != null) { _json["cornerPosition"] = cornerPosition; } @@ -11676,8 +11676,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (defaultTiming != null) { _json["defaultTiming"] = (defaultTiming).toJson(); } @@ -11732,8 +11732,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (durationMs != null) { _json["durationMs"] = durationMs; } @@ -11758,8 +11758,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (value != null) { _json["value"] = value; } @@ -11833,8 +11833,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contentDetails != null) { _json["contentDetails"] = (contentDetails).toJson(); } @@ -11991,8 +11991,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (boundStreamId != null) { _json["boundStreamId"] = boundStreamId; } @@ -12092,8 +12092,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -12219,8 +12219,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (actualEndTime != null) { _json["actualEndTime"] = (actualEndTime).toIso8601String(); } @@ -12293,8 +12293,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (concurrentViewers != null) { _json["concurrentViewers"] = concurrentViewers; } @@ -12369,8 +12369,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (lifeCycleStatus != null) { _json["lifeCycleStatus"] = lifeCycleStatus; } @@ -12416,8 +12416,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (snippet != null) { _json["snippet"] = (snippet).toJson(); } @@ -12442,8 +12442,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (topics != null) { _json["topics"] = topics.map((value) => (value).toJson()).toList(); } @@ -12468,8 +12468,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -12511,8 +12511,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -12560,8 +12560,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (banDurationSeconds != null) { _json["banDurationSeconds"] = banDurationSeconds; } @@ -12607,8 +12607,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (amountDisplayString != null) { _json["amountDisplayString"] = amountDisplayString; } @@ -12666,8 +12666,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (authorDetails != null) { _json["authorDetails"] = (authorDetails).toJson(); } @@ -12734,8 +12734,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (channelId != null) { _json["channelId"] = channelId; } @@ -12775,8 +12775,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deletedMessageId != null) { _json["deletedMessageId"] = deletedMessageId; } @@ -12848,8 +12848,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -12895,8 +12895,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (retractedMessageId != null) { _json["retractedMessageId"] = retractedMessageId; } @@ -13028,8 +13028,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (authorChannelId != null) { _json["authorChannelId"] = authorChannelId; } @@ -13117,8 +13117,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -13194,8 +13194,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -13244,8 +13244,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (liveChatId != null) { _json["liveChatId"] = liveChatId; } @@ -13268,8 +13268,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (pollId != null) { _json["pollId"] = pollId; } @@ -13296,8 +13296,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -13327,8 +13327,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -13358,8 +13358,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -13390,8 +13390,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (itemId != null) { _json["itemId"] = itemId; } @@ -13439,8 +13439,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (amountDisplayString != null) { _json["amountDisplayString"] = amountDisplayString; } @@ -13472,8 +13472,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (messageText != null) { _json["messageText"] = messageText; } @@ -13511,8 +13511,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (banDurationSeconds != null) { _json["banDurationSeconds"] = banDurationSeconds; } @@ -13582,8 +13582,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cdn != null) { _json["cdn"] = (cdn).toJson(); } @@ -13678,8 +13678,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -13730,8 +13730,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (closedCaptionsIngestionUrl != null) { _json["closedCaptionsIngestionUrl"] = closedCaptionsIngestionUrl; } @@ -13772,8 +13772,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (configurationIssues != null) { _json["configurationIssues"] = configurationIssues.map((value) => (value).toJson()).toList(); } @@ -13846,8 +13846,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -13920,8 +13920,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (channelId != null) { _json["channelId"] = channelId; } @@ -13967,8 +13967,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (healthStatus != null) { _json["healthStatus"] = (healthStatus).toJson(); } @@ -13999,8 +13999,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (default_ != null) { _json["default"] = default_; } @@ -14029,8 +14029,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (language != null) { _json["language"] = language; } @@ -14079,8 +14079,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (broadcastStreamDelayMs != null) { _json["broadcastStreamDelayMs"] = broadcastStreamDelayMs; } @@ -14115,8 +14115,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resultsPerPage != null) { _json["resultsPerPage"] = resultsPerPage; } @@ -14192,7 +14192,7 @@ kind = _json["kind"]; } if (_json.containsKey("localizations")) { - localizations = commons.mapMap(_json["localizations"], (item) => new PlaylistLocalization.fromJson(item)); + localizations = commons.mapMap<core.Map<core.String, core.Object>, PlaylistLocalization>(_json["localizations"], (core.Map<core.String, core.Object> item) => new PlaylistLocalization.fromJson(item)); } if (_json.containsKey("player")) { player = new PlaylistPlayer.fromJson(_json["player"]); @@ -14205,8 +14205,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contentDetails != null) { _json["contentDetails"] = (contentDetails).toJson(); } @@ -14220,7 +14220,7 @@ _json["kind"] = kind; } if (localizations != null) { - _json["localizations"] = commons.mapMap(localizations, (item) => (item).toJson()); + _json["localizations"] = commons.mapMap<PlaylistLocalization, core.Map<core.String, core.Object>>(localizations, (PlaylistLocalization item) => (item).toJson()); } if (player != null) { _json["player"] = (player).toJson(); @@ -14247,8 +14247,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (itemCount != null) { _json["itemCount"] = itemCount; } @@ -14329,8 +14329,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contentDetails != null) { _json["contentDetails"] = (contentDetails).toJson(); } @@ -14403,8 +14403,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endAt != null) { _json["endAt"] = endAt; } @@ -14483,8 +14483,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -14591,8 +14591,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (channelId != null) { _json["channelId"] = channelId; } @@ -14643,8 +14643,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (privacyStatus != null) { _json["privacyStatus"] = privacyStatus; } @@ -14711,8 +14711,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -14762,8 +14762,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -14786,8 +14786,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (embedHtml != null) { _json["embedHtml"] = embedHtml; } @@ -14860,8 +14860,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (channelId != null) { _json["channelId"] = channelId; } @@ -14911,8 +14911,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (privacyStatus != null) { _json["privacyStatus"] = privacyStatus; } @@ -14958,8 +14958,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (customMessage != null) { _json["customMessage"] = customMessage; } @@ -15024,8 +15024,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (recentlyUploadedBy != null) { _json["recentlyUploadedBy"] = recentlyUploadedBy; } @@ -15060,8 +15060,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (property != null) { _json["property"] = property; } @@ -15114,8 +15114,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (channelId != null) { _json["channelId"] = channelId; } @@ -15195,8 +15195,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -15275,8 +15275,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -15361,8 +15361,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (channelId != null) { _json["channelId"] = channelId; } @@ -15423,8 +15423,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -15492,8 +15492,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -15547,8 +15547,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (channelId != null) { _json["channelId"] = channelId; } @@ -15615,8 +15615,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contentDetails != null) { _json["contentDetails"] = (contentDetails).toJson(); } @@ -15670,8 +15670,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (activityType != null) { _json["activityType"] = activityType; } @@ -15744,8 +15744,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -15835,8 +15835,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (channelId != null) { _json["channelId"] = channelId; } @@ -15893,8 +15893,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (channelId != null) { _json["channelId"] = channelId; } @@ -15945,8 +15945,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -16014,8 +16014,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -16103,8 +16103,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (amountMicros != null) { _json["amountMicros"] = amountMicros; } @@ -16156,8 +16156,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -16204,8 +16204,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (default_ != null) { _json["default"] = (default_).toJson(); } @@ -16260,8 +16260,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -16289,8 +16289,8 @@ TokenPagination.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -16413,7 +16413,7 @@ liveStreamingDetails = new VideoLiveStreamingDetails.fromJson(_json["liveStreamingDetails"]); } if (_json.containsKey("localizations")) { - localizations = commons.mapMap(_json["localizations"], (item) => new VideoLocalization.fromJson(item)); + localizations = commons.mapMap<core.Map<core.String, core.Object>, VideoLocalization>(_json["localizations"], (core.Map<core.String, core.Object> item) => new VideoLocalization.fromJson(item)); } if (_json.containsKey("monetizationDetails")) { monetizationDetails = new VideoMonetizationDetails.fromJson(_json["monetizationDetails"]); @@ -16447,8 +16447,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ageGating != null) { _json["ageGating"] = (ageGating).toJson(); } @@ -16471,7 +16471,7 @@ _json["liveStreamingDetails"] = (liveStreamingDetails).toJson(); } if (localizations != null) { - _json["localizations"] = commons.mapMap(localizations, (item) => (item).toJson()); + _json["localizations"] = commons.mapMap<VideoLocalization, core.Map<core.String, core.Object>>(localizations, (VideoLocalization item) => (item).toJson()); } if (monetizationDetails != null) { _json["monetizationDetails"] = (monetizationDetails).toJson(); @@ -16546,8 +16546,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (comments != null) { _json["comments"] = comments; } @@ -16604,8 +16604,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -16657,8 +16657,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -16699,8 +16699,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (label != null) { _json["label"] = label; } @@ -16728,8 +16728,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -16777,8 +16777,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alcoholContent != null) { _json["alcoholContent"] = alcoholContent; } @@ -16829,8 +16829,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -16910,8 +16910,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -16965,8 +16965,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (assignable != null) { _json["assignable"] = assignable; } @@ -17081,8 +17081,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (caption != null) { _json["caption"] = caption; } @@ -17145,8 +17145,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allowed != null) { _json["allowed"] = allowed; } @@ -17248,8 +17248,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (audioStreams != null) { _json["audioStreams"] = audioStreams.map((value) => (value).toJson()).toList(); } @@ -17312,8 +17312,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bitrateBps != null) { _json["bitrateBps"] = bitrateBps; } @@ -17396,8 +17396,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aspectRatio != null) { _json["aspectRatio"] = aspectRatio; } @@ -17461,8 +17461,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -17541,8 +17541,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -17642,8 +17642,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (activeLiveChatId != null) { _json["activeLiveChatId"] = activeLiveChatId; } @@ -17684,8 +17684,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -17711,8 +17711,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (access != null) { _json["access"] = (access).toJson(); } @@ -17742,8 +17742,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (embedHeight != null) { _json["embedHeight"] = embedHeight; } @@ -17851,8 +17851,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (editorSuggestionsAvailability != null) { _json["editorSuggestionsAvailability"] = editorSuggestionsAvailability; } @@ -17921,8 +17921,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (partsProcessed != null) { _json["partsProcessed"] = partsProcessed; } @@ -17949,8 +17949,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (tags != null) { _json["tags"] = tags; } @@ -17981,8 +17981,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (rating != null) { _json["rating"] = rating; } @@ -18019,8 +18019,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (location != null) { _json["location"] = (location).toJson(); } @@ -18130,8 +18130,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (categoryId != null) { _json["categoryId"] = categoryId; } @@ -18217,8 +18217,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (commentCount != null) { _json["commentCount"] = commentCount; } @@ -18338,8 +18338,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (embeddable != null) { _json["embeddable"] = embeddable; } @@ -18426,8 +18426,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (editorSuggestions != null) { _json["editorSuggestions"] = editorSuggestions; } @@ -18471,8 +18471,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (categoryRestricts != null) { _json["categoryRestricts"] = categoryRestricts; } @@ -18518,8 +18518,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (relevantTopicIds != null) { _json["relevantTopicIds"] = relevantTopicIds; } @@ -18559,8 +18559,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (backgroundColor != null) { _json["backgroundColor"] = backgroundColor; }
diff --git a/generated/googleapis/lib/youtubeanalytics/v1.dart b/generated/googleapis/lib/youtubeanalytics/v1.dart index 29fabe5..dc4fd14 100644 --- a/generated/googleapis/lib/youtubeanalytics/v1.dart +++ b/generated/googleapis/lib/youtubeanalytics/v1.dart
@@ -629,8 +629,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (itemCount != null) { _json["itemCount"] = itemCount; } @@ -656,8 +656,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (publishedAt != null) { _json["publishedAt"] = (publishedAt).toIso8601String(); } @@ -695,8 +695,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contentDetails != null) { _json["contentDetails"] = (contentDetails).toJson(); } @@ -731,8 +731,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -770,8 +770,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -814,8 +814,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -856,8 +856,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -896,8 +896,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnType != null) { _json["columnType"] = columnType; } @@ -963,8 +963,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnHeaders != null) { _json["columnHeaders"] = columnHeaders.map((value) => (value).toJson()).toList(); }
diff --git a/generated/googleapis/lib/youtubereporting/v1.dart b/generated/googleapis/lib/youtubereporting/v1.dart index bf1264e..fc1a545 100644 --- a/generated/googleapis/lib/youtubereporting/v1.dart +++ b/generated/googleapis/lib/youtubereporting/v1.dart
@@ -193,10 +193,6 @@ * * Request parameters: * - * [onBehalfOfContentOwner] - The content owner's external ID on which behalf - * the user is acting on. If - * not set, the user is acting for himself (his own channel). - * * [pageToken] - A token identifying a page of results the server should * return. Typically, * this is the value of @@ -212,6 +208,10 @@ * requested. * If unspecified, server will pick an appropriate default. * + * [onBehalfOfContentOwner] - The content owner's external ID on which behalf + * the user is acting on. If + * not set, the user is acting for himself (his own channel). + * * Completes with a [ListJobsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -220,7 +220,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListJobsResponse> list({core.String onBehalfOfContentOwner, core.String pageToken, core.bool includeSystemManaged, core.int pageSize}) { + async.Future<ListJobsResponse> list({core.String pageToken, core.bool includeSystemManaged, core.int pageSize, core.String onBehalfOfContentOwner}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -228,9 +228,6 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (onBehalfOfContentOwner != null) { - _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -240,6 +237,9 @@ if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (onBehalfOfContentOwner != null) { + _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; + } _url = 'v1/jobs'; @@ -321,19 +321,23 @@ * * [jobId] - The ID of the job. * + * [startTimeBefore] - If set, only reports whose start time is smaller than + * the specified + * date/time are returned. + * * [createdAfter] - If set, only reports created after the specified date/time * are returned. * + * [startTimeAtOrAfter] - If set, only reports whose start time is greater + * than or equal the + * specified date/time are returned. + * * [pageToken] - A token identifying a page of results the server should * return. Typically, * this is the value of * ListReportsResponse.next_page_token * returned in response to the previous call to the `ListReports` method. * - * [startTimeAtOrAfter] - If set, only reports whose start time is greater - * than or equal the - * specified date/time are returned. - * * [pageSize] - Requested page size. Server may return fewer report types than * requested. * If unspecified, server will pick an appropriate default. @@ -342,10 +346,6 @@ * the user is acting on. If * not set, the user is acting for himself (his own channel). * - * [startTimeBefore] - If set, only reports whose start time is smaller than - * the specified - * date/time are returned. - * * Completes with a [ListReportsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -354,7 +354,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListReportsResponse> list(core.String jobId, {core.String createdAfter, core.String pageToken, core.String startTimeAtOrAfter, core.int pageSize, core.String onBehalfOfContentOwner, core.String startTimeBefore}) { + async.Future<ListReportsResponse> list(core.String jobId, {core.String startTimeBefore, core.String createdAfter, core.String startTimeAtOrAfter, core.String pageToken, core.int pageSize, core.String onBehalfOfContentOwner}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -365,24 +365,24 @@ if (jobId == null) { throw new core.ArgumentError("Parameter jobId is required."); } + if (startTimeBefore != null) { + _queryParams["startTimeBefore"] = [startTimeBefore]; + } if (createdAfter != null) { _queryParams["createdAfter"] = [createdAfter]; } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (startTimeAtOrAfter != null) { _queryParams["startTimeAtOrAfter"] = [startTimeAtOrAfter]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } if (onBehalfOfContentOwner != null) { _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; } - if (startTimeBefore != null) { - _queryParams["startTimeBefore"] = [startTimeBefore]; - } _url = 'v1/jobs/' + commons.Escaper.ecapeVariable('$jobId') + '/reports'; @@ -558,8 +558,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -611,8 +611,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createTime != null) { _json["createTime"] = createTime; } @@ -659,8 +659,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (jobs != null) { _json["jobs"] = jobs.map((value) => (value).toJson()).toList(); } @@ -696,8 +696,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -732,8 +732,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -757,8 +757,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resourceName != null) { _json["resourceName"] = resourceName; } @@ -820,8 +820,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createTime != null) { _json["createTime"] = createTime; } @@ -879,8 +879,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (deprecateTime != null) { _json["deprecateTime"] = deprecateTime; }
diff --git a/generated/googleapis/pubspec.yaml b/generated/googleapis/pubspec.yaml index 4b54549..56e5a7d 100644 --- a/generated/googleapis/pubspec.yaml +++ b/generated/googleapis/pubspec.yaml
@@ -1,13 +1,13 @@ name: googleapis -version: 0.39.0 +version: 0.40.0 author: Dart Team <misc@dartlang.org> -description: "Auto-generated client libraries for accessing the following APIs:acceleratedmobilepageurl:v1, adexchangebuyer:v1.3, adexchangebuyer:v1.4, adexchangeseller:v1.1, adexchangeseller:v2.0, admin:datatransfer_v1, admin:directory_v1, admin:reports_v1, adsense:v1.4, adsensehost:v4.1, analytics:v3, analyticsreporting:v4, androidenterprise:v1, androidpublisher:v2, appengine:v1, appsactivity:v1, appstate:v1, bigquery:v2, bigquerydatatransfer:v1, blogger:v3, books:v1, calendar:v3, civicinfo:v2, classroom:v1, cloudbilling:v1, cloudbuild:v1, clouddebugger:v2, cloudfunctions:v1, cloudkms:v1, cloudresourcemanager:v1, cloudtrace:v1, compute:v1, consumersurveys:v2, container:v1, content:v2, content:v2sandbox, customsearch:v1, dataproc:v1, datastore:v1, deploymentmanager:v2, dfareporting:v2.6, dfareporting:v2.7, dfareporting:v2.8, discovery:v1, dns:v1, doubleclickbidmanager:v1, doubleclicksearch:v2, drive:v2, drive:v3, firebasedynamiclinks:v1, firebaserules:v1, fitness:v1, fusiontables:v1, fusiontables:v2, games:v1, gamesConfiguration:v1configuration, gamesManagement:v1management, genomics:v1, gmail:v1, groupsmigration:v1, groupssettings:v1, iam:v1, identitytoolkit:v3, kgsearch:v1, language:v1, licensing:v1, logging:v2, manufacturers:v1, mirror:v1, ml:v1, monitoring:v3, oauth2:v2, pagespeedonline:v1, pagespeedonline:v2, partners:v2, people:v1, playmoviespartner:v1, plus:v1, plusDomains:v1, prediction:v1.6, pubsub:v1, qpxExpress:v1, reseller:v1, runtimeconfig:v1, safebrowsing:v4, script:v1, searchconsole:v1, servicecontrol:v1, servicemanagement:v1, serviceuser:v1, sheets:v4, siteVerification:v1, slides:v1, sourcerepo:v1, spanner:v1, speech:v1, storage:v1, storagetransfer:v1, surveys:v2, tagmanager:v1, tagmanager:v2, tasks:v1, tracing:v2, translate:v2, urlshortener:v1, vision:v1, webfonts:v1, webmasters:v3, youtube:v3, youtubeAnalytics:v1, youtubereporting:v1" +description: "Auto-generated client libraries for accessing the following APIs:acceleratedmobilepageurl:v1, adexchangebuyer:v1.3, adexchangebuyer:v1.4, adexchangeseller:v1.1, adexchangeseller:v2.0, admin:datatransfer_v1, admin:directory_v1, admin:reports_v1, adsense:v1.4, adsensehost:v4.1, analytics:v3, analyticsreporting:v4, androidenterprise:v1, androidpublisher:v2, appengine:v1, appsactivity:v1, appstate:v1, bigquery:v2, bigquerydatatransfer:v1, blogger:v3, books:v1, calendar:v3, civicinfo:v2, classroom:v1, cloudbilling:v1, cloudbuild:v1, clouddebugger:v2, cloudfunctions:v1, cloudkms:v1, cloudresourcemanager:v1, cloudtrace:v1, compute:v1, consumersurveys:v2, container:v1, content:v2, content:v2sandbox, customsearch:v1, dataproc:v1, datastore:v1, deploymentmanager:v2, dfareporting:v2.8, discovery:v1, dns:v1, doubleclickbidmanager:v1, doubleclicksearch:v2, drive:v2, drive:v3, firebasedynamiclinks:v1, firebaserules:v1, fitness:v1, fusiontables:v1, fusiontables:v2, games:v1, gamesConfiguration:v1configuration, gamesManagement:v1management, genomics:v1, gmail:v1, groupsmigration:v1, groupssettings:v1, iam:v1, identitytoolkit:v3, kgsearch:v1, language:v1, licensing:v1, logging:v2, manufacturers:v1, mirror:v1, ml:v1, monitoring:v3, oauth2:v2, pagespeedonline:v1, pagespeedonline:v2, partners:v2, people:v1, playmoviespartner:v1, plus:v1, plusDomains:v1, prediction:v1.6, pubsub:v1, qpxExpress:v1, reseller:v1, runtimeconfig:v1, safebrowsing:v4, script:v1, searchconsole:v1, servicecontrol:v1, servicemanagement:v1, serviceuser:v1, sheets:v4, siteVerification:v1, slides:v1, sourcerepo:v1, spanner:v1, speech:v1, storage:v1, storagetransfer:v1, surveys:v2, tagmanager:v1, tagmanager:v2, tasks:v1, tracing:v2, translate:v2, urlshortener:v1, vision:v1, webfonts:v1, webmasters:v3, youtube:v3, youtubeAnalytics:v1, youtubereporting:v1" homepage: http://www.dartlang.org/googleapis/ environment: - sdk: '>=1.14.0 <2.0.0' + sdk: '>=1.22.0 <2.0.0' dependencies: # This is a private package dependency used by the generated client stubs. _discoveryapis_commons: '>=0.1.0 <0.2.0' http: '>=0.11.1 <0.12.0' dev_dependencies: - unittest: '>=0.10.0 <0.12.0' + test: '>=0.12.0 <0.13.0'
diff --git a/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart b/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart index 65b8854..adf89c5 100644 --- a/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart +++ b/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/acceleratedmobilepageurl/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -97,14 +97,14 @@ buildCounterAmpUrlError--; } -buildUnnamed1172() { +buildUnnamed1179() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1172(core.List<core.String> o) { +checkUnnamed1179(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -116,7 +116,7 @@ buildCounterBatchGetAmpUrlsRequest++; if (buildCounterBatchGetAmpUrlsRequest < 3) { o.lookupStrategy = "foo"; - o.urls = buildUnnamed1172(); + o.urls = buildUnnamed1179(); } buildCounterBatchGetAmpUrlsRequest--; return o; @@ -126,32 +126,32 @@ buildCounterBatchGetAmpUrlsRequest++; if (buildCounterBatchGetAmpUrlsRequest < 3) { unittest.expect(o.lookupStrategy, unittest.equals('foo')); - checkUnnamed1172(o.urls); + checkUnnamed1179(o.urls); } buildCounterBatchGetAmpUrlsRequest--; } -buildUnnamed1173() { +buildUnnamed1180() { var o = new core.List<api.AmpUrl>(); o.add(buildAmpUrl()); o.add(buildAmpUrl()); return o; } -checkUnnamed1173(core.List<api.AmpUrl> o) { +checkUnnamed1180(core.List<api.AmpUrl> o) { unittest.expect(o, unittest.hasLength(2)); checkAmpUrl(o[0]); checkAmpUrl(o[1]); } -buildUnnamed1174() { +buildUnnamed1181() { var o = new core.List<api.AmpUrlError>(); o.add(buildAmpUrlError()); o.add(buildAmpUrlError()); return o; } -checkUnnamed1174(core.List<api.AmpUrlError> o) { +checkUnnamed1181(core.List<api.AmpUrlError> o) { unittest.expect(o, unittest.hasLength(2)); checkAmpUrlError(o[0]); checkAmpUrlError(o[1]); @@ -162,8 +162,8 @@ var o = new api.BatchGetAmpUrlsResponse(); buildCounterBatchGetAmpUrlsResponse++; if (buildCounterBatchGetAmpUrlsResponse < 3) { - o.ampUrls = buildUnnamed1173(); - o.urlErrors = buildUnnamed1174(); + o.ampUrls = buildUnnamed1180(); + o.urlErrors = buildUnnamed1181(); } buildCounterBatchGetAmpUrlsResponse--; return o; @@ -172,8 +172,8 @@ checkBatchGetAmpUrlsResponse(api.BatchGetAmpUrlsResponse o) { buildCounterBatchGetAmpUrlsResponse++; if (buildCounterBatchGetAmpUrlsResponse < 3) { - checkUnnamed1173(o.ampUrls); - checkUnnamed1174(o.urlErrors); + checkUnnamed1180(o.ampUrls); + checkUnnamed1181(o.urlErrors); } buildCounterBatchGetAmpUrlsResponse--; } @@ -222,7 +222,7 @@ var mock = new HttpServerMock(); api.AmpUrlsResourceApi res = new api.AcceleratedmobilepageurlApi(mock).ampUrls; var arg_request = buildBatchGetAmpUrlsRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.BatchGetAmpUrlsRequest.fromJson(json); checkBatchGetAmpUrlsRequest(obj); @@ -259,7 +259,7 @@ var resp = convert.JSON.encode(buildBatchGetAmpUrlsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.batchGet(arg_request).then(unittest.expectAsync(((api.BatchGetAmpUrlsResponse response) { + res.batchGet(arg_request).then(unittest.expectAsync1(((api.BatchGetAmpUrlsResponse response) { checkBatchGetAmpUrlsResponse(response); }))); });
diff --git a/generated/googleapis/test/admin/datatransfer_v1_test.dart b/generated/googleapis/test/admin/datatransfer_v1_test.dart index 341336b..9a26956 100644 --- a/generated/googleapis/test/admin/datatransfer_v1_test.dart +++ b/generated/googleapis/test/admin/datatransfer_v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/admin/datatransfer_v1.dart' as api; @@ -46,19 +46,19 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed111() { +buildUnnamed113() { var o = new core.List<api.ApplicationTransferParam>(); o.add(buildApplicationTransferParam()); o.add(buildApplicationTransferParam()); return o; } -checkUnnamed111(core.List<api.ApplicationTransferParam> o) { +checkUnnamed113(core.List<api.ApplicationTransferParam> o) { unittest.expect(o, unittest.hasLength(2)); checkApplicationTransferParam(o[0]); checkApplicationTransferParam(o[1]); @@ -73,7 +73,7 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.transferParams = buildUnnamed111(); + o.transferParams = buildUnnamed113(); } buildCounterApplication--; return o; @@ -86,19 +86,19 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed111(o.transferParams); + checkUnnamed113(o.transferParams); } buildCounterApplication--; } -buildUnnamed112() { +buildUnnamed114() { var o = new core.List<api.ApplicationTransferParam>(); o.add(buildApplicationTransferParam()); o.add(buildApplicationTransferParam()); return o; } -checkUnnamed112(core.List<api.ApplicationTransferParam> o) { +checkUnnamed114(core.List<api.ApplicationTransferParam> o) { unittest.expect(o, unittest.hasLength(2)); checkApplicationTransferParam(o[0]); checkApplicationTransferParam(o[1]); @@ -110,7 +110,7 @@ buildCounterApplicationDataTransfer++; if (buildCounterApplicationDataTransfer < 3) { o.applicationId = "foo"; - o.applicationTransferParams = buildUnnamed112(); + o.applicationTransferParams = buildUnnamed114(); o.applicationTransferStatus = "foo"; } buildCounterApplicationDataTransfer--; @@ -121,20 +121,20 @@ buildCounterApplicationDataTransfer++; if (buildCounterApplicationDataTransfer < 3) { unittest.expect(o.applicationId, unittest.equals('foo')); - checkUnnamed112(o.applicationTransferParams); + checkUnnamed114(o.applicationTransferParams); unittest.expect(o.applicationTransferStatus, unittest.equals('foo')); } buildCounterApplicationDataTransfer--; } -buildUnnamed113() { +buildUnnamed115() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed113(core.List<core.String> o) { +checkUnnamed115(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -146,7 +146,7 @@ buildCounterApplicationTransferParam++; if (buildCounterApplicationTransferParam < 3) { o.key = "foo"; - o.value = buildUnnamed113(); + o.value = buildUnnamed115(); } buildCounterApplicationTransferParam--; return o; @@ -156,19 +156,19 @@ buildCounterApplicationTransferParam++; if (buildCounterApplicationTransferParam < 3) { unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed113(o.value); + checkUnnamed115(o.value); } buildCounterApplicationTransferParam--; } -buildUnnamed114() { +buildUnnamed116() { var o = new core.List<api.Application>(); o.add(buildApplication()); o.add(buildApplication()); return o; } -checkUnnamed114(core.List<api.Application> o) { +checkUnnamed116(core.List<api.Application> o) { unittest.expect(o, unittest.hasLength(2)); checkApplication(o[0]); checkApplication(o[1]); @@ -179,7 +179,7 @@ var o = new api.ApplicationsListResponse(); buildCounterApplicationsListResponse++; if (buildCounterApplicationsListResponse < 3) { - o.applications = buildUnnamed114(); + o.applications = buildUnnamed116(); o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; @@ -191,7 +191,7 @@ checkApplicationsListResponse(api.ApplicationsListResponse o) { buildCounterApplicationsListResponse++; if (buildCounterApplicationsListResponse < 3) { - checkUnnamed114(o.applications); + checkUnnamed116(o.applications); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -199,14 +199,14 @@ buildCounterApplicationsListResponse--; } -buildUnnamed115() { +buildUnnamed117() { var o = new core.List<api.ApplicationDataTransfer>(); o.add(buildApplicationDataTransfer()); o.add(buildApplicationDataTransfer()); return o; } -checkUnnamed115(core.List<api.ApplicationDataTransfer> o) { +checkUnnamed117(core.List<api.ApplicationDataTransfer> o) { unittest.expect(o, unittest.hasLength(2)); checkApplicationDataTransfer(o[0]); checkApplicationDataTransfer(o[1]); @@ -217,7 +217,7 @@ var o = new api.DataTransfer(); buildCounterDataTransfer++; if (buildCounterDataTransfer < 3) { - o.applicationDataTransfers = buildUnnamed115(); + o.applicationDataTransfers = buildUnnamed117(); o.etag = "foo"; o.id = "foo"; o.kind = "foo"; @@ -233,7 +233,7 @@ checkDataTransfer(api.DataTransfer o) { buildCounterDataTransfer++; if (buildCounterDataTransfer < 3) { - checkUnnamed115(o.applicationDataTransfers); + checkUnnamed117(o.applicationDataTransfers); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -245,14 +245,14 @@ buildCounterDataTransfer--; } -buildUnnamed116() { +buildUnnamed118() { var o = new core.List<api.DataTransfer>(); o.add(buildDataTransfer()); o.add(buildDataTransfer()); return o; } -checkUnnamed116(core.List<api.DataTransfer> o) { +checkUnnamed118(core.List<api.DataTransfer> o) { unittest.expect(o, unittest.hasLength(2)); checkDataTransfer(o[0]); checkDataTransfer(o[1]); @@ -263,7 +263,7 @@ var o = new api.DataTransfersListResponse(); buildCounterDataTransfersListResponse++; if (buildCounterDataTransfersListResponse < 3) { - o.dataTransfers = buildUnnamed116(); + o.dataTransfers = buildUnnamed118(); o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; @@ -275,7 +275,7 @@ checkDataTransfersListResponse(api.DataTransfersListResponse o) { buildCounterDataTransfersListResponse++; if (buildCounterDataTransfersListResponse < 3) { - checkUnnamed116(o.dataTransfers); + checkUnnamed118(o.dataTransfers); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -345,7 +345,7 @@ var mock = new HttpServerMock(); api.ApplicationsResourceApi res = new api.AdminApi(mock).applications; var arg_applicationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -384,7 +384,7 @@ var resp = convert.JSON.encode(buildApplication()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_applicationId).then(unittest.expectAsync(((api.Application response) { + res.get(arg_applicationId).then(unittest.expectAsync1(((api.Application response) { checkApplication(response); }))); }); @@ -396,7 +396,7 @@ var arg_customerId = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -435,7 +435,7 @@ var resp = convert.JSON.encode(buildApplicationsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(customerId: arg_customerId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ApplicationsListResponse response) { + res.list(customerId: arg_customerId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ApplicationsListResponse response) { checkApplicationsListResponse(response); }))); }); @@ -449,7 +449,7 @@ var mock = new HttpServerMock(); api.TransfersResourceApi res = new api.AdminApi(mock).transfers; var arg_dataTransferId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -488,7 +488,7 @@ var resp = convert.JSON.encode(buildDataTransfer()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_dataTransferId).then(unittest.expectAsync(((api.DataTransfer response) { + res.get(arg_dataTransferId).then(unittest.expectAsync1(((api.DataTransfer response) { checkDataTransfer(response); }))); }); @@ -498,7 +498,7 @@ var mock = new HttpServerMock(); api.TransfersResourceApi res = new api.AdminApi(mock).transfers; var arg_request = buildDataTransfer(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DataTransfer.fromJson(json); checkDataTransfer(obj); @@ -537,7 +537,7 @@ var resp = convert.JSON.encode(buildDataTransfer()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request).then(unittest.expectAsync(((api.DataTransfer response) { + res.insert(arg_request).then(unittest.expectAsync1(((api.DataTransfer response) { checkDataTransfer(response); }))); }); @@ -552,7 +552,7 @@ var arg_oldOwnerUserId = "foo"; var arg_pageToken = "foo"; var arg_status = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -594,7 +594,7 @@ var resp = convert.JSON.encode(buildDataTransfersListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(customerId: arg_customerId, maxResults: arg_maxResults, newOwnerUserId: arg_newOwnerUserId, oldOwnerUserId: arg_oldOwnerUserId, pageToken: arg_pageToken, status: arg_status).then(unittest.expectAsync(((api.DataTransfersListResponse response) { + res.list(customerId: arg_customerId, maxResults: arg_maxResults, newOwnerUserId: arg_newOwnerUserId, oldOwnerUserId: arg_oldOwnerUserId, pageToken: arg_pageToken, status: arg_status).then(unittest.expectAsync1(((api.DataTransfersListResponse response) { checkDataTransfersListResponse(response); }))); });
diff --git a/generated/googleapis/test/admin/directory_v1_test.dart b/generated/googleapis/test/admin/directory_v1_test.dart index 7b5bf9f..b4d8a44 100644 --- a/generated/googleapis/test/admin/directory_v1_test.dart +++ b/generated/googleapis/test/admin/directory_v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/admin/directory_v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -78,14 +78,14 @@ buildCounterAlias--; } -buildUnnamed732() { +buildUnnamed739() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed732(core.List<core.Object> o) { +checkUnnamed739(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -96,7 +96,7 @@ var o = new api.Aliases(); buildCounterAliases++; if (buildCounterAliases < 3) { - o.aliases = buildUnnamed732(); + o.aliases = buildUnnamed739(); o.etag = "foo"; o.kind = "foo"; } @@ -107,7 +107,7 @@ checkAliases(api.Aliases o) { buildCounterAliases++; if (buildCounterAliases < 3) { - checkUnnamed732(o.aliases); + checkUnnamed739(o.aliases); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } @@ -145,14 +145,14 @@ buildCounterAsp--; } -buildUnnamed733() { +buildUnnamed740() { var o = new core.List<api.Asp>(); o.add(buildAsp()); o.add(buildAsp()); return o; } -checkUnnamed733(core.List<api.Asp> o) { +checkUnnamed740(core.List<api.Asp> o) { unittest.expect(o, unittest.hasLength(2)); checkAsp(o[0]); checkAsp(o[1]); @@ -164,7 +164,7 @@ buildCounterAsps++; if (buildCounterAsps < 3) { o.etag = "foo"; - o.items = buildUnnamed733(); + o.items = buildUnnamed740(); o.kind = "foo"; } buildCounterAsps--; @@ -175,7 +175,7 @@ buildCounterAsps++; if (buildCounterAsps < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed733(o.items); + checkUnnamed740(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAsps--; @@ -212,14 +212,14 @@ buildCounterCalendarResource--; } -buildUnnamed734() { +buildUnnamed741() { var o = new core.List<api.CalendarResource>(); o.add(buildCalendarResource()); o.add(buildCalendarResource()); return o; } -checkUnnamed734(core.List<api.CalendarResource> o) { +checkUnnamed741(core.List<api.CalendarResource> o) { unittest.expect(o, unittest.hasLength(2)); checkCalendarResource(o[0]); checkCalendarResource(o[1]); @@ -231,7 +231,7 @@ buildCounterCalendarResources++; if (buildCounterCalendarResources < 3) { o.etag = "foo"; - o.items = buildUnnamed734(); + o.items = buildUnnamed741(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -243,21 +243,21 @@ buildCounterCalendarResources++; if (buildCounterCalendarResources < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed734(o.items); + checkUnnamed741(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCalendarResources--; } -buildUnnamed735() { +buildUnnamed742() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed735(core.Map<core.String, core.String> o) { +checkUnnamed742(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -272,7 +272,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed735(); + o.params = buildUnnamed742(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -290,7 +290,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed735(o.params); + checkUnnamed742(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -321,14 +321,14 @@ buildCounterChromeOsDeviceActiveTimeRanges--; } -buildUnnamed736() { +buildUnnamed743() { var o = new core.List<api.ChromeOsDeviceActiveTimeRanges>(); o.add(buildChromeOsDeviceActiveTimeRanges()); o.add(buildChromeOsDeviceActiveTimeRanges()); return o; } -checkUnnamed736(core.List<api.ChromeOsDeviceActiveTimeRanges> o) { +checkUnnamed743(core.List<api.ChromeOsDeviceActiveTimeRanges> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDeviceActiveTimeRanges(o[0]); checkChromeOsDeviceActiveTimeRanges(o[1]); @@ -355,14 +355,14 @@ buildCounterChromeOsDeviceRecentUsers--; } -buildUnnamed737() { +buildUnnamed744() { var o = new core.List<api.ChromeOsDeviceRecentUsers>(); o.add(buildChromeOsDeviceRecentUsers()); o.add(buildChromeOsDeviceRecentUsers()); return o; } -checkUnnamed737(core.List<api.ChromeOsDeviceRecentUsers> o) { +checkUnnamed744(core.List<api.ChromeOsDeviceRecentUsers> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDeviceRecentUsers(o[0]); checkChromeOsDeviceRecentUsers(o[1]); @@ -373,7 +373,7 @@ var o = new api.ChromeOsDevice(); buildCounterChromeOsDevice++; if (buildCounterChromeOsDevice < 3) { - o.activeTimeRanges = buildUnnamed736(); + o.activeTimeRanges = buildUnnamed743(); o.annotatedAssetId = "foo"; o.annotatedLocation = "foo"; o.annotatedUser = "foo"; @@ -393,7 +393,7 @@ o.orgUnitPath = "foo"; o.osVersion = "foo"; o.platformVersion = "foo"; - o.recentUsers = buildUnnamed737(); + o.recentUsers = buildUnnamed744(); o.serialNumber = "foo"; o.status = "foo"; o.supportEndDate = core.DateTime.parse("2002-02-27T14:01:02"); @@ -406,7 +406,7 @@ checkChromeOsDevice(api.ChromeOsDevice o) { buildCounterChromeOsDevice++; if (buildCounterChromeOsDevice < 3) { - checkUnnamed736(o.activeTimeRanges); + checkUnnamed743(o.activeTimeRanges); unittest.expect(o.annotatedAssetId, unittest.equals('foo')); unittest.expect(o.annotatedLocation, unittest.equals('foo')); unittest.expect(o.annotatedUser, unittest.equals('foo')); @@ -426,7 +426,7 @@ unittest.expect(o.orgUnitPath, unittest.equals('foo')); unittest.expect(o.osVersion, unittest.equals('foo')); unittest.expect(o.platformVersion, unittest.equals('foo')); - checkUnnamed737(o.recentUsers); + checkUnnamed744(o.recentUsers); unittest.expect(o.serialNumber, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.supportEndDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -456,14 +456,14 @@ buildCounterChromeOsDeviceAction--; } -buildUnnamed738() { +buildUnnamed745() { var o = new core.List<api.ChromeOsDevice>(); o.add(buildChromeOsDevice()); o.add(buildChromeOsDevice()); return o; } -checkUnnamed738(core.List<api.ChromeOsDevice> o) { +checkUnnamed745(core.List<api.ChromeOsDevice> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDevice(o[0]); checkChromeOsDevice(o[1]); @@ -474,7 +474,7 @@ var o = new api.ChromeOsDevices(); buildCounterChromeOsDevices++; if (buildCounterChromeOsDevices < 3) { - o.chromeosdevices = buildUnnamed738(); + o.chromeosdevices = buildUnnamed745(); o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; @@ -486,7 +486,7 @@ checkChromeOsDevices(api.ChromeOsDevices o) { buildCounterChromeOsDevices++; if (buildCounterChromeOsDevices < 3) { - checkUnnamed738(o.chromeosdevices); + checkUnnamed745(o.chromeosdevices); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -593,14 +593,14 @@ buildCounterDomainAlias--; } -buildUnnamed739() { +buildUnnamed746() { var o = new core.List<api.DomainAlias>(); o.add(buildDomainAlias()); o.add(buildDomainAlias()); return o; } -checkUnnamed739(core.List<api.DomainAlias> o) { +checkUnnamed746(core.List<api.DomainAlias> o) { unittest.expect(o, unittest.hasLength(2)); checkDomainAlias(o[0]); checkDomainAlias(o[1]); @@ -611,7 +611,7 @@ var o = new api.DomainAliases(); buildCounterDomainAliases++; if (buildCounterDomainAliases < 3) { - o.domainAliases = buildUnnamed739(); + o.domainAliases = buildUnnamed746(); o.etag = "foo"; o.kind = "foo"; } @@ -622,21 +622,21 @@ checkDomainAliases(api.DomainAliases o) { buildCounterDomainAliases++; if (buildCounterDomainAliases < 3) { - checkUnnamed739(o.domainAliases); + checkUnnamed746(o.domainAliases); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDomainAliases--; } -buildUnnamed740() { +buildUnnamed747() { var o = new core.List<api.DomainAlias>(); o.add(buildDomainAlias()); o.add(buildDomainAlias()); return o; } -checkUnnamed740(core.List<api.DomainAlias> o) { +checkUnnamed747(core.List<api.DomainAlias> o) { unittest.expect(o, unittest.hasLength(2)); checkDomainAlias(o[0]); checkDomainAlias(o[1]); @@ -648,7 +648,7 @@ buildCounterDomains++; if (buildCounterDomains < 3) { o.creationTime = "foo"; - o.domainAliases = buildUnnamed740(); + o.domainAliases = buildUnnamed747(); o.domainName = "foo"; o.etag = "foo"; o.isPrimary = true; @@ -663,7 +663,7 @@ buildCounterDomains++; if (buildCounterDomains < 3) { unittest.expect(o.creationTime, unittest.equals('foo')); - checkUnnamed740(o.domainAliases); + checkUnnamed747(o.domainAliases); unittest.expect(o.domainName, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.isPrimary, unittest.isTrue); @@ -673,14 +673,14 @@ buildCounterDomains--; } -buildUnnamed741() { +buildUnnamed748() { var o = new core.List<api.Domains>(); o.add(buildDomains()); o.add(buildDomains()); return o; } -checkUnnamed741(core.List<api.Domains> o) { +checkUnnamed748(core.List<api.Domains> o) { unittest.expect(o, unittest.hasLength(2)); checkDomains(o[0]); checkDomains(o[1]); @@ -691,7 +691,7 @@ var o = new api.Domains2(); buildCounterDomains2++; if (buildCounterDomains2 < 3) { - o.domains = buildUnnamed741(); + o.domains = buildUnnamed748(); o.etag = "foo"; o.kind = "foo"; } @@ -702,34 +702,34 @@ checkDomains2(api.Domains2 o) { buildCounterDomains2++; if (buildCounterDomains2 < 3) { - checkUnnamed741(o.domains); + checkUnnamed748(o.domains); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDomains2--; } -buildUnnamed742() { +buildUnnamed749() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed742(core.List<core.String> o) { +checkUnnamed749(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed743() { +buildUnnamed750() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed743(core.List<core.String> o) { +checkUnnamed750(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -741,7 +741,7 @@ buildCounterGroup++; if (buildCounterGroup < 3) { o.adminCreated = true; - o.aliases = buildUnnamed742(); + o.aliases = buildUnnamed749(); o.description = "foo"; o.directMembersCount = "foo"; o.email = "foo"; @@ -749,7 +749,7 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.nonEditableAliases = buildUnnamed743(); + o.nonEditableAliases = buildUnnamed750(); } buildCounterGroup--; return o; @@ -759,7 +759,7 @@ buildCounterGroup++; if (buildCounterGroup < 3) { unittest.expect(o.adminCreated, unittest.isTrue); - checkUnnamed742(o.aliases); + checkUnnamed749(o.aliases); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.directMembersCount, unittest.equals('foo')); unittest.expect(o.email, unittest.equals('foo')); @@ -767,19 +767,19 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed743(o.nonEditableAliases); + checkUnnamed750(o.nonEditableAliases); } buildCounterGroup--; } -buildUnnamed744() { +buildUnnamed751() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed744(core.List<api.Group> o) { +checkUnnamed751(core.List<api.Group> o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); @@ -791,7 +791,7 @@ buildCounterGroups++; if (buildCounterGroups < 3) { o.etag = "foo"; - o.groups = buildUnnamed744(); + o.groups = buildUnnamed751(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -803,7 +803,7 @@ buildCounterGroups++; if (buildCounterGroups < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed744(o.groups); + checkUnnamed751(o.groups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -841,14 +841,14 @@ buildCounterMember--; } -buildUnnamed745() { +buildUnnamed752() { var o = new core.List<api.Member>(); o.add(buildMember()); o.add(buildMember()); return o; } -checkUnnamed745(core.List<api.Member> o) { +checkUnnamed752(core.List<api.Member> o) { unittest.expect(o, unittest.hasLength(2)); checkMember(o[0]); checkMember(o[1]); @@ -861,7 +861,7 @@ if (buildCounterMembers < 3) { o.etag = "foo"; o.kind = "foo"; - o.members = buildUnnamed745(); + o.members = buildUnnamed752(); o.nextPageToken = "foo"; } buildCounterMembers--; @@ -873,20 +873,20 @@ if (buildCounterMembers < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed745(o.members); + checkUnnamed752(o.members); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterMembers--; } -buildUnnamed746() { +buildUnnamed753() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed746(core.List<core.String> o) { +checkUnnamed753(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -899,7 +899,7 @@ if (buildCounterMobileDeviceApplications < 3) { o.displayName = "foo"; o.packageName = "foo"; - o.permission = buildUnnamed746(); + o.permission = buildUnnamed753(); o.versionCode = 42; o.versionName = "foo"; } @@ -912,60 +912,60 @@ if (buildCounterMobileDeviceApplications < 3) { unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.packageName, unittest.equals('foo')); - checkUnnamed746(o.permission); + checkUnnamed753(o.permission); unittest.expect(o.versionCode, unittest.equals(42)); unittest.expect(o.versionName, unittest.equals('foo')); } buildCounterMobileDeviceApplications--; } -buildUnnamed747() { +buildUnnamed754() { var o = new core.List<api.MobileDeviceApplications>(); o.add(buildMobileDeviceApplications()); o.add(buildMobileDeviceApplications()); return o; } -checkUnnamed747(core.List<api.MobileDeviceApplications> o) { +checkUnnamed754(core.List<api.MobileDeviceApplications> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileDeviceApplications(o[0]); checkMobileDeviceApplications(o[1]); } -buildUnnamed748() { +buildUnnamed755() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed748(core.List<core.String> o) { +checkUnnamed755(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed749() { +buildUnnamed756() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed749(core.List<core.String> o) { +checkUnnamed756(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed750() { +buildUnnamed757() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed750(core.List<core.String> o) { +checkUnnamed757(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -977,7 +977,7 @@ buildCounterMobileDevice++; if (buildCounterMobileDevice < 3) { o.adbStatus = true; - o.applications = buildUnnamed747(); + o.applications = buildUnnamed754(); o.basebandVersion = "foo"; o.bootloaderVersion = "foo"; o.brand = "foo"; @@ -987,7 +987,7 @@ o.deviceCompromisedStatus = "foo"; o.deviceId = "foo"; o.devicePasswordStatus = "foo"; - o.email = buildUnnamed748(); + o.email = buildUnnamed755(); o.encryptionStatus = "foo"; o.etag = "foo"; o.firstSync = core.DateTime.parse("2002-02-27T14:01:02"); @@ -1001,10 +1001,10 @@ o.manufacturer = "foo"; o.meid = "foo"; o.model = "foo"; - o.name = buildUnnamed749(); + o.name = buildUnnamed756(); o.networkOperator = "foo"; o.os = "foo"; - o.otherAccountsInfo = buildUnnamed750(); + o.otherAccountsInfo = buildUnnamed757(); o.privilege = "foo"; o.releaseVersion = "foo"; o.resourceId = "foo"; @@ -1025,7 +1025,7 @@ buildCounterMobileDevice++; if (buildCounterMobileDevice < 3) { unittest.expect(o.adbStatus, unittest.isTrue); - checkUnnamed747(o.applications); + checkUnnamed754(o.applications); unittest.expect(o.basebandVersion, unittest.equals('foo')); unittest.expect(o.bootloaderVersion, unittest.equals('foo')); unittest.expect(o.brand, unittest.equals('foo')); @@ -1035,7 +1035,7 @@ unittest.expect(o.deviceCompromisedStatus, unittest.equals('foo')); unittest.expect(o.deviceId, unittest.equals('foo')); unittest.expect(o.devicePasswordStatus, unittest.equals('foo')); - checkUnnamed748(o.email); + checkUnnamed755(o.email); unittest.expect(o.encryptionStatus, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.firstSync, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -1049,10 +1049,10 @@ unittest.expect(o.manufacturer, unittest.equals('foo')); unittest.expect(o.meid, unittest.equals('foo')); unittest.expect(o.model, unittest.equals('foo')); - checkUnnamed749(o.name); + checkUnnamed756(o.name); unittest.expect(o.networkOperator, unittest.equals('foo')); unittest.expect(o.os, unittest.equals('foo')); - checkUnnamed750(o.otherAccountsInfo); + checkUnnamed757(o.otherAccountsInfo); unittest.expect(o.privilege, unittest.equals('foo')); unittest.expect(o.releaseVersion, unittest.equals('foo')); unittest.expect(o.resourceId, unittest.equals('foo')); @@ -1087,14 +1087,14 @@ buildCounterMobileDeviceAction--; } -buildUnnamed751() { +buildUnnamed758() { var o = new core.List<api.MobileDevice>(); o.add(buildMobileDevice()); o.add(buildMobileDevice()); return o; } -checkUnnamed751(core.List<api.MobileDevice> o) { +checkUnnamed758(core.List<api.MobileDevice> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileDevice(o[0]); checkMobileDevice(o[1]); @@ -1107,7 +1107,7 @@ if (buildCounterMobileDevices < 3) { o.etag = "foo"; o.kind = "foo"; - o.mobiledevices = buildUnnamed751(); + o.mobiledevices = buildUnnamed758(); o.nextPageToken = "foo"; } buildCounterMobileDevices--; @@ -1119,7 +1119,7 @@ if (buildCounterMobileDevices < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed751(o.mobiledevices); + checkUnnamed758(o.mobiledevices); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterMobileDevices--; @@ -1158,14 +1158,14 @@ buildCounterNotification--; } -buildUnnamed752() { +buildUnnamed759() { var o = new core.List<api.Notification>(); o.add(buildNotification()); o.add(buildNotification()); return o; } -checkUnnamed752(core.List<api.Notification> o) { +checkUnnamed759(core.List<api.Notification> o) { unittest.expect(o, unittest.hasLength(2)); checkNotification(o[0]); checkNotification(o[1]); @@ -1177,7 +1177,7 @@ buildCounterNotifications++; if (buildCounterNotifications < 3) { o.etag = "foo"; - o.items = buildUnnamed752(); + o.items = buildUnnamed759(); o.kind = "foo"; o.nextPageToken = "foo"; o.unreadNotificationsCount = 42; @@ -1190,7 +1190,7 @@ buildCounterNotifications++; if (buildCounterNotifications < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed752(o.items); + checkUnnamed759(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.unreadNotificationsCount, unittest.equals(42)); @@ -1233,14 +1233,14 @@ buildCounterOrgUnit--; } -buildUnnamed753() { +buildUnnamed760() { var o = new core.List<api.OrgUnit>(); o.add(buildOrgUnit()); o.add(buildOrgUnit()); return o; } -checkUnnamed753(core.List<api.OrgUnit> o) { +checkUnnamed760(core.List<api.OrgUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkOrgUnit(o[0]); checkOrgUnit(o[1]); @@ -1253,7 +1253,7 @@ if (buildCounterOrgUnits < 3) { o.etag = "foo"; o.kind = "foo"; - o.organizationUnits = buildUnnamed753(); + o.organizationUnits = buildUnnamed760(); } buildCounterOrgUnits--; return o; @@ -1264,19 +1264,19 @@ if (buildCounterOrgUnits < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed753(o.organizationUnits); + checkUnnamed760(o.organizationUnits); } buildCounterOrgUnits--; } -buildUnnamed754() { +buildUnnamed761() { var o = new core.List<api.Privilege>(); o.add(buildPrivilege()); o.add(buildPrivilege()); return o; } -checkUnnamed754(core.List<api.Privilege> o) { +checkUnnamed761(core.List<api.Privilege> o) { unittest.expect(o, unittest.hasLength(2)); checkPrivilege(o[0]); checkPrivilege(o[1]); @@ -1287,7 +1287,7 @@ var o = new api.Privilege(); buildCounterPrivilege++; if (buildCounterPrivilege < 3) { - o.childPrivileges = buildUnnamed754(); + o.childPrivileges = buildUnnamed761(); o.etag = "foo"; o.isOuScopable = true; o.kind = "foo"; @@ -1302,7 +1302,7 @@ checkPrivilege(api.Privilege o) { buildCounterPrivilege++; if (buildCounterPrivilege < 3) { - checkUnnamed754(o.childPrivileges); + checkUnnamed761(o.childPrivileges); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.isOuScopable, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -1313,14 +1313,14 @@ buildCounterPrivilege--; } -buildUnnamed755() { +buildUnnamed762() { var o = new core.List<api.Privilege>(); o.add(buildPrivilege()); o.add(buildPrivilege()); return o; } -checkUnnamed755(core.List<api.Privilege> o) { +checkUnnamed762(core.List<api.Privilege> o) { unittest.expect(o, unittest.hasLength(2)); checkPrivilege(o[0]); checkPrivilege(o[1]); @@ -1332,7 +1332,7 @@ buildCounterPrivileges++; if (buildCounterPrivileges < 3) { o.etag = "foo"; - o.items = buildUnnamed755(); + o.items = buildUnnamed762(); o.kind = "foo"; } buildCounterPrivileges--; @@ -1343,7 +1343,7 @@ buildCounterPrivileges++; if (buildCounterPrivileges < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed755(o.items); + checkUnnamed762(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPrivileges--; @@ -1370,14 +1370,14 @@ buildCounterRoleRolePrivileges--; } -buildUnnamed756() { +buildUnnamed763() { var o = new core.List<api.RoleRolePrivileges>(); o.add(buildRoleRolePrivileges()); o.add(buildRoleRolePrivileges()); return o; } -checkUnnamed756(core.List<api.RoleRolePrivileges> o) { +checkUnnamed763(core.List<api.RoleRolePrivileges> o) { unittest.expect(o, unittest.hasLength(2)); checkRoleRolePrivileges(o[0]); checkRoleRolePrivileges(o[1]); @@ -1395,7 +1395,7 @@ o.roleDescription = "foo"; o.roleId = "foo"; o.roleName = "foo"; - o.rolePrivileges = buildUnnamed756(); + o.rolePrivileges = buildUnnamed763(); } buildCounterRole--; return o; @@ -1411,7 +1411,7 @@ unittest.expect(o.roleDescription, unittest.equals('foo')); unittest.expect(o.roleId, unittest.equals('foo')); unittest.expect(o.roleName, unittest.equals('foo')); - checkUnnamed756(o.rolePrivileges); + checkUnnamed763(o.rolePrivileges); } buildCounterRole--; } @@ -1447,14 +1447,14 @@ buildCounterRoleAssignment--; } -buildUnnamed757() { +buildUnnamed764() { var o = new core.List<api.RoleAssignment>(); o.add(buildRoleAssignment()); o.add(buildRoleAssignment()); return o; } -checkUnnamed757(core.List<api.RoleAssignment> o) { +checkUnnamed764(core.List<api.RoleAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkRoleAssignment(o[0]); checkRoleAssignment(o[1]); @@ -1466,7 +1466,7 @@ buildCounterRoleAssignments++; if (buildCounterRoleAssignments < 3) { o.etag = "foo"; - o.items = buildUnnamed757(); + o.items = buildUnnamed764(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1478,21 +1478,21 @@ buildCounterRoleAssignments++; if (buildCounterRoleAssignments < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed757(o.items); + checkUnnamed764(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterRoleAssignments--; } -buildUnnamed758() { +buildUnnamed765() { var o = new core.List<api.Role>(); o.add(buildRole()); o.add(buildRole()); return o; } -checkUnnamed758(core.List<api.Role> o) { +checkUnnamed765(core.List<api.Role> o) { unittest.expect(o, unittest.hasLength(2)); checkRole(o[0]); checkRole(o[1]); @@ -1504,7 +1504,7 @@ buildCounterRoles++; if (buildCounterRoles < 3) { o.etag = "foo"; - o.items = buildUnnamed758(); + o.items = buildUnnamed765(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1516,21 +1516,21 @@ buildCounterRoles++; if (buildCounterRoles < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed758(o.items); + checkUnnamed765(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterRoles--; } -buildUnnamed759() { +buildUnnamed766() { var o = new core.List<api.SchemaFieldSpec>(); o.add(buildSchemaFieldSpec()); o.add(buildSchemaFieldSpec()); return o; } -checkUnnamed759(core.List<api.SchemaFieldSpec> o) { +checkUnnamed766(core.List<api.SchemaFieldSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkSchemaFieldSpec(o[0]); checkSchemaFieldSpec(o[1]); @@ -1542,7 +1542,7 @@ buildCounterSchema++; if (buildCounterSchema < 3) { o.etag = "foo"; - o.fields = buildUnnamed759(); + o.fields = buildUnnamed766(); o.kind = "foo"; o.schemaId = "foo"; o.schemaName = "foo"; @@ -1555,7 +1555,7 @@ buildCounterSchema++; if (buildCounterSchema < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed759(o.fields); + checkUnnamed766(o.fields); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.schemaId, unittest.equals('foo')); unittest.expect(o.schemaName, unittest.equals('foo')); @@ -1619,14 +1619,14 @@ buildCounterSchemaFieldSpec--; } -buildUnnamed760() { +buildUnnamed767() { var o = new core.List<api.Schema>(); o.add(buildSchema()); o.add(buildSchema()); return o; } -checkUnnamed760(core.List<api.Schema> o) { +checkUnnamed767(core.List<api.Schema> o) { unittest.expect(o, unittest.hasLength(2)); checkSchema(o[0]); checkSchema(o[1]); @@ -1639,7 +1639,7 @@ if (buildCounterSchemas < 3) { o.etag = "foo"; o.kind = "foo"; - o.schemas = buildUnnamed760(); + o.schemas = buildUnnamed767(); } buildCounterSchemas--; return o; @@ -1650,19 +1650,19 @@ if (buildCounterSchemas < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed760(o.schemas); + checkUnnamed767(o.schemas); } buildCounterSchemas--; } -buildUnnamed761() { +buildUnnamed768() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed761(core.List<core.String> o) { +checkUnnamed768(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1679,7 +1679,7 @@ o.etag = "foo"; o.kind = "foo"; o.nativeApp = true; - o.scopes = buildUnnamed761(); + o.scopes = buildUnnamed768(); o.userKey = "foo"; } buildCounterToken--; @@ -1695,20 +1695,20 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nativeApp, unittest.isTrue); - checkUnnamed761(o.scopes); + checkUnnamed768(o.scopes); unittest.expect(o.userKey, unittest.equals('foo')); } buildCounterToken--; } -buildUnnamed762() { +buildUnnamed769() { var o = new core.List<api.Token>(); o.add(buildToken()); o.add(buildToken()); return o; } -checkUnnamed762(core.List<api.Token> o) { +checkUnnamed769(core.List<api.Token> o) { unittest.expect(o, unittest.hasLength(2)); checkToken(o[0]); checkToken(o[1]); @@ -1720,7 +1720,7 @@ buildCounterTokens++; if (buildCounterTokens < 3) { o.etag = "foo"; - o.items = buildUnnamed762(); + o.items = buildUnnamed769(); o.kind = "foo"; } buildCounterTokens--; @@ -1731,46 +1731,46 @@ buildCounterTokens++; if (buildCounterTokens < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed762(o.items); + checkUnnamed769(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTokens--; } -buildUnnamed763() { +buildUnnamed770() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed763(core.List<core.String> o) { +checkUnnamed770(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed764() { +buildUnnamed771() { var o = new core.Map<core.String, api.UserCustomProperties>(); o["x"] = buildUserCustomProperties(); o["y"] = buildUserCustomProperties(); return o; } -checkUnnamed764(core.Map<core.String, api.UserCustomProperties> o) { +checkUnnamed771(core.Map<core.String, api.UserCustomProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkUserCustomProperties(o["x"]); checkUserCustomProperties(o["y"]); } -buildUnnamed765() { +buildUnnamed772() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed765(core.List<core.String> o) { +checkUnnamed772(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1783,10 +1783,10 @@ if (buildCounterUser < 3) { o.addresses = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.agreedToTerms = true; - o.aliases = buildUnnamed763(); + o.aliases = buildUnnamed770(); o.changePasswordAtNextLogin = true; o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.customSchemas = buildUnnamed764(); + o.customSchemas = buildUnnamed771(); o.customerId = "foo"; o.deletionTime = core.DateTime.parse("2002-02-27T14:01:02"); o.emails = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; @@ -1806,7 +1806,7 @@ o.lastLoginTime = core.DateTime.parse("2002-02-27T14:01:02"); o.locations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.name = buildUserName(); - o.nonEditableAliases = buildUnnamed765(); + o.nonEditableAliases = buildUnnamed772(); o.notes = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.orgUnitPath = "foo"; o.organizations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; @@ -1831,10 +1831,10 @@ if (buildCounterUser < 3) { var casted3 = (o.addresses) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); unittest.expect(o.agreedToTerms, unittest.isTrue); - checkUnnamed763(o.aliases); + checkUnnamed770(o.aliases); unittest.expect(o.changePasswordAtNextLogin, unittest.isTrue); unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed764(o.customSchemas); + checkUnnamed771(o.customSchemas); unittest.expect(o.customerId, unittest.equals('foo')); unittest.expect(o.deletionTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); var casted4 = (o.emails) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -1854,7 +1854,7 @@ unittest.expect(o.lastLoginTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); var casted7 = (o.locations) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); checkUserName(o.name); - checkUnnamed765(o.nonEditableAliases); + checkUnnamed772(o.nonEditableAliases); var casted8 = (o.notes) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); unittest.expect(o.orgUnitPath, unittest.equals('foo')); var casted9 = (o.organizations) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo')); @@ -2320,14 +2320,14 @@ buildCounterUserWebsite--; } -buildUnnamed766() { +buildUnnamed773() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed766(core.List<api.User> o) { +checkUnnamed773(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -2342,7 +2342,7 @@ o.kind = "foo"; o.nextPageToken = "foo"; o.triggerEvent = "foo"; - o.users = buildUnnamed766(); + o.users = buildUnnamed773(); } buildCounterUsers--; return o; @@ -2355,7 +2355,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.triggerEvent, unittest.equals('foo')); - checkUnnamed766(o.users); + checkUnnamed773(o.users); } buildCounterUsers--; } @@ -2385,14 +2385,14 @@ buildCounterVerificationCode--; } -buildUnnamed767() { +buildUnnamed774() { var o = new core.List<api.VerificationCode>(); o.add(buildVerificationCode()); o.add(buildVerificationCode()); return o; } -checkUnnamed767(core.List<api.VerificationCode> o) { +checkUnnamed774(core.List<api.VerificationCode> o) { unittest.expect(o, unittest.hasLength(2)); checkVerificationCode(o[0]); checkVerificationCode(o[1]); @@ -2404,7 +2404,7 @@ buildCounterVerificationCodes++; if (buildCounterVerificationCodes < 3) { o.etag = "foo"; - o.items = buildUnnamed767(); + o.items = buildUnnamed774(); o.kind = "foo"; } buildCounterVerificationCodes--; @@ -2415,59 +2415,59 @@ buildCounterVerificationCodes++; if (buildCounterVerificationCodes < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed767(o.items); + checkUnnamed774(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterVerificationCodes--; } -buildUnnamed768() { +buildUnnamed775() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed768(core.List<core.String> o) { +checkUnnamed775(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed769() { +buildUnnamed776() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed769(core.List<core.String> o) { +checkUnnamed776(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed770() { +buildUnnamed777() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed770(core.List<core.String> o) { +checkUnnamed777(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed771() { +buildUnnamed778() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed771(core.List<core.String> o) { +checkUnnamed778(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3058,7 +3058,7 @@ api.AspsResourceApi res = new api.AdminApi(mock).asps; var arg_userKey = "foo"; var arg_codeId = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3104,7 +3104,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_userKey, arg_codeId).then(unittest.expectAsync((_) {})); + res.delete(arg_userKey, arg_codeId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -3113,7 +3113,7 @@ api.AspsResourceApi res = new api.AdminApi(mock).asps; var arg_userKey = "foo"; var arg_codeId = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3159,7 +3159,7 @@ var resp = convert.JSON.encode(buildAsp()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_userKey, arg_codeId).then(unittest.expectAsync(((api.Asp response) { + res.get(arg_userKey, arg_codeId).then(unittest.expectAsync1(((api.Asp response) { checkAsp(response); }))); }); @@ -3169,7 +3169,7 @@ var mock = new HttpServerMock(); api.AspsResourceApi res = new api.AdminApi(mock).asps; var arg_userKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3212,7 +3212,7 @@ var resp = convert.JSON.encode(buildAsps()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_userKey).then(unittest.expectAsync(((api.Asps response) { + res.list(arg_userKey).then(unittest.expectAsync1(((api.Asps response) { checkAsps(response); }))); }); @@ -3226,7 +3226,7 @@ var mock = new HttpServerMock(); api.ChannelsResourceApi res = new api.AdminApi(mock).channels; var arg_request = buildChannel(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Channel.fromJson(json); checkChannel(obj); @@ -3263,7 +3263,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.stop(arg_request).then(unittest.expectAsync((_) {})); + res.stop(arg_request).then(unittest.expectAsync1((_) {})); }); }); @@ -3277,7 +3277,7 @@ var arg_request = buildChromeOsDeviceAction(); var arg_customerId = "foo"; var arg_resourceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ChromeOsDeviceAction.fromJson(json); checkChromeOsDeviceAction(obj); @@ -3330,7 +3330,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.action(arg_request, arg_customerId, arg_resourceId).then(unittest.expectAsync((_) {})); + res.action(arg_request, arg_customerId, arg_resourceId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -3340,7 +3340,7 @@ var arg_customerId = "foo"; var arg_deviceId = "foo"; var arg_projection = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3387,7 +3387,7 @@ var resp = convert.JSON.encode(buildChromeOsDevice()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_customerId, arg_deviceId, projection: arg_projection).then(unittest.expectAsync(((api.ChromeOsDevice response) { + res.get(arg_customerId, arg_deviceId, projection: arg_projection).then(unittest.expectAsync1(((api.ChromeOsDevice response) { checkChromeOsDevice(response); }))); }); @@ -3403,7 +3403,7 @@ var arg_projection = "foo"; var arg_query = "foo"; var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3452,7 +3452,7 @@ var resp = convert.JSON.encode(buildChromeOsDevices()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_customerId, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, projection: arg_projection, query: arg_query, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.ChromeOsDevices response) { + res.list(arg_customerId, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, projection: arg_projection, query: arg_query, sortOrder: arg_sortOrder).then(unittest.expectAsync1(((api.ChromeOsDevices response) { checkChromeOsDevices(response); }))); }); @@ -3465,7 +3465,7 @@ var arg_customerId = "foo"; var arg_deviceId = "foo"; var arg_projection = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ChromeOsDevice.fromJson(json); checkChromeOsDevice(obj); @@ -3515,7 +3515,7 @@ var resp = convert.JSON.encode(buildChromeOsDevice()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_customerId, arg_deviceId, projection: arg_projection).then(unittest.expectAsync(((api.ChromeOsDevice response) { + res.patch(arg_request, arg_customerId, arg_deviceId, projection: arg_projection).then(unittest.expectAsync1(((api.ChromeOsDevice response) { checkChromeOsDevice(response); }))); }); @@ -3528,7 +3528,7 @@ var arg_customerId = "foo"; var arg_deviceId = "foo"; var arg_projection = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ChromeOsDevice.fromJson(json); checkChromeOsDevice(obj); @@ -3578,7 +3578,7 @@ var resp = convert.JSON.encode(buildChromeOsDevice()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_customerId, arg_deviceId, projection: arg_projection).then(unittest.expectAsync(((api.ChromeOsDevice response) { + res.update(arg_request, arg_customerId, arg_deviceId, projection: arg_projection).then(unittest.expectAsync1(((api.ChromeOsDevice response) { checkChromeOsDevice(response); }))); }); @@ -3592,7 +3592,7 @@ var mock = new HttpServerMock(); api.CustomersResourceApi res = new api.AdminApi(mock).customers; var arg_customerKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3631,7 +3631,7 @@ var resp = convert.JSON.encode(buildCustomer()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_customerKey).then(unittest.expectAsync(((api.Customer response) { + res.get(arg_customerKey).then(unittest.expectAsync1(((api.Customer response) { checkCustomer(response); }))); }); @@ -3642,7 +3642,7 @@ api.CustomersResourceApi res = new api.AdminApi(mock).customers; var arg_request = buildCustomer(); var arg_customerKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Customer.fromJson(json); checkCustomer(obj); @@ -3684,7 +3684,7 @@ var resp = convert.JSON.encode(buildCustomer()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_customerKey).then(unittest.expectAsync(((api.Customer response) { + res.patch(arg_request, arg_customerKey).then(unittest.expectAsync1(((api.Customer response) { checkCustomer(response); }))); }); @@ -3695,7 +3695,7 @@ api.CustomersResourceApi res = new api.AdminApi(mock).customers; var arg_request = buildCustomer(); var arg_customerKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Customer.fromJson(json); checkCustomer(obj); @@ -3737,7 +3737,7 @@ var resp = convert.JSON.encode(buildCustomer()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_customerKey).then(unittest.expectAsync(((api.Customer response) { + res.update(arg_request, arg_customerKey).then(unittest.expectAsync1(((api.Customer response) { checkCustomer(response); }))); }); @@ -3752,7 +3752,7 @@ api.DomainAliasesResourceApi res = new api.AdminApi(mock).domainAliases; var arg_customer = "foo"; var arg_domainAliasName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3798,7 +3798,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_customer, arg_domainAliasName).then(unittest.expectAsync((_) {})); + res.delete(arg_customer, arg_domainAliasName).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -3807,7 +3807,7 @@ api.DomainAliasesResourceApi res = new api.AdminApi(mock).domainAliases; var arg_customer = "foo"; var arg_domainAliasName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3853,7 +3853,7 @@ var resp = convert.JSON.encode(buildDomainAlias()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_customer, arg_domainAliasName).then(unittest.expectAsync(((api.DomainAlias response) { + res.get(arg_customer, arg_domainAliasName).then(unittest.expectAsync1(((api.DomainAlias response) { checkDomainAlias(response); }))); }); @@ -3864,7 +3864,7 @@ api.DomainAliasesResourceApi res = new api.AdminApi(mock).domainAliases; var arg_request = buildDomainAlias(); var arg_customer = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DomainAlias.fromJson(json); checkDomainAlias(obj); @@ -3910,7 +3910,7 @@ var resp = convert.JSON.encode(buildDomainAlias()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_customer).then(unittest.expectAsync(((api.DomainAlias response) { + res.insert(arg_request, arg_customer).then(unittest.expectAsync1(((api.DomainAlias response) { checkDomainAlias(response); }))); }); @@ -3921,7 +3921,7 @@ api.DomainAliasesResourceApi res = new api.AdminApi(mock).domainAliases; var arg_customer = "foo"; var arg_parentDomainName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3965,7 +3965,7 @@ var resp = convert.JSON.encode(buildDomainAliases()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_customer, parentDomainName: arg_parentDomainName).then(unittest.expectAsync(((api.DomainAliases response) { + res.list(arg_customer, parentDomainName: arg_parentDomainName).then(unittest.expectAsync1(((api.DomainAliases response) { checkDomainAliases(response); }))); }); @@ -3980,7 +3980,7 @@ api.DomainsResourceApi res = new api.AdminApi(mock).domains; var arg_customer = "foo"; var arg_domainName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4026,7 +4026,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_customer, arg_domainName).then(unittest.expectAsync((_) {})); + res.delete(arg_customer, arg_domainName).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -4035,7 +4035,7 @@ api.DomainsResourceApi res = new api.AdminApi(mock).domains; var arg_customer = "foo"; var arg_domainName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4081,7 +4081,7 @@ var resp = convert.JSON.encode(buildDomains()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_customer, arg_domainName).then(unittest.expectAsync(((api.Domains response) { + res.get(arg_customer, arg_domainName).then(unittest.expectAsync1(((api.Domains response) { checkDomains(response); }))); }); @@ -4092,7 +4092,7 @@ api.DomainsResourceApi res = new api.AdminApi(mock).domains; var arg_request = buildDomains(); var arg_customer = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Domains.fromJson(json); checkDomains(obj); @@ -4138,7 +4138,7 @@ var resp = convert.JSON.encode(buildDomains()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_customer).then(unittest.expectAsync(((api.Domains response) { + res.insert(arg_request, arg_customer).then(unittest.expectAsync1(((api.Domains response) { checkDomains(response); }))); }); @@ -4148,7 +4148,7 @@ var mock = new HttpServerMock(); api.DomainsResourceApi res = new api.AdminApi(mock).domains; var arg_customer = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4191,7 +4191,7 @@ var resp = convert.JSON.encode(buildDomains2()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_customer).then(unittest.expectAsync(((api.Domains2 response) { + res.list(arg_customer).then(unittest.expectAsync1(((api.Domains2 response) { checkDomains2(response); }))); }); @@ -4205,7 +4205,7 @@ var mock = new HttpServerMock(); api.GroupsResourceApi res = new api.AdminApi(mock).groups; var arg_groupKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4244,7 +4244,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_groupKey).then(unittest.expectAsync((_) {})); + res.delete(arg_groupKey).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -4252,7 +4252,7 @@ var mock = new HttpServerMock(); api.GroupsResourceApi res = new api.AdminApi(mock).groups; var arg_groupKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4291,7 +4291,7 @@ var resp = convert.JSON.encode(buildGroup()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_groupKey).then(unittest.expectAsync(((api.Group response) { + res.get(arg_groupKey).then(unittest.expectAsync1(((api.Group response) { checkGroup(response); }))); }); @@ -4301,7 +4301,7 @@ var mock = new HttpServerMock(); api.GroupsResourceApi res = new api.AdminApi(mock).groups; var arg_request = buildGroup(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Group.fromJson(json); checkGroup(obj); @@ -4340,7 +4340,7 @@ var resp = convert.JSON.encode(buildGroup()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request).then(unittest.expectAsync(((api.Group response) { + res.insert(arg_request).then(unittest.expectAsync1(((api.Group response) { checkGroup(response); }))); }); @@ -4354,7 +4354,7 @@ var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_userKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4395,7 +4395,7 @@ var resp = convert.JSON.encode(buildGroups()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(customer: arg_customer, domain: arg_domain, maxResults: arg_maxResults, pageToken: arg_pageToken, userKey: arg_userKey).then(unittest.expectAsync(((api.Groups response) { + res.list(customer: arg_customer, domain: arg_domain, maxResults: arg_maxResults, pageToken: arg_pageToken, userKey: arg_userKey).then(unittest.expectAsync1(((api.Groups response) { checkGroups(response); }))); }); @@ -4406,7 +4406,7 @@ api.GroupsResourceApi res = new api.AdminApi(mock).groups; var arg_request = buildGroup(); var arg_groupKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Group.fromJson(json); checkGroup(obj); @@ -4448,7 +4448,7 @@ var resp = convert.JSON.encode(buildGroup()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_groupKey).then(unittest.expectAsync(((api.Group response) { + res.patch(arg_request, arg_groupKey).then(unittest.expectAsync1(((api.Group response) { checkGroup(response); }))); }); @@ -4459,7 +4459,7 @@ api.GroupsResourceApi res = new api.AdminApi(mock).groups; var arg_request = buildGroup(); var arg_groupKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Group.fromJson(json); checkGroup(obj); @@ -4501,7 +4501,7 @@ var resp = convert.JSON.encode(buildGroup()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_groupKey).then(unittest.expectAsync(((api.Group response) { + res.update(arg_request, arg_groupKey).then(unittest.expectAsync1(((api.Group response) { checkGroup(response); }))); }); @@ -4516,7 +4516,7 @@ api.GroupsAliasesResourceApi res = new api.AdminApi(mock).groups.aliases; var arg_groupKey = "foo"; var arg_alias = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4562,7 +4562,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_groupKey, arg_alias).then(unittest.expectAsync((_) {})); + res.delete(arg_groupKey, arg_alias).then(unittest.expectAsync1((_) {})); }); unittest.test("method--insert", () { @@ -4571,7 +4571,7 @@ api.GroupsAliasesResourceApi res = new api.AdminApi(mock).groups.aliases; var arg_request = buildAlias(); var arg_groupKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Alias.fromJson(json); checkAlias(obj); @@ -4617,7 +4617,7 @@ var resp = convert.JSON.encode(buildAlias()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_groupKey).then(unittest.expectAsync(((api.Alias response) { + res.insert(arg_request, arg_groupKey).then(unittest.expectAsync1(((api.Alias response) { checkAlias(response); }))); }); @@ -4627,7 +4627,7 @@ var mock = new HttpServerMock(); api.GroupsAliasesResourceApi res = new api.AdminApi(mock).groups.aliases; var arg_groupKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4670,7 +4670,7 @@ var resp = convert.JSON.encode(buildAliases()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_groupKey).then(unittest.expectAsync(((api.Aliases response) { + res.list(arg_groupKey).then(unittest.expectAsync1(((api.Aliases response) { checkAliases(response); }))); }); @@ -4685,7 +4685,7 @@ api.MembersResourceApi res = new api.AdminApi(mock).members; var arg_groupKey = "foo"; var arg_memberKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4731,7 +4731,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_groupKey, arg_memberKey).then(unittest.expectAsync((_) {})); + res.delete(arg_groupKey, arg_memberKey).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -4740,7 +4740,7 @@ api.MembersResourceApi res = new api.AdminApi(mock).members; var arg_groupKey = "foo"; var arg_memberKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4786,7 +4786,7 @@ var resp = convert.JSON.encode(buildMember()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_groupKey, arg_memberKey).then(unittest.expectAsync(((api.Member response) { + res.get(arg_groupKey, arg_memberKey).then(unittest.expectAsync1(((api.Member response) { checkMember(response); }))); }); @@ -4797,7 +4797,7 @@ api.MembersResourceApi res = new api.AdminApi(mock).members; var arg_request = buildMember(); var arg_groupKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Member.fromJson(json); checkMember(obj); @@ -4843,7 +4843,7 @@ var resp = convert.JSON.encode(buildMember()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_groupKey).then(unittest.expectAsync(((api.Member response) { + res.insert(arg_request, arg_groupKey).then(unittest.expectAsync1(((api.Member response) { checkMember(response); }))); }); @@ -4856,7 +4856,7 @@ var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_roles = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4902,7 +4902,7 @@ var resp = convert.JSON.encode(buildMembers()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_groupKey, maxResults: arg_maxResults, pageToken: arg_pageToken, roles: arg_roles).then(unittest.expectAsync(((api.Members response) { + res.list(arg_groupKey, maxResults: arg_maxResults, pageToken: arg_pageToken, roles: arg_roles).then(unittest.expectAsync1(((api.Members response) { checkMembers(response); }))); }); @@ -4914,7 +4914,7 @@ var arg_request = buildMember(); var arg_groupKey = "foo"; var arg_memberKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Member.fromJson(json); checkMember(obj); @@ -4963,7 +4963,7 @@ var resp = convert.JSON.encode(buildMember()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_groupKey, arg_memberKey).then(unittest.expectAsync(((api.Member response) { + res.patch(arg_request, arg_groupKey, arg_memberKey).then(unittest.expectAsync1(((api.Member response) { checkMember(response); }))); }); @@ -4975,7 +4975,7 @@ var arg_request = buildMember(); var arg_groupKey = "foo"; var arg_memberKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Member.fromJson(json); checkMember(obj); @@ -5024,7 +5024,7 @@ var resp = convert.JSON.encode(buildMember()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_groupKey, arg_memberKey).then(unittest.expectAsync(((api.Member response) { + res.update(arg_request, arg_groupKey, arg_memberKey).then(unittest.expectAsync1(((api.Member response) { checkMember(response); }))); }); @@ -5040,7 +5040,7 @@ var arg_request = buildMobileDeviceAction(); var arg_customerId = "foo"; var arg_resourceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.MobileDeviceAction.fromJson(json); checkMobileDeviceAction(obj); @@ -5093,7 +5093,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.action(arg_request, arg_customerId, arg_resourceId).then(unittest.expectAsync((_) {})); + res.action(arg_request, arg_customerId, arg_resourceId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--delete", () { @@ -5102,7 +5102,7 @@ api.MobiledevicesResourceApi res = new api.AdminApi(mock).mobiledevices; var arg_customerId = "foo"; var arg_resourceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5148,7 +5148,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_customerId, arg_resourceId).then(unittest.expectAsync((_) {})); + res.delete(arg_customerId, arg_resourceId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -5158,7 +5158,7 @@ var arg_customerId = "foo"; var arg_resourceId = "foo"; var arg_projection = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5205,7 +5205,7 @@ var resp = convert.JSON.encode(buildMobileDevice()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_customerId, arg_resourceId, projection: arg_projection).then(unittest.expectAsync(((api.MobileDevice response) { + res.get(arg_customerId, arg_resourceId, projection: arg_projection).then(unittest.expectAsync1(((api.MobileDevice response) { checkMobileDevice(response); }))); }); @@ -5221,7 +5221,7 @@ var arg_projection = "foo"; var arg_query = "foo"; var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5270,7 +5270,7 @@ var resp = convert.JSON.encode(buildMobileDevices()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_customerId, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, projection: arg_projection, query: arg_query, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.MobileDevices response) { + res.list(arg_customerId, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, projection: arg_projection, query: arg_query, sortOrder: arg_sortOrder).then(unittest.expectAsync1(((api.MobileDevices response) { checkMobileDevices(response); }))); }); @@ -5285,7 +5285,7 @@ api.NotificationsResourceApi res = new api.AdminApi(mock).notifications; var arg_customer = "foo"; var arg_notificationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5331,7 +5331,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_customer, arg_notificationId).then(unittest.expectAsync((_) {})); + res.delete(arg_customer, arg_notificationId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -5340,7 +5340,7 @@ api.NotificationsResourceApi res = new api.AdminApi(mock).notifications; var arg_customer = "foo"; var arg_notificationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5386,7 +5386,7 @@ var resp = convert.JSON.encode(buildNotification()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_customer, arg_notificationId).then(unittest.expectAsync(((api.Notification response) { + res.get(arg_customer, arg_notificationId).then(unittest.expectAsync1(((api.Notification response) { checkNotification(response); }))); }); @@ -5399,7 +5399,7 @@ var arg_language = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5445,7 +5445,7 @@ var resp = convert.JSON.encode(buildNotifications()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_customer, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Notifications response) { + res.list(arg_customer, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.Notifications response) { checkNotifications(response); }))); }); @@ -5457,7 +5457,7 @@ var arg_request = buildNotification(); var arg_customer = "foo"; var arg_notificationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Notification.fromJson(json); checkNotification(obj); @@ -5506,7 +5506,7 @@ var resp = convert.JSON.encode(buildNotification()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_customer, arg_notificationId).then(unittest.expectAsync(((api.Notification response) { + res.patch(arg_request, arg_customer, arg_notificationId).then(unittest.expectAsync1(((api.Notification response) { checkNotification(response); }))); }); @@ -5518,7 +5518,7 @@ var arg_request = buildNotification(); var arg_customer = "foo"; var arg_notificationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Notification.fromJson(json); checkNotification(obj); @@ -5567,7 +5567,7 @@ var resp = convert.JSON.encode(buildNotification()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_customer, arg_notificationId).then(unittest.expectAsync(((api.Notification response) { + res.update(arg_request, arg_customer, arg_notificationId).then(unittest.expectAsync1(((api.Notification response) { checkNotification(response); }))); }); @@ -5581,8 +5581,8 @@ var mock = new HttpServerMock(); api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed768(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_orgUnitPath = buildUnnamed775(); + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5627,7 +5627,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_customerId, arg_orgUnitPath).then(unittest.expectAsync((_) {})); + res.delete(arg_customerId, arg_orgUnitPath).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -5635,8 +5635,8 @@ var mock = new HttpServerMock(); api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed769(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_orgUnitPath = buildUnnamed776(); + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5681,7 +5681,7 @@ var resp = convert.JSON.encode(buildOrgUnit()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_customerId, arg_orgUnitPath).then(unittest.expectAsync(((api.OrgUnit response) { + res.get(arg_customerId, arg_orgUnitPath).then(unittest.expectAsync1(((api.OrgUnit response) { checkOrgUnit(response); }))); }); @@ -5692,7 +5692,7 @@ api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_request = buildOrgUnit(); var arg_customerId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.OrgUnit.fromJson(json); checkOrgUnit(obj); @@ -5738,7 +5738,7 @@ var resp = convert.JSON.encode(buildOrgUnit()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_customerId).then(unittest.expectAsync(((api.OrgUnit response) { + res.insert(arg_request, arg_customerId).then(unittest.expectAsync1(((api.OrgUnit response) { checkOrgUnit(response); }))); }); @@ -5750,7 +5750,7 @@ var arg_customerId = "foo"; var arg_orgUnitPath = "foo"; var arg_type = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5795,7 +5795,7 @@ var resp = convert.JSON.encode(buildOrgUnits()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_customerId, orgUnitPath: arg_orgUnitPath, type: arg_type).then(unittest.expectAsync(((api.OrgUnits response) { + res.list(arg_customerId, orgUnitPath: arg_orgUnitPath, type: arg_type).then(unittest.expectAsync1(((api.OrgUnits response) { checkOrgUnits(response); }))); }); @@ -5806,8 +5806,8 @@ api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_request = buildOrgUnit(); var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed770(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_orgUnitPath = buildUnnamed777(); + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.OrgUnit.fromJson(json); checkOrgUnit(obj); @@ -5855,7 +5855,7 @@ var resp = convert.JSON.encode(buildOrgUnit()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_customerId, arg_orgUnitPath).then(unittest.expectAsync(((api.OrgUnit response) { + res.patch(arg_request, arg_customerId, arg_orgUnitPath).then(unittest.expectAsync1(((api.OrgUnit response) { checkOrgUnit(response); }))); }); @@ -5866,8 +5866,8 @@ api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_request = buildOrgUnit(); var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed771(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_orgUnitPath = buildUnnamed778(); + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.OrgUnit.fromJson(json); checkOrgUnit(obj); @@ -5915,7 +5915,7 @@ var resp = convert.JSON.encode(buildOrgUnit()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_customerId, arg_orgUnitPath).then(unittest.expectAsync(((api.OrgUnit response) { + res.update(arg_request, arg_customerId, arg_orgUnitPath).then(unittest.expectAsync1(((api.OrgUnit response) { checkOrgUnit(response); }))); }); @@ -5929,7 +5929,7 @@ var mock = new HttpServerMock(); api.PrivilegesResourceApi res = new api.AdminApi(mock).privileges; var arg_customer = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5972,7 +5972,7 @@ var resp = convert.JSON.encode(buildPrivileges()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_customer).then(unittest.expectAsync(((api.Privileges response) { + res.list(arg_customer).then(unittest.expectAsync1(((api.Privileges response) { checkPrivileges(response); }))); }); @@ -5987,7 +5987,7 @@ api.ResourcesCalendarsResourceApi res = new api.AdminApi(mock).resources.calendars; var arg_customer = "foo"; var arg_calendarResourceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6033,7 +6033,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_customer, arg_calendarResourceId).then(unittest.expectAsync((_) {})); + res.delete(arg_customer, arg_calendarResourceId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -6042,7 +6042,7 @@ api.ResourcesCalendarsResourceApi res = new api.AdminApi(mock).resources.calendars; var arg_customer = "foo"; var arg_calendarResourceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6088,7 +6088,7 @@ var resp = convert.JSON.encode(buildCalendarResource()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_customer, arg_calendarResourceId).then(unittest.expectAsync(((api.CalendarResource response) { + res.get(arg_customer, arg_calendarResourceId).then(unittest.expectAsync1(((api.CalendarResource response) { checkCalendarResource(response); }))); }); @@ -6099,7 +6099,7 @@ api.ResourcesCalendarsResourceApi res = new api.AdminApi(mock).resources.calendars; var arg_request = buildCalendarResource(); var arg_customer = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CalendarResource.fromJson(json); checkCalendarResource(obj); @@ -6145,7 +6145,7 @@ var resp = convert.JSON.encode(buildCalendarResource()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_customer).then(unittest.expectAsync(((api.CalendarResource response) { + res.insert(arg_request, arg_customer).then(unittest.expectAsync1(((api.CalendarResource response) { checkCalendarResource(response); }))); }); @@ -6157,7 +6157,7 @@ var arg_customer = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6202,7 +6202,7 @@ var resp = convert.JSON.encode(buildCalendarResources()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_customer, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.CalendarResources response) { + res.list(arg_customer, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.CalendarResources response) { checkCalendarResources(response); }))); }); @@ -6214,7 +6214,7 @@ var arg_request = buildCalendarResource(); var arg_customer = "foo"; var arg_calendarResourceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CalendarResource.fromJson(json); checkCalendarResource(obj); @@ -6263,7 +6263,7 @@ var resp = convert.JSON.encode(buildCalendarResource()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_customer, arg_calendarResourceId).then(unittest.expectAsync(((api.CalendarResource response) { + res.patch(arg_request, arg_customer, arg_calendarResourceId).then(unittest.expectAsync1(((api.CalendarResource response) { checkCalendarResource(response); }))); }); @@ -6275,7 +6275,7 @@ var arg_request = buildCalendarResource(); var arg_customer = "foo"; var arg_calendarResourceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CalendarResource.fromJson(json); checkCalendarResource(obj); @@ -6324,7 +6324,7 @@ var resp = convert.JSON.encode(buildCalendarResource()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_customer, arg_calendarResourceId).then(unittest.expectAsync(((api.CalendarResource response) { + res.update(arg_request, arg_customer, arg_calendarResourceId).then(unittest.expectAsync1(((api.CalendarResource response) { checkCalendarResource(response); }))); }); @@ -6339,7 +6339,7 @@ api.RoleAssignmentsResourceApi res = new api.AdminApi(mock).roleAssignments; var arg_customer = "foo"; var arg_roleAssignmentId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6385,7 +6385,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_customer, arg_roleAssignmentId).then(unittest.expectAsync((_) {})); + res.delete(arg_customer, arg_roleAssignmentId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -6394,7 +6394,7 @@ api.RoleAssignmentsResourceApi res = new api.AdminApi(mock).roleAssignments; var arg_customer = "foo"; var arg_roleAssignmentId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6440,7 +6440,7 @@ var resp = convert.JSON.encode(buildRoleAssignment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_customer, arg_roleAssignmentId).then(unittest.expectAsync(((api.RoleAssignment response) { + res.get(arg_customer, arg_roleAssignmentId).then(unittest.expectAsync1(((api.RoleAssignment response) { checkRoleAssignment(response); }))); }); @@ -6451,7 +6451,7 @@ api.RoleAssignmentsResourceApi res = new api.AdminApi(mock).roleAssignments; var arg_request = buildRoleAssignment(); var arg_customer = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RoleAssignment.fromJson(json); checkRoleAssignment(obj); @@ -6497,7 +6497,7 @@ var resp = convert.JSON.encode(buildRoleAssignment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_customer).then(unittest.expectAsync(((api.RoleAssignment response) { + res.insert(arg_request, arg_customer).then(unittest.expectAsync1(((api.RoleAssignment response) { checkRoleAssignment(response); }))); }); @@ -6511,7 +6511,7 @@ var arg_pageToken = "foo"; var arg_roleId = "foo"; var arg_userKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6558,7 +6558,7 @@ var resp = convert.JSON.encode(buildRoleAssignments()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_customer, maxResults: arg_maxResults, pageToken: arg_pageToken, roleId: arg_roleId, userKey: arg_userKey).then(unittest.expectAsync(((api.RoleAssignments response) { + res.list(arg_customer, maxResults: arg_maxResults, pageToken: arg_pageToken, roleId: arg_roleId, userKey: arg_userKey).then(unittest.expectAsync1(((api.RoleAssignments response) { checkRoleAssignments(response); }))); }); @@ -6573,7 +6573,7 @@ api.RolesResourceApi res = new api.AdminApi(mock).roles; var arg_customer = "foo"; var arg_roleId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6619,7 +6619,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_customer, arg_roleId).then(unittest.expectAsync((_) {})); + res.delete(arg_customer, arg_roleId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -6628,7 +6628,7 @@ api.RolesResourceApi res = new api.AdminApi(mock).roles; var arg_customer = "foo"; var arg_roleId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6674,7 +6674,7 @@ var resp = convert.JSON.encode(buildRole()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_customer, arg_roleId).then(unittest.expectAsync(((api.Role response) { + res.get(arg_customer, arg_roleId).then(unittest.expectAsync1(((api.Role response) { checkRole(response); }))); }); @@ -6685,7 +6685,7 @@ api.RolesResourceApi res = new api.AdminApi(mock).roles; var arg_request = buildRole(); var arg_customer = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Role.fromJson(json); checkRole(obj); @@ -6731,7 +6731,7 @@ var resp = convert.JSON.encode(buildRole()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_customer).then(unittest.expectAsync(((api.Role response) { + res.insert(arg_request, arg_customer).then(unittest.expectAsync1(((api.Role response) { checkRole(response); }))); }); @@ -6743,7 +6743,7 @@ var arg_customer = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6788,7 +6788,7 @@ var resp = convert.JSON.encode(buildRoles()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_customer, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Roles response) { + res.list(arg_customer, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.Roles response) { checkRoles(response); }))); }); @@ -6800,7 +6800,7 @@ var arg_request = buildRole(); var arg_customer = "foo"; var arg_roleId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Role.fromJson(json); checkRole(obj); @@ -6849,7 +6849,7 @@ var resp = convert.JSON.encode(buildRole()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_customer, arg_roleId).then(unittest.expectAsync(((api.Role response) { + res.patch(arg_request, arg_customer, arg_roleId).then(unittest.expectAsync1(((api.Role response) { checkRole(response); }))); }); @@ -6861,7 +6861,7 @@ var arg_request = buildRole(); var arg_customer = "foo"; var arg_roleId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Role.fromJson(json); checkRole(obj); @@ -6910,7 +6910,7 @@ var resp = convert.JSON.encode(buildRole()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_customer, arg_roleId).then(unittest.expectAsync(((api.Role response) { + res.update(arg_request, arg_customer, arg_roleId).then(unittest.expectAsync1(((api.Role response) { checkRole(response); }))); }); @@ -6925,7 +6925,7 @@ api.SchemasResourceApi res = new api.AdminApi(mock).schemas; var arg_customerId = "foo"; var arg_schemaKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6971,7 +6971,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_customerId, arg_schemaKey).then(unittest.expectAsync((_) {})); + res.delete(arg_customerId, arg_schemaKey).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -6980,7 +6980,7 @@ api.SchemasResourceApi res = new api.AdminApi(mock).schemas; var arg_customerId = "foo"; var arg_schemaKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7026,7 +7026,7 @@ var resp = convert.JSON.encode(buildSchema()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_customerId, arg_schemaKey).then(unittest.expectAsync(((api.Schema response) { + res.get(arg_customerId, arg_schemaKey).then(unittest.expectAsync1(((api.Schema response) { checkSchema(response); }))); }); @@ -7037,7 +7037,7 @@ api.SchemasResourceApi res = new api.AdminApi(mock).schemas; var arg_request = buildSchema(); var arg_customerId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Schema.fromJson(json); checkSchema(obj); @@ -7083,7 +7083,7 @@ var resp = convert.JSON.encode(buildSchema()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_customerId).then(unittest.expectAsync(((api.Schema response) { + res.insert(arg_request, arg_customerId).then(unittest.expectAsync1(((api.Schema response) { checkSchema(response); }))); }); @@ -7093,7 +7093,7 @@ var mock = new HttpServerMock(); api.SchemasResourceApi res = new api.AdminApi(mock).schemas; var arg_customerId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7136,7 +7136,7 @@ var resp = convert.JSON.encode(buildSchemas()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_customerId).then(unittest.expectAsync(((api.Schemas response) { + res.list(arg_customerId).then(unittest.expectAsync1(((api.Schemas response) { checkSchemas(response); }))); }); @@ -7148,7 +7148,7 @@ var arg_request = buildSchema(); var arg_customerId = "foo"; var arg_schemaKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Schema.fromJson(json); checkSchema(obj); @@ -7197,7 +7197,7 @@ var resp = convert.JSON.encode(buildSchema()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_customerId, arg_schemaKey).then(unittest.expectAsync(((api.Schema response) { + res.patch(arg_request, arg_customerId, arg_schemaKey).then(unittest.expectAsync1(((api.Schema response) { checkSchema(response); }))); }); @@ -7209,7 +7209,7 @@ var arg_request = buildSchema(); var arg_customerId = "foo"; var arg_schemaKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Schema.fromJson(json); checkSchema(obj); @@ -7258,7 +7258,7 @@ var resp = convert.JSON.encode(buildSchema()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_customerId, arg_schemaKey).then(unittest.expectAsync(((api.Schema response) { + res.update(arg_request, arg_customerId, arg_schemaKey).then(unittest.expectAsync1(((api.Schema response) { checkSchema(response); }))); }); @@ -7273,7 +7273,7 @@ api.TokensResourceApi res = new api.AdminApi(mock).tokens; var arg_userKey = "foo"; var arg_clientId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7319,7 +7319,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_userKey, arg_clientId).then(unittest.expectAsync((_) {})); + res.delete(arg_userKey, arg_clientId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -7328,7 +7328,7 @@ api.TokensResourceApi res = new api.AdminApi(mock).tokens; var arg_userKey = "foo"; var arg_clientId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7374,7 +7374,7 @@ var resp = convert.JSON.encode(buildToken()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_userKey, arg_clientId).then(unittest.expectAsync(((api.Token response) { + res.get(arg_userKey, arg_clientId).then(unittest.expectAsync1(((api.Token response) { checkToken(response); }))); }); @@ -7384,7 +7384,7 @@ var mock = new HttpServerMock(); api.TokensResourceApi res = new api.AdminApi(mock).tokens; var arg_userKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7427,7 +7427,7 @@ var resp = convert.JSON.encode(buildTokens()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_userKey).then(unittest.expectAsync(((api.Tokens response) { + res.list(arg_userKey).then(unittest.expectAsync1(((api.Tokens response) { checkTokens(response); }))); }); @@ -7441,7 +7441,7 @@ var mock = new HttpServerMock(); api.UsersResourceApi res = new api.AdminApi(mock).users; var arg_userKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7480,7 +7480,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_userKey).then(unittest.expectAsync((_) {})); + res.delete(arg_userKey).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -7491,7 +7491,7 @@ var arg_customFieldMask = "foo"; var arg_projection = "foo"; var arg_viewType = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7533,7 +7533,7 @@ var resp = convert.JSON.encode(buildUser()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_userKey, customFieldMask: arg_customFieldMask, projection: arg_projection, viewType: arg_viewType).then(unittest.expectAsync(((api.User response) { + res.get(arg_userKey, customFieldMask: arg_customFieldMask, projection: arg_projection, viewType: arg_viewType).then(unittest.expectAsync1(((api.User response) { checkUser(response); }))); }); @@ -7543,7 +7543,7 @@ var mock = new HttpServerMock(); api.UsersResourceApi res = new api.AdminApi(mock).users; var arg_request = buildUser(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.User.fromJson(json); checkUser(obj); @@ -7582,7 +7582,7 @@ var resp = convert.JSON.encode(buildUser()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request).then(unittest.expectAsync(((api.User response) { + res.insert(arg_request).then(unittest.expectAsync1(((api.User response) { checkUser(response); }))); }); @@ -7603,7 +7603,7 @@ var arg_showDeleted = "foo"; var arg_sortOrder = "foo"; var arg_viewType = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7651,7 +7651,7 @@ var resp = convert.JSON.encode(buildUsers()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(customFieldMask: arg_customFieldMask, customer: arg_customer, domain: arg_domain, event: arg_event, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, projection: arg_projection, query: arg_query, showDeleted: arg_showDeleted, sortOrder: arg_sortOrder, viewType: arg_viewType).then(unittest.expectAsync(((api.Users response) { + res.list(customFieldMask: arg_customFieldMask, customer: arg_customer, domain: arg_domain, event: arg_event, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, projection: arg_projection, query: arg_query, showDeleted: arg_showDeleted, sortOrder: arg_sortOrder, viewType: arg_viewType).then(unittest.expectAsync1(((api.Users response) { checkUsers(response); }))); }); @@ -7662,7 +7662,7 @@ api.UsersResourceApi res = new api.AdminApi(mock).users; var arg_request = buildUserMakeAdmin(); var arg_userKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UserMakeAdmin.fromJson(json); checkUserMakeAdmin(obj); @@ -7708,7 +7708,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.makeAdmin(arg_request, arg_userKey).then(unittest.expectAsync((_) {})); + res.makeAdmin(arg_request, arg_userKey).then(unittest.expectAsync1((_) {})); }); unittest.test("method--patch", () { @@ -7717,7 +7717,7 @@ api.UsersResourceApi res = new api.AdminApi(mock).users; var arg_request = buildUser(); var arg_userKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.User.fromJson(json); checkUser(obj); @@ -7759,7 +7759,7 @@ var resp = convert.JSON.encode(buildUser()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_userKey).then(unittest.expectAsync(((api.User response) { + res.patch(arg_request, arg_userKey).then(unittest.expectAsync1(((api.User response) { checkUser(response); }))); }); @@ -7770,7 +7770,7 @@ api.UsersResourceApi res = new api.AdminApi(mock).users; var arg_request = buildUserUndelete(); var arg_userKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UserUndelete.fromJson(json); checkUserUndelete(obj); @@ -7816,7 +7816,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.undelete(arg_request, arg_userKey).then(unittest.expectAsync((_) {})); + res.undelete(arg_request, arg_userKey).then(unittest.expectAsync1((_) {})); }); unittest.test("method--update", () { @@ -7825,7 +7825,7 @@ api.UsersResourceApi res = new api.AdminApi(mock).users; var arg_request = buildUser(); var arg_userKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.User.fromJson(json); checkUser(obj); @@ -7867,7 +7867,7 @@ var resp = convert.JSON.encode(buildUser()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_userKey).then(unittest.expectAsync(((api.User response) { + res.update(arg_request, arg_userKey).then(unittest.expectAsync1(((api.User response) { checkUser(response); }))); }); @@ -7889,7 +7889,7 @@ var arg_showDeleted = "foo"; var arg_sortOrder = "foo"; var arg_viewType = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Channel.fromJson(json); checkChannel(obj); @@ -7940,7 +7940,7 @@ var resp = convert.JSON.encode(buildChannel()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.watch(arg_request, customFieldMask: arg_customFieldMask, customer: arg_customer, domain: arg_domain, event: arg_event, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, projection: arg_projection, query: arg_query, showDeleted: arg_showDeleted, sortOrder: arg_sortOrder, viewType: arg_viewType).then(unittest.expectAsync(((api.Channel response) { + res.watch(arg_request, customFieldMask: arg_customFieldMask, customer: arg_customer, domain: arg_domain, event: arg_event, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, projection: arg_projection, query: arg_query, showDeleted: arg_showDeleted, sortOrder: arg_sortOrder, viewType: arg_viewType).then(unittest.expectAsync1(((api.Channel response) { checkChannel(response); }))); }); @@ -7955,7 +7955,7 @@ api.UsersAliasesResourceApi res = new api.AdminApi(mock).users.aliases; var arg_userKey = "foo"; var arg_alias = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8001,7 +8001,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_userKey, arg_alias).then(unittest.expectAsync((_) {})); + res.delete(arg_userKey, arg_alias).then(unittest.expectAsync1((_) {})); }); unittest.test("method--insert", () { @@ -8010,7 +8010,7 @@ api.UsersAliasesResourceApi res = new api.AdminApi(mock).users.aliases; var arg_request = buildAlias(); var arg_userKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Alias.fromJson(json); checkAlias(obj); @@ -8056,7 +8056,7 @@ var resp = convert.JSON.encode(buildAlias()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_userKey).then(unittest.expectAsync(((api.Alias response) { + res.insert(arg_request, arg_userKey).then(unittest.expectAsync1(((api.Alias response) { checkAlias(response); }))); }); @@ -8067,7 +8067,7 @@ api.UsersAliasesResourceApi res = new api.AdminApi(mock).users.aliases; var arg_userKey = "foo"; var arg_event = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8111,7 +8111,7 @@ var resp = convert.JSON.encode(buildAliases()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_userKey, event: arg_event).then(unittest.expectAsync(((api.Aliases response) { + res.list(arg_userKey, event: arg_event).then(unittest.expectAsync1(((api.Aliases response) { checkAliases(response); }))); }); @@ -8123,7 +8123,7 @@ var arg_request = buildChannel(); var arg_userKey = "foo"; var arg_event = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Channel.fromJson(json); checkChannel(obj); @@ -8170,7 +8170,7 @@ var resp = convert.JSON.encode(buildChannel()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.watch(arg_request, arg_userKey, event: arg_event).then(unittest.expectAsync(((api.Channel response) { + res.watch(arg_request, arg_userKey, event: arg_event).then(unittest.expectAsync1(((api.Channel response) { checkChannel(response); }))); }); @@ -8184,7 +8184,7 @@ var mock = new HttpServerMock(); api.UsersPhotosResourceApi res = new api.AdminApi(mock).users.photos; var arg_userKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8227,7 +8227,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_userKey).then(unittest.expectAsync((_) {})); + res.delete(arg_userKey).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -8235,7 +8235,7 @@ var mock = new HttpServerMock(); api.UsersPhotosResourceApi res = new api.AdminApi(mock).users.photos; var arg_userKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8278,7 +8278,7 @@ var resp = convert.JSON.encode(buildUserPhoto()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_userKey).then(unittest.expectAsync(((api.UserPhoto response) { + res.get(arg_userKey).then(unittest.expectAsync1(((api.UserPhoto response) { checkUserPhoto(response); }))); }); @@ -8289,7 +8289,7 @@ api.UsersPhotosResourceApi res = new api.AdminApi(mock).users.photos; var arg_request = buildUserPhoto(); var arg_userKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UserPhoto.fromJson(json); checkUserPhoto(obj); @@ -8335,7 +8335,7 @@ var resp = convert.JSON.encode(buildUserPhoto()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_userKey).then(unittest.expectAsync(((api.UserPhoto response) { + res.patch(arg_request, arg_userKey).then(unittest.expectAsync1(((api.UserPhoto response) { checkUserPhoto(response); }))); }); @@ -8346,7 +8346,7 @@ api.UsersPhotosResourceApi res = new api.AdminApi(mock).users.photos; var arg_request = buildUserPhoto(); var arg_userKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UserPhoto.fromJson(json); checkUserPhoto(obj); @@ -8392,7 +8392,7 @@ var resp = convert.JSON.encode(buildUserPhoto()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_userKey).then(unittest.expectAsync(((api.UserPhoto response) { + res.update(arg_request, arg_userKey).then(unittest.expectAsync1(((api.UserPhoto response) { checkUserPhoto(response); }))); }); @@ -8406,7 +8406,7 @@ var mock = new HttpServerMock(); api.VerificationCodesResourceApi res = new api.AdminApi(mock).verificationCodes; var arg_userKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8449,7 +8449,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.generate(arg_userKey).then(unittest.expectAsync((_) {})); + res.generate(arg_userKey).then(unittest.expectAsync1((_) {})); }); unittest.test("method--invalidate", () { @@ -8457,7 +8457,7 @@ var mock = new HttpServerMock(); api.VerificationCodesResourceApi res = new api.AdminApi(mock).verificationCodes; var arg_userKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8500,7 +8500,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.invalidate(arg_userKey).then(unittest.expectAsync((_) {})); + res.invalidate(arg_userKey).then(unittest.expectAsync1((_) {})); }); unittest.test("method--list", () { @@ -8508,7 +8508,7 @@ var mock = new HttpServerMock(); api.VerificationCodesResourceApi res = new api.AdminApi(mock).verificationCodes; var arg_userKey = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8551,7 +8551,7 @@ var resp = convert.JSON.encode(buildVerificationCodes()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_userKey).then(unittest.expectAsync(((api.VerificationCodes response) { + res.list(arg_userKey).then(unittest.expectAsync1(((api.VerificationCodes response) { checkVerificationCodes(response); }))); });
diff --git a/generated/googleapis/test/admin/reports_v1_test.dart b/generated/googleapis/test/admin/reports_v1_test.dart index 8bb51e3..cd1fc22 100644 --- a/generated/googleapis/test/admin/reports_v1_test.dart +++ b/generated/googleapis/test/admin/reports_v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/admin/reports_v1.dart' as api; @@ -46,19 +46,19 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed619() { +buildUnnamed624() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed619(core.List<api.Activity> o) { +checkUnnamed624(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -70,7 +70,7 @@ buildCounterActivities++; if (buildCounterActivities < 3) { o.etag = "foo"; - o.items = buildUnnamed619(); + o.items = buildUnnamed624(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -82,7 +82,7 @@ buildCounterActivities++; if (buildCounterActivities < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed619(o.items); + checkUnnamed624(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -114,27 +114,27 @@ buildCounterActivityActor--; } -buildUnnamed620() { +buildUnnamed625() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed620(core.List<core.String> o) { +checkUnnamed625(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed621() { +buildUnnamed626() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed621(core.List<core.String> o) { +checkUnnamed626(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -147,8 +147,8 @@ if (buildCounterActivityEventsParameters < 3) { o.boolValue = true; o.intValue = "foo"; - o.multiIntValue = buildUnnamed620(); - o.multiValue = buildUnnamed621(); + o.multiIntValue = buildUnnamed625(); + o.multiValue = buildUnnamed626(); o.name = "foo"; o.value = "foo"; } @@ -161,22 +161,22 @@ if (buildCounterActivityEventsParameters < 3) { unittest.expect(o.boolValue, unittest.isTrue); unittest.expect(o.intValue, unittest.equals('foo')); - checkUnnamed620(o.multiIntValue); - checkUnnamed621(o.multiValue); + checkUnnamed625(o.multiIntValue); + checkUnnamed626(o.multiValue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); } buildCounterActivityEventsParameters--; } -buildUnnamed622() { +buildUnnamed627() { var o = new core.List<api.ActivityEventsParameters>(); o.add(buildActivityEventsParameters()); o.add(buildActivityEventsParameters()); return o; } -checkUnnamed622(core.List<api.ActivityEventsParameters> o) { +checkUnnamed627(core.List<api.ActivityEventsParameters> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityEventsParameters(o[0]); checkActivityEventsParameters(o[1]); @@ -188,7 +188,7 @@ buildCounterActivityEvents++; if (buildCounterActivityEvents < 3) { o.name = "foo"; - o.parameters = buildUnnamed622(); + o.parameters = buildUnnamed627(); o.type = "foo"; } buildCounterActivityEvents--; @@ -199,20 +199,20 @@ buildCounterActivityEvents++; if (buildCounterActivityEvents < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed622(o.parameters); + checkUnnamed627(o.parameters); unittest.expect(o.type, unittest.equals('foo')); } buildCounterActivityEvents--; } -buildUnnamed623() { +buildUnnamed628() { var o = new core.List<api.ActivityEvents>(); o.add(buildActivityEvents()); o.add(buildActivityEvents()); return o; } -checkUnnamed623(core.List<api.ActivityEvents> o) { +checkUnnamed628(core.List<api.ActivityEvents> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityEvents(o[0]); checkActivityEvents(o[1]); @@ -250,7 +250,7 @@ if (buildCounterActivity < 3) { o.actor = buildActivityActor(); o.etag = "foo"; - o.events = buildUnnamed623(); + o.events = buildUnnamed628(); o.id = buildActivityId(); o.ipAddress = "foo"; o.kind = "foo"; @@ -265,7 +265,7 @@ if (buildCounterActivity < 3) { checkActivityActor(o.actor); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed623(o.events); + checkUnnamed628(o.events); checkActivityId(o.id); unittest.expect(o.ipAddress, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -274,14 +274,14 @@ buildCounterActivity--; } -buildUnnamed624() { +buildUnnamed629() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed624(core.Map<core.String, core.String> o) { +checkUnnamed629(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -296,7 +296,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed624(); + o.params = buildUnnamed629(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -314,7 +314,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed624(o.params); + checkUnnamed629(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -349,30 +349,30 @@ buildCounterUsageReportEntity--; } -buildUnnamed625() { +buildUnnamed630() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed625(core.Map<core.String, core.Object> o) { +checkUnnamed630(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed626() { +buildUnnamed631() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed625()); - o.add(buildUnnamed625()); + o.add(buildUnnamed630()); + o.add(buildUnnamed630()); return o; } -checkUnnamed626(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed631(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed625(o[0]); - checkUnnamed625(o[1]); + checkUnnamed630(o[0]); + checkUnnamed630(o[1]); } core.int buildCounterUsageReportParameters = 0; @@ -383,7 +383,7 @@ o.boolValue = true; o.datetimeValue = core.DateTime.parse("2002-02-27T14:01:02"); o.intValue = "foo"; - o.msgValue = buildUnnamed626(); + o.msgValue = buildUnnamed631(); o.name = "foo"; o.stringValue = "foo"; } @@ -397,21 +397,21 @@ unittest.expect(o.boolValue, unittest.isTrue); unittest.expect(o.datetimeValue, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.intValue, unittest.equals('foo')); - checkUnnamed626(o.msgValue); + checkUnnamed631(o.msgValue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.stringValue, unittest.equals('foo')); } buildCounterUsageReportParameters--; } -buildUnnamed627() { +buildUnnamed632() { var o = new core.List<api.UsageReportParameters>(); o.add(buildUsageReportParameters()); o.add(buildUsageReportParameters()); return o; } -checkUnnamed627(core.List<api.UsageReportParameters> o) { +checkUnnamed632(core.List<api.UsageReportParameters> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReportParameters(o[0]); checkUsageReportParameters(o[1]); @@ -426,7 +426,7 @@ o.entity = buildUsageReportEntity(); o.etag = "foo"; o.kind = "foo"; - o.parameters = buildUnnamed627(); + o.parameters = buildUnnamed632(); } buildCounterUsageReport--; return o; @@ -439,19 +439,19 @@ checkUsageReportEntity(o.entity); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed627(o.parameters); + checkUnnamed632(o.parameters); } buildCounterUsageReport--; } -buildUnnamed628() { +buildUnnamed633() { var o = new core.List<api.UsageReport>(); o.add(buildUsageReport()); o.add(buildUsageReport()); return o; } -checkUnnamed628(core.List<api.UsageReport> o) { +checkUnnamed633(core.List<api.UsageReport> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReport(o[0]); checkUsageReport(o[1]); @@ -478,14 +478,14 @@ buildCounterUsageReportsWarningsData--; } -buildUnnamed629() { +buildUnnamed634() { var o = new core.List<api.UsageReportsWarningsData>(); o.add(buildUsageReportsWarningsData()); o.add(buildUsageReportsWarningsData()); return o; } -checkUnnamed629(core.List<api.UsageReportsWarningsData> o) { +checkUnnamed634(core.List<api.UsageReportsWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReportsWarningsData(o[0]); checkUsageReportsWarningsData(o[1]); @@ -497,7 +497,7 @@ buildCounterUsageReportsWarnings++; if (buildCounterUsageReportsWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed629(); + o.data = buildUnnamed634(); o.message = "foo"; } buildCounterUsageReportsWarnings--; @@ -508,20 +508,20 @@ buildCounterUsageReportsWarnings++; if (buildCounterUsageReportsWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed629(o.data); + checkUnnamed634(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterUsageReportsWarnings--; } -buildUnnamed630() { +buildUnnamed635() { var o = new core.List<api.UsageReportsWarnings>(); o.add(buildUsageReportsWarnings()); o.add(buildUsageReportsWarnings()); return o; } -checkUnnamed630(core.List<api.UsageReportsWarnings> o) { +checkUnnamed635(core.List<api.UsageReportsWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReportsWarnings(o[0]); checkUsageReportsWarnings(o[1]); @@ -535,8 +535,8 @@ o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; - o.usageReports = buildUnnamed628(); - o.warnings = buildUnnamed630(); + o.usageReports = buildUnnamed633(); + o.warnings = buildUnnamed635(); } buildCounterUsageReports--; return o; @@ -548,8 +548,8 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed628(o.usageReports); - checkUnnamed630(o.warnings); + checkUnnamed633(o.usageReports); + checkUnnamed635(o.warnings); } buildCounterUsageReports--; } @@ -688,7 +688,7 @@ var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_startTime = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -742,7 +742,7 @@ var resp = convert.JSON.encode(buildActivities()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_userKey, arg_applicationName, actorIpAddress: arg_actorIpAddress, customerId: arg_customerId, endTime: arg_endTime, eventName: arg_eventName, filters: arg_filters, maxResults: arg_maxResults, pageToken: arg_pageToken, startTime: arg_startTime).then(unittest.expectAsync(((api.Activities response) { + res.list(arg_userKey, arg_applicationName, actorIpAddress: arg_actorIpAddress, customerId: arg_customerId, endTime: arg_endTime, eventName: arg_eventName, filters: arg_filters, maxResults: arg_maxResults, pageToken: arg_pageToken, startTime: arg_startTime).then(unittest.expectAsync1(((api.Activities response) { checkActivities(response); }))); }); @@ -762,7 +762,7 @@ var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_startTime = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Channel.fromJson(json); checkChannel(obj); @@ -823,7 +823,7 @@ var resp = convert.JSON.encode(buildChannel()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.watch(arg_request, arg_userKey, arg_applicationName, actorIpAddress: arg_actorIpAddress, customerId: arg_customerId, endTime: arg_endTime, eventName: arg_eventName, filters: arg_filters, maxResults: arg_maxResults, pageToken: arg_pageToken, startTime: arg_startTime).then(unittest.expectAsync(((api.Channel response) { + res.watch(arg_request, arg_userKey, arg_applicationName, actorIpAddress: arg_actorIpAddress, customerId: arg_customerId, endTime: arg_endTime, eventName: arg_eventName, filters: arg_filters, maxResults: arg_maxResults, pageToken: arg_pageToken, startTime: arg_startTime).then(unittest.expectAsync1(((api.Channel response) { checkChannel(response); }))); }); @@ -837,7 +837,7 @@ var mock = new HttpServerMock(); api.ChannelsResourceApi res = new api.AdminApi(mock).channels; var arg_request = buildChannel(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Channel.fromJson(json); checkChannel(obj); @@ -874,7 +874,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.stop(arg_request).then(unittest.expectAsync((_) {})); + res.stop(arg_request).then(unittest.expectAsync1((_) {})); }); }); @@ -889,7 +889,7 @@ var arg_customerId = "foo"; var arg_pageToken = "foo"; var arg_parameters = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -931,7 +931,7 @@ var resp = convert.JSON.encode(buildUsageReports()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_date, customerId: arg_customerId, pageToken: arg_pageToken, parameters: arg_parameters).then(unittest.expectAsync(((api.UsageReports response) { + res.get(arg_date, customerId: arg_customerId, pageToken: arg_pageToken, parameters: arg_parameters).then(unittest.expectAsync1(((api.UsageReports response) { checkUsageReports(response); }))); }); @@ -951,7 +951,7 @@ var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_parameters = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1002,7 +1002,7 @@ var resp = convert.JSON.encode(buildUsageReports()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_userKey, arg_date, customerId: arg_customerId, filters: arg_filters, maxResults: arg_maxResults, pageToken: arg_pageToken, parameters: arg_parameters).then(unittest.expectAsync(((api.UsageReports response) { + res.get(arg_userKey, arg_date, customerId: arg_customerId, filters: arg_filters, maxResults: arg_maxResults, pageToken: arg_pageToken, parameters: arg_parameters).then(unittest.expectAsync1(((api.UsageReports response) { checkUsageReports(response); }))); });
diff --git a/generated/googleapis/test/analytics/v3_test.dart b/generated/googleapis/test/analytics/v3_test.dart index 6c3003f..6dea9c6 100644 --- a/generated/googleapis/test/analytics/v3_test.dart +++ b/generated/googleapis/test/analytics/v3_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/analytics/v3.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -72,14 +72,14 @@ buildCounterAccountChildLink--; } -buildUnnamed925() { +buildUnnamed932() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed925(core.List<core.String> o) { +checkUnnamed932(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -90,7 +90,7 @@ var o = new api.AccountPermissions(); buildCounterAccountPermissions++; if (buildCounterAccountPermissions < 3) { - o.effective = buildUnnamed925(); + o.effective = buildUnnamed932(); } buildCounterAccountPermissions--; return o; @@ -99,7 +99,7 @@ checkAccountPermissions(api.AccountPermissions o) { buildCounterAccountPermissions++; if (buildCounterAccountPermissions < 3) { - checkUnnamed925(o.effective); + checkUnnamed932(o.effective); } buildCounterAccountPermissions--; } @@ -164,14 +164,14 @@ buildCounterAccountRef--; } -buildUnnamed926() { +buildUnnamed933() { var o = new core.List<api.AccountSummary>(); o.add(buildAccountSummary()); o.add(buildAccountSummary()); return o; } -checkUnnamed926(core.List<api.AccountSummary> o) { +checkUnnamed933(core.List<api.AccountSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountSummary(o[0]); checkAccountSummary(o[1]); @@ -182,7 +182,7 @@ var o = new api.AccountSummaries(); buildCounterAccountSummaries++; if (buildCounterAccountSummaries < 3) { - o.items = buildUnnamed926(); + o.items = buildUnnamed933(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -198,7 +198,7 @@ checkAccountSummaries(api.AccountSummaries o) { buildCounterAccountSummaries++; if (buildCounterAccountSummaries < 3) { - checkUnnamed926(o.items); + checkUnnamed933(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -210,14 +210,14 @@ buildCounterAccountSummaries--; } -buildUnnamed927() { +buildUnnamed934() { var o = new core.List<api.WebPropertySummary>(); o.add(buildWebPropertySummary()); o.add(buildWebPropertySummary()); return o; } -checkUnnamed927(core.List<api.WebPropertySummary> o) { +checkUnnamed934(core.List<api.WebPropertySummary> o) { unittest.expect(o, unittest.hasLength(2)); checkWebPropertySummary(o[0]); checkWebPropertySummary(o[1]); @@ -232,7 +232,7 @@ o.kind = "foo"; o.name = "foo"; o.starred = true; - o.webProperties = buildUnnamed927(); + o.webProperties = buildUnnamed934(); } buildCounterAccountSummary--; return o; @@ -245,7 +245,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.starred, unittest.isTrue); - checkUnnamed927(o.webProperties); + checkUnnamed934(o.webProperties); } buildCounterAccountSummary--; } @@ -279,14 +279,14 @@ buildCounterAccountTicket--; } -buildUnnamed928() { +buildUnnamed935() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed928(core.List<api.Account> o) { +checkUnnamed935(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -297,7 +297,7 @@ var o = new api.Accounts(); buildCounterAccounts++; if (buildCounterAccounts < 3) { - o.items = buildUnnamed928(); + o.items = buildUnnamed935(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -313,7 +313,7 @@ checkAccounts(api.Accounts o) { buildCounterAccounts++; if (buildCounterAccounts < 3) { - checkUnnamed928(o.items); + checkUnnamed935(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -348,14 +348,14 @@ buildCounterAdWordsAccount--; } -buildUnnamed929() { +buildUnnamed936() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed929(core.List<core.String> o) { +checkUnnamed936(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -366,7 +366,7 @@ var o = new api.AnalyticsDataimportDeleteUploadDataRequest(); buildCounterAnalyticsDataimportDeleteUploadDataRequest++; if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) { - o.customDataImportUids = buildUnnamed929(); + o.customDataImportUids = buildUnnamed936(); } buildCounterAnalyticsDataimportDeleteUploadDataRequest--; return o; @@ -375,19 +375,19 @@ checkAnalyticsDataimportDeleteUploadDataRequest(api.AnalyticsDataimportDeleteUploadDataRequest o) { buildCounterAnalyticsDataimportDeleteUploadDataRequest++; if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) { - checkUnnamed929(o.customDataImportUids); + checkUnnamed936(o.customDataImportUids); } buildCounterAnalyticsDataimportDeleteUploadDataRequest--; } -buildUnnamed930() { +buildUnnamed937() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed930(core.Map<core.String, core.String> o) { +checkUnnamed937(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -398,7 +398,7 @@ var o = new api.Column(); buildCounterColumn++; if (buildCounterColumn < 3) { - o.attributes = buildUnnamed930(); + o.attributes = buildUnnamed937(); o.id = "foo"; o.kind = "foo"; } @@ -409,34 +409,34 @@ checkColumn(api.Column o) { buildCounterColumn++; if (buildCounterColumn < 3) { - checkUnnamed930(o.attributes); + checkUnnamed937(o.attributes); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterColumn--; } -buildUnnamed931() { +buildUnnamed938() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed931(core.List<core.String> o) { +checkUnnamed938(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed932() { +buildUnnamed939() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed932(core.List<api.Column> o) { +checkUnnamed939(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -447,9 +447,9 @@ var o = new api.Columns(); buildCounterColumns++; if (buildCounterColumns < 3) { - o.attributeNames = buildUnnamed931(); + o.attributeNames = buildUnnamed938(); o.etag = "foo"; - o.items = buildUnnamed932(); + o.items = buildUnnamed939(); o.kind = "foo"; o.totalResults = 42; } @@ -460,9 +460,9 @@ checkColumns(api.Columns o) { buildCounterColumns++; if (buildCounterColumns < 3) { - checkUnnamed931(o.attributeNames); + checkUnnamed938(o.attributeNames); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed932(o.items); + checkUnnamed939(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.totalResults, unittest.equals(42)); } @@ -511,14 +511,14 @@ buildCounterCustomDataSourceParentLink--; } -buildUnnamed933() { +buildUnnamed940() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed933(core.List<core.String> o) { +checkUnnamed940(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -538,7 +538,7 @@ o.kind = "foo"; o.name = "foo"; o.parentLink = buildCustomDataSourceParentLink(); - o.profilesLinked = buildUnnamed933(); + o.profilesLinked = buildUnnamed940(); o.selfLink = "foo"; o.type = "foo"; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); @@ -561,7 +561,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkCustomDataSourceParentLink(o.parentLink); - checkUnnamed933(o.profilesLinked); + checkUnnamed940(o.profilesLinked); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -571,14 +571,14 @@ buildCounterCustomDataSource--; } -buildUnnamed934() { +buildUnnamed941() { var o = new core.List<api.CustomDataSource>(); o.add(buildCustomDataSource()); o.add(buildCustomDataSource()); return o; } -checkUnnamed934(core.List<api.CustomDataSource> o) { +checkUnnamed941(core.List<api.CustomDataSource> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomDataSource(o[0]); checkCustomDataSource(o[1]); @@ -589,7 +589,7 @@ var o = new api.CustomDataSources(); buildCounterCustomDataSources++; if (buildCounterCustomDataSources < 3) { - o.items = buildUnnamed934(); + o.items = buildUnnamed941(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -605,7 +605,7 @@ checkCustomDataSources(api.CustomDataSources o) { buildCounterCustomDataSources++; if (buildCounterCustomDataSources < 3) { - checkUnnamed934(o.items); + checkUnnamed941(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -679,14 +679,14 @@ buildCounterCustomDimension--; } -buildUnnamed935() { +buildUnnamed942() { var o = new core.List<api.CustomDimension>(); o.add(buildCustomDimension()); o.add(buildCustomDimension()); return o; } -checkUnnamed935(core.List<api.CustomDimension> o) { +checkUnnamed942(core.List<api.CustomDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomDimension(o[0]); checkCustomDimension(o[1]); @@ -697,7 +697,7 @@ var o = new api.CustomDimensions(); buildCounterCustomDimensions++; if (buildCounterCustomDimensions < 3) { - o.items = buildUnnamed935(); + o.items = buildUnnamed942(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -713,7 +713,7 @@ checkCustomDimensions(api.CustomDimensions o) { buildCounterCustomDimensions++; if (buildCounterCustomDimensions < 3) { - checkUnnamed935(o.items); + checkUnnamed942(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -793,14 +793,14 @@ buildCounterCustomMetric--; } -buildUnnamed936() { +buildUnnamed943() { var o = new core.List<api.CustomMetric>(); o.add(buildCustomMetric()); o.add(buildCustomMetric()); return o; } -checkUnnamed936(core.List<api.CustomMetric> o) { +checkUnnamed943(core.List<api.CustomMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomMetric(o[0]); checkCustomMetric(o[1]); @@ -811,7 +811,7 @@ var o = new api.CustomMetrics(); buildCounterCustomMetrics++; if (buildCounterCustomMetrics < 3) { - o.items = buildUnnamed936(); + o.items = buildUnnamed943(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -827,7 +827,7 @@ checkCustomMetrics(api.CustomMetrics o) { buildCounterCustomMetrics++; if (buildCounterCustomMetrics < 3) { - checkUnnamed936(o.items); + checkUnnamed943(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -839,14 +839,14 @@ buildCounterCustomMetrics--; } -buildUnnamed937() { +buildUnnamed944() { var o = new core.List<api.AdWordsAccount>(); o.add(buildAdWordsAccount()); o.add(buildAdWordsAccount()); return o; } -checkUnnamed937(core.List<api.AdWordsAccount> o) { +checkUnnamed944(core.List<api.AdWordsAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkAdWordsAccount(o[0]); checkAdWordsAccount(o[1]); @@ -871,14 +871,14 @@ buildCounterEntityAdWordsLinkEntity--; } -buildUnnamed938() { +buildUnnamed945() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed938(core.List<core.String> o) { +checkUnnamed945(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -889,12 +889,12 @@ var o = new api.EntityAdWordsLink(); buildCounterEntityAdWordsLink++; if (buildCounterEntityAdWordsLink < 3) { - o.adWordsAccounts = buildUnnamed937(); + o.adWordsAccounts = buildUnnamed944(); o.entity = buildEntityAdWordsLinkEntity(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.profileIds = buildUnnamed938(); + o.profileIds = buildUnnamed945(); o.selfLink = "foo"; } buildCounterEntityAdWordsLink--; @@ -904,25 +904,25 @@ checkEntityAdWordsLink(api.EntityAdWordsLink o) { buildCounterEntityAdWordsLink++; if (buildCounterEntityAdWordsLink < 3) { - checkUnnamed937(o.adWordsAccounts); + checkUnnamed944(o.adWordsAccounts); checkEntityAdWordsLinkEntity(o.entity); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed938(o.profileIds); + checkUnnamed945(o.profileIds); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterEntityAdWordsLink--; } -buildUnnamed939() { +buildUnnamed946() { var o = new core.List<api.EntityAdWordsLink>(); o.add(buildEntityAdWordsLink()); o.add(buildEntityAdWordsLink()); return o; } -checkUnnamed939(core.List<api.EntityAdWordsLink> o) { +checkUnnamed946(core.List<api.EntityAdWordsLink> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAdWordsLink(o[0]); checkEntityAdWordsLink(o[1]); @@ -933,7 +933,7 @@ var o = new api.EntityAdWordsLinks(); buildCounterEntityAdWordsLinks++; if (buildCounterEntityAdWordsLinks < 3) { - o.items = buildUnnamed939(); + o.items = buildUnnamed946(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -948,7 +948,7 @@ checkEntityAdWordsLinks(api.EntityAdWordsLinks o) { buildCounterEntityAdWordsLinks++; if (buildCounterEntityAdWordsLinks < 3) { - checkUnnamed939(o.items); + checkUnnamed946(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -982,27 +982,27 @@ buildCounterEntityUserLinkEntity--; } -buildUnnamed940() { +buildUnnamed947() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed940(core.List<core.String> o) { +checkUnnamed947(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed941() { +buildUnnamed948() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed941(core.List<core.String> o) { +checkUnnamed948(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1013,8 +1013,8 @@ var o = new api.EntityUserLinkPermissions(); buildCounterEntityUserLinkPermissions++; if (buildCounterEntityUserLinkPermissions < 3) { - o.effective = buildUnnamed940(); - o.local = buildUnnamed941(); + o.effective = buildUnnamed947(); + o.local = buildUnnamed948(); } buildCounterEntityUserLinkPermissions--; return o; @@ -1023,8 +1023,8 @@ checkEntityUserLinkPermissions(api.EntityUserLinkPermissions o) { buildCounterEntityUserLinkPermissions++; if (buildCounterEntityUserLinkPermissions < 3) { - checkUnnamed940(o.effective); - checkUnnamed941(o.local); + checkUnnamed947(o.effective); + checkUnnamed948(o.local); } buildCounterEntityUserLinkPermissions--; } @@ -1058,14 +1058,14 @@ buildCounterEntityUserLink--; } -buildUnnamed942() { +buildUnnamed949() { var o = new core.List<api.EntityUserLink>(); o.add(buildEntityUserLink()); o.add(buildEntityUserLink()); return o; } -checkUnnamed942(core.List<api.EntityUserLink> o) { +checkUnnamed949(core.List<api.EntityUserLink> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityUserLink(o[0]); checkEntityUserLink(o[1]); @@ -1076,7 +1076,7 @@ var o = new api.EntityUserLinks(); buildCounterEntityUserLinks++; if (buildCounterEntityUserLinks < 3) { - o.items = buildUnnamed942(); + o.items = buildUnnamed949(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -1091,7 +1091,7 @@ checkEntityUserLinks(api.EntityUserLinks o) { buildCounterEntityUserLinks++; if (buildCounterEntityUserLinks < 3) { - checkUnnamed942(o.items); + checkUnnamed949(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -1150,14 +1150,14 @@ buildCounterExperimentVariations--; } -buildUnnamed943() { +buildUnnamed950() { var o = new core.List<api.ExperimentVariations>(); o.add(buildExperimentVariations()); o.add(buildExperimentVariations()); return o; } -checkUnnamed943(core.List<api.ExperimentVariations> o) { +checkUnnamed950(core.List<api.ExperimentVariations> o) { unittest.expect(o, unittest.hasLength(2)); checkExperimentVariations(o[0]); checkExperimentVariations(o[1]); @@ -1192,7 +1192,7 @@ o.status = "foo"; o.trafficCoverage = 42.0; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); - o.variations = buildUnnamed943(); + o.variations = buildUnnamed950(); o.webPropertyId = "foo"; o.winnerConfidenceLevel = 42.0; o.winnerFound = true; @@ -1228,7 +1228,7 @@ unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.trafficCoverage, unittest.equals(42.0)); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed943(o.variations); + checkUnnamed950(o.variations); unittest.expect(o.webPropertyId, unittest.equals('foo')); unittest.expect(o.winnerConfidenceLevel, unittest.equals(42.0)); unittest.expect(o.winnerFound, unittest.isTrue); @@ -1236,14 +1236,14 @@ buildCounterExperiment--; } -buildUnnamed944() { +buildUnnamed951() { var o = new core.List<api.Experiment>(); o.add(buildExperiment()); o.add(buildExperiment()); return o; } -checkUnnamed944(core.List<api.Experiment> o) { +checkUnnamed951(core.List<api.Experiment> o) { unittest.expect(o, unittest.hasLength(2)); checkExperiment(o[0]); checkExperiment(o[1]); @@ -1254,7 +1254,7 @@ var o = new api.Experiments(); buildCounterExperiments++; if (buildCounterExperiments < 3) { - o.items = buildUnnamed944(); + o.items = buildUnnamed951(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -1270,7 +1270,7 @@ checkExperiments(api.Experiments o) { buildCounterExperiments++; if (buildCounterExperiments < 3) { - checkUnnamed944(o.items); + checkUnnamed951(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -1518,14 +1518,14 @@ buildCounterFilterRef--; } -buildUnnamed945() { +buildUnnamed952() { var o = new core.List<api.Filter>(); o.add(buildFilter()); o.add(buildFilter()); return o; } -checkUnnamed945(core.List<api.Filter> o) { +checkUnnamed952(core.List<api.Filter> o) { unittest.expect(o, unittest.hasLength(2)); checkFilter(o[0]); checkFilter(o[1]); @@ -1536,7 +1536,7 @@ var o = new api.Filters(); buildCounterFilters++; if (buildCounterFilters < 3) { - o.items = buildUnnamed945(); + o.items = buildUnnamed952(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -1552,7 +1552,7 @@ checkFilters(api.Filters o) { buildCounterFilters++; if (buildCounterFilters < 3) { - checkUnnamed945(o.items); + checkUnnamed952(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -1587,14 +1587,14 @@ buildCounterGaDataColumnHeaders--; } -buildUnnamed946() { +buildUnnamed953() { var o = new core.List<api.GaDataColumnHeaders>(); o.add(buildGaDataColumnHeaders()); o.add(buildGaDataColumnHeaders()); return o; } -checkUnnamed946(core.List<api.GaDataColumnHeaders> o) { +checkUnnamed953(core.List<api.GaDataColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataColumnHeaders(o[0]); checkGaDataColumnHeaders(o[1]); @@ -1623,14 +1623,14 @@ buildCounterGaDataDataTableCols--; } -buildUnnamed947() { +buildUnnamed954() { var o = new core.List<api.GaDataDataTableCols>(); o.add(buildGaDataDataTableCols()); o.add(buildGaDataDataTableCols()); return o; } -checkUnnamed947(core.List<api.GaDataDataTableCols> o) { +checkUnnamed954(core.List<api.GaDataDataTableCols> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataDataTableCols(o[0]); checkGaDataDataTableCols(o[1]); @@ -1655,14 +1655,14 @@ buildCounterGaDataDataTableRowsC--; } -buildUnnamed948() { +buildUnnamed955() { var o = new core.List<api.GaDataDataTableRowsC>(); o.add(buildGaDataDataTableRowsC()); o.add(buildGaDataDataTableRowsC()); return o; } -checkUnnamed948(core.List<api.GaDataDataTableRowsC> o) { +checkUnnamed955(core.List<api.GaDataDataTableRowsC> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataDataTableRowsC(o[0]); checkGaDataDataTableRowsC(o[1]); @@ -1673,7 +1673,7 @@ var o = new api.GaDataDataTableRows(); buildCounterGaDataDataTableRows++; if (buildCounterGaDataDataTableRows < 3) { - o.c = buildUnnamed948(); + o.c = buildUnnamed955(); } buildCounterGaDataDataTableRows--; return o; @@ -1682,19 +1682,19 @@ checkGaDataDataTableRows(api.GaDataDataTableRows o) { buildCounterGaDataDataTableRows++; if (buildCounterGaDataDataTableRows < 3) { - checkUnnamed948(o.c); + checkUnnamed955(o.c); } buildCounterGaDataDataTableRows--; } -buildUnnamed949() { +buildUnnamed956() { var o = new core.List<api.GaDataDataTableRows>(); o.add(buildGaDataDataTableRows()); o.add(buildGaDataDataTableRows()); return o; } -checkUnnamed949(core.List<api.GaDataDataTableRows> o) { +checkUnnamed956(core.List<api.GaDataDataTableRows> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataDataTableRows(o[0]); checkGaDataDataTableRows(o[1]); @@ -1705,8 +1705,8 @@ var o = new api.GaDataDataTable(); buildCounterGaDataDataTable++; if (buildCounterGaDataDataTable < 3) { - o.cols = buildUnnamed947(); - o.rows = buildUnnamed949(); + o.cols = buildUnnamed954(); + o.rows = buildUnnamed956(); } buildCounterGaDataDataTable--; return o; @@ -1715,8 +1715,8 @@ checkGaDataDataTable(api.GaDataDataTable o) { buildCounterGaDataDataTable++; if (buildCounterGaDataDataTable < 3) { - checkUnnamed947(o.cols); - checkUnnamed949(o.rows); + checkUnnamed954(o.cols); + checkUnnamed956(o.rows); } buildCounterGaDataDataTable--; } @@ -1750,27 +1750,27 @@ buildCounterGaDataProfileInfo--; } -buildUnnamed950() { +buildUnnamed957() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed950(core.List<core.String> o) { +checkUnnamed957(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed951() { +buildUnnamed958() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed951(core.List<core.String> o) { +checkUnnamed958(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1786,10 +1786,10 @@ o.filters = "foo"; o.ids = "foo"; o.max_results = 42; - o.metrics = buildUnnamed950(); + o.metrics = buildUnnamed957(); o.samplingLevel = "foo"; o.segment = "foo"; - o.sort = buildUnnamed951(); + o.sort = buildUnnamed958(); o.start_date = "foo"; o.start_index = 42; } @@ -1805,50 +1805,50 @@ unittest.expect(o.filters, unittest.equals('foo')); unittest.expect(o.ids, unittest.equals('foo')); unittest.expect(o.max_results, unittest.equals(42)); - checkUnnamed950(o.metrics); + checkUnnamed957(o.metrics); unittest.expect(o.samplingLevel, unittest.equals('foo')); unittest.expect(o.segment, unittest.equals('foo')); - checkUnnamed951(o.sort); + checkUnnamed958(o.sort); unittest.expect(o.start_date, unittest.equals('foo')); unittest.expect(o.start_index, unittest.equals(42)); } buildCounterGaDataQuery--; } -buildUnnamed952() { +buildUnnamed959() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed952(core.List<core.String> o) { +checkUnnamed959(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed953() { +buildUnnamed960() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed952()); - o.add(buildUnnamed952()); + o.add(buildUnnamed959()); + o.add(buildUnnamed959()); return o; } -checkUnnamed953(core.List<core.List<core.String>> o) { +checkUnnamed960(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed952(o[0]); - checkUnnamed952(o[1]); + checkUnnamed959(o[0]); + checkUnnamed959(o[1]); } -buildUnnamed954() { +buildUnnamed961() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed954(core.Map<core.String, core.String> o) { +checkUnnamed961(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1859,7 +1859,7 @@ var o = new api.GaData(); buildCounterGaData++; if (buildCounterGaData < 3) { - o.columnHeaders = buildUnnamed946(); + o.columnHeaders = buildUnnamed953(); o.containsSampledData = true; o.dataLastRefreshed = "foo"; o.dataTable = buildGaDataDataTable(); @@ -1870,12 +1870,12 @@ o.previousLink = "foo"; o.profileInfo = buildGaDataProfileInfo(); o.query = buildGaDataQuery(); - o.rows = buildUnnamed953(); + o.rows = buildUnnamed960(); o.sampleSize = "foo"; o.sampleSpace = "foo"; o.selfLink = "foo"; o.totalResults = 42; - o.totalsForAllResults = buildUnnamed954(); + o.totalsForAllResults = buildUnnamed961(); } buildCounterGaData--; return o; @@ -1884,7 +1884,7 @@ checkGaData(api.GaData o) { buildCounterGaData++; if (buildCounterGaData < 3) { - checkUnnamed946(o.columnHeaders); + checkUnnamed953(o.columnHeaders); unittest.expect(o.containsSampledData, unittest.isTrue); unittest.expect(o.dataLastRefreshed, unittest.equals('foo')); checkGaDataDataTable(o.dataTable); @@ -1895,12 +1895,12 @@ unittest.expect(o.previousLink, unittest.equals('foo')); checkGaDataProfileInfo(o.profileInfo); checkGaDataQuery(o.query); - checkUnnamed953(o.rows); + checkUnnamed960(o.rows); unittest.expect(o.sampleSize, unittest.equals('foo')); unittest.expect(o.sampleSpace, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.totalResults, unittest.equals(42)); - checkUnnamed954(o.totalsForAllResults); + checkUnnamed961(o.totalsForAllResults); } buildCounterGaData--; } @@ -1932,14 +1932,14 @@ buildCounterGoalEventDetailsEventConditions--; } -buildUnnamed955() { +buildUnnamed962() { var o = new core.List<api.GoalEventDetailsEventConditions>(); o.add(buildGoalEventDetailsEventConditions()); o.add(buildGoalEventDetailsEventConditions()); return o; } -checkUnnamed955(core.List<api.GoalEventDetailsEventConditions> o) { +checkUnnamed962(core.List<api.GoalEventDetailsEventConditions> o) { unittest.expect(o, unittest.hasLength(2)); checkGoalEventDetailsEventConditions(o[0]); checkGoalEventDetailsEventConditions(o[1]); @@ -1950,7 +1950,7 @@ var o = new api.GoalEventDetails(); buildCounterGoalEventDetails++; if (buildCounterGoalEventDetails < 3) { - o.eventConditions = buildUnnamed955(); + o.eventConditions = buildUnnamed962(); o.useEventValue = true; } buildCounterGoalEventDetails--; @@ -1960,7 +1960,7 @@ checkGoalEventDetails(api.GoalEventDetails o) { buildCounterGoalEventDetails++; if (buildCounterGoalEventDetails < 3) { - checkUnnamed955(o.eventConditions); + checkUnnamed962(o.eventConditions); unittest.expect(o.useEventValue, unittest.isTrue); } buildCounterGoalEventDetails--; @@ -2010,14 +2010,14 @@ buildCounterGoalUrlDestinationDetailsSteps--; } -buildUnnamed956() { +buildUnnamed963() { var o = new core.List<api.GoalUrlDestinationDetailsSteps>(); o.add(buildGoalUrlDestinationDetailsSteps()); o.add(buildGoalUrlDestinationDetailsSteps()); return o; } -checkUnnamed956(core.List<api.GoalUrlDestinationDetailsSteps> o) { +checkUnnamed963(core.List<api.GoalUrlDestinationDetailsSteps> o) { unittest.expect(o, unittest.hasLength(2)); checkGoalUrlDestinationDetailsSteps(o[0]); checkGoalUrlDestinationDetailsSteps(o[1]); @@ -2031,7 +2031,7 @@ o.caseSensitive = true; o.firstStepRequired = true; o.matchType = "foo"; - o.steps = buildUnnamed956(); + o.steps = buildUnnamed963(); o.url = "foo"; } buildCounterGoalUrlDestinationDetails--; @@ -2044,7 +2044,7 @@ unittest.expect(o.caseSensitive, unittest.isTrue); unittest.expect(o.firstStepRequired, unittest.isTrue); unittest.expect(o.matchType, unittest.equals('foo')); - checkUnnamed956(o.steps); + checkUnnamed963(o.steps); unittest.expect(o.url, unittest.equals('foo')); } buildCounterGoalUrlDestinationDetails--; @@ -2145,14 +2145,14 @@ buildCounterGoal--; } -buildUnnamed957() { +buildUnnamed964() { var o = new core.List<api.Goal>(); o.add(buildGoal()); o.add(buildGoal()); return o; } -checkUnnamed957(core.List<api.Goal> o) { +checkUnnamed964(core.List<api.Goal> o) { unittest.expect(o, unittest.hasLength(2)); checkGoal(o[0]); checkGoal(o[1]); @@ -2163,7 +2163,7 @@ var o = new api.Goals(); buildCounterGoals++; if (buildCounterGoals < 3) { - o.items = buildUnnamed957(); + o.items = buildUnnamed964(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -2179,7 +2179,7 @@ checkGoals(api.Goals o) { buildCounterGoals++; if (buildCounterGoals < 3) { - checkUnnamed957(o.items); + checkUnnamed964(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -2278,14 +2278,14 @@ buildCounterMcfDataColumnHeaders--; } -buildUnnamed958() { +buildUnnamed965() { var o = new core.List<api.McfDataColumnHeaders>(); o.add(buildMcfDataColumnHeaders()); o.add(buildMcfDataColumnHeaders()); return o; } -checkUnnamed958(core.List<api.McfDataColumnHeaders> o) { +checkUnnamed965(core.List<api.McfDataColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkMcfDataColumnHeaders(o[0]); checkMcfDataColumnHeaders(o[1]); @@ -2320,27 +2320,27 @@ buildCounterMcfDataProfileInfo--; } -buildUnnamed959() { +buildUnnamed966() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed959(core.List<core.String> o) { +checkUnnamed966(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed960() { +buildUnnamed967() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed960(core.List<core.String> o) { +checkUnnamed967(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2356,10 +2356,10 @@ o.filters = "foo"; o.ids = "foo"; o.max_results = 42; - o.metrics = buildUnnamed959(); + o.metrics = buildUnnamed966(); o.samplingLevel = "foo"; o.segment = "foo"; - o.sort = buildUnnamed960(); + o.sort = buildUnnamed967(); o.start_date = "foo"; o.start_index = 42; } @@ -2375,10 +2375,10 @@ unittest.expect(o.filters, unittest.equals('foo')); unittest.expect(o.ids, unittest.equals('foo')); unittest.expect(o.max_results, unittest.equals(42)); - checkUnnamed959(o.metrics); + checkUnnamed966(o.metrics); unittest.expect(o.samplingLevel, unittest.equals('foo')); unittest.expect(o.segment, unittest.equals('foo')); - checkUnnamed960(o.sort); + checkUnnamed967(o.sort); unittest.expect(o.start_date, unittest.equals('foo')); unittest.expect(o.start_index, unittest.equals(42)); } @@ -2406,14 +2406,14 @@ buildCounterMcfDataRowsConversionPathValue--; } -buildUnnamed961() { +buildUnnamed968() { var o = new core.List<api.McfDataRowsConversionPathValue>(); o.add(buildMcfDataRowsConversionPathValue()); o.add(buildMcfDataRowsConversionPathValue()); return o; } -checkUnnamed961(core.List<api.McfDataRowsConversionPathValue> o) { +checkUnnamed968(core.List<api.McfDataRowsConversionPathValue> o) { unittest.expect(o, unittest.hasLength(2)); checkMcfDataRowsConversionPathValue(o[0]); checkMcfDataRowsConversionPathValue(o[1]); @@ -2424,7 +2424,7 @@ var o = new api.McfDataRows(); buildCounterMcfDataRows++; if (buildCounterMcfDataRows < 3) { - o.conversionPathValue = buildUnnamed961(); + o.conversionPathValue = buildUnnamed968(); o.primitiveValue = "foo"; } buildCounterMcfDataRows--; @@ -2434,46 +2434,46 @@ checkMcfDataRows(api.McfDataRows o) { buildCounterMcfDataRows++; if (buildCounterMcfDataRows < 3) { - checkUnnamed961(o.conversionPathValue); + checkUnnamed968(o.conversionPathValue); unittest.expect(o.primitiveValue, unittest.equals('foo')); } buildCounterMcfDataRows--; } -buildUnnamed962() { +buildUnnamed969() { var o = new core.List<api.McfDataRows>(); o.add(buildMcfDataRows()); o.add(buildMcfDataRows()); return o; } -checkUnnamed962(core.List<api.McfDataRows> o) { +checkUnnamed969(core.List<api.McfDataRows> o) { unittest.expect(o, unittest.hasLength(2)); checkMcfDataRows(o[0]); checkMcfDataRows(o[1]); } -buildUnnamed963() { +buildUnnamed970() { var o = new core.List<core.List<api.McfDataRows>>(); - o.add(buildUnnamed962()); - o.add(buildUnnamed962()); + o.add(buildUnnamed969()); + o.add(buildUnnamed969()); return o; } -checkUnnamed963(core.List<core.List<api.McfDataRows>> o) { +checkUnnamed970(core.List<core.List<api.McfDataRows>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed962(o[0]); - checkUnnamed962(o[1]); + checkUnnamed969(o[0]); + checkUnnamed969(o[1]); } -buildUnnamed964() { +buildUnnamed971() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed964(core.Map<core.String, core.String> o) { +checkUnnamed971(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -2484,7 +2484,7 @@ var o = new api.McfData(); buildCounterMcfData++; if (buildCounterMcfData < 3) { - o.columnHeaders = buildUnnamed958(); + o.columnHeaders = buildUnnamed965(); o.containsSampledData = true; o.id = "foo"; o.itemsPerPage = 42; @@ -2493,12 +2493,12 @@ o.previousLink = "foo"; o.profileInfo = buildMcfDataProfileInfo(); o.query = buildMcfDataQuery(); - o.rows = buildUnnamed963(); + o.rows = buildUnnamed970(); o.sampleSize = "foo"; o.sampleSpace = "foo"; o.selfLink = "foo"; o.totalResults = 42; - o.totalsForAllResults = buildUnnamed964(); + o.totalsForAllResults = buildUnnamed971(); } buildCounterMcfData--; return o; @@ -2507,7 +2507,7 @@ checkMcfData(api.McfData o) { buildCounterMcfData++; if (buildCounterMcfData < 3) { - checkUnnamed958(o.columnHeaders); + checkUnnamed965(o.columnHeaders); unittest.expect(o.containsSampledData, unittest.isTrue); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.itemsPerPage, unittest.equals(42)); @@ -2516,12 +2516,12 @@ unittest.expect(o.previousLink, unittest.equals('foo')); checkMcfDataProfileInfo(o.profileInfo); checkMcfDataQuery(o.query); - checkUnnamed963(o.rows); + checkUnnamed970(o.rows); unittest.expect(o.sampleSize, unittest.equals('foo')); unittest.expect(o.sampleSpace, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.totalResults, unittest.equals(42)); - checkUnnamed964(o.totalsForAllResults); + checkUnnamed971(o.totalsForAllResults); } buildCounterMcfData--; } @@ -2568,14 +2568,14 @@ buildCounterProfileParentLink--; } -buildUnnamed965() { +buildUnnamed972() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed965(core.List<core.String> o) { +checkUnnamed972(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2586,7 +2586,7 @@ var o = new api.ProfilePermissions(); buildCounterProfilePermissions++; if (buildCounterProfilePermissions < 3) { - o.effective = buildUnnamed965(); + o.effective = buildUnnamed972(); } buildCounterProfilePermissions--; return o; @@ -2595,7 +2595,7 @@ checkProfilePermissions(api.ProfilePermissions o) { buildCounterProfilePermissions++; if (buildCounterProfilePermissions < 3) { - checkUnnamed965(o.effective); + checkUnnamed972(o.effective); } buildCounterProfilePermissions--; } @@ -2698,14 +2698,14 @@ buildCounterProfileFilterLink--; } -buildUnnamed966() { +buildUnnamed973() { var o = new core.List<api.ProfileFilterLink>(); o.add(buildProfileFilterLink()); o.add(buildProfileFilterLink()); return o; } -checkUnnamed966(core.List<api.ProfileFilterLink> o) { +checkUnnamed973(core.List<api.ProfileFilterLink> o) { unittest.expect(o, unittest.hasLength(2)); checkProfileFilterLink(o[0]); checkProfileFilterLink(o[1]); @@ -2716,7 +2716,7 @@ var o = new api.ProfileFilterLinks(); buildCounterProfileFilterLinks++; if (buildCounterProfileFilterLinks < 3) { - o.items = buildUnnamed966(); + o.items = buildUnnamed973(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -2732,7 +2732,7 @@ checkProfileFilterLinks(api.ProfileFilterLinks o) { buildCounterProfileFilterLinks++; if (buildCounterProfileFilterLinks < 3) { - checkUnnamed966(o.items); + checkUnnamed973(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -2802,14 +2802,14 @@ buildCounterProfileSummary--; } -buildUnnamed967() { +buildUnnamed974() { var o = new core.List<api.Profile>(); o.add(buildProfile()); o.add(buildProfile()); return o; } -checkUnnamed967(core.List<api.Profile> o) { +checkUnnamed974(core.List<api.Profile> o) { unittest.expect(o, unittest.hasLength(2)); checkProfile(o[0]); checkProfile(o[1]); @@ -2820,7 +2820,7 @@ var o = new api.Profiles(); buildCounterProfiles++; if (buildCounterProfiles < 3) { - o.items = buildUnnamed967(); + o.items = buildUnnamed974(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -2836,7 +2836,7 @@ checkProfiles(api.Profiles o) { buildCounterProfiles++; if (buildCounterProfiles < 3) { - checkUnnamed967(o.items); + checkUnnamed974(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -2871,14 +2871,14 @@ buildCounterRealtimeDataColumnHeaders--; } -buildUnnamed968() { +buildUnnamed975() { var o = new core.List<api.RealtimeDataColumnHeaders>(); o.add(buildRealtimeDataColumnHeaders()); o.add(buildRealtimeDataColumnHeaders()); return o; } -checkUnnamed968(core.List<api.RealtimeDataColumnHeaders> o) { +checkUnnamed975(core.List<api.RealtimeDataColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkRealtimeDataColumnHeaders(o[0]); checkRealtimeDataColumnHeaders(o[1]); @@ -2913,27 +2913,27 @@ buildCounterRealtimeDataProfileInfo--; } -buildUnnamed969() { +buildUnnamed976() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed969(core.List<core.String> o) { +checkUnnamed976(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed970() { +buildUnnamed977() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed970(core.List<core.String> o) { +checkUnnamed977(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2948,8 +2948,8 @@ o.filters = "foo"; o.ids = "foo"; o.max_results = 42; - o.metrics = buildUnnamed969(); - o.sort = buildUnnamed970(); + o.metrics = buildUnnamed976(); + o.sort = buildUnnamed977(); } buildCounterRealtimeDataQuery--; return o; @@ -2962,46 +2962,46 @@ unittest.expect(o.filters, unittest.equals('foo')); unittest.expect(o.ids, unittest.equals('foo')); unittest.expect(o.max_results, unittest.equals(42)); - checkUnnamed969(o.metrics); - checkUnnamed970(o.sort); + checkUnnamed976(o.metrics); + checkUnnamed977(o.sort); } buildCounterRealtimeDataQuery--; } -buildUnnamed971() { +buildUnnamed978() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed971(core.List<core.String> o) { +checkUnnamed978(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed972() { +buildUnnamed979() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed971()); - o.add(buildUnnamed971()); + o.add(buildUnnamed978()); + o.add(buildUnnamed978()); return o; } -checkUnnamed972(core.List<core.List<core.String>> o) { +checkUnnamed979(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed971(o[0]); - checkUnnamed971(o[1]); + checkUnnamed978(o[0]); + checkUnnamed978(o[1]); } -buildUnnamed973() { +buildUnnamed980() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed973(core.Map<core.String, core.String> o) { +checkUnnamed980(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -3012,15 +3012,15 @@ var o = new api.RealtimeData(); buildCounterRealtimeData++; if (buildCounterRealtimeData < 3) { - o.columnHeaders = buildUnnamed968(); + o.columnHeaders = buildUnnamed975(); o.id = "foo"; o.kind = "foo"; o.profileInfo = buildRealtimeDataProfileInfo(); o.query = buildRealtimeDataQuery(); - o.rows = buildUnnamed972(); + o.rows = buildUnnamed979(); o.selfLink = "foo"; o.totalResults = 42; - o.totalsForAllResults = buildUnnamed973(); + o.totalsForAllResults = buildUnnamed980(); } buildCounterRealtimeData--; return o; @@ -3029,15 +3029,15 @@ checkRealtimeData(api.RealtimeData o) { buildCounterRealtimeData++; if (buildCounterRealtimeData < 3) { - checkUnnamed968(o.columnHeaders); + checkUnnamed975(o.columnHeaders); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkRealtimeDataProfileInfo(o.profileInfo); checkRealtimeDataQuery(o.query); - checkUnnamed972(o.rows); + checkUnnamed979(o.rows); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.totalResults, unittest.equals(42)); - checkUnnamed973(o.totalsForAllResults); + checkUnnamed980(o.totalsForAllResults); } buildCounterRealtimeData--; } @@ -3061,27 +3061,27 @@ buildCounterRemarketingAudienceAudienceDefinition--; } -buildUnnamed974() { +buildUnnamed981() { var o = new core.List<api.LinkedForeignAccount>(); o.add(buildLinkedForeignAccount()); o.add(buildLinkedForeignAccount()); return o; } -checkUnnamed974(core.List<api.LinkedForeignAccount> o) { +checkUnnamed981(core.List<api.LinkedForeignAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkLinkedForeignAccount(o[0]); checkLinkedForeignAccount(o[1]); } -buildUnnamed975() { +buildUnnamed982() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed975(core.List<core.String> o) { +checkUnnamed982(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3142,8 +3142,8 @@ o.id = "foo"; o.internalWebPropertyId = "foo"; o.kind = "foo"; - o.linkedAdAccounts = buildUnnamed974(); - o.linkedViews = buildUnnamed975(); + o.linkedAdAccounts = buildUnnamed981(); + o.linkedViews = buildUnnamed982(); o.name = "foo"; o.stateBasedAudienceDefinition = buildRemarketingAudienceStateBasedAudienceDefinition(); o.updated = core.DateTime.parse("2002-02-27T14:01:02"); @@ -3164,8 +3164,8 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed974(o.linkedAdAccounts); - checkUnnamed975(o.linkedViews); + checkUnnamed981(o.linkedAdAccounts); + checkUnnamed982(o.linkedViews); unittest.expect(o.name, unittest.equals('foo')); checkRemarketingAudienceStateBasedAudienceDefinition(o.stateBasedAudienceDefinition); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -3174,14 +3174,14 @@ buildCounterRemarketingAudience--; } -buildUnnamed976() { +buildUnnamed983() { var o = new core.List<api.RemarketingAudience>(); o.add(buildRemarketingAudience()); o.add(buildRemarketingAudience()); return o; } -checkUnnamed976(core.List<api.RemarketingAudience> o) { +checkUnnamed983(core.List<api.RemarketingAudience> o) { unittest.expect(o, unittest.hasLength(2)); checkRemarketingAudience(o[0]); checkRemarketingAudience(o[1]); @@ -3192,7 +3192,7 @@ var o = new api.RemarketingAudiences(); buildCounterRemarketingAudiences++; if (buildCounterRemarketingAudiences < 3) { - o.items = buildUnnamed976(); + o.items = buildUnnamed983(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3208,7 +3208,7 @@ checkRemarketingAudiences(api.RemarketingAudiences o) { buildCounterRemarketingAudiences++; if (buildCounterRemarketingAudiences < 3) { - checkUnnamed976(o.items); + checkUnnamed983(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3255,14 +3255,14 @@ buildCounterSegment--; } -buildUnnamed977() { +buildUnnamed984() { var o = new core.List<api.Segment>(); o.add(buildSegment()); o.add(buildSegment()); return o; } -checkUnnamed977(core.List<api.Segment> o) { +checkUnnamed984(core.List<api.Segment> o) { unittest.expect(o, unittest.hasLength(2)); checkSegment(o[0]); checkSegment(o[1]); @@ -3273,7 +3273,7 @@ var o = new api.Segments(); buildCounterSegments++; if (buildCounterSegments < 3) { - o.items = buildUnnamed977(); + o.items = buildUnnamed984(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3289,7 +3289,7 @@ checkSegments(api.Segments o) { buildCounterSegments++; if (buildCounterSegments < 3) { - checkUnnamed977(o.items); + checkUnnamed984(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3396,14 +3396,14 @@ buildCounterUnsampledReport--; } -buildUnnamed978() { +buildUnnamed985() { var o = new core.List<api.UnsampledReport>(); o.add(buildUnsampledReport()); o.add(buildUnsampledReport()); return o; } -checkUnnamed978(core.List<api.UnsampledReport> o) { +checkUnnamed985(core.List<api.UnsampledReport> o) { unittest.expect(o, unittest.hasLength(2)); checkUnsampledReport(o[0]); checkUnsampledReport(o[1]); @@ -3414,7 +3414,7 @@ var o = new api.UnsampledReports(); buildCounterUnsampledReports++; if (buildCounterUnsampledReports < 3) { - o.items = buildUnnamed978(); + o.items = buildUnnamed985(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3430,7 +3430,7 @@ checkUnsampledReports(api.UnsampledReports o) { buildCounterUnsampledReports++; if (buildCounterUnsampledReports < 3) { - checkUnnamed978(o.items); + checkUnnamed985(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3442,14 +3442,14 @@ buildCounterUnsampledReports--; } -buildUnnamed979() { +buildUnnamed986() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed979(core.List<core.String> o) { +checkUnnamed986(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3462,7 +3462,7 @@ if (buildCounterUpload < 3) { o.accountId = "foo"; o.customDataSourceId = "foo"; - o.errors = buildUnnamed979(); + o.errors = buildUnnamed986(); o.id = "foo"; o.kind = "foo"; o.status = "foo"; @@ -3476,7 +3476,7 @@ if (buildCounterUpload < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.customDataSourceId, unittest.equals('foo')); - checkUnnamed979(o.errors); + checkUnnamed986(o.errors); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); @@ -3484,14 +3484,14 @@ buildCounterUpload--; } -buildUnnamed980() { +buildUnnamed987() { var o = new core.List<api.Upload>(); o.add(buildUpload()); o.add(buildUpload()); return o; } -checkUnnamed980(core.List<api.Upload> o) { +checkUnnamed987(core.List<api.Upload> o) { unittest.expect(o, unittest.hasLength(2)); checkUpload(o[0]); checkUpload(o[1]); @@ -3502,7 +3502,7 @@ var o = new api.Uploads(); buildCounterUploads++; if (buildCounterUploads < 3) { - o.items = buildUnnamed980(); + o.items = buildUnnamed987(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3517,7 +3517,7 @@ checkUploads(api.Uploads o) { buildCounterUploads++; if (buildCounterUploads < 3) { - checkUnnamed980(o.items); + checkUnnamed987(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3580,14 +3580,14 @@ buildCounterWebPropertyRef--; } -buildUnnamed981() { +buildUnnamed988() { var o = new core.List<api.ProfileSummary>(); o.add(buildProfileSummary()); o.add(buildProfileSummary()); return o; } -checkUnnamed981(core.List<api.ProfileSummary> o) { +checkUnnamed988(core.List<api.ProfileSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkProfileSummary(o[0]); checkProfileSummary(o[1]); @@ -3603,7 +3603,7 @@ o.kind = "foo"; o.level = "foo"; o.name = "foo"; - o.profiles = buildUnnamed981(); + o.profiles = buildUnnamed988(); o.starred = true; o.websiteUrl = "foo"; } @@ -3619,21 +3619,21 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.level, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed981(o.profiles); + checkUnnamed988(o.profiles); unittest.expect(o.starred, unittest.isTrue); unittest.expect(o.websiteUrl, unittest.equals('foo')); } buildCounterWebPropertySummary--; } -buildUnnamed982() { +buildUnnamed989() { var o = new core.List<api.Webproperty>(); o.add(buildWebproperty()); o.add(buildWebproperty()); return o; } -checkUnnamed982(core.List<api.Webproperty> o) { +checkUnnamed989(core.List<api.Webproperty> o) { unittest.expect(o, unittest.hasLength(2)); checkWebproperty(o[0]); checkWebproperty(o[1]); @@ -3644,7 +3644,7 @@ var o = new api.Webproperties(); buildCounterWebproperties++; if (buildCounterWebproperties < 3) { - o.items = buildUnnamed982(); + o.items = buildUnnamed989(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3660,7 +3660,7 @@ checkWebproperties(api.Webproperties o) { buildCounterWebproperties++; if (buildCounterWebproperties < 3) { - checkUnnamed982(o.items); + checkUnnamed989(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3714,14 +3714,14 @@ buildCounterWebpropertyParentLink--; } -buildUnnamed983() { +buildUnnamed990() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed983(core.List<core.String> o) { +checkUnnamed990(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3732,7 +3732,7 @@ var o = new api.WebpropertyPermissions(); buildCounterWebpropertyPermissions++; if (buildCounterWebpropertyPermissions < 3) { - o.effective = buildUnnamed983(); + o.effective = buildUnnamed990(); } buildCounterWebpropertyPermissions--; return o; @@ -3741,7 +3741,7 @@ checkWebpropertyPermissions(api.WebpropertyPermissions o) { buildCounterWebpropertyPermissions++; if (buildCounterWebpropertyPermissions < 3) { - checkUnnamed983(o.effective); + checkUnnamed990(o.effective); } buildCounterWebpropertyPermissions--; } @@ -4726,7 +4726,7 @@ var arg_segment = "foo"; var arg_sort = "foo"; var arg_start_index = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4775,7 +4775,7 @@ var resp = convert.JSON.encode(buildGaData()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_ids, arg_start_date, arg_end_date, arg_metrics, dimensions: arg_dimensions, filters: arg_filters, include_empty_rows: arg_include_empty_rows, max_results: arg_max_results, output: arg_output, samplingLevel: arg_samplingLevel, segment: arg_segment, sort: arg_sort, start_index: arg_start_index).then(unittest.expectAsync(((api.GaData response) { + res.get(arg_ids, arg_start_date, arg_end_date, arg_metrics, dimensions: arg_dimensions, filters: arg_filters, include_empty_rows: arg_include_empty_rows, max_results: arg_max_results, output: arg_output, samplingLevel: arg_samplingLevel, segment: arg_segment, sort: arg_sort, start_index: arg_start_index).then(unittest.expectAsync1(((api.GaData response) { checkGaData(response); }))); }); @@ -4798,7 +4798,7 @@ var arg_samplingLevel = "foo"; var arg_sort = "foo"; var arg_start_index = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4844,7 +4844,7 @@ var resp = convert.JSON.encode(buildMcfData()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_ids, arg_start_date, arg_end_date, arg_metrics, dimensions: arg_dimensions, filters: arg_filters, max_results: arg_max_results, samplingLevel: arg_samplingLevel, sort: arg_sort, start_index: arg_start_index).then(unittest.expectAsync(((api.McfData response) { + res.get(arg_ids, arg_start_date, arg_end_date, arg_metrics, dimensions: arg_dimensions, filters: arg_filters, max_results: arg_max_results, samplingLevel: arg_samplingLevel, sort: arg_sort, start_index: arg_start_index).then(unittest.expectAsync1(((api.McfData response) { checkMcfData(response); }))); }); @@ -4863,7 +4863,7 @@ var arg_filters = "foo"; var arg_max_results = 42; var arg_sort = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4905,7 +4905,7 @@ var resp = convert.JSON.encode(buildRealtimeData()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_ids, arg_metrics, dimensions: arg_dimensions, filters: arg_filters, max_results: arg_max_results, sort: arg_sort).then(unittest.expectAsync(((api.RealtimeData response) { + res.get(arg_ids, arg_metrics, dimensions: arg_dimensions, filters: arg_filters, max_results: arg_max_results, sort: arg_sort).then(unittest.expectAsync1(((api.RealtimeData response) { checkRealtimeData(response); }))); }); @@ -4920,7 +4920,7 @@ api.ManagementAccountSummariesResourceApi res = new api.AnalyticsApi(mock).management.accountSummaries; var arg_max_results = 42; var arg_start_index = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4958,7 +4958,7 @@ var resp = convert.JSON.encode(buildAccountSummaries()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.AccountSummaries response) { + res.list(max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync1(((api.AccountSummaries response) { checkAccountSummaries(response); }))); }); @@ -4973,7 +4973,7 @@ api.ManagementAccountUserLinksResourceApi res = new api.AnalyticsApi(mock).management.accountUserLinks; var arg_accountId = "foo"; var arg_linkId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5019,7 +5019,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_accountId, arg_linkId).then(unittest.expectAsync((_) {})); + res.delete(arg_accountId, arg_linkId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--insert", () { @@ -5028,7 +5028,7 @@ api.ManagementAccountUserLinksResourceApi res = new api.AnalyticsApi(mock).management.accountUserLinks; var arg_request = buildEntityUserLink(); var arg_accountId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.EntityUserLink.fromJson(json); checkEntityUserLink(obj); @@ -5074,7 +5074,7 @@ var resp = convert.JSON.encode(buildEntityUserLink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_accountId).then(unittest.expectAsync(((api.EntityUserLink response) { + res.insert(arg_request, arg_accountId).then(unittest.expectAsync1(((api.EntityUserLink response) { checkEntityUserLink(response); }))); }); @@ -5086,7 +5086,7 @@ var arg_accountId = "foo"; var arg_max_results = 42; var arg_start_index = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5131,7 +5131,7 @@ var resp = convert.JSON.encode(buildEntityUserLinks()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.EntityUserLinks response) { + res.list(arg_accountId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync1(((api.EntityUserLinks response) { checkEntityUserLinks(response); }))); }); @@ -5143,7 +5143,7 @@ var arg_request = buildEntityUserLink(); var arg_accountId = "foo"; var arg_linkId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.EntityUserLink.fromJson(json); checkEntityUserLink(obj); @@ -5192,7 +5192,7 @@ var resp = convert.JSON.encode(buildEntityUserLink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_accountId, arg_linkId).then(unittest.expectAsync(((api.EntityUserLink response) { + res.update(arg_request, arg_accountId, arg_linkId).then(unittest.expectAsync1(((api.EntityUserLink response) { checkEntityUserLink(response); }))); }); @@ -5207,7 +5207,7 @@ api.ManagementAccountsResourceApi res = new api.AnalyticsApi(mock).management.accounts; var arg_max_results = 42; var arg_start_index = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5245,7 +5245,7 @@ var resp = convert.JSON.encode(buildAccounts()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Accounts response) { + res.list(max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync1(((api.Accounts response) { checkAccounts(response); }))); }); @@ -5262,7 +5262,7 @@ var arg_webPropertyId = "foo"; var arg_max_results = 42; var arg_start_index = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5314,7 +5314,7 @@ var resp = convert.JSON.encode(buildCustomDataSources()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.CustomDataSources response) { + res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync1(((api.CustomDataSources response) { checkCustomDataSources(response); }))); }); @@ -5330,7 +5330,7 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_customDimensionId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5383,7 +5383,7 @@ var resp = convert.JSON.encode(buildCustomDimension()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_accountId, arg_webPropertyId, arg_customDimensionId).then(unittest.expectAsync(((api.CustomDimension response) { + res.get(arg_accountId, arg_webPropertyId, arg_customDimensionId).then(unittest.expectAsync1(((api.CustomDimension response) { checkCustomDimension(response); }))); }); @@ -5395,7 +5395,7 @@ var arg_request = buildCustomDimension(); var arg_accountId = "foo"; var arg_webPropertyId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CustomDimension.fromJson(json); checkCustomDimension(obj); @@ -5448,7 +5448,7 @@ var resp = convert.JSON.encode(buildCustomDimension()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.expectAsync(((api.CustomDimension response) { + res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.expectAsync1(((api.CustomDimension response) { checkCustomDimension(response); }))); }); @@ -5461,7 +5461,7 @@ var arg_webPropertyId = "foo"; var arg_max_results = 42; var arg_start_index = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5513,7 +5513,7 @@ var resp = convert.JSON.encode(buildCustomDimensions()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.CustomDimensions response) { + res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync1(((api.CustomDimensions response) { checkCustomDimensions(response); }))); }); @@ -5527,7 +5527,7 @@ var arg_webPropertyId = "foo"; var arg_customDimensionId = "foo"; var arg_ignoreCustomDataSourceLinks = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CustomDimension.fromJson(json); checkCustomDimension(obj); @@ -5584,7 +5584,7 @@ var resp = convert.JSON.encode(buildCustomDimension()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_customDimensionId, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittest.expectAsync(((api.CustomDimension response) { + res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_customDimensionId, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittest.expectAsync1(((api.CustomDimension response) { checkCustomDimension(response); }))); }); @@ -5598,7 +5598,7 @@ var arg_webPropertyId = "foo"; var arg_customDimensionId = "foo"; var arg_ignoreCustomDataSourceLinks = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CustomDimension.fromJson(json); checkCustomDimension(obj); @@ -5655,7 +5655,7 @@ var resp = convert.JSON.encode(buildCustomDimension()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_accountId, arg_webPropertyId, arg_customDimensionId, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittest.expectAsync(((api.CustomDimension response) { + res.update(arg_request, arg_accountId, arg_webPropertyId, arg_customDimensionId, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittest.expectAsync1(((api.CustomDimension response) { checkCustomDimension(response); }))); }); @@ -5671,7 +5671,7 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_customMetricId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5724,7 +5724,7 @@ var resp = convert.JSON.encode(buildCustomMetric()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_accountId, arg_webPropertyId, arg_customMetricId).then(unittest.expectAsync(((api.CustomMetric response) { + res.get(arg_accountId, arg_webPropertyId, arg_customMetricId).then(unittest.expectAsync1(((api.CustomMetric response) { checkCustomMetric(response); }))); }); @@ -5736,7 +5736,7 @@ var arg_request = buildCustomMetric(); var arg_accountId = "foo"; var arg_webPropertyId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CustomMetric.fromJson(json); checkCustomMetric(obj); @@ -5789,7 +5789,7 @@ var resp = convert.JSON.encode(buildCustomMetric()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.expectAsync(((api.CustomMetric response) { + res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.expectAsync1(((api.CustomMetric response) { checkCustomMetric(response); }))); }); @@ -5802,7 +5802,7 @@ var arg_webPropertyId = "foo"; var arg_max_results = 42; var arg_start_index = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5854,7 +5854,7 @@ var resp = convert.JSON.encode(buildCustomMetrics()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.CustomMetrics response) { + res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync1(((api.CustomMetrics response) { checkCustomMetrics(response); }))); }); @@ -5868,7 +5868,7 @@ var arg_webPropertyId = "foo"; var arg_customMetricId = "foo"; var arg_ignoreCustomDataSourceLinks = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CustomMetric.fromJson(json); checkCustomMetric(obj); @@ -5925,7 +5925,7 @@ var resp = convert.JSON.encode(buildCustomMetric()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_customMetricId, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittest.expectAsync(((api.CustomMetric response) { + res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_customMetricId, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittest.expectAsync1(((api.CustomMetric response) { checkCustomMetric(response); }))); }); @@ -5939,7 +5939,7 @@ var arg_webPropertyId = "foo"; var arg_customMetricId = "foo"; var arg_ignoreCustomDataSourceLinks = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CustomMetric.fromJson(json); checkCustomMetric(obj); @@ -5996,7 +5996,7 @@ var resp = convert.JSON.encode(buildCustomMetric()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_accountId, arg_webPropertyId, arg_customMetricId, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittest.expectAsync(((api.CustomMetric response) { + res.update(arg_request, arg_accountId, arg_webPropertyId, arg_customMetricId, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittest.expectAsync1(((api.CustomMetric response) { checkCustomMetric(response); }))); }); @@ -6013,7 +6013,7 @@ var arg_webPropertyId = "foo"; var arg_profileId = "foo"; var arg_experimentId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6073,7 +6073,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_experimentId).then(unittest.expectAsync((_) {})); + res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_experimentId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -6084,7 +6084,7 @@ var arg_webPropertyId = "foo"; var arg_profileId = "foo"; var arg_experimentId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6144,7 +6144,7 @@ var resp = convert.JSON.encode(buildExperiment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_experimentId).then(unittest.expectAsync(((api.Experiment response) { + res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_experimentId).then(unittest.expectAsync1(((api.Experiment response) { checkExperiment(response); }))); }); @@ -6157,7 +6157,7 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Experiment.fromJson(json); checkExperiment(obj); @@ -6217,7 +6217,7 @@ var resp = convert.JSON.encode(buildExperiment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync(((api.Experiment response) { + res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync1(((api.Experiment response) { checkExperiment(response); }))); }); @@ -6231,7 +6231,7 @@ var arg_profileId = "foo"; var arg_max_results = 42; var arg_start_index = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6290,7 +6290,7 @@ var resp = convert.JSON.encode(buildExperiments()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Experiments response) { + res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync1(((api.Experiments response) { checkExperiments(response); }))); }); @@ -6304,7 +6304,7 @@ var arg_webPropertyId = "foo"; var arg_profileId = "foo"; var arg_experimentId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Experiment.fromJson(json); checkExperiment(obj); @@ -6367,7 +6367,7 @@ var resp = convert.JSON.encode(buildExperiment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, arg_experimentId).then(unittest.expectAsync(((api.Experiment response) { + res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, arg_experimentId).then(unittest.expectAsync1(((api.Experiment response) { checkExperiment(response); }))); }); @@ -6381,7 +6381,7 @@ var arg_webPropertyId = "foo"; var arg_profileId = "foo"; var arg_experimentId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Experiment.fromJson(json); checkExperiment(obj); @@ -6444,7 +6444,7 @@ var resp = convert.JSON.encode(buildExperiment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, arg_experimentId).then(unittest.expectAsync(((api.Experiment response) { + res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, arg_experimentId).then(unittest.expectAsync1(((api.Experiment response) { checkExperiment(response); }))); }); @@ -6459,7 +6459,7 @@ api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).management.filters; var arg_accountId = "foo"; var arg_filterId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6505,7 +6505,7 @@ var resp = convert.JSON.encode(buildFilter()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_accountId, arg_filterId).then(unittest.expectAsync(((api.Filter response) { + res.delete(arg_accountId, arg_filterId).then(unittest.expectAsync1(((api.Filter response) { checkFilter(response); }))); }); @@ -6516,7 +6516,7 @@ api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).management.filters; var arg_accountId = "foo"; var arg_filterId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6562,7 +6562,7 @@ var resp = convert.JSON.encode(buildFilter()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_accountId, arg_filterId).then(unittest.expectAsync(((api.Filter response) { + res.get(arg_accountId, arg_filterId).then(unittest.expectAsync1(((api.Filter response) { checkFilter(response); }))); }); @@ -6573,7 +6573,7 @@ api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).management.filters; var arg_request = buildFilter(); var arg_accountId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Filter.fromJson(json); checkFilter(obj); @@ -6619,7 +6619,7 @@ var resp = convert.JSON.encode(buildFilter()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_accountId).then(unittest.expectAsync(((api.Filter response) { + res.insert(arg_request, arg_accountId).then(unittest.expectAsync1(((api.Filter response) { checkFilter(response); }))); }); @@ -6631,7 +6631,7 @@ var arg_accountId = "foo"; var arg_max_results = 42; var arg_start_index = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6676,7 +6676,7 @@ var resp = convert.JSON.encode(buildFilters()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Filters response) { + res.list(arg_accountId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync1(((api.Filters response) { checkFilters(response); }))); }); @@ -6688,7 +6688,7 @@ var arg_request = buildFilter(); var arg_accountId = "foo"; var arg_filterId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Filter.fromJson(json); checkFilter(obj); @@ -6737,7 +6737,7 @@ var resp = convert.JSON.encode(buildFilter()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_accountId, arg_filterId).then(unittest.expectAsync(((api.Filter response) { + res.patch(arg_request, arg_accountId, arg_filterId).then(unittest.expectAsync1(((api.Filter response) { checkFilter(response); }))); }); @@ -6749,7 +6749,7 @@ var arg_request = buildFilter(); var arg_accountId = "foo"; var arg_filterId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Filter.fromJson(json); checkFilter(obj); @@ -6798,7 +6798,7 @@ var resp = convert.JSON.encode(buildFilter()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_accountId, arg_filterId).then(unittest.expectAsync(((api.Filter response) { + res.update(arg_request, arg_accountId, arg_filterId).then(unittest.expectAsync1(((api.Filter response) { checkFilter(response); }))); }); @@ -6815,7 +6815,7 @@ var arg_webPropertyId = "foo"; var arg_profileId = "foo"; var arg_goalId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6875,7 +6875,7 @@ var resp = convert.JSON.encode(buildGoal()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_goalId).then(unittest.expectAsync(((api.Goal response) { + res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_goalId).then(unittest.expectAsync1(((api.Goal response) { checkGoal(response); }))); }); @@ -6888,7 +6888,7 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Goal.fromJson(json); checkGoal(obj); @@ -6948,7 +6948,7 @@ var resp = convert.JSON.encode(buildGoal()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync(((api.Goal response) { + res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync1(((api.Goal response) { checkGoal(response); }))); }); @@ -6962,7 +6962,7 @@ var arg_profileId = "foo"; var arg_max_results = 42; var arg_start_index = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7021,7 +7021,7 @@ var resp = convert.JSON.encode(buildGoals()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Goals response) { + res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync1(((api.Goals response) { checkGoals(response); }))); }); @@ -7035,7 +7035,7 @@ var arg_webPropertyId = "foo"; var arg_profileId = "foo"; var arg_goalId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Goal.fromJson(json); checkGoal(obj); @@ -7098,7 +7098,7 @@ var resp = convert.JSON.encode(buildGoal()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, arg_goalId).then(unittest.expectAsync(((api.Goal response) { + res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, arg_goalId).then(unittest.expectAsync1(((api.Goal response) { checkGoal(response); }))); }); @@ -7112,7 +7112,7 @@ var arg_webPropertyId = "foo"; var arg_profileId = "foo"; var arg_goalId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Goal.fromJson(json); checkGoal(obj); @@ -7175,7 +7175,7 @@ var resp = convert.JSON.encode(buildGoal()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, arg_goalId).then(unittest.expectAsync(((api.Goal response) { + res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, arg_goalId).then(unittest.expectAsync1(((api.Goal response) { checkGoal(response); }))); }); @@ -7192,7 +7192,7 @@ var arg_webPropertyId = "foo"; var arg_profileId = "foo"; var arg_linkId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7252,7 +7252,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).then(unittest.expectAsync((_) {})); + res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -7263,7 +7263,7 @@ var arg_webPropertyId = "foo"; var arg_profileId = "foo"; var arg_linkId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7323,7 +7323,7 @@ var resp = convert.JSON.encode(buildProfileFilterLink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).then(unittest.expectAsync(((api.ProfileFilterLink response) { + res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).then(unittest.expectAsync1(((api.ProfileFilterLink response) { checkProfileFilterLink(response); }))); }); @@ -7336,7 +7336,7 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ProfileFilterLink.fromJson(json); checkProfileFilterLink(obj); @@ -7396,7 +7396,7 @@ var resp = convert.JSON.encode(buildProfileFilterLink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync(((api.ProfileFilterLink response) { + res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync1(((api.ProfileFilterLink response) { checkProfileFilterLink(response); }))); }); @@ -7410,7 +7410,7 @@ var arg_profileId = "foo"; var arg_max_results = 42; var arg_start_index = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7469,7 +7469,7 @@ var resp = convert.JSON.encode(buildProfileFilterLinks()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.ProfileFilterLinks response) { + res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync1(((api.ProfileFilterLinks response) { checkProfileFilterLinks(response); }))); }); @@ -7483,7 +7483,7 @@ var arg_webPropertyId = "foo"; var arg_profileId = "foo"; var arg_linkId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ProfileFilterLink.fromJson(json); checkProfileFilterLink(obj); @@ -7546,7 +7546,7 @@ var resp = convert.JSON.encode(buildProfileFilterLink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).then(unittest.expectAsync(((api.ProfileFilterLink response) { + res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).then(unittest.expectAsync1(((api.ProfileFilterLink response) { checkProfileFilterLink(response); }))); }); @@ -7560,7 +7560,7 @@ var arg_webPropertyId = "foo"; var arg_profileId = "foo"; var arg_linkId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ProfileFilterLink.fromJson(json); checkProfileFilterLink(obj); @@ -7623,7 +7623,7 @@ var resp = convert.JSON.encode(buildProfileFilterLink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).then(unittest.expectAsync(((api.ProfileFilterLink response) { + res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).then(unittest.expectAsync1(((api.ProfileFilterLink response) { checkProfileFilterLink(response); }))); }); @@ -7640,7 +7640,7 @@ var arg_webPropertyId = "foo"; var arg_profileId = "foo"; var arg_linkId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7700,7 +7700,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).then(unittest.expectAsync((_) {})); + res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--insert", () { @@ -7711,7 +7711,7 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.EntityUserLink.fromJson(json); checkEntityUserLink(obj); @@ -7771,7 +7771,7 @@ var resp = convert.JSON.encode(buildEntityUserLink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync(((api.EntityUserLink response) { + res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync1(((api.EntityUserLink response) { checkEntityUserLink(response); }))); }); @@ -7785,7 +7785,7 @@ var arg_profileId = "foo"; var arg_max_results = 42; var arg_start_index = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7844,7 +7844,7 @@ var resp = convert.JSON.encode(buildEntityUserLinks()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.EntityUserLinks response) { + res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync1(((api.EntityUserLinks response) { checkEntityUserLinks(response); }))); }); @@ -7858,7 +7858,7 @@ var arg_webPropertyId = "foo"; var arg_profileId = "foo"; var arg_linkId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.EntityUserLink.fromJson(json); checkEntityUserLink(obj); @@ -7921,7 +7921,7 @@ var resp = convert.JSON.encode(buildEntityUserLink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).then(unittest.expectAsync(((api.EntityUserLink response) { + res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).then(unittest.expectAsync1(((api.EntityUserLink response) { checkEntityUserLink(response); }))); }); @@ -7937,7 +7937,7 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7990,7 +7990,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync((_) {})); + res.delete(arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -8000,7 +8000,7 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8053,7 +8053,7 @@ var resp = convert.JSON.encode(buildProfile()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync(((api.Profile response) { + res.get(arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync1(((api.Profile response) { checkProfile(response); }))); }); @@ -8065,7 +8065,7 @@ var arg_request = buildProfile(); var arg_accountId = "foo"; var arg_webPropertyId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Profile.fromJson(json); checkProfile(obj); @@ -8118,7 +8118,7 @@ var resp = convert.JSON.encode(buildProfile()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.expectAsync(((api.Profile response) { + res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.expectAsync1(((api.Profile response) { checkProfile(response); }))); }); @@ -8131,7 +8131,7 @@ var arg_webPropertyId = "foo"; var arg_max_results = 42; var arg_start_index = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8183,7 +8183,7 @@ var resp = convert.JSON.encode(buildProfiles()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Profiles response) { + res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync1(((api.Profiles response) { checkProfiles(response); }))); }); @@ -8196,7 +8196,7 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Profile.fromJson(json); checkProfile(obj); @@ -8252,7 +8252,7 @@ var resp = convert.JSON.encode(buildProfile()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync(((api.Profile response) { + res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync1(((api.Profile response) { checkProfile(response); }))); }); @@ -8265,7 +8265,7 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Profile.fromJson(json); checkProfile(obj); @@ -8321,7 +8321,7 @@ var resp = convert.JSON.encode(buildProfile()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync(((api.Profile response) { + res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync1(((api.Profile response) { checkProfile(response); }))); }); @@ -8337,7 +8337,7 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_remarketingAudienceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8390,7 +8390,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_accountId, arg_webPropertyId, arg_remarketingAudienceId).then(unittest.expectAsync((_) {})); + res.delete(arg_accountId, arg_webPropertyId, arg_remarketingAudienceId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -8400,7 +8400,7 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_remarketingAudienceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8453,7 +8453,7 @@ var resp = convert.JSON.encode(buildRemarketingAudience()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_accountId, arg_webPropertyId, arg_remarketingAudienceId).then(unittest.expectAsync(((api.RemarketingAudience response) { + res.get(arg_accountId, arg_webPropertyId, arg_remarketingAudienceId).then(unittest.expectAsync1(((api.RemarketingAudience response) { checkRemarketingAudience(response); }))); }); @@ -8465,7 +8465,7 @@ var arg_request = buildRemarketingAudience(); var arg_accountId = "foo"; var arg_webPropertyId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RemarketingAudience.fromJson(json); checkRemarketingAudience(obj); @@ -8518,7 +8518,7 @@ var resp = convert.JSON.encode(buildRemarketingAudience()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.expectAsync(((api.RemarketingAudience response) { + res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.expectAsync1(((api.RemarketingAudience response) { checkRemarketingAudience(response); }))); }); @@ -8532,7 +8532,7 @@ var arg_max_results = 42; var arg_start_index = 42; var arg_type = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8585,7 +8585,7 @@ var resp = convert.JSON.encode(buildRemarketingAudiences()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, start_index: arg_start_index, type: arg_type).then(unittest.expectAsync(((api.RemarketingAudiences response) { + res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, start_index: arg_start_index, type: arg_type).then(unittest.expectAsync1(((api.RemarketingAudiences response) { checkRemarketingAudiences(response); }))); }); @@ -8598,7 +8598,7 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_remarketingAudienceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RemarketingAudience.fromJson(json); checkRemarketingAudience(obj); @@ -8654,7 +8654,7 @@ var resp = convert.JSON.encode(buildRemarketingAudience()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_remarketingAudienceId).then(unittest.expectAsync(((api.RemarketingAudience response) { + res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_remarketingAudienceId).then(unittest.expectAsync1(((api.RemarketingAudience response) { checkRemarketingAudience(response); }))); }); @@ -8667,7 +8667,7 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_remarketingAudienceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RemarketingAudience.fromJson(json); checkRemarketingAudience(obj); @@ -8723,7 +8723,7 @@ var resp = convert.JSON.encode(buildRemarketingAudience()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_accountId, arg_webPropertyId, arg_remarketingAudienceId).then(unittest.expectAsync(((api.RemarketingAudience response) { + res.update(arg_request, arg_accountId, arg_webPropertyId, arg_remarketingAudienceId).then(unittest.expectAsync1(((api.RemarketingAudience response) { checkRemarketingAudience(response); }))); }); @@ -8738,7 +8738,7 @@ api.ManagementSegmentsResourceApi res = new api.AnalyticsApi(mock).management.segments; var arg_max_results = 42; var arg_start_index = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8776,7 +8776,7 @@ var resp = convert.JSON.encode(buildSegments()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Segments response) { + res.list(max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync1(((api.Segments response) { checkSegments(response); }))); }); @@ -8793,7 +8793,7 @@ var arg_webPropertyId = "foo"; var arg_profileId = "foo"; var arg_unsampledReportId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8853,7 +8853,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_unsampledReportId).then(unittest.expectAsync((_) {})); + res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_unsampledReportId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -8864,7 +8864,7 @@ var arg_webPropertyId = "foo"; var arg_profileId = "foo"; var arg_unsampledReportId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8924,7 +8924,7 @@ var resp = convert.JSON.encode(buildUnsampledReport()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_unsampledReportId).then(unittest.expectAsync(((api.UnsampledReport response) { + res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_unsampledReportId).then(unittest.expectAsync1(((api.UnsampledReport response) { checkUnsampledReport(response); }))); }); @@ -8937,7 +8937,7 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UnsampledReport.fromJson(json); checkUnsampledReport(obj); @@ -8997,7 +8997,7 @@ var resp = convert.JSON.encode(buildUnsampledReport()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync(((api.UnsampledReport response) { + res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync1(((api.UnsampledReport response) { checkUnsampledReport(response); }))); }); @@ -9011,7 +9011,7 @@ var arg_profileId = "foo"; var arg_max_results = 42; var arg_start_index = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -9070,7 +9070,7 @@ var resp = convert.JSON.encode(buildUnsampledReports()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.UnsampledReports response) { + res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync1(((api.UnsampledReports response) { checkUnsampledReports(response); }))); }); @@ -9087,7 +9087,7 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_customDataSourceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AnalyticsDataimportDeleteUploadDataRequest.fromJson(json); checkAnalyticsDataimportDeleteUploadDataRequest(obj); @@ -9147,7 +9147,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.deleteUploadData(arg_request, arg_accountId, arg_webPropertyId, arg_customDataSourceId).then(unittest.expectAsync((_) {})); + res.deleteUploadData(arg_request, arg_accountId, arg_webPropertyId, arg_customDataSourceId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -9158,7 +9158,7 @@ var arg_webPropertyId = "foo"; var arg_customDataSourceId = "foo"; var arg_uploadId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -9218,7 +9218,7 @@ var resp = convert.JSON.encode(buildUpload()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_accountId, arg_webPropertyId, arg_customDataSourceId, arg_uploadId).then(unittest.expectAsync(((api.Upload response) { + res.get(arg_accountId, arg_webPropertyId, arg_customDataSourceId, arg_uploadId).then(unittest.expectAsync1(((api.Upload response) { checkUpload(response); }))); }); @@ -9232,7 +9232,7 @@ var arg_customDataSourceId = "foo"; var arg_max_results = 42; var arg_start_index = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -9291,7 +9291,7 @@ var resp = convert.JSON.encode(buildUploads()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, arg_webPropertyId, arg_customDataSourceId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Uploads response) { + res.list(arg_accountId, arg_webPropertyId, arg_customDataSourceId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync1(((api.Uploads response) { checkUploads(response); }))); }); @@ -9305,7 +9305,7 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_customDataSourceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -9362,7 +9362,7 @@ var resp = convert.JSON.encode(buildUpload()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.uploadData(arg_accountId, arg_webPropertyId, arg_customDataSourceId).then(unittest.expectAsync(((api.Upload response) { + res.uploadData(arg_accountId, arg_webPropertyId, arg_customDataSourceId).then(unittest.expectAsync1(((api.Upload response) { checkUpload(response); }))); }); @@ -9378,7 +9378,7 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_webPropertyAdWordsLinkId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -9431,7 +9431,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_accountId, arg_webPropertyId, arg_webPropertyAdWordsLinkId).then(unittest.expectAsync((_) {})); + res.delete(arg_accountId, arg_webPropertyId, arg_webPropertyAdWordsLinkId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -9441,7 +9441,7 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_webPropertyAdWordsLinkId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -9494,7 +9494,7 @@ var resp = convert.JSON.encode(buildEntityAdWordsLink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_accountId, arg_webPropertyId, arg_webPropertyAdWordsLinkId).then(unittest.expectAsync(((api.EntityAdWordsLink response) { + res.get(arg_accountId, arg_webPropertyId, arg_webPropertyAdWordsLinkId).then(unittest.expectAsync1(((api.EntityAdWordsLink response) { checkEntityAdWordsLink(response); }))); }); @@ -9506,7 +9506,7 @@ var arg_request = buildEntityAdWordsLink(); var arg_accountId = "foo"; var arg_webPropertyId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.EntityAdWordsLink.fromJson(json); checkEntityAdWordsLink(obj); @@ -9559,7 +9559,7 @@ var resp = convert.JSON.encode(buildEntityAdWordsLink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.expectAsync(((api.EntityAdWordsLink response) { + res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.expectAsync1(((api.EntityAdWordsLink response) { checkEntityAdWordsLink(response); }))); }); @@ -9572,7 +9572,7 @@ var arg_webPropertyId = "foo"; var arg_max_results = 42; var arg_start_index = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -9624,7 +9624,7 @@ var resp = convert.JSON.encode(buildEntityAdWordsLinks()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.EntityAdWordsLinks response) { + res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync1(((api.EntityAdWordsLinks response) { checkEntityAdWordsLinks(response); }))); }); @@ -9637,7 +9637,7 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_webPropertyAdWordsLinkId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.EntityAdWordsLink.fromJson(json); checkEntityAdWordsLink(obj); @@ -9693,7 +9693,7 @@ var resp = convert.JSON.encode(buildEntityAdWordsLink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_webPropertyAdWordsLinkId).then(unittest.expectAsync(((api.EntityAdWordsLink response) { + res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_webPropertyAdWordsLinkId).then(unittest.expectAsync1(((api.EntityAdWordsLink response) { checkEntityAdWordsLink(response); }))); }); @@ -9706,7 +9706,7 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_webPropertyAdWordsLinkId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.EntityAdWordsLink.fromJson(json); checkEntityAdWordsLink(obj); @@ -9762,7 +9762,7 @@ var resp = convert.JSON.encode(buildEntityAdWordsLink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_accountId, arg_webPropertyId, arg_webPropertyAdWordsLinkId).then(unittest.expectAsync(((api.EntityAdWordsLink response) { + res.update(arg_request, arg_accountId, arg_webPropertyId, arg_webPropertyAdWordsLinkId).then(unittest.expectAsync1(((api.EntityAdWordsLink response) { checkEntityAdWordsLink(response); }))); }); @@ -9777,7 +9777,7 @@ api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).management.webproperties; var arg_accountId = "foo"; var arg_webPropertyId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -9823,7 +9823,7 @@ var resp = convert.JSON.encode(buildWebproperty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_accountId, arg_webPropertyId).then(unittest.expectAsync(((api.Webproperty response) { + res.get(arg_accountId, arg_webPropertyId).then(unittest.expectAsync1(((api.Webproperty response) { checkWebproperty(response); }))); }); @@ -9834,7 +9834,7 @@ api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).management.webproperties; var arg_request = buildWebproperty(); var arg_accountId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Webproperty.fromJson(json); checkWebproperty(obj); @@ -9880,7 +9880,7 @@ var resp = convert.JSON.encode(buildWebproperty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_accountId).then(unittest.expectAsync(((api.Webproperty response) { + res.insert(arg_request, arg_accountId).then(unittest.expectAsync1(((api.Webproperty response) { checkWebproperty(response); }))); }); @@ -9892,7 +9892,7 @@ var arg_accountId = "foo"; var arg_max_results = 42; var arg_start_index = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -9937,7 +9937,7 @@ var resp = convert.JSON.encode(buildWebproperties()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Webproperties response) { + res.list(arg_accountId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync1(((api.Webproperties response) { checkWebproperties(response); }))); }); @@ -9949,7 +9949,7 @@ var arg_request = buildWebproperty(); var arg_accountId = "foo"; var arg_webPropertyId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Webproperty.fromJson(json); checkWebproperty(obj); @@ -9998,7 +9998,7 @@ var resp = convert.JSON.encode(buildWebproperty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_accountId, arg_webPropertyId).then(unittest.expectAsync(((api.Webproperty response) { + res.patch(arg_request, arg_accountId, arg_webPropertyId).then(unittest.expectAsync1(((api.Webproperty response) { checkWebproperty(response); }))); }); @@ -10010,7 +10010,7 @@ var arg_request = buildWebproperty(); var arg_accountId = "foo"; var arg_webPropertyId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Webproperty.fromJson(json); checkWebproperty(obj); @@ -10059,7 +10059,7 @@ var resp = convert.JSON.encode(buildWebproperty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_accountId, arg_webPropertyId).then(unittest.expectAsync(((api.Webproperty response) { + res.update(arg_request, arg_accountId, arg_webPropertyId).then(unittest.expectAsync1(((api.Webproperty response) { checkWebproperty(response); }))); }); @@ -10075,7 +10075,7 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_linkId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -10128,7 +10128,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_accountId, arg_webPropertyId, arg_linkId).then(unittest.expectAsync((_) {})); + res.delete(arg_accountId, arg_webPropertyId, arg_linkId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--insert", () { @@ -10138,7 +10138,7 @@ var arg_request = buildEntityUserLink(); var arg_accountId = "foo"; var arg_webPropertyId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.EntityUserLink.fromJson(json); checkEntityUserLink(obj); @@ -10191,7 +10191,7 @@ var resp = convert.JSON.encode(buildEntityUserLink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.expectAsync(((api.EntityUserLink response) { + res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.expectAsync1(((api.EntityUserLink response) { checkEntityUserLink(response); }))); }); @@ -10204,7 +10204,7 @@ var arg_webPropertyId = "foo"; var arg_max_results = 42; var arg_start_index = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -10256,7 +10256,7 @@ var resp = convert.JSON.encode(buildEntityUserLinks()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.EntityUserLinks response) { + res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync1(((api.EntityUserLinks response) { checkEntityUserLinks(response); }))); }); @@ -10269,7 +10269,7 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_linkId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.EntityUserLink.fromJson(json); checkEntityUserLink(obj); @@ -10325,7 +10325,7 @@ var resp = convert.JSON.encode(buildEntityUserLink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_accountId, arg_webPropertyId, arg_linkId).then(unittest.expectAsync(((api.EntityUserLink response) { + res.update(arg_request, arg_accountId, arg_webPropertyId, arg_linkId).then(unittest.expectAsync1(((api.EntityUserLink response) { checkEntityUserLink(response); }))); }); @@ -10339,7 +10339,7 @@ var mock = new HttpServerMock(); api.MetadataColumnsResourceApi res = new api.AnalyticsApi(mock).metadata.columns; var arg_reportType = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -10382,7 +10382,7 @@ var resp = convert.JSON.encode(buildColumns()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_reportType).then(unittest.expectAsync(((api.Columns response) { + res.list(arg_reportType).then(unittest.expectAsync1(((api.Columns response) { checkColumns(response); }))); }); @@ -10396,7 +10396,7 @@ var mock = new HttpServerMock(); api.ProvisioningResourceApi res = new api.AnalyticsApi(mock).provisioning; var arg_request = buildAccountTicket(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AccountTicket.fromJson(json); checkAccountTicket(obj); @@ -10435,7 +10435,7 @@ var resp = convert.JSON.encode(buildAccountTicket()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.createAccountTicket(arg_request).then(unittest.expectAsync(((api.AccountTicket response) { + res.createAccountTicket(arg_request).then(unittest.expectAsync1(((api.AccountTicket response) { checkAccountTicket(response); }))); });
diff --git a/generated/googleapis/test/analyticsreporting/v4_test.dart b/generated/googleapis/test/analyticsreporting/v4_test.dart index 72ea5cc..adbec62 100644 --- a/generated/googleapis/test/analyticsreporting/v4_test.dart +++ b/generated/googleapis/test/analyticsreporting/v4_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/analyticsreporting/v4.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -74,14 +74,14 @@ buildCounterCohort--; } -buildUnnamed157() { +buildUnnamed159() { var o = new core.List<api.Cohort>(); o.add(buildCohort()); o.add(buildCohort()); return o; } -checkUnnamed157(core.List<api.Cohort> o) { +checkUnnamed159(core.List<api.Cohort> o) { unittest.expect(o, unittest.hasLength(2)); checkCohort(o[0]); checkCohort(o[1]); @@ -92,7 +92,7 @@ var o = new api.CohortGroup(); buildCounterCohortGroup++; if (buildCounterCohortGroup < 3) { - o.cohorts = buildUnnamed157(); + o.cohorts = buildUnnamed159(); o.lifetimeValue = true; } buildCounterCohortGroup--; @@ -102,20 +102,20 @@ checkCohortGroup(api.CohortGroup o) { buildCounterCohortGroup++; if (buildCounterCohortGroup < 3) { - checkUnnamed157(o.cohorts); + checkUnnamed159(o.cohorts); unittest.expect(o.lifetimeValue, unittest.isTrue); } buildCounterCohortGroup--; } -buildUnnamed158() { +buildUnnamed160() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed158(core.List<core.String> o) { +checkUnnamed160(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -126,7 +126,7 @@ var o = new api.ColumnHeader(); buildCounterColumnHeader++; if (buildCounterColumnHeader < 3) { - o.dimensions = buildUnnamed158(); + o.dimensions = buildUnnamed160(); o.metricHeader = buildMetricHeader(); } buildCounterColumnHeader--; @@ -136,7 +136,7 @@ checkColumnHeader(api.ColumnHeader o) { buildCounterColumnHeader++; if (buildCounterColumnHeader < 3) { - checkUnnamed158(o.dimensions); + checkUnnamed160(o.dimensions); checkMetricHeader(o.metricHeader); } buildCounterColumnHeader--; @@ -163,87 +163,19 @@ buildCounterDateRange--; } -buildUnnamed159() { +buildUnnamed161() { var o = new core.List<api.PivotValueRegion>(); o.add(buildPivotValueRegion()); o.add(buildPivotValueRegion()); return o; } -checkUnnamed159(core.List<api.PivotValueRegion> o) { +checkUnnamed161(core.List<api.PivotValueRegion> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotValueRegion(o[0]); checkPivotValueRegion(o[1]); } -buildUnnamed160() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed160(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterDateRangeValues = 0; -buildDateRangeValues() { - var o = new api.DateRangeValues(); - buildCounterDateRangeValues++; - if (buildCounterDateRangeValues < 3) { - o.pivotValueRegions = buildUnnamed159(); - o.values = buildUnnamed160(); - } - buildCounterDateRangeValues--; - return o; -} - -checkDateRangeValues(api.DateRangeValues o) { - buildCounterDateRangeValues++; - if (buildCounterDateRangeValues < 3) { - checkUnnamed159(o.pivotValueRegions); - checkUnnamed160(o.values); - } - buildCounterDateRangeValues--; -} - -buildUnnamed161() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed161(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterDimension = 0; -buildDimension() { - var o = new api.Dimension(); - buildCounterDimension++; - if (buildCounterDimension < 3) { - o.histogramBuckets = buildUnnamed161(); - o.name = "foo"; - } - buildCounterDimension--; - return o; -} - -checkDimension(api.Dimension o) { - buildCounterDimension++; - if (buildCounterDimension < 3) { - checkUnnamed161(o.histogramBuckets); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterDimension--; -} - buildUnnamed162() { var o = new core.List<core.String>(); o.add("foo"); @@ -257,6 +189,74 @@ unittest.expect(o[1], unittest.equals('foo')); } +core.int buildCounterDateRangeValues = 0; +buildDateRangeValues() { + var o = new api.DateRangeValues(); + buildCounterDateRangeValues++; + if (buildCounterDateRangeValues < 3) { + o.pivotValueRegions = buildUnnamed161(); + o.values = buildUnnamed162(); + } + buildCounterDateRangeValues--; + return o; +} + +checkDateRangeValues(api.DateRangeValues o) { + buildCounterDateRangeValues++; + if (buildCounterDateRangeValues < 3) { + checkUnnamed161(o.pivotValueRegions); + checkUnnamed162(o.values); + } + buildCounterDateRangeValues--; +} + +buildUnnamed163() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed163(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterDimension = 0; +buildDimension() { + var o = new api.Dimension(); + buildCounterDimension++; + if (buildCounterDimension < 3) { + o.histogramBuckets = buildUnnamed163(); + o.name = "foo"; + } + buildCounterDimension--; + return o; +} + +checkDimension(api.Dimension o) { + buildCounterDimension++; + if (buildCounterDimension < 3) { + checkUnnamed163(o.histogramBuckets); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterDimension--; +} + +buildUnnamed164() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed164(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterDimensionFilter = 0; buildDimensionFilter() { var o = new api.DimensionFilter(); @@ -264,7 +264,7 @@ if (buildCounterDimensionFilter < 3) { o.caseSensitive = true; o.dimensionName = "foo"; - o.expressions = buildUnnamed162(); + o.expressions = buildUnnamed164(); o.not = true; o.operator = "foo"; } @@ -277,21 +277,21 @@ if (buildCounterDimensionFilter < 3) { unittest.expect(o.caseSensitive, unittest.isTrue); unittest.expect(o.dimensionName, unittest.equals('foo')); - checkUnnamed162(o.expressions); + checkUnnamed164(o.expressions); unittest.expect(o.not, unittest.isTrue); unittest.expect(o.operator, unittest.equals('foo')); } buildCounterDimensionFilter--; } -buildUnnamed163() { +buildUnnamed165() { var o = new core.List<api.DimensionFilter>(); o.add(buildDimensionFilter()); o.add(buildDimensionFilter()); return o; } -checkUnnamed163(core.List<api.DimensionFilter> o) { +checkUnnamed165(core.List<api.DimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilter(o[0]); checkDimensionFilter(o[1]); @@ -302,7 +302,7 @@ var o = new api.DimensionFilterClause(); buildCounterDimensionFilterClause++; if (buildCounterDimensionFilterClause < 3) { - o.filters = buildUnnamed163(); + o.filters = buildUnnamed165(); o.operator = "foo"; } buildCounterDimensionFilterClause--; @@ -312,7 +312,7 @@ checkDimensionFilterClause(api.DimensionFilterClause o) { buildCounterDimensionFilterClause++; if (buildCounterDimensionFilterClause < 3) { - checkUnnamed163(o.filters); + checkUnnamed165(o.filters); unittest.expect(o.operator, unittest.equals('foo')); } buildCounterDimensionFilterClause--; @@ -341,14 +341,14 @@ buildCounterDynamicSegment--; } -buildUnnamed164() { +buildUnnamed166() { var o = new core.List<api.ReportRequest>(); o.add(buildReportRequest()); o.add(buildReportRequest()); return o; } -checkUnnamed164(core.List<api.ReportRequest> o) { +checkUnnamed166(core.List<api.ReportRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRequest(o[0]); checkReportRequest(o[1]); @@ -359,7 +359,7 @@ var o = new api.GetReportsRequest(); buildCounterGetReportsRequest++; if (buildCounterGetReportsRequest < 3) { - o.reportRequests = buildUnnamed164(); + o.reportRequests = buildUnnamed166(); } buildCounterGetReportsRequest--; return o; @@ -368,19 +368,19 @@ checkGetReportsRequest(api.GetReportsRequest o) { buildCounterGetReportsRequest++; if (buildCounterGetReportsRequest < 3) { - checkUnnamed164(o.reportRequests); + checkUnnamed166(o.reportRequests); } buildCounterGetReportsRequest--; } -buildUnnamed165() { +buildUnnamed167() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed165(core.List<api.Report> o) { +checkUnnamed167(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -391,7 +391,7 @@ var o = new api.GetReportsResponse(); buildCounterGetReportsResponse++; if (buildCounterGetReportsResponse < 3) { - o.reports = buildUnnamed165(); + o.reports = buildUnnamed167(); } buildCounterGetReportsResponse--; return o; @@ -400,7 +400,7 @@ checkGetReportsResponse(api.GetReportsResponse o) { buildCounterGetReportsResponse++; if (buildCounterGetReportsResponse < 3) { - checkUnnamed165(o.reports); + checkUnnamed167(o.reports); } buildCounterGetReportsResponse--; } @@ -453,14 +453,14 @@ buildCounterMetricFilter--; } -buildUnnamed166() { +buildUnnamed168() { var o = new core.List<api.MetricFilter>(); o.add(buildMetricFilter()); o.add(buildMetricFilter()); return o; } -checkUnnamed166(core.List<api.MetricFilter> o) { +checkUnnamed168(core.List<api.MetricFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricFilter(o[0]); checkMetricFilter(o[1]); @@ -471,7 +471,7 @@ var o = new api.MetricFilterClause(); buildCounterMetricFilterClause++; if (buildCounterMetricFilterClause < 3) { - o.filters = buildUnnamed166(); + o.filters = buildUnnamed168(); o.operator = "foo"; } buildCounterMetricFilterClause--; @@ -481,33 +481,33 @@ checkMetricFilterClause(api.MetricFilterClause o) { buildCounterMetricFilterClause++; if (buildCounterMetricFilterClause < 3) { - checkUnnamed166(o.filters); + checkUnnamed168(o.filters); unittest.expect(o.operator, unittest.equals('foo')); } buildCounterMetricFilterClause--; } -buildUnnamed167() { +buildUnnamed169() { var o = new core.List<api.MetricHeaderEntry>(); o.add(buildMetricHeaderEntry()); o.add(buildMetricHeaderEntry()); return o; } -checkUnnamed167(core.List<api.MetricHeaderEntry> o) { +checkUnnamed169(core.List<api.MetricHeaderEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricHeaderEntry(o[0]); checkMetricHeaderEntry(o[1]); } -buildUnnamed168() { +buildUnnamed170() { var o = new core.List<api.PivotHeader>(); o.add(buildPivotHeader()); o.add(buildPivotHeader()); return o; } -checkUnnamed168(core.List<api.PivotHeader> o) { +checkUnnamed170(core.List<api.PivotHeader> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotHeader(o[0]); checkPivotHeader(o[1]); @@ -518,8 +518,8 @@ var o = new api.MetricHeader(); buildCounterMetricHeader++; if (buildCounterMetricHeader < 3) { - o.metricHeaderEntries = buildUnnamed167(); - o.pivotHeaders = buildUnnamed168(); + o.metricHeaderEntries = buildUnnamed169(); + o.pivotHeaders = buildUnnamed170(); } buildCounterMetricHeader--; return o; @@ -528,8 +528,8 @@ checkMetricHeader(api.MetricHeader o) { buildCounterMetricHeader++; if (buildCounterMetricHeader < 3) { - checkUnnamed167(o.metricHeaderEntries); - checkUnnamed168(o.pivotHeaders); + checkUnnamed169(o.metricHeaderEntries); + checkUnnamed170(o.pivotHeaders); } buildCounterMetricHeader--; } @@ -555,14 +555,14 @@ buildCounterMetricHeaderEntry--; } -buildUnnamed169() { +buildUnnamed171() { var o = new core.List<api.SegmentFilterClause>(); o.add(buildSegmentFilterClause()); o.add(buildSegmentFilterClause()); return o; } -checkUnnamed169(core.List<api.SegmentFilterClause> o) { +checkUnnamed171(core.List<api.SegmentFilterClause> o) { unittest.expect(o, unittest.hasLength(2)); checkSegmentFilterClause(o[0]); checkSegmentFilterClause(o[1]); @@ -573,7 +573,7 @@ var o = new api.OrFiltersForSegment(); buildCounterOrFiltersForSegment++; if (buildCounterOrFiltersForSegment < 3) { - o.segmentFilterClauses = buildUnnamed169(); + o.segmentFilterClauses = buildUnnamed171(); } buildCounterOrFiltersForSegment--; return o; @@ -582,7 +582,7 @@ checkOrFiltersForSegment(api.OrFiltersForSegment o) { buildCounterOrFiltersForSegment++; if (buildCounterOrFiltersForSegment < 3) { - checkUnnamed169(o.segmentFilterClauses); + checkUnnamed171(o.segmentFilterClauses); } buildCounterOrFiltersForSegment--; } @@ -610,40 +610,40 @@ buildCounterOrderBy--; } -buildUnnamed170() { +buildUnnamed172() { var o = new core.List<api.DimensionFilterClause>(); o.add(buildDimensionFilterClause()); o.add(buildDimensionFilterClause()); return o; } -checkUnnamed170(core.List<api.DimensionFilterClause> o) { +checkUnnamed172(core.List<api.DimensionFilterClause> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilterClause(o[0]); checkDimensionFilterClause(o[1]); } -buildUnnamed171() { +buildUnnamed173() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed171(core.List<api.Dimension> o) { +checkUnnamed173(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed172() { +buildUnnamed174() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed172(core.List<api.Metric> o) { +checkUnnamed174(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -654,10 +654,10 @@ var o = new api.Pivot(); buildCounterPivot++; if (buildCounterPivot < 3) { - o.dimensionFilterClauses = buildUnnamed170(); - o.dimensions = buildUnnamed171(); + o.dimensionFilterClauses = buildUnnamed172(); + o.dimensions = buildUnnamed173(); o.maxGroupCount = 42; - o.metrics = buildUnnamed172(); + o.metrics = buildUnnamed174(); o.startGroup = 42; } buildCounterPivot--; @@ -667,23 +667,23 @@ checkPivot(api.Pivot o) { buildCounterPivot++; if (buildCounterPivot < 3) { - checkUnnamed170(o.dimensionFilterClauses); - checkUnnamed171(o.dimensions); + checkUnnamed172(o.dimensionFilterClauses); + checkUnnamed173(o.dimensions); unittest.expect(o.maxGroupCount, unittest.equals(42)); - checkUnnamed172(o.metrics); + checkUnnamed174(o.metrics); unittest.expect(o.startGroup, unittest.equals(42)); } buildCounterPivot--; } -buildUnnamed173() { +buildUnnamed175() { var o = new core.List<api.PivotHeaderEntry>(); o.add(buildPivotHeaderEntry()); o.add(buildPivotHeaderEntry()); return o; } -checkUnnamed173(core.List<api.PivotHeaderEntry> o) { +checkUnnamed175(core.List<api.PivotHeaderEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotHeaderEntry(o[0]); checkPivotHeaderEntry(o[1]); @@ -694,7 +694,7 @@ var o = new api.PivotHeader(); buildCounterPivotHeader++; if (buildCounterPivotHeader < 3) { - o.pivotHeaderEntries = buildUnnamed173(); + o.pivotHeaderEntries = buildUnnamed175(); o.totalPivotGroupsCount = 42; } buildCounterPivotHeader--; @@ -704,61 +704,12 @@ checkPivotHeader(api.PivotHeader o) { buildCounterPivotHeader++; if (buildCounterPivotHeader < 3) { - checkUnnamed173(o.pivotHeaderEntries); + checkUnnamed175(o.pivotHeaderEntries); unittest.expect(o.totalPivotGroupsCount, unittest.equals(42)); } buildCounterPivotHeader--; } -buildUnnamed174() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed174(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed175() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed175(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterPivotHeaderEntry = 0; -buildPivotHeaderEntry() { - var o = new api.PivotHeaderEntry(); - buildCounterPivotHeaderEntry++; - if (buildCounterPivotHeaderEntry < 3) { - o.dimensionNames = buildUnnamed174(); - o.dimensionValues = buildUnnamed175(); - o.metric = buildMetricHeaderEntry(); - } - buildCounterPivotHeaderEntry--; - return o; -} - -checkPivotHeaderEntry(api.PivotHeaderEntry o) { - buildCounterPivotHeaderEntry++; - if (buildCounterPivotHeaderEntry < 3) { - checkUnnamed174(o.dimensionNames); - checkUnnamed175(o.dimensionValues); - checkMetricHeaderEntry(o.metric); - } - buildCounterPivotHeaderEntry--; -} - buildUnnamed176() { var o = new core.List<core.String>(); o.add("foo"); @@ -772,12 +723,61 @@ unittest.expect(o[1], unittest.equals('foo')); } +buildUnnamed177() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed177(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterPivotHeaderEntry = 0; +buildPivotHeaderEntry() { + var o = new api.PivotHeaderEntry(); + buildCounterPivotHeaderEntry++; + if (buildCounterPivotHeaderEntry < 3) { + o.dimensionNames = buildUnnamed176(); + o.dimensionValues = buildUnnamed177(); + o.metric = buildMetricHeaderEntry(); + } + buildCounterPivotHeaderEntry--; + return o; +} + +checkPivotHeaderEntry(api.PivotHeaderEntry o) { + buildCounterPivotHeaderEntry++; + if (buildCounterPivotHeaderEntry < 3) { + checkUnnamed176(o.dimensionNames); + checkUnnamed177(o.dimensionValues); + checkMetricHeaderEntry(o.metric); + } + buildCounterPivotHeaderEntry--; +} + +buildUnnamed178() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed178(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterPivotValueRegion = 0; buildPivotValueRegion() { var o = new api.PivotValueRegion(); buildCounterPivotValueRegion++; if (buildCounterPivotValueRegion < 3) { - o.values = buildUnnamed176(); + o.values = buildUnnamed178(); } buildCounterPivotValueRegion--; return o; @@ -786,7 +786,7 @@ checkPivotValueRegion(api.PivotValueRegion o) { buildCounterPivotValueRegion++; if (buildCounterPivotValueRegion < 3) { - checkUnnamed176(o.values); + checkUnnamed178(o.values); } buildCounterPivotValueRegion--; } @@ -814,79 +814,79 @@ buildCounterReport--; } -buildUnnamed177() { - var o = new core.List<api.DateRangeValues>(); - o.add(buildDateRangeValues()); - o.add(buildDateRangeValues()); - return o; -} - -checkUnnamed177(core.List<api.DateRangeValues> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDateRangeValues(o[0]); - checkDateRangeValues(o[1]); -} - -buildUnnamed178() { - var o = new core.List<api.DateRangeValues>(); - o.add(buildDateRangeValues()); - o.add(buildDateRangeValues()); - return o; -} - -checkUnnamed178(core.List<api.DateRangeValues> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDateRangeValues(o[0]); - checkDateRangeValues(o[1]); -} - buildUnnamed179() { + var o = new core.List<api.DateRangeValues>(); + o.add(buildDateRangeValues()); + o.add(buildDateRangeValues()); + return o; +} + +checkUnnamed179(core.List<api.DateRangeValues> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDateRangeValues(o[0]); + checkDateRangeValues(o[1]); +} + +buildUnnamed180() { + var o = new core.List<api.DateRangeValues>(); + o.add(buildDateRangeValues()); + o.add(buildDateRangeValues()); + return o; +} + +checkUnnamed180(core.List<api.DateRangeValues> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDateRangeValues(o[0]); + checkDateRangeValues(o[1]); +} + +buildUnnamed181() { var o = new core.List<api.ReportRow>(); o.add(buildReportRow()); o.add(buildReportRow()); return o; } -checkUnnamed179(core.List<api.ReportRow> o) { +checkUnnamed181(core.List<api.ReportRow> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRow(o[0]); checkReportRow(o[1]); } -buildUnnamed180() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed180(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed181() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed181(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - buildUnnamed182() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed182(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed183() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed183(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed184() { var o = new core.List<api.DateRangeValues>(); o.add(buildDateRangeValues()); o.add(buildDateRangeValues()); return o; } -checkUnnamed182(core.List<api.DateRangeValues> o) { +checkUnnamed184(core.List<api.DateRangeValues> o) { unittest.expect(o, unittest.hasLength(2)); checkDateRangeValues(o[0]); checkDateRangeValues(o[1]); @@ -899,13 +899,13 @@ if (buildCounterReportData < 3) { o.dataLastRefreshed = "foo"; o.isDataGolden = true; - o.maximums = buildUnnamed177(); - o.minimums = buildUnnamed178(); + o.maximums = buildUnnamed179(); + o.minimums = buildUnnamed180(); o.rowCount = 42; - o.rows = buildUnnamed179(); - o.samplesReadCounts = buildUnnamed180(); - o.samplingSpaceSizes = buildUnnamed181(); - o.totals = buildUnnamed182(); + o.rows = buildUnnamed181(); + o.samplesReadCounts = buildUnnamed182(); + o.samplingSpaceSizes = buildUnnamed183(); + o.totals = buildUnnamed184(); } buildCounterReportData--; return o; @@ -916,116 +916,116 @@ if (buildCounterReportData < 3) { unittest.expect(o.dataLastRefreshed, unittest.equals('foo')); unittest.expect(o.isDataGolden, unittest.isTrue); - checkUnnamed177(o.maximums); - checkUnnamed178(o.minimums); + checkUnnamed179(o.maximums); + checkUnnamed180(o.minimums); unittest.expect(o.rowCount, unittest.equals(42)); - checkUnnamed179(o.rows); - checkUnnamed180(o.samplesReadCounts); - checkUnnamed181(o.samplingSpaceSizes); - checkUnnamed182(o.totals); + checkUnnamed181(o.rows); + checkUnnamed182(o.samplesReadCounts); + checkUnnamed183(o.samplingSpaceSizes); + checkUnnamed184(o.totals); } buildCounterReportData--; } -buildUnnamed183() { +buildUnnamed185() { var o = new core.List<api.DateRange>(); o.add(buildDateRange()); o.add(buildDateRange()); return o; } -checkUnnamed183(core.List<api.DateRange> o) { +checkUnnamed185(core.List<api.DateRange> o) { unittest.expect(o, unittest.hasLength(2)); checkDateRange(o[0]); checkDateRange(o[1]); } -buildUnnamed184() { +buildUnnamed186() { var o = new core.List<api.DimensionFilterClause>(); o.add(buildDimensionFilterClause()); o.add(buildDimensionFilterClause()); return o; } -checkUnnamed184(core.List<api.DimensionFilterClause> o) { +checkUnnamed186(core.List<api.DimensionFilterClause> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilterClause(o[0]); checkDimensionFilterClause(o[1]); } -buildUnnamed185() { +buildUnnamed187() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed185(core.List<api.Dimension> o) { +checkUnnamed187(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed186() { +buildUnnamed188() { var o = new core.List<api.MetricFilterClause>(); o.add(buildMetricFilterClause()); o.add(buildMetricFilterClause()); return o; } -checkUnnamed186(core.List<api.MetricFilterClause> o) { +checkUnnamed188(core.List<api.MetricFilterClause> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricFilterClause(o[0]); checkMetricFilterClause(o[1]); } -buildUnnamed187() { +buildUnnamed189() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed187(core.List<api.Metric> o) { +checkUnnamed189(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed188() { +buildUnnamed190() { var o = new core.List<api.OrderBy>(); o.add(buildOrderBy()); o.add(buildOrderBy()); return o; } -checkUnnamed188(core.List<api.OrderBy> o) { +checkUnnamed190(core.List<api.OrderBy> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderBy(o[0]); checkOrderBy(o[1]); } -buildUnnamed189() { +buildUnnamed191() { var o = new core.List<api.Pivot>(); o.add(buildPivot()); o.add(buildPivot()); return o; } -checkUnnamed189(core.List<api.Pivot> o) { +checkUnnamed191(core.List<api.Pivot> o) { unittest.expect(o, unittest.hasLength(2)); checkPivot(o[0]); checkPivot(o[1]); } -buildUnnamed190() { +buildUnnamed192() { var o = new core.List<api.Segment>(); o.add(buildSegment()); o.add(buildSegment()); return o; } -checkUnnamed190(core.List<api.Segment> o) { +checkUnnamed192(core.List<api.Segment> o) { unittest.expect(o, unittest.hasLength(2)); checkSegment(o[0]); checkSegment(o[1]); @@ -1037,21 +1037,21 @@ buildCounterReportRequest++; if (buildCounterReportRequest < 3) { o.cohortGroup = buildCohortGroup(); - o.dateRanges = buildUnnamed183(); - o.dimensionFilterClauses = buildUnnamed184(); - o.dimensions = buildUnnamed185(); + o.dateRanges = buildUnnamed185(); + o.dimensionFilterClauses = buildUnnamed186(); + o.dimensions = buildUnnamed187(); o.filtersExpression = "foo"; o.hideTotals = true; o.hideValueRanges = true; o.includeEmptyRows = true; - o.metricFilterClauses = buildUnnamed186(); - o.metrics = buildUnnamed187(); - o.orderBys = buildUnnamed188(); + o.metricFilterClauses = buildUnnamed188(); + o.metrics = buildUnnamed189(); + o.orderBys = buildUnnamed190(); o.pageSize = 42; o.pageToken = "foo"; - o.pivots = buildUnnamed189(); + o.pivots = buildUnnamed191(); o.samplingLevel = "foo"; - o.segments = buildUnnamed190(); + o.segments = buildUnnamed192(); o.viewId = "foo"; } buildCounterReportRequest--; @@ -1062,47 +1062,47 @@ buildCounterReportRequest++; if (buildCounterReportRequest < 3) { checkCohortGroup(o.cohortGroup); - checkUnnamed183(o.dateRanges); - checkUnnamed184(o.dimensionFilterClauses); - checkUnnamed185(o.dimensions); + checkUnnamed185(o.dateRanges); + checkUnnamed186(o.dimensionFilterClauses); + checkUnnamed187(o.dimensions); unittest.expect(o.filtersExpression, unittest.equals('foo')); unittest.expect(o.hideTotals, unittest.isTrue); unittest.expect(o.hideValueRanges, unittest.isTrue); unittest.expect(o.includeEmptyRows, unittest.isTrue); - checkUnnamed186(o.metricFilterClauses); - checkUnnamed187(o.metrics); - checkUnnamed188(o.orderBys); + checkUnnamed188(o.metricFilterClauses); + checkUnnamed189(o.metrics); + checkUnnamed190(o.orderBys); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed189(o.pivots); + checkUnnamed191(o.pivots); unittest.expect(o.samplingLevel, unittest.equals('foo')); - checkUnnamed190(o.segments); + checkUnnamed192(o.segments); unittest.expect(o.viewId, unittest.equals('foo')); } buildCounterReportRequest--; } -buildUnnamed191() { +buildUnnamed193() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed191(core.List<core.String> o) { +checkUnnamed193(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed192() { +buildUnnamed194() { var o = new core.List<api.DateRangeValues>(); o.add(buildDateRangeValues()); o.add(buildDateRangeValues()); return o; } -checkUnnamed192(core.List<api.DateRangeValues> o) { +checkUnnamed194(core.List<api.DateRangeValues> o) { unittest.expect(o, unittest.hasLength(2)); checkDateRangeValues(o[0]); checkDateRangeValues(o[1]); @@ -1113,8 +1113,8 @@ var o = new api.ReportRow(); buildCounterReportRow++; if (buildCounterReportRow < 3) { - o.dimensions = buildUnnamed191(); - o.metrics = buildUnnamed192(); + o.dimensions = buildUnnamed193(); + o.metrics = buildUnnamed194(); } buildCounterReportRow--; return o; @@ -1123,8 +1123,8 @@ checkReportRow(api.ReportRow o) { buildCounterReportRow++; if (buildCounterReportRow < 3) { - checkUnnamed191(o.dimensions); - checkUnnamed192(o.metrics); + checkUnnamed193(o.dimensions); + checkUnnamed194(o.metrics); } buildCounterReportRow--; } @@ -1150,14 +1150,14 @@ buildCounterSegment--; } -buildUnnamed193() { +buildUnnamed195() { var o = new core.List<api.SegmentFilter>(); o.add(buildSegmentFilter()); o.add(buildSegmentFilter()); return o; } -checkUnnamed193(core.List<api.SegmentFilter> o) { +checkUnnamed195(core.List<api.SegmentFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkSegmentFilter(o[0]); checkSegmentFilter(o[1]); @@ -1168,7 +1168,7 @@ var o = new api.SegmentDefinition(); buildCounterSegmentDefinition++; if (buildCounterSegmentDefinition < 3) { - o.segmentFilters = buildUnnamed193(); + o.segmentFilters = buildUnnamed195(); } buildCounterSegmentDefinition--; return o; @@ -1177,19 +1177,19 @@ checkSegmentDefinition(api.SegmentDefinition o) { buildCounterSegmentDefinition++; if (buildCounterSegmentDefinition < 3) { - checkUnnamed193(o.segmentFilters); + checkUnnamed195(o.segmentFilters); } buildCounterSegmentDefinition--; } -buildUnnamed194() { +buildUnnamed196() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed194(core.List<core.String> o) { +checkUnnamed196(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1202,7 +1202,7 @@ if (buildCounterSegmentDimensionFilter < 3) { o.caseSensitive = true; o.dimensionName = "foo"; - o.expressions = buildUnnamed194(); + o.expressions = buildUnnamed196(); o.maxComparisonValue = "foo"; o.minComparisonValue = "foo"; o.operator = "foo"; @@ -1216,7 +1216,7 @@ if (buildCounterSegmentDimensionFilter < 3) { unittest.expect(o.caseSensitive, unittest.isTrue); unittest.expect(o.dimensionName, unittest.equals('foo')); - checkUnnamed194(o.expressions); + checkUnnamed196(o.expressions); unittest.expect(o.maxComparisonValue, unittest.equals('foo')); unittest.expect(o.minComparisonValue, unittest.equals('foo')); unittest.expect(o.operator, unittest.equals('foo')); @@ -1297,74 +1297,6 @@ buildCounterSegmentMetricFilter--; } -buildUnnamed195() { - var o = new core.List<api.OrFiltersForSegment>(); - o.add(buildOrFiltersForSegment()); - o.add(buildOrFiltersForSegment()); - return o; -} - -checkUnnamed195(core.List<api.OrFiltersForSegment> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOrFiltersForSegment(o[0]); - checkOrFiltersForSegment(o[1]); -} - -core.int buildCounterSegmentSequenceStep = 0; -buildSegmentSequenceStep() { - var o = new api.SegmentSequenceStep(); - buildCounterSegmentSequenceStep++; - if (buildCounterSegmentSequenceStep < 3) { - o.matchType = "foo"; - o.orFiltersForSegment = buildUnnamed195(); - } - buildCounterSegmentSequenceStep--; - return o; -} - -checkSegmentSequenceStep(api.SegmentSequenceStep o) { - buildCounterSegmentSequenceStep++; - if (buildCounterSegmentSequenceStep < 3) { - unittest.expect(o.matchType, unittest.equals('foo')); - checkUnnamed195(o.orFiltersForSegment); - } - buildCounterSegmentSequenceStep--; -} - -buildUnnamed196() { - var o = new core.List<api.SegmentSequenceStep>(); - o.add(buildSegmentSequenceStep()); - o.add(buildSegmentSequenceStep()); - return o; -} - -checkUnnamed196(core.List<api.SegmentSequenceStep> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSegmentSequenceStep(o[0]); - checkSegmentSequenceStep(o[1]); -} - -core.int buildCounterSequenceSegment = 0; -buildSequenceSegment() { - var o = new api.SequenceSegment(); - buildCounterSequenceSegment++; - if (buildCounterSequenceSegment < 3) { - o.firstStepShouldMatchFirstHit = true; - o.segmentSequenceSteps = buildUnnamed196(); - } - buildCounterSequenceSegment--; - return o; -} - -checkSequenceSegment(api.SequenceSegment o) { - buildCounterSequenceSegment++; - if (buildCounterSequenceSegment < 3) { - unittest.expect(o.firstStepShouldMatchFirstHit, unittest.isTrue); - checkUnnamed196(o.segmentSequenceSteps); - } - buildCounterSequenceSegment--; -} - buildUnnamed197() { var o = new core.List<api.OrFiltersForSegment>(); o.add(buildOrFiltersForSegment()); @@ -1378,12 +1310,80 @@ checkOrFiltersForSegment(o[1]); } +core.int buildCounterSegmentSequenceStep = 0; +buildSegmentSequenceStep() { + var o = new api.SegmentSequenceStep(); + buildCounterSegmentSequenceStep++; + if (buildCounterSegmentSequenceStep < 3) { + o.matchType = "foo"; + o.orFiltersForSegment = buildUnnamed197(); + } + buildCounterSegmentSequenceStep--; + return o; +} + +checkSegmentSequenceStep(api.SegmentSequenceStep o) { + buildCounterSegmentSequenceStep++; + if (buildCounterSegmentSequenceStep < 3) { + unittest.expect(o.matchType, unittest.equals('foo')); + checkUnnamed197(o.orFiltersForSegment); + } + buildCounterSegmentSequenceStep--; +} + +buildUnnamed198() { + var o = new core.List<api.SegmentSequenceStep>(); + o.add(buildSegmentSequenceStep()); + o.add(buildSegmentSequenceStep()); + return o; +} + +checkUnnamed198(core.List<api.SegmentSequenceStep> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSegmentSequenceStep(o[0]); + checkSegmentSequenceStep(o[1]); +} + +core.int buildCounterSequenceSegment = 0; +buildSequenceSegment() { + var o = new api.SequenceSegment(); + buildCounterSequenceSegment++; + if (buildCounterSequenceSegment < 3) { + o.firstStepShouldMatchFirstHit = true; + o.segmentSequenceSteps = buildUnnamed198(); + } + buildCounterSequenceSegment--; + return o; +} + +checkSequenceSegment(api.SequenceSegment o) { + buildCounterSequenceSegment++; + if (buildCounterSequenceSegment < 3) { + unittest.expect(o.firstStepShouldMatchFirstHit, unittest.isTrue); + checkUnnamed198(o.segmentSequenceSteps); + } + buildCounterSequenceSegment--; +} + +buildUnnamed199() { + var o = new core.List<api.OrFiltersForSegment>(); + o.add(buildOrFiltersForSegment()); + o.add(buildOrFiltersForSegment()); + return o; +} + +checkUnnamed199(core.List<api.OrFiltersForSegment> o) { + unittest.expect(o, unittest.hasLength(2)); + checkOrFiltersForSegment(o[0]); + checkOrFiltersForSegment(o[1]); +} + core.int buildCounterSimpleSegment = 0; buildSimpleSegment() { var o = new api.SimpleSegment(); buildCounterSimpleSegment++; if (buildCounterSimpleSegment < 3) { - o.orFiltersForSegment = buildUnnamed197(); + o.orFiltersForSegment = buildUnnamed199(); } buildCounterSimpleSegment--; return o; @@ -1392,7 +1392,7 @@ checkSimpleSegment(api.SimpleSegment o) { buildCounterSimpleSegment++; if (buildCounterSimpleSegment < 3) { - checkUnnamed197(o.orFiltersForSegment); + checkUnnamed199(o.orFiltersForSegment); } buildCounterSimpleSegment--; } @@ -1720,7 +1720,7 @@ var mock = new HttpServerMock(); api.ReportsResourceApi res = new api.AnalyticsreportingApi(mock).reports; var arg_request = buildGetReportsRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GetReportsRequest.fromJson(json); checkGetReportsRequest(obj); @@ -1757,7 +1757,7 @@ var resp = convert.JSON.encode(buildGetReportsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.batchGet(arg_request).then(unittest.expectAsync(((api.GetReportsResponse response) { + res.batchGet(arg_request).then(unittest.expectAsync1(((api.GetReportsResponse response) { checkGetReportsResponse(response); }))); });
diff --git a/generated/googleapis/test/androidenterprise/v1_test.dart b/generated/googleapis/test/androidenterprise/v1_test.dart index 15ec773..15bc84e 100644 --- a/generated/googleapis/test/androidenterprise/v1_test.dart +++ b/generated/googleapis/test/androidenterprise/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/androidenterprise/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -91,14 +91,14 @@ buildCounterAdministratorWebToken--; } -buildUnnamed2010() { +buildUnnamed2020() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2010(core.List<core.String> o) { +checkUnnamed2020(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -111,7 +111,7 @@ if (buildCounterAdministratorWebTokenSpec < 3) { o.kind = "foo"; o.parent = "foo"; - o.permission = buildUnnamed2010(); + o.permission = buildUnnamed2020(); } buildCounterAdministratorWebTokenSpec--; return o; @@ -122,19 +122,19 @@ if (buildCounterAdministratorWebTokenSpec < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.parent, unittest.equals('foo')); - checkUnnamed2010(o.permission); + checkUnnamed2020(o.permission); } buildCounterAdministratorWebTokenSpec--; } -buildUnnamed2011() { +buildUnnamed2021() { var o = new core.List<api.AppRestrictionsSchemaRestriction>(); o.add(buildAppRestrictionsSchemaRestriction()); o.add(buildAppRestrictionsSchemaRestriction()); return o; } -checkUnnamed2011(core.List<api.AppRestrictionsSchemaRestriction> o) { +checkUnnamed2021(core.List<api.AppRestrictionsSchemaRestriction> o) { unittest.expect(o, unittest.hasLength(2)); checkAppRestrictionsSchemaRestriction(o[0]); checkAppRestrictionsSchemaRestriction(o[1]); @@ -146,7 +146,7 @@ buildCounterAppRestrictionsSchema++; if (buildCounterAppRestrictionsSchema < 3) { o.kind = "foo"; - o.restrictions = buildUnnamed2011(); + o.restrictions = buildUnnamed2021(); } buildCounterAppRestrictionsSchema--; return o; @@ -156,7 +156,7 @@ buildCounterAppRestrictionsSchema++; if (buildCounterAppRestrictionsSchema < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2011(o.restrictions); + checkUnnamed2021(o.restrictions); } buildCounterAppRestrictionsSchema--; } @@ -180,40 +180,40 @@ buildCounterAppRestrictionsSchemaChangeEvent--; } -buildUnnamed2012() { +buildUnnamed2022() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2012(core.List<core.String> o) { +checkUnnamed2022(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2013() { +buildUnnamed2023() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2013(core.List<core.String> o) { +checkUnnamed2023(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2014() { +buildUnnamed2024() { var o = new core.List<api.AppRestrictionsSchemaRestriction>(); o.add(buildAppRestrictionsSchemaRestriction()); o.add(buildAppRestrictionsSchemaRestriction()); return o; } -checkUnnamed2014(core.List<api.AppRestrictionsSchemaRestriction> o) { +checkUnnamed2024(core.List<api.AppRestrictionsSchemaRestriction> o) { unittest.expect(o, unittest.hasLength(2)); checkAppRestrictionsSchemaRestriction(o[0]); checkAppRestrictionsSchemaRestriction(o[1]); @@ -226,10 +226,10 @@ if (buildCounterAppRestrictionsSchemaRestriction < 3) { o.defaultValue = buildAppRestrictionsSchemaRestrictionRestrictionValue(); o.description = "foo"; - o.entry = buildUnnamed2012(); - o.entryValue = buildUnnamed2013(); + o.entry = buildUnnamed2022(); + o.entryValue = buildUnnamed2023(); o.key = "foo"; - o.nestedRestriction = buildUnnamed2014(); + o.nestedRestriction = buildUnnamed2024(); o.restrictionType = "foo"; o.title = "foo"; } @@ -242,24 +242,24 @@ if (buildCounterAppRestrictionsSchemaRestriction < 3) { checkAppRestrictionsSchemaRestrictionRestrictionValue(o.defaultValue); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2012(o.entry); - checkUnnamed2013(o.entryValue); + checkUnnamed2022(o.entry); + checkUnnamed2023(o.entryValue); unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed2014(o.nestedRestriction); + checkUnnamed2024(o.nestedRestriction); unittest.expect(o.restrictionType, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); } buildCounterAppRestrictionsSchemaRestriction--; } -buildUnnamed2015() { +buildUnnamed2025() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2015(core.List<core.String> o) { +checkUnnamed2025(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -273,7 +273,7 @@ o.type = "foo"; o.valueBool = true; o.valueInteger = 42; - o.valueMultiselect = buildUnnamed2015(); + o.valueMultiselect = buildUnnamed2025(); o.valueString = "foo"; } buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; @@ -286,7 +286,7 @@ unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.valueBool, unittest.isTrue); unittest.expect(o.valueInteger, unittest.equals(42)); - checkUnnamed2015(o.valueMultiselect); + checkUnnamed2025(o.valueMultiselect); unittest.expect(o.valueString, unittest.equals('foo')); } buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; @@ -418,14 +418,14 @@ buildCounterDeviceState--; } -buildUnnamed2016() { +buildUnnamed2026() { var o = new core.List<api.Device>(); o.add(buildDevice()); o.add(buildDevice()); return o; } -checkUnnamed2016(core.List<api.Device> o) { +checkUnnamed2026(core.List<api.Device> o) { unittest.expect(o, unittest.hasLength(2)); checkDevice(o[0]); checkDevice(o[1]); @@ -436,7 +436,7 @@ var o = new api.DevicesListResponse(); buildCounterDevicesListResponse++; if (buildCounterDevicesListResponse < 3) { - o.device = buildUnnamed2016(); + o.device = buildUnnamed2026(); o.kind = "foo"; } buildCounterDevicesListResponse--; @@ -446,20 +446,20 @@ checkDevicesListResponse(api.DevicesListResponse o) { buildCounterDevicesListResponse++; if (buildCounterDevicesListResponse < 3) { - checkUnnamed2016(o.device); + checkUnnamed2026(o.device); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDevicesListResponse--; } -buildUnnamed2017() { +buildUnnamed2027() { var o = new core.List<api.Administrator>(); o.add(buildAdministrator()); o.add(buildAdministrator()); return o; } -checkUnnamed2017(core.List<api.Administrator> o) { +checkUnnamed2027(core.List<api.Administrator> o) { unittest.expect(o, unittest.hasLength(2)); checkAdministrator(o[0]); checkAdministrator(o[1]); @@ -470,7 +470,7 @@ var o = new api.Enterprise(); buildCounterEnterprise++; if (buildCounterEnterprise < 3) { - o.administrator = buildUnnamed2017(); + o.administrator = buildUnnamed2027(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -483,7 +483,7 @@ checkEnterprise(api.Enterprise o) { buildCounterEnterprise++; if (buildCounterEnterprise < 3) { - checkUnnamed2017(o.administrator); + checkUnnamed2027(o.administrator); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -513,14 +513,14 @@ buildCounterEnterpriseAccount--; } -buildUnnamed2018() { +buildUnnamed2028() { var o = new core.List<api.Enterprise>(); o.add(buildEnterprise()); o.add(buildEnterprise()); return o; } -checkUnnamed2018(core.List<api.Enterprise> o) { +checkUnnamed2028(core.List<api.Enterprise> o) { unittest.expect(o, unittest.hasLength(2)); checkEnterprise(o[0]); checkEnterprise(o[1]); @@ -531,7 +531,7 @@ var o = new api.EnterprisesListResponse(); buildCounterEnterprisesListResponse++; if (buildCounterEnterprisesListResponse < 3) { - o.enterprise = buildUnnamed2018(); + o.enterprise = buildUnnamed2028(); o.kind = "foo"; } buildCounterEnterprisesListResponse--; @@ -541,7 +541,7 @@ checkEnterprisesListResponse(api.EnterprisesListResponse o) { buildCounterEnterprisesListResponse++; if (buildCounterEnterprisesListResponse < 3) { - checkUnnamed2018(o.enterprise); + checkUnnamed2028(o.enterprise); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEnterprisesListResponse--; @@ -591,14 +591,14 @@ buildCounterEntitlement--; } -buildUnnamed2019() { +buildUnnamed2029() { var o = new core.List<api.Entitlement>(); o.add(buildEntitlement()); o.add(buildEntitlement()); return o; } -checkUnnamed2019(core.List<api.Entitlement> o) { +checkUnnamed2029(core.List<api.Entitlement> o) { unittest.expect(o, unittest.hasLength(2)); checkEntitlement(o[0]); checkEntitlement(o[1]); @@ -609,7 +609,7 @@ var o = new api.EntitlementsListResponse(); buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { - o.entitlement = buildUnnamed2019(); + o.entitlement = buildUnnamed2029(); o.kind = "foo"; } buildCounterEntitlementsListResponse--; @@ -619,7 +619,7 @@ checkEntitlementsListResponse(api.EntitlementsListResponse o) { buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { - checkUnnamed2019(o.entitlement); + checkUnnamed2029(o.entitlement); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEntitlementsListResponse--; @@ -656,14 +656,14 @@ buildCounterGroupLicense--; } -buildUnnamed2020() { +buildUnnamed2030() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed2020(core.List<api.User> o) { +checkUnnamed2030(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -675,7 +675,7 @@ buildCounterGroupLicenseUsersListResponse++; if (buildCounterGroupLicenseUsersListResponse < 3) { o.kind = "foo"; - o.user = buildUnnamed2020(); + o.user = buildUnnamed2030(); } buildCounterGroupLicenseUsersListResponse--; return o; @@ -685,19 +685,19 @@ buildCounterGroupLicenseUsersListResponse++; if (buildCounterGroupLicenseUsersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2020(o.user); + checkUnnamed2030(o.user); } buildCounterGroupLicenseUsersListResponse--; } -buildUnnamed2021() { +buildUnnamed2031() { var o = new core.List<api.GroupLicense>(); o.add(buildGroupLicense()); o.add(buildGroupLicense()); return o; } -checkUnnamed2021(core.List<api.GroupLicense> o) { +checkUnnamed2031(core.List<api.GroupLicense> o) { unittest.expect(o, unittest.hasLength(2)); checkGroupLicense(o[0]); checkGroupLicense(o[1]); @@ -708,7 +708,7 @@ var o = new api.GroupLicensesListResponse(); buildCounterGroupLicensesListResponse++; if (buildCounterGroupLicensesListResponse < 3) { - o.groupLicense = buildUnnamed2021(); + o.groupLicense = buildUnnamed2031(); o.kind = "foo"; } buildCounterGroupLicensesListResponse--; @@ -718,7 +718,7 @@ checkGroupLicensesListResponse(api.GroupLicensesListResponse o) { buildCounterGroupLicensesListResponse++; if (buildCounterGroupLicensesListResponse < 3) { - checkUnnamed2021(o.groupLicense); + checkUnnamed2031(o.groupLicense); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterGroupLicensesListResponse--; @@ -776,14 +776,14 @@ buildCounterInstallFailureEvent--; } -buildUnnamed2022() { +buildUnnamed2032() { var o = new core.List<api.Install>(); o.add(buildInstall()); o.add(buildInstall()); return o; } -checkUnnamed2022(core.List<api.Install> o) { +checkUnnamed2032(core.List<api.Install> o) { unittest.expect(o, unittest.hasLength(2)); checkInstall(o[0]); checkInstall(o[1]); @@ -794,7 +794,7 @@ var o = new api.InstallsListResponse(); buildCounterInstallsListResponse++; if (buildCounterInstallsListResponse < 3) { - o.install = buildUnnamed2022(); + o.install = buildUnnamed2032(); o.kind = "foo"; } buildCounterInstallsListResponse--; @@ -804,7 +804,7 @@ checkInstallsListResponse(api.InstallsListResponse o) { buildCounterInstallsListResponse++; if (buildCounterInstallsListResponse < 3) { - checkUnnamed2022(o.install); + checkUnnamed2032(o.install); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterInstallsListResponse--; @@ -831,14 +831,14 @@ buildCounterLocalizedText--; } -buildUnnamed2023() { +buildUnnamed2033() { var o = new core.List<api.ManagedProperty>(); o.add(buildManagedProperty()); o.add(buildManagedProperty()); return o; } -checkUnnamed2023(core.List<api.ManagedProperty> o) { +checkUnnamed2033(core.List<api.ManagedProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedProperty(o[0]); checkManagedProperty(o[1]); @@ -850,7 +850,7 @@ buildCounterManagedConfiguration++; if (buildCounterManagedConfiguration < 3) { o.kind = "foo"; - o.managedProperty = buildUnnamed2023(); + o.managedProperty = buildUnnamed2033(); o.productId = "foo"; } buildCounterManagedConfiguration--; @@ -861,20 +861,20 @@ buildCounterManagedConfiguration++; if (buildCounterManagedConfiguration < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2023(o.managedProperty); + checkUnnamed2033(o.managedProperty); unittest.expect(o.productId, unittest.equals('foo')); } buildCounterManagedConfiguration--; } -buildUnnamed2024() { +buildUnnamed2034() { var o = new core.List<api.ManagedConfiguration>(); o.add(buildManagedConfiguration()); o.add(buildManagedConfiguration()); return o; } -checkUnnamed2024(core.List<api.ManagedConfiguration> o) { +checkUnnamed2034(core.List<api.ManagedConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedConfiguration(o[0]); checkManagedConfiguration(o[1]); @@ -886,7 +886,7 @@ buildCounterManagedConfigurationsForDeviceListResponse++; if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { o.kind = "foo"; - o.managedConfigurationForDevice = buildUnnamed2024(); + o.managedConfigurationForDevice = buildUnnamed2034(); } buildCounterManagedConfigurationsForDeviceListResponse--; return o; @@ -896,19 +896,19 @@ buildCounterManagedConfigurationsForDeviceListResponse++; if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2024(o.managedConfigurationForDevice); + checkUnnamed2034(o.managedConfigurationForDevice); } buildCounterManagedConfigurationsForDeviceListResponse--; } -buildUnnamed2025() { +buildUnnamed2035() { var o = new core.List<api.ManagedConfiguration>(); o.add(buildManagedConfiguration()); o.add(buildManagedConfiguration()); return o; } -checkUnnamed2025(core.List<api.ManagedConfiguration> o) { +checkUnnamed2035(core.List<api.ManagedConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedConfiguration(o[0]); checkManagedConfiguration(o[1]); @@ -920,7 +920,7 @@ buildCounterManagedConfigurationsForUserListResponse++; if (buildCounterManagedConfigurationsForUserListResponse < 3) { o.kind = "foo"; - o.managedConfigurationForUser = buildUnnamed2025(); + o.managedConfigurationForUser = buildUnnamed2035(); } buildCounterManagedConfigurationsForUserListResponse--; return o; @@ -930,32 +930,32 @@ buildCounterManagedConfigurationsForUserListResponse++; if (buildCounterManagedConfigurationsForUserListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2025(o.managedConfigurationForUser); + checkUnnamed2035(o.managedConfigurationForUser); } buildCounterManagedConfigurationsForUserListResponse--; } -buildUnnamed2026() { +buildUnnamed2036() { var o = new core.List<api.ManagedPropertyBundle>(); o.add(buildManagedPropertyBundle()); o.add(buildManagedPropertyBundle()); return o; } -checkUnnamed2026(core.List<api.ManagedPropertyBundle> o) { +checkUnnamed2036(core.List<api.ManagedPropertyBundle> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedPropertyBundle(o[0]); checkManagedPropertyBundle(o[1]); } -buildUnnamed2027() { +buildUnnamed2037() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2027(core.List<core.String> o) { +checkUnnamed2037(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -969,10 +969,10 @@ o.key = "foo"; o.valueBool = true; o.valueBundle = buildManagedPropertyBundle(); - o.valueBundleArray = buildUnnamed2026(); + o.valueBundleArray = buildUnnamed2036(); o.valueInteger = 42; o.valueString = "foo"; - o.valueStringArray = buildUnnamed2027(); + o.valueStringArray = buildUnnamed2037(); } buildCounterManagedProperty--; return o; @@ -984,22 +984,22 @@ unittest.expect(o.key, unittest.equals('foo')); unittest.expect(o.valueBool, unittest.isTrue); checkManagedPropertyBundle(o.valueBundle); - checkUnnamed2026(o.valueBundleArray); + checkUnnamed2036(o.valueBundleArray); unittest.expect(o.valueInteger, unittest.equals(42)); unittest.expect(o.valueString, unittest.equals('foo')); - checkUnnamed2027(o.valueStringArray); + checkUnnamed2037(o.valueStringArray); } buildCounterManagedProperty--; } -buildUnnamed2028() { +buildUnnamed2038() { var o = new core.List<api.ManagedProperty>(); o.add(buildManagedProperty()); o.add(buildManagedProperty()); return o; } -checkUnnamed2028(core.List<api.ManagedProperty> o) { +checkUnnamed2038(core.List<api.ManagedProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedProperty(o[0]); checkManagedProperty(o[1]); @@ -1010,7 +1010,7 @@ var o = new api.ManagedPropertyBundle(); buildCounterManagedPropertyBundle++; if (buildCounterManagedPropertyBundle < 3) { - o.managedProperty = buildUnnamed2028(); + o.managedProperty = buildUnnamed2038(); } buildCounterManagedPropertyBundle--; return o; @@ -1019,7 +1019,7 @@ checkManagedPropertyBundle(api.ManagedPropertyBundle o) { buildCounterManagedPropertyBundle++; if (buildCounterManagedPropertyBundle < 3) { - checkUnnamed2028(o.managedProperty); + checkUnnamed2038(o.managedProperty); } buildCounterManagedPropertyBundle--; } @@ -1047,27 +1047,27 @@ buildCounterNewDeviceEvent--; } -buildUnnamed2029() { +buildUnnamed2039() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2029(core.List<core.String> o) { +checkUnnamed2039(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2030() { +buildUnnamed2040() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2030(core.List<core.String> o) { +checkUnnamed2040(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1078,9 +1078,9 @@ var o = new api.NewPermissionsEvent(); buildCounterNewPermissionsEvent++; if (buildCounterNewPermissionsEvent < 3) { - o.approvedPermissions = buildUnnamed2029(); + o.approvedPermissions = buildUnnamed2039(); o.productId = "foo"; - o.requestedPermissions = buildUnnamed2030(); + o.requestedPermissions = buildUnnamed2040(); } buildCounterNewPermissionsEvent--; return o; @@ -1089,9 +1089,9 @@ checkNewPermissionsEvent(api.NewPermissionsEvent o) { buildCounterNewPermissionsEvent++; if (buildCounterNewPermissionsEvent < 3) { - checkUnnamed2029(o.approvedPermissions); + checkUnnamed2039(o.approvedPermissions); unittest.expect(o.productId, unittest.equals('foo')); - checkUnnamed2030(o.requestedPermissions); + checkUnnamed2040(o.requestedPermissions); } buildCounterNewPermissionsEvent--; } @@ -1133,14 +1133,14 @@ buildCounterNotification--; } -buildUnnamed2031() { +buildUnnamed2041() { var o = new core.List<api.Notification>(); o.add(buildNotification()); o.add(buildNotification()); return o; } -checkUnnamed2031(core.List<api.Notification> o) { +checkUnnamed2041(core.List<api.Notification> o) { unittest.expect(o, unittest.hasLength(2)); checkNotification(o[0]); checkNotification(o[1]); @@ -1152,7 +1152,7 @@ buildCounterNotificationSet++; if (buildCounterNotificationSet < 3) { o.kind = "foo"; - o.notification = buildUnnamed2031(); + o.notification = buildUnnamed2041(); o.notificationSetId = "foo"; } buildCounterNotificationSet--; @@ -1163,7 +1163,7 @@ buildCounterNotificationSet++; if (buildCounterNotificationSet < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2031(o.notification); + checkUnnamed2041(o.notification); unittest.expect(o.notificationSetId, unittest.equals('foo')); } buildCounterNotificationSet--; @@ -1217,14 +1217,14 @@ buildCounterPermission--; } -buildUnnamed2032() { +buildUnnamed2042() { var o = new core.List<api.AppVersion>(); o.add(buildAppVersion()); o.add(buildAppVersion()); return o; } -checkUnnamed2032(core.List<api.AppVersion> o) { +checkUnnamed2042(core.List<api.AppVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkAppVersion(o[0]); checkAppVersion(o[1]); @@ -1235,7 +1235,7 @@ var o = new api.Product(); buildCounterProduct++; if (buildCounterProduct < 3) { - o.appVersion = buildUnnamed2032(); + o.appVersion = buildUnnamed2042(); o.authorName = "foo"; o.detailsUrl = "foo"; o.distributionChannel = "foo"; @@ -1255,7 +1255,7 @@ checkProduct(api.Product o) { buildCounterProduct++; if (buildCounterProduct < 3) { - checkUnnamed2032(o.appVersion); + checkUnnamed2042(o.appVersion); unittest.expect(o.authorName, unittest.equals('foo')); unittest.expect(o.detailsUrl, unittest.equals('foo')); unittest.expect(o.distributionChannel, unittest.equals('foo')); @@ -1334,14 +1334,14 @@ buildCounterProductPermission--; } -buildUnnamed2033() { +buildUnnamed2043() { var o = new core.List<api.ProductPermission>(); o.add(buildProductPermission()); o.add(buildProductPermission()); return o; } -checkUnnamed2033(core.List<api.ProductPermission> o) { +checkUnnamed2043(core.List<api.ProductPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkProductPermission(o[0]); checkProductPermission(o[1]); @@ -1353,7 +1353,7 @@ buildCounterProductPermissions++; if (buildCounterProductPermissions < 3) { o.kind = "foo"; - o.permission = buildUnnamed2033(); + o.permission = buildUnnamed2043(); o.productId = "foo"; } buildCounterProductPermissions--; @@ -1364,20 +1364,20 @@ buildCounterProductPermissions++; if (buildCounterProductPermissions < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2033(o.permission); + checkUnnamed2043(o.permission); unittest.expect(o.productId, unittest.equals('foo')); } buildCounterProductPermissions--; } -buildUnnamed2034() { +buildUnnamed2044() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2034(core.List<core.String> o) { +checkUnnamed2044(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1389,7 +1389,7 @@ buildCounterProductSet++; if (buildCounterProductSet < 3) { o.kind = "foo"; - o.productId = buildUnnamed2034(); + o.productId = buildUnnamed2044(); o.productSetBehavior = "foo"; } buildCounterProductSet--; @@ -1400,7 +1400,7 @@ buildCounterProductSet++; if (buildCounterProductSet < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2034(o.productId); + checkUnnamed2044(o.productId); unittest.expect(o.productSetBehavior, unittest.equals('foo')); } buildCounterProductSet--; @@ -1446,14 +1446,14 @@ buildCounterProductsGenerateApprovalUrlResponse--; } -buildUnnamed2035() { +buildUnnamed2045() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed2035(core.List<api.Product> o) { +checkUnnamed2045(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -1466,7 +1466,7 @@ if (buildCounterProductsListResponse < 3) { o.kind = "foo"; o.pageInfo = buildPageInfo(); - o.product = buildUnnamed2035(); + o.product = buildUnnamed2045(); o.tokenPagination = buildTokenPagination(); } buildCounterProductsListResponse--; @@ -1478,7 +1478,7 @@ if (buildCounterProductsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); checkPageInfo(o.pageInfo); - checkUnnamed2035(o.product); + checkUnnamed2045(o.product); checkTokenPagination(o.tokenPagination); } buildCounterProductsListResponse--; @@ -1534,14 +1534,14 @@ buildCounterServiceAccountKey--; } -buildUnnamed2036() { +buildUnnamed2046() { var o = new core.List<api.ServiceAccountKey>(); o.add(buildServiceAccountKey()); o.add(buildServiceAccountKey()); return o; } -checkUnnamed2036(core.List<api.ServiceAccountKey> o) { +checkUnnamed2046(core.List<api.ServiceAccountKey> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccountKey(o[0]); checkServiceAccountKey(o[1]); @@ -1552,7 +1552,7 @@ var o = new api.ServiceAccountKeysListResponse(); buildCounterServiceAccountKeysListResponse++; if (buildCounterServiceAccountKeysListResponse < 3) { - o.serviceAccountKey = buildUnnamed2036(); + o.serviceAccountKey = buildUnnamed2046(); } buildCounterServiceAccountKeysListResponse--; return o; @@ -1561,7 +1561,7 @@ checkServiceAccountKeysListResponse(api.ServiceAccountKeysListResponse o) { buildCounterServiceAccountKeysListResponse++; if (buildCounterServiceAccountKeysListResponse < 3) { - checkUnnamed2036(o.serviceAccountKey); + checkUnnamed2046(o.serviceAccountKey); } buildCounterServiceAccountKeysListResponse--; } @@ -1589,27 +1589,27 @@ buildCounterSignupInfo--; } -buildUnnamed2037() { +buildUnnamed2047() { var o = new core.List<api.LocalizedText>(); o.add(buildLocalizedText()); o.add(buildLocalizedText()); return o; } -checkUnnamed2037(core.List<api.LocalizedText> o) { +checkUnnamed2047(core.List<api.LocalizedText> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedText(o[0]); checkLocalizedText(o[1]); } -buildUnnamed2038() { +buildUnnamed2048() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2038(core.List<core.String> o) { +checkUnnamed2048(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1622,9 +1622,9 @@ if (buildCounterStoreCluster < 3) { o.id = "foo"; o.kind = "foo"; - o.name = buildUnnamed2037(); + o.name = buildUnnamed2047(); o.orderInPage = "foo"; - o.productId = buildUnnamed2038(); + o.productId = buildUnnamed2048(); } buildCounterStoreCluster--; return o; @@ -1635,9 +1635,9 @@ if (buildCounterStoreCluster < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2037(o.name); + checkUnnamed2047(o.name); unittest.expect(o.orderInPage, unittest.equals('foo')); - checkUnnamed2038(o.productId); + checkUnnamed2048(o.productId); } buildCounterStoreCluster--; } @@ -1665,14 +1665,14 @@ buildCounterStoreLayout--; } -buildUnnamed2039() { +buildUnnamed2049() { var o = new core.List<api.StoreCluster>(); o.add(buildStoreCluster()); o.add(buildStoreCluster()); return o; } -checkUnnamed2039(core.List<api.StoreCluster> o) { +checkUnnamed2049(core.List<api.StoreCluster> o) { unittest.expect(o, unittest.hasLength(2)); checkStoreCluster(o[0]); checkStoreCluster(o[1]); @@ -1683,7 +1683,7 @@ var o = new api.StoreLayoutClustersListResponse(); buildCounterStoreLayoutClustersListResponse++; if (buildCounterStoreLayoutClustersListResponse < 3) { - o.cluster = buildUnnamed2039(); + o.cluster = buildUnnamed2049(); o.kind = "foo"; } buildCounterStoreLayoutClustersListResponse--; @@ -1693,20 +1693,20 @@ checkStoreLayoutClustersListResponse(api.StoreLayoutClustersListResponse o) { buildCounterStoreLayoutClustersListResponse++; if (buildCounterStoreLayoutClustersListResponse < 3) { - checkUnnamed2039(o.cluster); + checkUnnamed2049(o.cluster); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterStoreLayoutClustersListResponse--; } -buildUnnamed2040() { +buildUnnamed2050() { var o = new core.List<api.StorePage>(); o.add(buildStorePage()); o.add(buildStorePage()); return o; } -checkUnnamed2040(core.List<api.StorePage> o) { +checkUnnamed2050(core.List<api.StorePage> o) { unittest.expect(o, unittest.hasLength(2)); checkStorePage(o[0]); checkStorePage(o[1]); @@ -1718,7 +1718,7 @@ buildCounterStoreLayoutPagesListResponse++; if (buildCounterStoreLayoutPagesListResponse < 3) { o.kind = "foo"; - o.page = buildUnnamed2040(); + o.page = buildUnnamed2050(); } buildCounterStoreLayoutPagesListResponse--; return o; @@ -1728,32 +1728,32 @@ buildCounterStoreLayoutPagesListResponse++; if (buildCounterStoreLayoutPagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2040(o.page); + checkUnnamed2050(o.page); } buildCounterStoreLayoutPagesListResponse--; } -buildUnnamed2041() { +buildUnnamed2051() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2041(core.List<core.String> o) { +checkUnnamed2051(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2042() { +buildUnnamed2052() { var o = new core.List<api.LocalizedText>(); o.add(buildLocalizedText()); o.add(buildLocalizedText()); return o; } -checkUnnamed2042(core.List<api.LocalizedText> o) { +checkUnnamed2052(core.List<api.LocalizedText> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedText(o[0]); checkLocalizedText(o[1]); @@ -1766,8 +1766,8 @@ if (buildCounterStorePage < 3) { o.id = "foo"; o.kind = "foo"; - o.link = buildUnnamed2041(); - o.name = buildUnnamed2042(); + o.link = buildUnnamed2051(); + o.name = buildUnnamed2052(); } buildCounterStorePage--; return o; @@ -1778,8 +1778,8 @@ if (buildCounterStorePage < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2041(o.link); - checkUnnamed2042(o.name); + checkUnnamed2051(o.link); + checkUnnamed2052(o.name); } buildCounterStorePage--; } @@ -1859,14 +1859,14 @@ buildCounterUserToken--; } -buildUnnamed2043() { +buildUnnamed2053() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed2043(core.List<api.User> o) { +checkUnnamed2053(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -1878,7 +1878,7 @@ buildCounterUsersListResponse++; if (buildCounterUsersListResponse < 3) { o.kind = "foo"; - o.user = buildUnnamed2043(); + o.user = buildUnnamed2053(); } buildCounterUsersListResponse--; return o; @@ -1888,7 +1888,7 @@ buildCounterUsersListResponse++; if (buildCounterUsersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2043(o.user); + checkUnnamed2053(o.user); } buildCounterUsersListResponse--; } @@ -2443,7 +2443,7 @@ var arg_enterpriseId = "foo"; var arg_userId = "foo"; var arg_deviceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2496,7 +2496,7 @@ var resp = convert.JSON.encode(buildDevice()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_enterpriseId, arg_userId, arg_deviceId).then(unittest.expectAsync(((api.Device response) { + res.get(arg_enterpriseId, arg_userId, arg_deviceId).then(unittest.expectAsync1(((api.Device response) { checkDevice(response); }))); }); @@ -2508,7 +2508,7 @@ var arg_enterpriseId = "foo"; var arg_userId = "foo"; var arg_deviceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2565,7 +2565,7 @@ var resp = convert.JSON.encode(buildDeviceState()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getState(arg_enterpriseId, arg_userId, arg_deviceId).then(unittest.expectAsync(((api.DeviceState response) { + res.getState(arg_enterpriseId, arg_userId, arg_deviceId).then(unittest.expectAsync1(((api.DeviceState response) { checkDeviceState(response); }))); }); @@ -2576,7 +2576,7 @@ api.DevicesResourceApi res = new api.AndroidenterpriseApi(mock).devices; var arg_enterpriseId = "foo"; var arg_userId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2626,7 +2626,7 @@ var resp = convert.JSON.encode(buildDevicesListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_enterpriseId, arg_userId).then(unittest.expectAsync(((api.DevicesListResponse response) { + res.list(arg_enterpriseId, arg_userId).then(unittest.expectAsync1(((api.DevicesListResponse response) { checkDevicesListResponse(response); }))); }); @@ -2639,7 +2639,7 @@ var arg_enterpriseId = "foo"; var arg_userId = "foo"; var arg_deviceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DeviceState.fromJson(json); checkDeviceState(obj); @@ -2699,7 +2699,7 @@ var resp = convert.JSON.encode(buildDeviceState()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setState(arg_request, arg_enterpriseId, arg_userId, arg_deviceId).then(unittest.expectAsync(((api.DeviceState response) { + res.setState(arg_request, arg_enterpriseId, arg_userId, arg_deviceId).then(unittest.expectAsync1(((api.DeviceState response) { checkDeviceState(response); }))); }); @@ -2713,7 +2713,7 @@ var mock = new HttpServerMock(); api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterprises; var arg_notificationSetId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2750,7 +2750,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.acknowledgeNotificationSet(notificationSetId: arg_notificationSetId).then(unittest.expectAsync((_) {})); + res.acknowledgeNotificationSet(notificationSetId: arg_notificationSetId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--completeSignup", () { @@ -2759,7 +2759,7 @@ api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterprises; var arg_completionToken = "foo"; var arg_enterpriseToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2797,7 +2797,7 @@ var resp = convert.JSON.encode(buildEnterprise()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.completeSignup(completionToken: arg_completionToken, enterpriseToken: arg_enterpriseToken).then(unittest.expectAsync(((api.Enterprise response) { + res.completeSignup(completionToken: arg_completionToken, enterpriseToken: arg_enterpriseToken).then(unittest.expectAsync1(((api.Enterprise response) { checkEnterprise(response); }))); }); @@ -2808,7 +2808,7 @@ api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterprises; var arg_request = buildAdministratorWebTokenSpec(); var arg_enterpriseId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AdministratorWebTokenSpec.fromJson(json); checkAdministratorWebTokenSpec(obj); @@ -2854,7 +2854,7 @@ var resp = convert.JSON.encode(buildAdministratorWebToken()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.createWebToken(arg_request, arg_enterpriseId).then(unittest.expectAsync(((api.AdministratorWebToken response) { + res.createWebToken(arg_request, arg_enterpriseId).then(unittest.expectAsync1(((api.AdministratorWebToken response) { checkAdministratorWebToken(response); }))); }); @@ -2864,7 +2864,7 @@ var mock = new HttpServerMock(); api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterprises; var arg_enterpriseId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2903,7 +2903,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_enterpriseId).then(unittest.expectAsync((_) {})); + res.delete(arg_enterpriseId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--enroll", () { @@ -2912,7 +2912,7 @@ api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterprises; var arg_request = buildEnterprise(); var arg_token = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Enterprise.fromJson(json); checkEnterprise(obj); @@ -2952,7 +2952,7 @@ var resp = convert.JSON.encode(buildEnterprise()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.enroll(arg_request, arg_token).then(unittest.expectAsync(((api.Enterprise response) { + res.enroll(arg_request, arg_token).then(unittest.expectAsync1(((api.Enterprise response) { checkEnterprise(response); }))); }); @@ -2962,7 +2962,7 @@ var mock = new HttpServerMock(); api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterprises; var arg_callbackUrl = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2999,7 +2999,7 @@ var resp = convert.JSON.encode(buildSignupInfo()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.generateSignupUrl(callbackUrl: arg_callbackUrl).then(unittest.expectAsync(((api.SignupInfo response) { + res.generateSignupUrl(callbackUrl: arg_callbackUrl).then(unittest.expectAsync1(((api.SignupInfo response) { checkSignupInfo(response); }))); }); @@ -3009,7 +3009,7 @@ var mock = new HttpServerMock(); api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterprises; var arg_enterpriseId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3048,7 +3048,7 @@ var resp = convert.JSON.encode(buildEnterprise()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_enterpriseId).then(unittest.expectAsync(((api.Enterprise response) { + res.get(arg_enterpriseId).then(unittest.expectAsync1(((api.Enterprise response) { checkEnterprise(response); }))); }); @@ -3059,7 +3059,7 @@ api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterprises; var arg_enterpriseId = "foo"; var arg_keyType = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3103,7 +3103,7 @@ var resp = convert.JSON.encode(buildServiceAccount()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getServiceAccount(arg_enterpriseId, keyType: arg_keyType).then(unittest.expectAsync(((api.ServiceAccount response) { + res.getServiceAccount(arg_enterpriseId, keyType: arg_keyType).then(unittest.expectAsync1(((api.ServiceAccount response) { checkServiceAccount(response); }))); }); @@ -3113,7 +3113,7 @@ var mock = new HttpServerMock(); api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterprises; var arg_enterpriseId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3156,7 +3156,7 @@ var resp = convert.JSON.encode(buildStoreLayout()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getStoreLayout(arg_enterpriseId).then(unittest.expectAsync(((api.StoreLayout response) { + res.getStoreLayout(arg_enterpriseId).then(unittest.expectAsync1(((api.StoreLayout response) { checkStoreLayout(response); }))); }); @@ -3167,7 +3167,7 @@ api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterprises; var arg_request = buildEnterprise(); var arg_token = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Enterprise.fromJson(json); checkEnterprise(obj); @@ -3207,7 +3207,7 @@ var resp = convert.JSON.encode(buildEnterprise()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_token).then(unittest.expectAsync(((api.Enterprise response) { + res.insert(arg_request, arg_token).then(unittest.expectAsync1(((api.Enterprise response) { checkEnterprise(response); }))); }); @@ -3217,7 +3217,7 @@ var mock = new HttpServerMock(); api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterprises; var arg_domain = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3254,7 +3254,7 @@ var resp = convert.JSON.encode(buildEnterprisesListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_domain).then(unittest.expectAsync(((api.EnterprisesListResponse response) { + res.list(arg_domain).then(unittest.expectAsync1(((api.EnterprisesListResponse response) { checkEnterprisesListResponse(response); }))); }); @@ -3264,7 +3264,7 @@ var mock = new HttpServerMock(); api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterprises; var arg_requestMode = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3301,7 +3301,7 @@ var resp = convert.JSON.encode(buildNotificationSet()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.pullNotificationSet(requestMode: arg_requestMode).then(unittest.expectAsync(((api.NotificationSet response) { + res.pullNotificationSet(requestMode: arg_requestMode).then(unittest.expectAsync1(((api.NotificationSet response) { checkNotificationSet(response); }))); }); @@ -3311,7 +3311,7 @@ var mock = new HttpServerMock(); api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterprises; var arg_enterpriseId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3354,7 +3354,7 @@ var resp = convert.JSON.encode(buildEnterprisesSendTestPushNotificationResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.sendTestPushNotification(arg_enterpriseId).then(unittest.expectAsync(((api.EnterprisesSendTestPushNotificationResponse response) { + res.sendTestPushNotification(arg_enterpriseId).then(unittest.expectAsync1(((api.EnterprisesSendTestPushNotificationResponse response) { checkEnterprisesSendTestPushNotificationResponse(response); }))); }); @@ -3365,7 +3365,7 @@ api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterprises; var arg_request = buildEnterpriseAccount(); var arg_enterpriseId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.EnterpriseAccount.fromJson(json); checkEnterpriseAccount(obj); @@ -3411,7 +3411,7 @@ var resp = convert.JSON.encode(buildEnterpriseAccount()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setAccount(arg_request, arg_enterpriseId).then(unittest.expectAsync(((api.EnterpriseAccount response) { + res.setAccount(arg_request, arg_enterpriseId).then(unittest.expectAsync1(((api.EnterpriseAccount response) { checkEnterpriseAccount(response); }))); }); @@ -3422,7 +3422,7 @@ api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterprises; var arg_request = buildStoreLayout(); var arg_enterpriseId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.StoreLayout.fromJson(json); checkStoreLayout(obj); @@ -3468,7 +3468,7 @@ var resp = convert.JSON.encode(buildStoreLayout()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setStoreLayout(arg_request, arg_enterpriseId).then(unittest.expectAsync(((api.StoreLayout response) { + res.setStoreLayout(arg_request, arg_enterpriseId).then(unittest.expectAsync1(((api.StoreLayout response) { checkStoreLayout(response); }))); }); @@ -3478,7 +3478,7 @@ var mock = new HttpServerMock(); api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterprises; var arg_enterpriseId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3521,7 +3521,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.unenroll(arg_enterpriseId).then(unittest.expectAsync((_) {})); + res.unenroll(arg_enterpriseId).then(unittest.expectAsync1((_) {})); }); }); @@ -3535,7 +3535,7 @@ var arg_enterpriseId = "foo"; var arg_userId = "foo"; var arg_entitlementId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3588,7 +3588,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_enterpriseId, arg_userId, arg_entitlementId).then(unittest.expectAsync((_) {})); + res.delete(arg_enterpriseId, arg_userId, arg_entitlementId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -3598,7 +3598,7 @@ var arg_enterpriseId = "foo"; var arg_userId = "foo"; var arg_entitlementId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3651,7 +3651,7 @@ var resp = convert.JSON.encode(buildEntitlement()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_enterpriseId, arg_userId, arg_entitlementId).then(unittest.expectAsync(((api.Entitlement response) { + res.get(arg_enterpriseId, arg_userId, arg_entitlementId).then(unittest.expectAsync1(((api.Entitlement response) { checkEntitlement(response); }))); }); @@ -3662,7 +3662,7 @@ api.EntitlementsResourceApi res = new api.AndroidenterpriseApi(mock).entitlements; var arg_enterpriseId = "foo"; var arg_userId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3712,7 +3712,7 @@ var resp = convert.JSON.encode(buildEntitlementsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_enterpriseId, arg_userId).then(unittest.expectAsync(((api.EntitlementsListResponse response) { + res.list(arg_enterpriseId, arg_userId).then(unittest.expectAsync1(((api.EntitlementsListResponse response) { checkEntitlementsListResponse(response); }))); }); @@ -3726,7 +3726,7 @@ var arg_userId = "foo"; var arg_entitlementId = "foo"; var arg_install = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Entitlement.fromJson(json); checkEntitlement(obj); @@ -3783,7 +3783,7 @@ var resp = convert.JSON.encode(buildEntitlement()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_enterpriseId, arg_userId, arg_entitlementId, install: arg_install).then(unittest.expectAsync(((api.Entitlement response) { + res.patch(arg_request, arg_enterpriseId, arg_userId, arg_entitlementId, install: arg_install).then(unittest.expectAsync1(((api.Entitlement response) { checkEntitlement(response); }))); }); @@ -3797,7 +3797,7 @@ var arg_userId = "foo"; var arg_entitlementId = "foo"; var arg_install = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Entitlement.fromJson(json); checkEntitlement(obj); @@ -3854,7 +3854,7 @@ var resp = convert.JSON.encode(buildEntitlement()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_enterpriseId, arg_userId, arg_entitlementId, install: arg_install).then(unittest.expectAsync(((api.Entitlement response) { + res.update(arg_request, arg_enterpriseId, arg_userId, arg_entitlementId, install: arg_install).then(unittest.expectAsync1(((api.Entitlement response) { checkEntitlement(response); }))); }); @@ -3869,7 +3869,7 @@ api.GrouplicensesResourceApi res = new api.AndroidenterpriseApi(mock).grouplicenses; var arg_enterpriseId = "foo"; var arg_groupLicenseId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3915,7 +3915,7 @@ var resp = convert.JSON.encode(buildGroupLicense()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_enterpriseId, arg_groupLicenseId).then(unittest.expectAsync(((api.GroupLicense response) { + res.get(arg_enterpriseId, arg_groupLicenseId).then(unittest.expectAsync1(((api.GroupLicense response) { checkGroupLicense(response); }))); }); @@ -3925,7 +3925,7 @@ var mock = new HttpServerMock(); api.GrouplicensesResourceApi res = new api.AndroidenterpriseApi(mock).grouplicenses; var arg_enterpriseId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3968,7 +3968,7 @@ var resp = convert.JSON.encode(buildGroupLicensesListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_enterpriseId).then(unittest.expectAsync(((api.GroupLicensesListResponse response) { + res.list(arg_enterpriseId).then(unittest.expectAsync1(((api.GroupLicensesListResponse response) { checkGroupLicensesListResponse(response); }))); }); @@ -3983,7 +3983,7 @@ api.GrouplicenseusersResourceApi res = new api.AndroidenterpriseApi(mock).grouplicenseusers; var arg_enterpriseId = "foo"; var arg_groupLicenseId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4033,7 +4033,7 @@ var resp = convert.JSON.encode(buildGroupLicenseUsersListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_enterpriseId, arg_groupLicenseId).then(unittest.expectAsync(((api.GroupLicenseUsersListResponse response) { + res.list(arg_enterpriseId, arg_groupLicenseId).then(unittest.expectAsync1(((api.GroupLicenseUsersListResponse response) { checkGroupLicenseUsersListResponse(response); }))); }); @@ -4050,7 +4050,7 @@ var arg_userId = "foo"; var arg_deviceId = "foo"; var arg_installId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4110,7 +4110,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_enterpriseId, arg_userId, arg_deviceId, arg_installId).then(unittest.expectAsync((_) {})); + res.delete(arg_enterpriseId, arg_userId, arg_deviceId, arg_installId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -4121,7 +4121,7 @@ var arg_userId = "foo"; var arg_deviceId = "foo"; var arg_installId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4181,7 +4181,7 @@ var resp = convert.JSON.encode(buildInstall()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_enterpriseId, arg_userId, arg_deviceId, arg_installId).then(unittest.expectAsync(((api.Install response) { + res.get(arg_enterpriseId, arg_userId, arg_deviceId, arg_installId).then(unittest.expectAsync1(((api.Install response) { checkInstall(response); }))); }); @@ -4193,7 +4193,7 @@ var arg_enterpriseId = "foo"; var arg_userId = "foo"; var arg_deviceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4250,7 +4250,7 @@ var resp = convert.JSON.encode(buildInstallsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_enterpriseId, arg_userId, arg_deviceId).then(unittest.expectAsync(((api.InstallsListResponse response) { + res.list(arg_enterpriseId, arg_userId, arg_deviceId).then(unittest.expectAsync1(((api.InstallsListResponse response) { checkInstallsListResponse(response); }))); }); @@ -4264,7 +4264,7 @@ var arg_userId = "foo"; var arg_deviceId = "foo"; var arg_installId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Install.fromJson(json); checkInstall(obj); @@ -4327,7 +4327,7 @@ var resp = convert.JSON.encode(buildInstall()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_enterpriseId, arg_userId, arg_deviceId, arg_installId).then(unittest.expectAsync(((api.Install response) { + res.patch(arg_request, arg_enterpriseId, arg_userId, arg_deviceId, arg_installId).then(unittest.expectAsync1(((api.Install response) { checkInstall(response); }))); }); @@ -4341,7 +4341,7 @@ var arg_userId = "foo"; var arg_deviceId = "foo"; var arg_installId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Install.fromJson(json); checkInstall(obj); @@ -4404,7 +4404,7 @@ var resp = convert.JSON.encode(buildInstall()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_enterpriseId, arg_userId, arg_deviceId, arg_installId).then(unittest.expectAsync(((api.Install response) { + res.update(arg_request, arg_enterpriseId, arg_userId, arg_deviceId, arg_installId).then(unittest.expectAsync1(((api.Install response) { checkInstall(response); }))); }); @@ -4421,7 +4421,7 @@ var arg_userId = "foo"; var arg_deviceId = "foo"; var arg_managedConfigurationForDeviceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4481,7 +4481,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_enterpriseId, arg_userId, arg_deviceId, arg_managedConfigurationForDeviceId).then(unittest.expectAsync((_) {})); + res.delete(arg_enterpriseId, arg_userId, arg_deviceId, arg_managedConfigurationForDeviceId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -4492,7 +4492,7 @@ var arg_userId = "foo"; var arg_deviceId = "foo"; var arg_managedConfigurationForDeviceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4552,7 +4552,7 @@ var resp = convert.JSON.encode(buildManagedConfiguration()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_enterpriseId, arg_userId, arg_deviceId, arg_managedConfigurationForDeviceId).then(unittest.expectAsync(((api.ManagedConfiguration response) { + res.get(arg_enterpriseId, arg_userId, arg_deviceId, arg_managedConfigurationForDeviceId).then(unittest.expectAsync1(((api.ManagedConfiguration response) { checkManagedConfiguration(response); }))); }); @@ -4564,7 +4564,7 @@ var arg_enterpriseId = "foo"; var arg_userId = "foo"; var arg_deviceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4621,7 +4621,7 @@ var resp = convert.JSON.encode(buildManagedConfigurationsForDeviceListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_enterpriseId, arg_userId, arg_deviceId).then(unittest.expectAsync(((api.ManagedConfigurationsForDeviceListResponse response) { + res.list(arg_enterpriseId, arg_userId, arg_deviceId).then(unittest.expectAsync1(((api.ManagedConfigurationsForDeviceListResponse response) { checkManagedConfigurationsForDeviceListResponse(response); }))); }); @@ -4635,7 +4635,7 @@ var arg_userId = "foo"; var arg_deviceId = "foo"; var arg_managedConfigurationForDeviceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ManagedConfiguration.fromJson(json); checkManagedConfiguration(obj); @@ -4698,7 +4698,7 @@ var resp = convert.JSON.encode(buildManagedConfiguration()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_enterpriseId, arg_userId, arg_deviceId, arg_managedConfigurationForDeviceId).then(unittest.expectAsync(((api.ManagedConfiguration response) { + res.patch(arg_request, arg_enterpriseId, arg_userId, arg_deviceId, arg_managedConfigurationForDeviceId).then(unittest.expectAsync1(((api.ManagedConfiguration response) { checkManagedConfiguration(response); }))); }); @@ -4712,7 +4712,7 @@ var arg_userId = "foo"; var arg_deviceId = "foo"; var arg_managedConfigurationForDeviceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ManagedConfiguration.fromJson(json); checkManagedConfiguration(obj); @@ -4775,7 +4775,7 @@ var resp = convert.JSON.encode(buildManagedConfiguration()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_enterpriseId, arg_userId, arg_deviceId, arg_managedConfigurationForDeviceId).then(unittest.expectAsync(((api.ManagedConfiguration response) { + res.update(arg_request, arg_enterpriseId, arg_userId, arg_deviceId, arg_managedConfigurationForDeviceId).then(unittest.expectAsync1(((api.ManagedConfiguration response) { checkManagedConfiguration(response); }))); }); @@ -4791,7 +4791,7 @@ var arg_enterpriseId = "foo"; var arg_userId = "foo"; var arg_managedConfigurationForUserId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4844,7 +4844,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_enterpriseId, arg_userId, arg_managedConfigurationForUserId).then(unittest.expectAsync((_) {})); + res.delete(arg_enterpriseId, arg_userId, arg_managedConfigurationForUserId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -4854,7 +4854,7 @@ var arg_enterpriseId = "foo"; var arg_userId = "foo"; var arg_managedConfigurationForUserId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4907,7 +4907,7 @@ var resp = convert.JSON.encode(buildManagedConfiguration()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_enterpriseId, arg_userId, arg_managedConfigurationForUserId).then(unittest.expectAsync(((api.ManagedConfiguration response) { + res.get(arg_enterpriseId, arg_userId, arg_managedConfigurationForUserId).then(unittest.expectAsync1(((api.ManagedConfiguration response) { checkManagedConfiguration(response); }))); }); @@ -4918,7 +4918,7 @@ api.ManagedconfigurationsforuserResourceApi res = new api.AndroidenterpriseApi(mock).managedconfigurationsforuser; var arg_enterpriseId = "foo"; var arg_userId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4968,7 +4968,7 @@ var resp = convert.JSON.encode(buildManagedConfigurationsForUserListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_enterpriseId, arg_userId).then(unittest.expectAsync(((api.ManagedConfigurationsForUserListResponse response) { + res.list(arg_enterpriseId, arg_userId).then(unittest.expectAsync1(((api.ManagedConfigurationsForUserListResponse response) { checkManagedConfigurationsForUserListResponse(response); }))); }); @@ -4981,7 +4981,7 @@ var arg_enterpriseId = "foo"; var arg_userId = "foo"; var arg_managedConfigurationForUserId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ManagedConfiguration.fromJson(json); checkManagedConfiguration(obj); @@ -5037,7 +5037,7 @@ var resp = convert.JSON.encode(buildManagedConfiguration()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_enterpriseId, arg_userId, arg_managedConfigurationForUserId).then(unittest.expectAsync(((api.ManagedConfiguration response) { + res.patch(arg_request, arg_enterpriseId, arg_userId, arg_managedConfigurationForUserId).then(unittest.expectAsync1(((api.ManagedConfiguration response) { checkManagedConfiguration(response); }))); }); @@ -5050,7 +5050,7 @@ var arg_enterpriseId = "foo"; var arg_userId = "foo"; var arg_managedConfigurationForUserId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ManagedConfiguration.fromJson(json); checkManagedConfiguration(obj); @@ -5106,7 +5106,7 @@ var resp = convert.JSON.encode(buildManagedConfiguration()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_enterpriseId, arg_userId, arg_managedConfigurationForUserId).then(unittest.expectAsync(((api.ManagedConfiguration response) { + res.update(arg_request, arg_enterpriseId, arg_userId, arg_managedConfigurationForUserId).then(unittest.expectAsync1(((api.ManagedConfiguration response) { checkManagedConfiguration(response); }))); }); @@ -5121,7 +5121,7 @@ api.PermissionsResourceApi res = new api.AndroidenterpriseApi(mock).permissions; var arg_permissionId = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5161,7 +5161,7 @@ var resp = convert.JSON.encode(buildPermission()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_permissionId, language: arg_language).then(unittest.expectAsync(((api.Permission response) { + res.get(arg_permissionId, language: arg_language).then(unittest.expectAsync1(((api.Permission response) { checkPermission(response); }))); }); @@ -5177,7 +5177,7 @@ var arg_request = buildProductsApproveRequest(); var arg_enterpriseId = "foo"; var arg_productId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ProductsApproveRequest.fromJson(json); checkProductsApproveRequest(obj); @@ -5230,7 +5230,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.approve(arg_request, arg_enterpriseId, arg_productId).then(unittest.expectAsync((_) {})); + res.approve(arg_request, arg_enterpriseId, arg_productId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--generateApprovalUrl", () { @@ -5240,7 +5240,7 @@ var arg_enterpriseId = "foo"; var arg_productId = "foo"; var arg_languageCode = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5291,7 +5291,7 @@ var resp = convert.JSON.encode(buildProductsGenerateApprovalUrlResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.generateApprovalUrl(arg_enterpriseId, arg_productId, languageCode: arg_languageCode).then(unittest.expectAsync(((api.ProductsGenerateApprovalUrlResponse response) { + res.generateApprovalUrl(arg_enterpriseId, arg_productId, languageCode: arg_languageCode).then(unittest.expectAsync1(((api.ProductsGenerateApprovalUrlResponse response) { checkProductsGenerateApprovalUrlResponse(response); }))); }); @@ -5303,7 +5303,7 @@ var arg_enterpriseId = "foo"; var arg_productId = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5350,7 +5350,7 @@ var resp = convert.JSON.encode(buildProduct()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_enterpriseId, arg_productId, language: arg_language).then(unittest.expectAsync(((api.Product response) { + res.get(arg_enterpriseId, arg_productId, language: arg_language).then(unittest.expectAsync1(((api.Product response) { checkProduct(response); }))); }); @@ -5362,7 +5362,7 @@ var arg_enterpriseId = "foo"; var arg_productId = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5413,7 +5413,7 @@ var resp = convert.JSON.encode(buildAppRestrictionsSchema()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getAppRestrictionsSchema(arg_enterpriseId, arg_productId, language: arg_language).then(unittest.expectAsync(((api.AppRestrictionsSchema response) { + res.getAppRestrictionsSchema(arg_enterpriseId, arg_productId, language: arg_language).then(unittest.expectAsync1(((api.AppRestrictionsSchema response) { checkAppRestrictionsSchema(response); }))); }); @@ -5424,7 +5424,7 @@ api.ProductsResourceApi res = new api.AndroidenterpriseApi(mock).products; var arg_enterpriseId = "foo"; var arg_productId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5474,7 +5474,7 @@ var resp = convert.JSON.encode(buildProductPermissions()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getPermissions(arg_enterpriseId, arg_productId).then(unittest.expectAsync(((api.ProductPermissions response) { + res.getPermissions(arg_enterpriseId, arg_productId).then(unittest.expectAsync1(((api.ProductPermissions response) { checkProductPermissions(response); }))); }); @@ -5489,7 +5489,7 @@ var arg_maxResults = 42; var arg_query = "foo"; var arg_token = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5537,7 +5537,7 @@ var resp = convert.JSON.encode(buildProductsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_enterpriseId, approved: arg_approved, language: arg_language, maxResults: arg_maxResults, query: arg_query, token: arg_token).then(unittest.expectAsync(((api.ProductsListResponse response) { + res.list(arg_enterpriseId, approved: arg_approved, language: arg_language, maxResults: arg_maxResults, query: arg_query, token: arg_token).then(unittest.expectAsync1(((api.ProductsListResponse response) { checkProductsListResponse(response); }))); }); @@ -5548,7 +5548,7 @@ api.ProductsResourceApi res = new api.AndroidenterpriseApi(mock).products; var arg_enterpriseId = "foo"; var arg_productId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5598,7 +5598,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.unapprove(arg_enterpriseId, arg_productId).then(unittest.expectAsync((_) {})); + res.unapprove(arg_enterpriseId, arg_productId).then(unittest.expectAsync1((_) {})); }); }); @@ -5611,7 +5611,7 @@ api.ServiceaccountkeysResourceApi res = new api.AndroidenterpriseApi(mock).serviceaccountkeys; var arg_enterpriseId = "foo"; var arg_keyId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5657,7 +5657,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_enterpriseId, arg_keyId).then(unittest.expectAsync((_) {})); + res.delete(arg_enterpriseId, arg_keyId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--insert", () { @@ -5666,7 +5666,7 @@ api.ServiceaccountkeysResourceApi res = new api.AndroidenterpriseApi(mock).serviceaccountkeys; var arg_request = buildServiceAccountKey(); var arg_enterpriseId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ServiceAccountKey.fromJson(json); checkServiceAccountKey(obj); @@ -5712,7 +5712,7 @@ var resp = convert.JSON.encode(buildServiceAccountKey()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_enterpriseId).then(unittest.expectAsync(((api.ServiceAccountKey response) { + res.insert(arg_request, arg_enterpriseId).then(unittest.expectAsync1(((api.ServiceAccountKey response) { checkServiceAccountKey(response); }))); }); @@ -5722,7 +5722,7 @@ var mock = new HttpServerMock(); api.ServiceaccountkeysResourceApi res = new api.AndroidenterpriseApi(mock).serviceaccountkeys; var arg_enterpriseId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5765,7 +5765,7 @@ var resp = convert.JSON.encode(buildServiceAccountKeysListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_enterpriseId).then(unittest.expectAsync(((api.ServiceAccountKeysListResponse response) { + res.list(arg_enterpriseId).then(unittest.expectAsync1(((api.ServiceAccountKeysListResponse response) { checkServiceAccountKeysListResponse(response); }))); }); @@ -5781,7 +5781,7 @@ var arg_enterpriseId = "foo"; var arg_pageId = "foo"; var arg_clusterId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5834,7 +5834,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_enterpriseId, arg_pageId, arg_clusterId).then(unittest.expectAsync((_) {})); + res.delete(arg_enterpriseId, arg_pageId, arg_clusterId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -5844,7 +5844,7 @@ var arg_enterpriseId = "foo"; var arg_pageId = "foo"; var arg_clusterId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5897,7 +5897,7 @@ var resp = convert.JSON.encode(buildStoreCluster()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_enterpriseId, arg_pageId, arg_clusterId).then(unittest.expectAsync(((api.StoreCluster response) { + res.get(arg_enterpriseId, arg_pageId, arg_clusterId).then(unittest.expectAsync1(((api.StoreCluster response) { checkStoreCluster(response); }))); }); @@ -5909,7 +5909,7 @@ var arg_request = buildStoreCluster(); var arg_enterpriseId = "foo"; var arg_pageId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.StoreCluster.fromJson(json); checkStoreCluster(obj); @@ -5962,7 +5962,7 @@ var resp = convert.JSON.encode(buildStoreCluster()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_enterpriseId, arg_pageId).then(unittest.expectAsync(((api.StoreCluster response) { + res.insert(arg_request, arg_enterpriseId, arg_pageId).then(unittest.expectAsync1(((api.StoreCluster response) { checkStoreCluster(response); }))); }); @@ -5973,7 +5973,7 @@ api.StorelayoutclustersResourceApi res = new api.AndroidenterpriseApi(mock).storelayoutclusters; var arg_enterpriseId = "foo"; var arg_pageId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6023,7 +6023,7 @@ var resp = convert.JSON.encode(buildStoreLayoutClustersListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_enterpriseId, arg_pageId).then(unittest.expectAsync(((api.StoreLayoutClustersListResponse response) { + res.list(arg_enterpriseId, arg_pageId).then(unittest.expectAsync1(((api.StoreLayoutClustersListResponse response) { checkStoreLayoutClustersListResponse(response); }))); }); @@ -6036,7 +6036,7 @@ var arg_enterpriseId = "foo"; var arg_pageId = "foo"; var arg_clusterId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.StoreCluster.fromJson(json); checkStoreCluster(obj); @@ -6092,7 +6092,7 @@ var resp = convert.JSON.encode(buildStoreCluster()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_enterpriseId, arg_pageId, arg_clusterId).then(unittest.expectAsync(((api.StoreCluster response) { + res.patch(arg_request, arg_enterpriseId, arg_pageId, arg_clusterId).then(unittest.expectAsync1(((api.StoreCluster response) { checkStoreCluster(response); }))); }); @@ -6105,7 +6105,7 @@ var arg_enterpriseId = "foo"; var arg_pageId = "foo"; var arg_clusterId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.StoreCluster.fromJson(json); checkStoreCluster(obj); @@ -6161,7 +6161,7 @@ var resp = convert.JSON.encode(buildStoreCluster()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_enterpriseId, arg_pageId, arg_clusterId).then(unittest.expectAsync(((api.StoreCluster response) { + res.update(arg_request, arg_enterpriseId, arg_pageId, arg_clusterId).then(unittest.expectAsync1(((api.StoreCluster response) { checkStoreCluster(response); }))); }); @@ -6176,7 +6176,7 @@ api.StorelayoutpagesResourceApi res = new api.AndroidenterpriseApi(mock).storelayoutpages; var arg_enterpriseId = "foo"; var arg_pageId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6222,7 +6222,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_enterpriseId, arg_pageId).then(unittest.expectAsync((_) {})); + res.delete(arg_enterpriseId, arg_pageId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -6231,7 +6231,7 @@ api.StorelayoutpagesResourceApi res = new api.AndroidenterpriseApi(mock).storelayoutpages; var arg_enterpriseId = "foo"; var arg_pageId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6277,7 +6277,7 @@ var resp = convert.JSON.encode(buildStorePage()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_enterpriseId, arg_pageId).then(unittest.expectAsync(((api.StorePage response) { + res.get(arg_enterpriseId, arg_pageId).then(unittest.expectAsync1(((api.StorePage response) { checkStorePage(response); }))); }); @@ -6288,7 +6288,7 @@ api.StorelayoutpagesResourceApi res = new api.AndroidenterpriseApi(mock).storelayoutpages; var arg_request = buildStorePage(); var arg_enterpriseId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.StorePage.fromJson(json); checkStorePage(obj); @@ -6334,7 +6334,7 @@ var resp = convert.JSON.encode(buildStorePage()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_enterpriseId).then(unittest.expectAsync(((api.StorePage response) { + res.insert(arg_request, arg_enterpriseId).then(unittest.expectAsync1(((api.StorePage response) { checkStorePage(response); }))); }); @@ -6344,7 +6344,7 @@ var mock = new HttpServerMock(); api.StorelayoutpagesResourceApi res = new api.AndroidenterpriseApi(mock).storelayoutpages; var arg_enterpriseId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6387,7 +6387,7 @@ var resp = convert.JSON.encode(buildStoreLayoutPagesListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_enterpriseId).then(unittest.expectAsync(((api.StoreLayoutPagesListResponse response) { + res.list(arg_enterpriseId).then(unittest.expectAsync1(((api.StoreLayoutPagesListResponse response) { checkStoreLayoutPagesListResponse(response); }))); }); @@ -6399,7 +6399,7 @@ var arg_request = buildStorePage(); var arg_enterpriseId = "foo"; var arg_pageId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.StorePage.fromJson(json); checkStorePage(obj); @@ -6448,7 +6448,7 @@ var resp = convert.JSON.encode(buildStorePage()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_enterpriseId, arg_pageId).then(unittest.expectAsync(((api.StorePage response) { + res.patch(arg_request, arg_enterpriseId, arg_pageId).then(unittest.expectAsync1(((api.StorePage response) { checkStorePage(response); }))); }); @@ -6460,7 +6460,7 @@ var arg_request = buildStorePage(); var arg_enterpriseId = "foo"; var arg_pageId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.StorePage.fromJson(json); checkStorePage(obj); @@ -6509,7 +6509,7 @@ var resp = convert.JSON.encode(buildStorePage()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_enterpriseId, arg_pageId).then(unittest.expectAsync(((api.StorePage response) { + res.update(arg_request, arg_enterpriseId, arg_pageId).then(unittest.expectAsync1(((api.StorePage response) { checkStorePage(response); }))); }); @@ -6524,7 +6524,7 @@ api.UsersResourceApi res = new api.AndroidenterpriseApi(mock).users; var arg_enterpriseId = "foo"; var arg_userId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6570,7 +6570,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_enterpriseId, arg_userId).then(unittest.expectAsync((_) {})); + res.delete(arg_enterpriseId, arg_userId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--generateAuthenticationToken", () { @@ -6579,7 +6579,7 @@ api.UsersResourceApi res = new api.AndroidenterpriseApi(mock).users; var arg_enterpriseId = "foo"; var arg_userId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6629,7 +6629,7 @@ var resp = convert.JSON.encode(buildAuthenticationToken()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.generateAuthenticationToken(arg_enterpriseId, arg_userId).then(unittest.expectAsync(((api.AuthenticationToken response) { + res.generateAuthenticationToken(arg_enterpriseId, arg_userId).then(unittest.expectAsync1(((api.AuthenticationToken response) { checkAuthenticationToken(response); }))); }); @@ -6640,7 +6640,7 @@ api.UsersResourceApi res = new api.AndroidenterpriseApi(mock).users; var arg_enterpriseId = "foo"; var arg_userId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6690,7 +6690,7 @@ var resp = convert.JSON.encode(buildUserToken()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.generateToken(arg_enterpriseId, arg_userId).then(unittest.expectAsync(((api.UserToken response) { + res.generateToken(arg_enterpriseId, arg_userId).then(unittest.expectAsync1(((api.UserToken response) { checkUserToken(response); }))); }); @@ -6701,7 +6701,7 @@ api.UsersResourceApi res = new api.AndroidenterpriseApi(mock).users; var arg_enterpriseId = "foo"; var arg_userId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6747,7 +6747,7 @@ var resp = convert.JSON.encode(buildUser()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_enterpriseId, arg_userId).then(unittest.expectAsync(((api.User response) { + res.get(arg_enterpriseId, arg_userId).then(unittest.expectAsync1(((api.User response) { checkUser(response); }))); }); @@ -6758,7 +6758,7 @@ api.UsersResourceApi res = new api.AndroidenterpriseApi(mock).users; var arg_enterpriseId = "foo"; var arg_userId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6808,7 +6808,7 @@ var resp = convert.JSON.encode(buildProductSet()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getAvailableProductSet(arg_enterpriseId, arg_userId).then(unittest.expectAsync(((api.ProductSet response) { + res.getAvailableProductSet(arg_enterpriseId, arg_userId).then(unittest.expectAsync1(((api.ProductSet response) { checkProductSet(response); }))); }); @@ -6819,7 +6819,7 @@ api.UsersResourceApi res = new api.AndroidenterpriseApi(mock).users; var arg_request = buildUser(); var arg_enterpriseId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.User.fromJson(json); checkUser(obj); @@ -6865,7 +6865,7 @@ var resp = convert.JSON.encode(buildUser()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_enterpriseId).then(unittest.expectAsync(((api.User response) { + res.insert(arg_request, arg_enterpriseId).then(unittest.expectAsync1(((api.User response) { checkUser(response); }))); }); @@ -6876,7 +6876,7 @@ api.UsersResourceApi res = new api.AndroidenterpriseApi(mock).users; var arg_enterpriseId = "foo"; var arg_email = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6920,7 +6920,7 @@ var resp = convert.JSON.encode(buildUsersListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_enterpriseId, arg_email).then(unittest.expectAsync(((api.UsersListResponse response) { + res.list(arg_enterpriseId, arg_email).then(unittest.expectAsync1(((api.UsersListResponse response) { checkUsersListResponse(response); }))); }); @@ -6932,7 +6932,7 @@ var arg_request = buildUser(); var arg_enterpriseId = "foo"; var arg_userId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.User.fromJson(json); checkUser(obj); @@ -6981,7 +6981,7 @@ var resp = convert.JSON.encode(buildUser()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_enterpriseId, arg_userId).then(unittest.expectAsync(((api.User response) { + res.patch(arg_request, arg_enterpriseId, arg_userId).then(unittest.expectAsync1(((api.User response) { checkUser(response); }))); }); @@ -6992,7 +6992,7 @@ api.UsersResourceApi res = new api.AndroidenterpriseApi(mock).users; var arg_enterpriseId = "foo"; var arg_userId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7042,7 +7042,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.revokeToken(arg_enterpriseId, arg_userId).then(unittest.expectAsync((_) {})); + res.revokeToken(arg_enterpriseId, arg_userId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--setAvailableProductSet", () { @@ -7052,7 +7052,7 @@ var arg_request = buildProductSet(); var arg_enterpriseId = "foo"; var arg_userId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ProductSet.fromJson(json); checkProductSet(obj); @@ -7105,7 +7105,7 @@ var resp = convert.JSON.encode(buildProductSet()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setAvailableProductSet(arg_request, arg_enterpriseId, arg_userId).then(unittest.expectAsync(((api.ProductSet response) { + res.setAvailableProductSet(arg_request, arg_enterpriseId, arg_userId).then(unittest.expectAsync1(((api.ProductSet response) { checkProductSet(response); }))); }); @@ -7117,7 +7117,7 @@ var arg_request = buildUser(); var arg_enterpriseId = "foo"; var arg_userId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.User.fromJson(json); checkUser(obj); @@ -7166,7 +7166,7 @@ var resp = convert.JSON.encode(buildUser()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_enterpriseId, arg_userId).then(unittest.expectAsync(((api.User response) { + res.update(arg_request, arg_enterpriseId, arg_userId).then(unittest.expectAsync1(((api.User response) { checkUser(response); }))); });
diff --git a/generated/googleapis/test/androidpublisher/v2_test.dart b/generated/googleapis/test/androidpublisher/v2_test.dart index 2d97746..fa4c91a 100644 --- a/generated/googleapis/test/androidpublisher/v2_test.dart +++ b/generated/googleapis/test/androidpublisher/v2_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/androidpublisher/v2.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -112,14 +112,14 @@ buildCounterApkListing--; } -buildUnnamed2899() { +buildUnnamed2369() { var o = new core.List<api.ApkListing>(); o.add(buildApkListing()); o.add(buildApkListing()); return o; } -checkUnnamed2899(core.List<api.ApkListing> o) { +checkUnnamed2369(core.List<api.ApkListing> o) { unittest.expect(o, unittest.hasLength(2)); checkApkListing(o[0]); checkApkListing(o[1]); @@ -131,7 +131,7 @@ buildCounterApkListingsListResponse++; if (buildCounterApkListingsListResponse < 3) { o.kind = "foo"; - o.listings = buildUnnamed2899(); + o.listings = buildUnnamed2369(); } buildCounterApkListingsListResponse--; return o; @@ -141,7 +141,7 @@ buildCounterApkListingsListResponse++; if (buildCounterApkListingsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2899(o.listings); + checkUnnamed2369(o.listings); } buildCounterApkListingsListResponse--; } @@ -184,14 +184,14 @@ buildCounterApksAddExternallyHostedResponse--; } -buildUnnamed2900() { +buildUnnamed2370() { var o = new core.List<api.Apk>(); o.add(buildApk()); o.add(buildApk()); return o; } -checkUnnamed2900(core.List<api.Apk> o) { +checkUnnamed2370(core.List<api.Apk> o) { unittest.expect(o, unittest.hasLength(2)); checkApk(o[0]); checkApk(o[1]); @@ -202,7 +202,7 @@ var o = new api.ApksListResponse(); buildCounterApksListResponse++; if (buildCounterApksListResponse < 3) { - o.apks = buildUnnamed2900(); + o.apks = buildUnnamed2370(); o.kind = "foo"; } buildCounterApksListResponse--; @@ -212,7 +212,7 @@ checkApksListResponse(api.ApksListResponse o) { buildCounterApksListResponse++; if (buildCounterApksListResponse < 3) { - checkUnnamed2900(o.apks); + checkUnnamed2370(o.apks); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterApksListResponse--; @@ -408,14 +408,14 @@ buildCounterEntitlement--; } -buildUnnamed2901() { +buildUnnamed2371() { var o = new core.List<api.Entitlement>(); o.add(buildEntitlement()); o.add(buildEntitlement()); return o; } -checkUnnamed2901(core.List<api.Entitlement> o) { +checkUnnamed2371(core.List<api.Entitlement> o) { unittest.expect(o, unittest.hasLength(2)); checkEntitlement(o[0]); checkEntitlement(o[1]); @@ -427,7 +427,7 @@ buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { o.pageInfo = buildPageInfo(); - o.resources = buildUnnamed2901(); + o.resources = buildUnnamed2371(); o.tokenPagination = buildTokenPagination(); } buildCounterEntitlementsListResponse--; @@ -438,7 +438,7 @@ buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { checkPageInfo(o.pageInfo); - checkUnnamed2901(o.resources); + checkUnnamed2371(o.resources); checkTokenPagination(o.tokenPagination); } buildCounterEntitlementsListResponse--; @@ -484,53 +484,53 @@ buildCounterExpansionFilesUploadResponse--; } -buildUnnamed2902() { +buildUnnamed2372() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2902(core.List<core.String> o) { +checkUnnamed2372(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2903() { +buildUnnamed2373() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2903(core.List<core.String> o) { +checkUnnamed2373(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2904() { +buildUnnamed2374() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2904(core.List<core.String> o) { +checkUnnamed2374(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2905() { +buildUnnamed2375() { var o = new core.List<api.ExternallyHostedApkUsesPermission>(); o.add(buildExternallyHostedApkUsesPermission()); o.add(buildExternallyHostedApkUsesPermission()); return o; } -checkUnnamed2905(core.List<api.ExternallyHostedApkUsesPermission> o) { +checkUnnamed2375(core.List<api.ExternallyHostedApkUsesPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkExternallyHostedApkUsesPermission(o[0]); checkExternallyHostedApkUsesPermission(o[1]); @@ -542,7 +542,7 @@ buildCounterExternallyHostedApk++; if (buildCounterExternallyHostedApk < 3) { o.applicationLabel = "foo"; - o.certificateBase64s = buildUnnamed2902(); + o.certificateBase64s = buildUnnamed2372(); o.externallyHostedUrl = "foo"; o.fileSha1Base64 = "foo"; o.fileSha256Base64 = "foo"; @@ -550,10 +550,10 @@ o.iconBase64 = "foo"; o.maximumSdk = 42; o.minimumSdk = 42; - o.nativeCodes = buildUnnamed2903(); + o.nativeCodes = buildUnnamed2373(); o.packageName = "foo"; - o.usesFeatures = buildUnnamed2904(); - o.usesPermissions = buildUnnamed2905(); + o.usesFeatures = buildUnnamed2374(); + o.usesPermissions = buildUnnamed2375(); o.versionCode = 42; o.versionName = "foo"; } @@ -565,7 +565,7 @@ buildCounterExternallyHostedApk++; if (buildCounterExternallyHostedApk < 3) { unittest.expect(o.applicationLabel, unittest.equals('foo')); - checkUnnamed2902(o.certificateBase64s); + checkUnnamed2372(o.certificateBase64s); unittest.expect(o.externallyHostedUrl, unittest.equals('foo')); unittest.expect(o.fileSha1Base64, unittest.equals('foo')); unittest.expect(o.fileSha256Base64, unittest.equals('foo')); @@ -573,10 +573,10 @@ unittest.expect(o.iconBase64, unittest.equals('foo')); unittest.expect(o.maximumSdk, unittest.equals(42)); unittest.expect(o.minimumSdk, unittest.equals(42)); - checkUnnamed2903(o.nativeCodes); + checkUnnamed2373(o.nativeCodes); unittest.expect(o.packageName, unittest.equals('foo')); - checkUnnamed2904(o.usesFeatures); - checkUnnamed2905(o.usesPermissions); + checkUnnamed2374(o.usesFeatures); + checkUnnamed2375(o.usesPermissions); unittest.expect(o.versionCode, unittest.equals(42)); unittest.expect(o.versionName, unittest.equals('foo')); } @@ -627,14 +627,14 @@ buildCounterImage--; } -buildUnnamed2906() { +buildUnnamed2376() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed2906(core.List<api.Image> o) { +checkUnnamed2376(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); @@ -645,7 +645,7 @@ var o = new api.ImagesDeleteAllResponse(); buildCounterImagesDeleteAllResponse++; if (buildCounterImagesDeleteAllResponse < 3) { - o.deleted = buildUnnamed2906(); + o.deleted = buildUnnamed2376(); } buildCounterImagesDeleteAllResponse--; return o; @@ -654,19 +654,19 @@ checkImagesDeleteAllResponse(api.ImagesDeleteAllResponse o) { buildCounterImagesDeleteAllResponse++; if (buildCounterImagesDeleteAllResponse < 3) { - checkUnnamed2906(o.deleted); + checkUnnamed2376(o.deleted); } buildCounterImagesDeleteAllResponse--; } -buildUnnamed2907() { +buildUnnamed2377() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed2907(core.List<api.Image> o) { +checkUnnamed2377(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); @@ -677,7 +677,7 @@ var o = new api.ImagesListResponse(); buildCounterImagesListResponse++; if (buildCounterImagesListResponse < 3) { - o.images = buildUnnamed2907(); + o.images = buildUnnamed2377(); } buildCounterImagesListResponse--; return o; @@ -686,7 +686,7 @@ checkImagesListResponse(api.ImagesListResponse o) { buildCounterImagesListResponse++; if (buildCounterImagesListResponse < 3) { - checkUnnamed2907(o.images); + checkUnnamed2377(o.images); } buildCounterImagesListResponse--; } @@ -710,27 +710,27 @@ buildCounterImagesUploadResponse--; } -buildUnnamed2908() { +buildUnnamed2378() { var o = new core.Map<core.String, api.InAppProductListing>(); o["x"] = buildInAppProductListing(); o["y"] = buildInAppProductListing(); return o; } -checkUnnamed2908(core.Map<core.String, api.InAppProductListing> o) { +checkUnnamed2378(core.Map<core.String, api.InAppProductListing> o) { unittest.expect(o, unittest.hasLength(2)); checkInAppProductListing(o["x"]); checkInAppProductListing(o["y"]); } -buildUnnamed2909() { +buildUnnamed2379() { var o = new core.Map<core.String, api.Price>(); o["x"] = buildPrice(); o["y"] = buildPrice(); return o; } -checkUnnamed2909(core.Map<core.String, api.Price> o) { +checkUnnamed2379(core.Map<core.String, api.Price> o) { unittest.expect(o, unittest.hasLength(2)); checkPrice(o["x"]); checkPrice(o["y"]); @@ -743,9 +743,9 @@ if (buildCounterInAppProduct < 3) { o.defaultLanguage = "foo"; o.defaultPrice = buildPrice(); - o.listings = buildUnnamed2908(); + o.listings = buildUnnamed2378(); o.packageName = "foo"; - o.prices = buildUnnamed2909(); + o.prices = buildUnnamed2379(); o.purchaseType = "foo"; o.season = buildSeason(); o.sku = "foo"; @@ -762,9 +762,9 @@ if (buildCounterInAppProduct < 3) { unittest.expect(o.defaultLanguage, unittest.equals('foo')); checkPrice(o.defaultPrice); - checkUnnamed2908(o.listings); + checkUnnamed2378(o.listings); unittest.expect(o.packageName, unittest.equals('foo')); - checkUnnamed2909(o.prices); + checkUnnamed2379(o.prices); unittest.expect(o.purchaseType, unittest.equals('foo')); checkSeason(o.season); unittest.expect(o.sku, unittest.equals('foo')); @@ -796,14 +796,14 @@ buildCounterInAppProductListing--; } -buildUnnamed2910() { +buildUnnamed2380() { var o = new core.List<api.InappproductsBatchRequestEntry>(); o.add(buildInappproductsBatchRequestEntry()); o.add(buildInappproductsBatchRequestEntry()); return o; } -checkUnnamed2910(core.List<api.InappproductsBatchRequestEntry> o) { +checkUnnamed2380(core.List<api.InappproductsBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkInappproductsBatchRequestEntry(o[0]); checkInappproductsBatchRequestEntry(o[1]); @@ -814,7 +814,7 @@ var o = new api.InappproductsBatchRequest(); buildCounterInappproductsBatchRequest++; if (buildCounterInappproductsBatchRequest < 3) { - o.entrys = buildUnnamed2910(); + o.entrys = buildUnnamed2380(); } buildCounterInappproductsBatchRequest--; return o; @@ -823,7 +823,7 @@ checkInappproductsBatchRequest(api.InappproductsBatchRequest o) { buildCounterInappproductsBatchRequest++; if (buildCounterInappproductsBatchRequest < 3) { - checkUnnamed2910(o.entrys); + checkUnnamed2380(o.entrys); } buildCounterInappproductsBatchRequest--; } @@ -853,14 +853,14 @@ buildCounterInappproductsBatchRequestEntry--; } -buildUnnamed2911() { +buildUnnamed2381() { var o = new core.List<api.InappproductsBatchResponseEntry>(); o.add(buildInappproductsBatchResponseEntry()); o.add(buildInappproductsBatchResponseEntry()); return o; } -checkUnnamed2911(core.List<api.InappproductsBatchResponseEntry> o) { +checkUnnamed2381(core.List<api.InappproductsBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkInappproductsBatchResponseEntry(o[0]); checkInappproductsBatchResponseEntry(o[1]); @@ -871,7 +871,7 @@ var o = new api.InappproductsBatchResponse(); buildCounterInappproductsBatchResponse++; if (buildCounterInappproductsBatchResponse < 3) { - o.entrys = buildUnnamed2911(); + o.entrys = buildUnnamed2381(); o.kind = "foo"; } buildCounterInappproductsBatchResponse--; @@ -881,7 +881,7 @@ checkInappproductsBatchResponse(api.InappproductsBatchResponse o) { buildCounterInappproductsBatchResponse++; if (buildCounterInappproductsBatchResponse < 3) { - checkUnnamed2911(o.entrys); + checkUnnamed2381(o.entrys); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterInappproductsBatchResponse--; @@ -948,14 +948,14 @@ buildCounterInappproductsInsertResponse--; } -buildUnnamed2912() { +buildUnnamed2382() { var o = new core.List<api.InAppProduct>(); o.add(buildInAppProduct()); o.add(buildInAppProduct()); return o; } -checkUnnamed2912(core.List<api.InAppProduct> o) { +checkUnnamed2382(core.List<api.InAppProduct> o) { unittest.expect(o, unittest.hasLength(2)); checkInAppProduct(o[0]); checkInAppProduct(o[1]); @@ -966,7 +966,7 @@ var o = new api.InappproductsListResponse(); buildCounterInappproductsListResponse++; if (buildCounterInappproductsListResponse < 3) { - o.inappproduct = buildUnnamed2912(); + o.inappproduct = buildUnnamed2382(); o.kind = "foo"; o.pageInfo = buildPageInfo(); o.tokenPagination = buildTokenPagination(); @@ -978,7 +978,7 @@ checkInappproductsListResponse(api.InappproductsListResponse o) { buildCounterInappproductsListResponse++; if (buildCounterInappproductsListResponse < 3) { - checkUnnamed2912(o.inappproduct); + checkUnnamed2382(o.inappproduct); unittest.expect(o.kind, unittest.equals('foo')); checkPageInfo(o.pageInfo); checkTokenPagination(o.tokenPagination); @@ -1051,14 +1051,14 @@ buildCounterListing--; } -buildUnnamed2913() { +buildUnnamed2383() { var o = new core.List<api.Listing>(); o.add(buildListing()); o.add(buildListing()); return o; } -checkUnnamed2913(core.List<api.Listing> o) { +checkUnnamed2383(core.List<api.Listing> o) { unittest.expect(o, unittest.hasLength(2)); checkListing(o[0]); checkListing(o[1]); @@ -1070,7 +1070,7 @@ buildCounterListingsListResponse++; if (buildCounterListingsListResponse < 3) { o.kind = "foo"; - o.listings = buildUnnamed2913(); + o.listings = buildUnnamed2383(); } buildCounterListingsListResponse--; return o; @@ -1080,7 +1080,7 @@ buildCounterListingsListResponse++; if (buildCounterListingsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2913(o.listings); + checkUnnamed2383(o.listings); } buildCounterListingsListResponse--; } @@ -1198,14 +1198,14 @@ buildCounterProrate--; } -buildUnnamed2914() { +buildUnnamed2384() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed2914(core.List<api.Comment> o) { +checkUnnamed2384(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1217,7 +1217,7 @@ buildCounterReview++; if (buildCounterReview < 3) { o.authorName = "foo"; - o.comments = buildUnnamed2914(); + o.comments = buildUnnamed2384(); o.reviewId = "foo"; } buildCounterReview--; @@ -1228,7 +1228,7 @@ buildCounterReview++; if (buildCounterReview < 3) { unittest.expect(o.authorName, unittest.equals('foo')); - checkUnnamed2914(o.comments); + checkUnnamed2384(o.comments); unittest.expect(o.reviewId, unittest.equals('foo')); } buildCounterReview--; @@ -1255,14 +1255,14 @@ buildCounterReviewReplyResult--; } -buildUnnamed2915() { +buildUnnamed2385() { var o = new core.List<api.Review>(); o.add(buildReview()); o.add(buildReview()); return o; } -checkUnnamed2915(core.List<api.Review> o) { +checkUnnamed2385(core.List<api.Review> o) { unittest.expect(o, unittest.hasLength(2)); checkReview(o[0]); checkReview(o[1]); @@ -1274,7 +1274,7 @@ buildCounterReviewsListResponse++; if (buildCounterReviewsListResponse < 3) { o.pageInfo = buildPageInfo(); - o.reviews = buildUnnamed2915(); + o.reviews = buildUnnamed2385(); o.tokenPagination = buildTokenPagination(); } buildCounterReviewsListResponse--; @@ -1285,7 +1285,7 @@ buildCounterReviewsListResponse++; if (buildCounterReviewsListResponse < 3) { checkPageInfo(o.pageInfo); - checkUnnamed2915(o.reviews); + checkUnnamed2385(o.reviews); checkTokenPagination(o.tokenPagination); } buildCounterReviewsListResponse--; @@ -1329,14 +1329,14 @@ buildCounterReviewsReplyResponse--; } -buildUnnamed2916() { +buildUnnamed2386() { var o = new core.List<api.Prorate>(); o.add(buildProrate()); o.add(buildProrate()); return o; } -checkUnnamed2916(core.List<api.Prorate> o) { +checkUnnamed2386(core.List<api.Prorate> o) { unittest.expect(o, unittest.hasLength(2)); checkProrate(o[0]); checkProrate(o[1]); @@ -1348,7 +1348,7 @@ buildCounterSeason++; if (buildCounterSeason < 3) { o.end = buildMonthDay(); - o.prorations = buildUnnamed2916(); + o.prorations = buildUnnamed2386(); o.start = buildMonthDay(); } buildCounterSeason--; @@ -1359,7 +1359,7 @@ buildCounterSeason++; if (buildCounterSeason < 3) { checkMonthDay(o.end); - checkUnnamed2916(o.prorations); + checkUnnamed2386(o.prorations); checkMonthDay(o.start); } buildCounterSeason--; @@ -1463,27 +1463,27 @@ buildCounterSubscriptionPurchasesDeferResponse--; } -buildUnnamed2917() { +buildUnnamed2387() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2917(core.List<core.String> o) { +checkUnnamed2387(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2918() { +buildUnnamed2388() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2918(core.List<core.String> o) { +checkUnnamed2388(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1494,8 +1494,8 @@ var o = new api.Testers(); buildCounterTesters++; if (buildCounterTesters < 3) { - o.googleGroups = buildUnnamed2917(); - o.googlePlusCommunities = buildUnnamed2918(); + o.googleGroups = buildUnnamed2387(); + o.googlePlusCommunities = buildUnnamed2388(); } buildCounterTesters--; return o; @@ -1504,8 +1504,8 @@ checkTesters(api.Testers o) { buildCounterTesters++; if (buildCounterTesters < 3) { - checkUnnamed2917(o.googleGroups); - checkUnnamed2918(o.googlePlusCommunities); + checkUnnamed2387(o.googleGroups); + checkUnnamed2388(o.googlePlusCommunities); } buildCounterTesters--; } @@ -1552,14 +1552,14 @@ buildCounterTokenPagination--; } -buildUnnamed2919() { +buildUnnamed2389() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2919(core.List<core.int> o) { +checkUnnamed2389(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -1572,7 +1572,7 @@ if (buildCounterTrack < 3) { o.track = "foo"; o.userFraction = 42.0; - o.versionCodes = buildUnnamed2919(); + o.versionCodes = buildUnnamed2389(); } buildCounterTrack--; return o; @@ -1583,19 +1583,19 @@ if (buildCounterTrack < 3) { unittest.expect(o.track, unittest.equals('foo')); unittest.expect(o.userFraction, unittest.equals(42.0)); - checkUnnamed2919(o.versionCodes); + checkUnnamed2389(o.versionCodes); } buildCounterTrack--; } -buildUnnamed2920() { +buildUnnamed2390() { var o = new core.List<api.Track>(); o.add(buildTrack()); o.add(buildTrack()); return o; } -checkUnnamed2920(core.List<api.Track> o) { +checkUnnamed2390(core.List<api.Track> o) { unittest.expect(o, unittest.hasLength(2)); checkTrack(o[0]); checkTrack(o[1]); @@ -1607,7 +1607,7 @@ buildCounterTracksListResponse++; if (buildCounterTracksListResponse < 3) { o.kind = "foo"; - o.tracks = buildUnnamed2920(); + o.tracks = buildUnnamed2390(); } buildCounterTracksListResponse--; return o; @@ -1617,7 +1617,7 @@ buildCounterTracksListResponse++; if (buildCounterTracksListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2920(o.tracks); + checkUnnamed2390(o.tracks); } buildCounterTracksListResponse--; } @@ -1688,14 +1688,14 @@ buildCounterVoidedPurchase--; } -buildUnnamed2921() { +buildUnnamed2391() { var o = new core.List<api.VoidedPurchase>(); o.add(buildVoidedPurchase()); o.add(buildVoidedPurchase()); return o; } -checkUnnamed2921(core.List<api.VoidedPurchase> o) { +checkUnnamed2391(core.List<api.VoidedPurchase> o) { unittest.expect(o, unittest.hasLength(2)); checkVoidedPurchase(o[0]); checkVoidedPurchase(o[1]); @@ -1708,7 +1708,7 @@ if (buildCounterVoidedPurchasesListResponse < 3) { o.pageInfo = buildPageInfo(); o.tokenPagination = buildTokenPagination(); - o.voidedPurchases = buildUnnamed2921(); + o.voidedPurchases = buildUnnamed2391(); } buildCounterVoidedPurchasesListResponse--; return o; @@ -1719,7 +1719,7 @@ if (buildCounterVoidedPurchasesListResponse < 3) { checkPageInfo(o.pageInfo); checkTokenPagination(o.tokenPagination); - checkUnnamed2921(o.voidedPurchases); + checkUnnamed2391(o.voidedPurchases); } buildCounterVoidedPurchasesListResponse--; } @@ -2273,7 +2273,7 @@ api.EditsResourceApi res = new api.AndroidpublisherApi(mock).edits; var arg_packageName = "foo"; var arg_editId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2305,7 +2305,7 @@ var resp = convert.JSON.encode(buildAppEdit()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.commit(arg_packageName, arg_editId).then(unittest.expectAsync(((api.AppEdit response) { + res.commit(arg_packageName, arg_editId).then(unittest.expectAsync1(((api.AppEdit response) { checkAppEdit(response); }))); }); @@ -2316,7 +2316,7 @@ api.EditsResourceApi res = new api.AndroidpublisherApi(mock).edits; var arg_packageName = "foo"; var arg_editId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2348,7 +2348,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_packageName, arg_editId).then(unittest.expectAsync((_) {})); + res.delete(arg_packageName, arg_editId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -2357,7 +2357,7 @@ api.EditsResourceApi res = new api.AndroidpublisherApi(mock).edits; var arg_packageName = "foo"; var arg_editId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2389,7 +2389,7 @@ var resp = convert.JSON.encode(buildAppEdit()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_packageName, arg_editId).then(unittest.expectAsync(((api.AppEdit response) { + res.get(arg_packageName, arg_editId).then(unittest.expectAsync1(((api.AppEdit response) { checkAppEdit(response); }))); }); @@ -2400,7 +2400,7 @@ api.EditsResourceApi res = new api.AndroidpublisherApi(mock).edits; var arg_request = buildAppEdit(); var arg_packageName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AppEdit.fromJson(json); checkAppEdit(obj); @@ -2435,7 +2435,7 @@ var resp = convert.JSON.encode(buildAppEdit()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_packageName).then(unittest.expectAsync(((api.AppEdit response) { + res.insert(arg_request, arg_packageName).then(unittest.expectAsync1(((api.AppEdit response) { checkAppEdit(response); }))); }); @@ -2446,7 +2446,7 @@ api.EditsResourceApi res = new api.AndroidpublisherApi(mock).edits; var arg_packageName = "foo"; var arg_editId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2478,7 +2478,7 @@ var resp = convert.JSON.encode(buildAppEdit()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.validate(arg_packageName, arg_editId).then(unittest.expectAsync(((api.AppEdit response) { + res.validate(arg_packageName, arg_editId).then(unittest.expectAsync1(((api.AppEdit response) { checkAppEdit(response); }))); }); @@ -2495,7 +2495,7 @@ var arg_editId = "foo"; var arg_apkVersionCode = 42; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2527,7 +2527,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_packageName, arg_editId, arg_apkVersionCode, arg_language).then(unittest.expectAsync((_) {})); + res.delete(arg_packageName, arg_editId, arg_apkVersionCode, arg_language).then(unittest.expectAsync1((_) {})); }); unittest.test("method--deleteall", () { @@ -2537,7 +2537,7 @@ var arg_packageName = "foo"; var arg_editId = "foo"; var arg_apkVersionCode = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2569,7 +2569,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.deleteall(arg_packageName, arg_editId, arg_apkVersionCode).then(unittest.expectAsync((_) {})); + res.deleteall(arg_packageName, arg_editId, arg_apkVersionCode).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -2580,7 +2580,7 @@ var arg_editId = "foo"; var arg_apkVersionCode = 42; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2612,7 +2612,7 @@ var resp = convert.JSON.encode(buildApkListing()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_packageName, arg_editId, arg_apkVersionCode, arg_language).then(unittest.expectAsync(((api.ApkListing response) { + res.get(arg_packageName, arg_editId, arg_apkVersionCode, arg_language).then(unittest.expectAsync1(((api.ApkListing response) { checkApkListing(response); }))); }); @@ -2624,7 +2624,7 @@ var arg_packageName = "foo"; var arg_editId = "foo"; var arg_apkVersionCode = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2656,7 +2656,7 @@ var resp = convert.JSON.encode(buildApkListingsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_packageName, arg_editId, arg_apkVersionCode).then(unittest.expectAsync(((api.ApkListingsListResponse response) { + res.list(arg_packageName, arg_editId, arg_apkVersionCode).then(unittest.expectAsync1(((api.ApkListingsListResponse response) { checkApkListingsListResponse(response); }))); }); @@ -2670,7 +2670,7 @@ var arg_editId = "foo"; var arg_apkVersionCode = 42; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ApkListing.fromJson(json); checkApkListing(obj); @@ -2705,7 +2705,7 @@ var resp = convert.JSON.encode(buildApkListing()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_packageName, arg_editId, arg_apkVersionCode, arg_language).then(unittest.expectAsync(((api.ApkListing response) { + res.patch(arg_request, arg_packageName, arg_editId, arg_apkVersionCode, arg_language).then(unittest.expectAsync1(((api.ApkListing response) { checkApkListing(response); }))); }); @@ -2719,7 +2719,7 @@ var arg_editId = "foo"; var arg_apkVersionCode = 42; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ApkListing.fromJson(json); checkApkListing(obj); @@ -2754,7 +2754,7 @@ var resp = convert.JSON.encode(buildApkListing()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_packageName, arg_editId, arg_apkVersionCode, arg_language).then(unittest.expectAsync(((api.ApkListing response) { + res.update(arg_request, arg_packageName, arg_editId, arg_apkVersionCode, arg_language).then(unittest.expectAsync1(((api.ApkListing response) { checkApkListing(response); }))); }); @@ -2770,7 +2770,7 @@ var arg_request = buildApksAddExternallyHostedRequest(); var arg_packageName = "foo"; var arg_editId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ApksAddExternallyHostedRequest.fromJson(json); checkApksAddExternallyHostedRequest(obj); @@ -2805,7 +2805,7 @@ var resp = convert.JSON.encode(buildApksAddExternallyHostedResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.addexternallyhosted(arg_request, arg_packageName, arg_editId).then(unittest.expectAsync(((api.ApksAddExternallyHostedResponse response) { + res.addexternallyhosted(arg_request, arg_packageName, arg_editId).then(unittest.expectAsync1(((api.ApksAddExternallyHostedResponse response) { checkApksAddExternallyHostedResponse(response); }))); }); @@ -2816,7 +2816,7 @@ api.EditsApksResourceApi res = new api.AndroidpublisherApi(mock).edits.apks; var arg_packageName = "foo"; var arg_editId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2848,7 +2848,7 @@ var resp = convert.JSON.encode(buildApksListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_packageName, arg_editId).then(unittest.expectAsync(((api.ApksListResponse response) { + res.list(arg_packageName, arg_editId).then(unittest.expectAsync1(((api.ApksListResponse response) { checkApksListResponse(response); }))); }); @@ -2861,7 +2861,7 @@ api.EditsApksResourceApi res = new api.AndroidpublisherApi(mock).edits.apks; var arg_packageName = "foo"; var arg_editId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2893,7 +2893,7 @@ var resp = convert.JSON.encode(buildApk()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.upload(arg_packageName, arg_editId).then(unittest.expectAsync(((api.Apk response) { + res.upload(arg_packageName, arg_editId).then(unittest.expectAsync1(((api.Apk response) { checkApk(response); }))); }); @@ -2912,7 +2912,7 @@ var arg_editId = "foo"; var arg_apkVersionCode = 42; var arg_deobfuscationFileType = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2944,7 +2944,7 @@ var resp = convert.JSON.encode(buildDeobfuscationFilesUploadResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.upload(arg_packageName, arg_editId, arg_apkVersionCode, arg_deobfuscationFileType).then(unittest.expectAsync(((api.DeobfuscationFilesUploadResponse response) { + res.upload(arg_packageName, arg_editId, arg_apkVersionCode, arg_deobfuscationFileType).then(unittest.expectAsync1(((api.DeobfuscationFilesUploadResponse response) { checkDeobfuscationFilesUploadResponse(response); }))); }); @@ -2959,7 +2959,7 @@ api.EditsDetailsResourceApi res = new api.AndroidpublisherApi(mock).edits.details; var arg_packageName = "foo"; var arg_editId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2991,7 +2991,7 @@ var resp = convert.JSON.encode(buildAppDetails()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_packageName, arg_editId).then(unittest.expectAsync(((api.AppDetails response) { + res.get(arg_packageName, arg_editId).then(unittest.expectAsync1(((api.AppDetails response) { checkAppDetails(response); }))); }); @@ -3003,7 +3003,7 @@ var arg_request = buildAppDetails(); var arg_packageName = "foo"; var arg_editId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AppDetails.fromJson(json); checkAppDetails(obj); @@ -3038,7 +3038,7 @@ var resp = convert.JSON.encode(buildAppDetails()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_packageName, arg_editId).then(unittest.expectAsync(((api.AppDetails response) { + res.patch(arg_request, arg_packageName, arg_editId).then(unittest.expectAsync1(((api.AppDetails response) { checkAppDetails(response); }))); }); @@ -3050,7 +3050,7 @@ var arg_request = buildAppDetails(); var arg_packageName = "foo"; var arg_editId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AppDetails.fromJson(json); checkAppDetails(obj); @@ -3085,7 +3085,7 @@ var resp = convert.JSON.encode(buildAppDetails()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_packageName, arg_editId).then(unittest.expectAsync(((api.AppDetails response) { + res.update(arg_request, arg_packageName, arg_editId).then(unittest.expectAsync1(((api.AppDetails response) { checkAppDetails(response); }))); }); @@ -3102,7 +3102,7 @@ var arg_editId = "foo"; var arg_apkVersionCode = 42; var arg_expansionFileType = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3134,7 +3134,7 @@ var resp = convert.JSON.encode(buildExpansionFile()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_packageName, arg_editId, arg_apkVersionCode, arg_expansionFileType).then(unittest.expectAsync(((api.ExpansionFile response) { + res.get(arg_packageName, arg_editId, arg_apkVersionCode, arg_expansionFileType).then(unittest.expectAsync1(((api.ExpansionFile response) { checkExpansionFile(response); }))); }); @@ -3148,7 +3148,7 @@ var arg_editId = "foo"; var arg_apkVersionCode = 42; var arg_expansionFileType = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ExpansionFile.fromJson(json); checkExpansionFile(obj); @@ -3183,7 +3183,7 @@ var resp = convert.JSON.encode(buildExpansionFile()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_packageName, arg_editId, arg_apkVersionCode, arg_expansionFileType).then(unittest.expectAsync(((api.ExpansionFile response) { + res.patch(arg_request, arg_packageName, arg_editId, arg_apkVersionCode, arg_expansionFileType).then(unittest.expectAsync1(((api.ExpansionFile response) { checkExpansionFile(response); }))); }); @@ -3197,7 +3197,7 @@ var arg_editId = "foo"; var arg_apkVersionCode = 42; var arg_expansionFileType = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ExpansionFile.fromJson(json); checkExpansionFile(obj); @@ -3232,7 +3232,7 @@ var resp = convert.JSON.encode(buildExpansionFile()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_packageName, arg_editId, arg_apkVersionCode, arg_expansionFileType).then(unittest.expectAsync(((api.ExpansionFile response) { + res.update(arg_request, arg_packageName, arg_editId, arg_apkVersionCode, arg_expansionFileType).then(unittest.expectAsync1(((api.ExpansionFile response) { checkExpansionFile(response); }))); }); @@ -3247,7 +3247,7 @@ var arg_editId = "foo"; var arg_apkVersionCode = 42; var arg_expansionFileType = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3279,7 +3279,7 @@ var resp = convert.JSON.encode(buildExpansionFilesUploadResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.upload(arg_packageName, arg_editId, arg_apkVersionCode, arg_expansionFileType).then(unittest.expectAsync(((api.ExpansionFilesUploadResponse response) { + res.upload(arg_packageName, arg_editId, arg_apkVersionCode, arg_expansionFileType).then(unittest.expectAsync1(((api.ExpansionFilesUploadResponse response) { checkExpansionFilesUploadResponse(response); }))); }); @@ -3297,7 +3297,7 @@ var arg_language = "foo"; var arg_imageType = "foo"; var arg_imageId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3329,7 +3329,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_packageName, arg_editId, arg_language, arg_imageType, arg_imageId).then(unittest.expectAsync((_) {})); + res.delete(arg_packageName, arg_editId, arg_language, arg_imageType, arg_imageId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--deleteall", () { @@ -3340,7 +3340,7 @@ var arg_editId = "foo"; var arg_language = "foo"; var arg_imageType = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3372,7 +3372,7 @@ var resp = convert.JSON.encode(buildImagesDeleteAllResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.deleteall(arg_packageName, arg_editId, arg_language, arg_imageType).then(unittest.expectAsync(((api.ImagesDeleteAllResponse response) { + res.deleteall(arg_packageName, arg_editId, arg_language, arg_imageType).then(unittest.expectAsync1(((api.ImagesDeleteAllResponse response) { checkImagesDeleteAllResponse(response); }))); }); @@ -3385,7 +3385,7 @@ var arg_editId = "foo"; var arg_language = "foo"; var arg_imageType = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3417,7 +3417,7 @@ var resp = convert.JSON.encode(buildImagesListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_packageName, arg_editId, arg_language, arg_imageType).then(unittest.expectAsync(((api.ImagesListResponse response) { + res.list(arg_packageName, arg_editId, arg_language, arg_imageType).then(unittest.expectAsync1(((api.ImagesListResponse response) { checkImagesListResponse(response); }))); }); @@ -3432,7 +3432,7 @@ var arg_editId = "foo"; var arg_language = "foo"; var arg_imageType = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3464,7 +3464,7 @@ var resp = convert.JSON.encode(buildImagesUploadResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.upload(arg_packageName, arg_editId, arg_language, arg_imageType).then(unittest.expectAsync(((api.ImagesUploadResponse response) { + res.upload(arg_packageName, arg_editId, arg_language, arg_imageType).then(unittest.expectAsync1(((api.ImagesUploadResponse response) { checkImagesUploadResponse(response); }))); }); @@ -3480,7 +3480,7 @@ var arg_packageName = "foo"; var arg_editId = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3512,7 +3512,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_packageName, arg_editId, arg_language).then(unittest.expectAsync((_) {})); + res.delete(arg_packageName, arg_editId, arg_language).then(unittest.expectAsync1((_) {})); }); unittest.test("method--deleteall", () { @@ -3521,7 +3521,7 @@ api.EditsListingsResourceApi res = new api.AndroidpublisherApi(mock).edits.listings; var arg_packageName = "foo"; var arg_editId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3553,7 +3553,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.deleteall(arg_packageName, arg_editId).then(unittest.expectAsync((_) {})); + res.deleteall(arg_packageName, arg_editId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -3563,7 +3563,7 @@ var arg_packageName = "foo"; var arg_editId = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3595,7 +3595,7 @@ var resp = convert.JSON.encode(buildListing()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_packageName, arg_editId, arg_language).then(unittest.expectAsync(((api.Listing response) { + res.get(arg_packageName, arg_editId, arg_language).then(unittest.expectAsync1(((api.Listing response) { checkListing(response); }))); }); @@ -3606,7 +3606,7 @@ api.EditsListingsResourceApi res = new api.AndroidpublisherApi(mock).edits.listings; var arg_packageName = "foo"; var arg_editId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3638,7 +3638,7 @@ var resp = convert.JSON.encode(buildListingsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_packageName, arg_editId).then(unittest.expectAsync(((api.ListingsListResponse response) { + res.list(arg_packageName, arg_editId).then(unittest.expectAsync1(((api.ListingsListResponse response) { checkListingsListResponse(response); }))); }); @@ -3651,7 +3651,7 @@ var arg_packageName = "foo"; var arg_editId = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Listing.fromJson(json); checkListing(obj); @@ -3686,7 +3686,7 @@ var resp = convert.JSON.encode(buildListing()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_packageName, arg_editId, arg_language).then(unittest.expectAsync(((api.Listing response) { + res.patch(arg_request, arg_packageName, arg_editId, arg_language).then(unittest.expectAsync1(((api.Listing response) { checkListing(response); }))); }); @@ -3699,7 +3699,7 @@ var arg_packageName = "foo"; var arg_editId = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Listing.fromJson(json); checkListing(obj); @@ -3734,7 +3734,7 @@ var resp = convert.JSON.encode(buildListing()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_packageName, arg_editId, arg_language).then(unittest.expectAsync(((api.Listing response) { + res.update(arg_request, arg_packageName, arg_editId, arg_language).then(unittest.expectAsync1(((api.Listing response) { checkListing(response); }))); }); @@ -3750,7 +3750,7 @@ var arg_packageName = "foo"; var arg_editId = "foo"; var arg_track = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3782,7 +3782,7 @@ var resp = convert.JSON.encode(buildTesters()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_packageName, arg_editId, arg_track).then(unittest.expectAsync(((api.Testers response) { + res.get(arg_packageName, arg_editId, arg_track).then(unittest.expectAsync1(((api.Testers response) { checkTesters(response); }))); }); @@ -3795,7 +3795,7 @@ var arg_packageName = "foo"; var arg_editId = "foo"; var arg_track = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Testers.fromJson(json); checkTesters(obj); @@ -3830,7 +3830,7 @@ var resp = convert.JSON.encode(buildTesters()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_packageName, arg_editId, arg_track).then(unittest.expectAsync(((api.Testers response) { + res.patch(arg_request, arg_packageName, arg_editId, arg_track).then(unittest.expectAsync1(((api.Testers response) { checkTesters(response); }))); }); @@ -3843,7 +3843,7 @@ var arg_packageName = "foo"; var arg_editId = "foo"; var arg_track = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Testers.fromJson(json); checkTesters(obj); @@ -3878,7 +3878,7 @@ var resp = convert.JSON.encode(buildTesters()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_packageName, arg_editId, arg_track).then(unittest.expectAsync(((api.Testers response) { + res.update(arg_request, arg_packageName, arg_editId, arg_track).then(unittest.expectAsync1(((api.Testers response) { checkTesters(response); }))); }); @@ -3894,7 +3894,7 @@ var arg_packageName = "foo"; var arg_editId = "foo"; var arg_track = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3926,7 +3926,7 @@ var resp = convert.JSON.encode(buildTrack()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_packageName, arg_editId, arg_track).then(unittest.expectAsync(((api.Track response) { + res.get(arg_packageName, arg_editId, arg_track).then(unittest.expectAsync1(((api.Track response) { checkTrack(response); }))); }); @@ -3937,7 +3937,7 @@ api.EditsTracksResourceApi res = new api.AndroidpublisherApi(mock).edits.tracks; var arg_packageName = "foo"; var arg_editId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3969,7 +3969,7 @@ var resp = convert.JSON.encode(buildTracksListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_packageName, arg_editId).then(unittest.expectAsync(((api.TracksListResponse response) { + res.list(arg_packageName, arg_editId).then(unittest.expectAsync1(((api.TracksListResponse response) { checkTracksListResponse(response); }))); }); @@ -3982,7 +3982,7 @@ var arg_packageName = "foo"; var arg_editId = "foo"; var arg_track = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Track.fromJson(json); checkTrack(obj); @@ -4017,7 +4017,7 @@ var resp = convert.JSON.encode(buildTrack()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_packageName, arg_editId, arg_track).then(unittest.expectAsync(((api.Track response) { + res.patch(arg_request, arg_packageName, arg_editId, arg_track).then(unittest.expectAsync1(((api.Track response) { checkTrack(response); }))); }); @@ -4030,7 +4030,7 @@ var arg_packageName = "foo"; var arg_editId = "foo"; var arg_track = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Track.fromJson(json); checkTrack(obj); @@ -4065,7 +4065,7 @@ var resp = convert.JSON.encode(buildTrack()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_packageName, arg_editId, arg_track).then(unittest.expectAsync(((api.Track response) { + res.update(arg_request, arg_packageName, arg_editId, arg_track).then(unittest.expectAsync1(((api.Track response) { checkTrack(response); }))); }); @@ -4083,7 +4083,7 @@ var arg_productId = "foo"; var arg_startIndex = 42; var arg_token = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4119,7 +4119,7 @@ var resp = convert.JSON.encode(buildEntitlementsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_packageName, maxResults: arg_maxResults, productId: arg_productId, startIndex: arg_startIndex, token: arg_token).then(unittest.expectAsync(((api.EntitlementsListResponse response) { + res.list(arg_packageName, maxResults: arg_maxResults, productId: arg_productId, startIndex: arg_startIndex, token: arg_token).then(unittest.expectAsync1(((api.EntitlementsListResponse response) { checkEntitlementsListResponse(response); }))); }); @@ -4133,7 +4133,7 @@ var mock = new HttpServerMock(); api.InappproductsResourceApi res = new api.AndroidpublisherApi(mock).inappproducts; var arg_request = buildInappproductsBatchRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InappproductsBatchRequest.fromJson(json); checkInappproductsBatchRequest(obj); @@ -4172,7 +4172,7 @@ var resp = convert.JSON.encode(buildInappproductsBatchResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.batch(arg_request).then(unittest.expectAsync(((api.InappproductsBatchResponse response) { + res.batch(arg_request).then(unittest.expectAsync1(((api.InappproductsBatchResponse response) { checkInappproductsBatchResponse(response); }))); }); @@ -4183,7 +4183,7 @@ api.InappproductsResourceApi res = new api.AndroidpublisherApi(mock).inappproducts; var arg_packageName = "foo"; var arg_sku = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4215,7 +4215,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_packageName, arg_sku).then(unittest.expectAsync((_) {})); + res.delete(arg_packageName, arg_sku).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -4224,7 +4224,7 @@ api.InappproductsResourceApi res = new api.AndroidpublisherApi(mock).inappproducts; var arg_packageName = "foo"; var arg_sku = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4256,7 +4256,7 @@ var resp = convert.JSON.encode(buildInAppProduct()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_packageName, arg_sku).then(unittest.expectAsync(((api.InAppProduct response) { + res.get(arg_packageName, arg_sku).then(unittest.expectAsync1(((api.InAppProduct response) { checkInAppProduct(response); }))); }); @@ -4268,7 +4268,7 @@ var arg_request = buildInAppProduct(); var arg_packageName = "foo"; var arg_autoConvertMissingPrices = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InAppProduct.fromJson(json); checkInAppProduct(obj); @@ -4304,7 +4304,7 @@ var resp = convert.JSON.encode(buildInAppProduct()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_packageName, autoConvertMissingPrices: arg_autoConvertMissingPrices).then(unittest.expectAsync(((api.InAppProduct response) { + res.insert(arg_request, arg_packageName, autoConvertMissingPrices: arg_autoConvertMissingPrices).then(unittest.expectAsync1(((api.InAppProduct response) { checkInAppProduct(response); }))); }); @@ -4317,7 +4317,7 @@ var arg_maxResults = 42; var arg_startIndex = 42; var arg_token = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4352,7 +4352,7 @@ var resp = convert.JSON.encode(buildInappproductsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_packageName, maxResults: arg_maxResults, startIndex: arg_startIndex, token: arg_token).then(unittest.expectAsync(((api.InappproductsListResponse response) { + res.list(arg_packageName, maxResults: arg_maxResults, startIndex: arg_startIndex, token: arg_token).then(unittest.expectAsync1(((api.InappproductsListResponse response) { checkInappproductsListResponse(response); }))); }); @@ -4365,7 +4365,7 @@ var arg_packageName = "foo"; var arg_sku = "foo"; var arg_autoConvertMissingPrices = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InAppProduct.fromJson(json); checkInAppProduct(obj); @@ -4401,7 +4401,7 @@ var resp = convert.JSON.encode(buildInAppProduct()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_packageName, arg_sku, autoConvertMissingPrices: arg_autoConvertMissingPrices).then(unittest.expectAsync(((api.InAppProduct response) { + res.patch(arg_request, arg_packageName, arg_sku, autoConvertMissingPrices: arg_autoConvertMissingPrices).then(unittest.expectAsync1(((api.InAppProduct response) { checkInAppProduct(response); }))); }); @@ -4414,7 +4414,7 @@ var arg_packageName = "foo"; var arg_sku = "foo"; var arg_autoConvertMissingPrices = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InAppProduct.fromJson(json); checkInAppProduct(obj); @@ -4450,7 +4450,7 @@ var resp = convert.JSON.encode(buildInAppProduct()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_packageName, arg_sku, autoConvertMissingPrices: arg_autoConvertMissingPrices).then(unittest.expectAsync(((api.InAppProduct response) { + res.update(arg_request, arg_packageName, arg_sku, autoConvertMissingPrices: arg_autoConvertMissingPrices).then(unittest.expectAsync1(((api.InAppProduct response) { checkInAppProduct(response); }))); }); @@ -4466,7 +4466,7 @@ var arg_packageName = "foo"; var arg_productId = "foo"; var arg_token = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4498,7 +4498,7 @@ var resp = convert.JSON.encode(buildProductPurchase()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_packageName, arg_productId, arg_token).then(unittest.expectAsync(((api.ProductPurchase response) { + res.get(arg_packageName, arg_productId, arg_token).then(unittest.expectAsync1(((api.ProductPurchase response) { checkProductPurchase(response); }))); }); @@ -4514,7 +4514,7 @@ var arg_packageName = "foo"; var arg_subscriptionId = "foo"; var arg_token = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4546,7 +4546,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.cancel(arg_packageName, arg_subscriptionId, arg_token).then(unittest.expectAsync((_) {})); + res.cancel(arg_packageName, arg_subscriptionId, arg_token).then(unittest.expectAsync1((_) {})); }); unittest.test("method--defer", () { @@ -4557,7 +4557,7 @@ var arg_packageName = "foo"; var arg_subscriptionId = "foo"; var arg_token = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SubscriptionPurchasesDeferRequest.fromJson(json); checkSubscriptionPurchasesDeferRequest(obj); @@ -4592,7 +4592,7 @@ var resp = convert.JSON.encode(buildSubscriptionPurchasesDeferResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.defer(arg_request, arg_packageName, arg_subscriptionId, arg_token).then(unittest.expectAsync(((api.SubscriptionPurchasesDeferResponse response) { + res.defer(arg_request, arg_packageName, arg_subscriptionId, arg_token).then(unittest.expectAsync1(((api.SubscriptionPurchasesDeferResponse response) { checkSubscriptionPurchasesDeferResponse(response); }))); }); @@ -4604,7 +4604,7 @@ var arg_packageName = "foo"; var arg_subscriptionId = "foo"; var arg_token = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4636,7 +4636,7 @@ var resp = convert.JSON.encode(buildSubscriptionPurchase()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_packageName, arg_subscriptionId, arg_token).then(unittest.expectAsync(((api.SubscriptionPurchase response) { + res.get(arg_packageName, arg_subscriptionId, arg_token).then(unittest.expectAsync1(((api.SubscriptionPurchase response) { checkSubscriptionPurchase(response); }))); }); @@ -4648,7 +4648,7 @@ var arg_packageName = "foo"; var arg_subscriptionId = "foo"; var arg_token = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4680,7 +4680,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.refund(arg_packageName, arg_subscriptionId, arg_token).then(unittest.expectAsync((_) {})); + res.refund(arg_packageName, arg_subscriptionId, arg_token).then(unittest.expectAsync1((_) {})); }); unittest.test("method--revoke", () { @@ -4690,7 +4690,7 @@ var arg_packageName = "foo"; var arg_subscriptionId = "foo"; var arg_token = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4722,7 +4722,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.revoke(arg_packageName, arg_subscriptionId, arg_token).then(unittest.expectAsync((_) {})); + res.revoke(arg_packageName, arg_subscriptionId, arg_token).then(unittest.expectAsync1((_) {})); }); }); @@ -4739,7 +4739,7 @@ var arg_startIndex = 42; var arg_startTime = "foo"; var arg_token = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4776,7 +4776,7 @@ var resp = convert.JSON.encode(buildVoidedPurchasesListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_packageName, endTime: arg_endTime, maxResults: arg_maxResults, startIndex: arg_startIndex, startTime: arg_startTime, token: arg_token).then(unittest.expectAsync(((api.VoidedPurchasesListResponse response) { + res.list(arg_packageName, endTime: arg_endTime, maxResults: arg_maxResults, startIndex: arg_startIndex, startTime: arg_startTime, token: arg_token).then(unittest.expectAsync1(((api.VoidedPurchasesListResponse response) { checkVoidedPurchasesListResponse(response); }))); }); @@ -4792,7 +4792,7 @@ var arg_packageName = "foo"; var arg_reviewId = "foo"; var arg_translationLanguage = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4825,7 +4825,7 @@ var resp = convert.JSON.encode(buildReview()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_packageName, arg_reviewId, translationLanguage: arg_translationLanguage).then(unittest.expectAsync(((api.Review response) { + res.get(arg_packageName, arg_reviewId, translationLanguage: arg_translationLanguage).then(unittest.expectAsync1(((api.Review response) { checkReview(response); }))); }); @@ -4839,7 +4839,7 @@ var arg_startIndex = 42; var arg_token = "foo"; var arg_translationLanguage = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4875,7 +4875,7 @@ var resp = convert.JSON.encode(buildReviewsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_packageName, maxResults: arg_maxResults, startIndex: arg_startIndex, token: arg_token, translationLanguage: arg_translationLanguage).then(unittest.expectAsync(((api.ReviewsListResponse response) { + res.list(arg_packageName, maxResults: arg_maxResults, startIndex: arg_startIndex, token: arg_token, translationLanguage: arg_translationLanguage).then(unittest.expectAsync1(((api.ReviewsListResponse response) { checkReviewsListResponse(response); }))); }); @@ -4887,7 +4887,7 @@ var arg_request = buildReviewsReplyRequest(); var arg_packageName = "foo"; var arg_reviewId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ReviewsReplyRequest.fromJson(json); checkReviewsReplyRequest(obj); @@ -4922,7 +4922,7 @@ var resp = convert.JSON.encode(buildReviewsReplyResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.reply(arg_request, arg_packageName, arg_reviewId).then(unittest.expectAsync(((api.ReviewsReplyResponse response) { + res.reply(arg_request, arg_packageName, arg_reviewId).then(unittest.expectAsync1(((api.ReviewsReplyResponse response) { checkReviewsReplyResponse(response); }))); });
diff --git a/generated/googleapis/test/appengine/v1_test.dart b/generated/googleapis/test/appengine/v1_test.dart index 0eb5b08..245b4d5 100644 --- a/generated/googleapis/test/appengine/v1_test.dart +++ b/generated/googleapis/test/appengine/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/appengine/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -97,14 +97,14 @@ buildCounterApiEndpointHandler--; } -buildUnnamed3054() { +buildUnnamed2524() { var o = new core.List<api.UrlDispatchRule>(); o.add(buildUrlDispatchRule()); o.add(buildUrlDispatchRule()); return o; } -checkUnnamed3054(core.List<api.UrlDispatchRule> o) { +checkUnnamed2524(core.List<api.UrlDispatchRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlDispatchRule(o[0]); checkUrlDispatchRule(o[1]); @@ -120,7 +120,7 @@ o.defaultBucket = "foo"; o.defaultCookieExpiration = "foo"; o.defaultHostname = "foo"; - o.dispatchRules = buildUnnamed3054(); + o.dispatchRules = buildUnnamed2524(); o.gcrDomain = "foo"; o.iap = buildIdentityAwareProxy(); o.id = "foo"; @@ -140,7 +140,7 @@ unittest.expect(o.defaultBucket, unittest.equals('foo')); unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); unittest.expect(o.defaultHostname, unittest.equals('foo')); - checkUnnamed3054(o.dispatchRules); + checkUnnamed2524(o.dispatchRules); unittest.expect(o.gcrDomain, unittest.equals('foo')); checkIdentityAwareProxy(o.iap); unittest.expect(o.id, unittest.equals('foo')); @@ -272,14 +272,14 @@ buildCounterDebugInstanceRequest--; } -buildUnnamed3055() { +buildUnnamed2525() { var o = new core.Map<core.String, api.FileInfo>(); o["x"] = buildFileInfo(); o["y"] = buildFileInfo(); return o; } -checkUnnamed3055(core.Map<core.String, api.FileInfo> o) { +checkUnnamed2525(core.Map<core.String, api.FileInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkFileInfo(o["x"]); checkFileInfo(o["y"]); @@ -291,7 +291,7 @@ buildCounterDeployment++; if (buildCounterDeployment < 3) { o.container = buildContainerInfo(); - o.files = buildUnnamed3055(); + o.files = buildUnnamed2525(); o.zip = buildZipInfo(); } buildCounterDeployment--; @@ -302,7 +302,7 @@ buildCounterDeployment++; if (buildCounterDeployment < 3) { checkContainerInfo(o.container); - checkUnnamed3055(o.files); + checkUnnamed2525(o.files); checkZipInfo(o.zip); } buildCounterDeployment--; @@ -526,14 +526,14 @@ buildCounterLibrary--; } -buildUnnamed3056() { +buildUnnamed2526() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed3056(core.List<api.Instance> o) { +checkUnnamed2526(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -544,7 +544,7 @@ var o = new api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.instances = buildUnnamed3056(); + o.instances = buildUnnamed2526(); o.nextPageToken = "foo"; } buildCounterListInstancesResponse--; @@ -554,20 +554,20 @@ checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed3056(o.instances); + checkUnnamed2526(o.instances); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstancesResponse--; } -buildUnnamed3057() { +buildUnnamed2527() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed3057(core.List<api.Location> o) { +checkUnnamed2527(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -578,7 +578,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed3057(); + o.locations = buildUnnamed2527(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -588,20 +588,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed3057(o.locations); + checkUnnamed2527(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed3058() { +buildUnnamed2528() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3058(core.List<api.Operation> o) { +checkUnnamed2528(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -613,7 +613,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3058(); + o.operations = buildUnnamed2528(); } buildCounterListOperationsResponse--; return o; @@ -623,19 +623,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3058(o.operations); + checkUnnamed2528(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed3059() { +buildUnnamed2529() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed3059(core.List<api.Service> o) { +checkUnnamed2529(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -647,7 +647,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed3059(); + o.services = buildUnnamed2529(); } buildCounterListServicesResponse--; return o; @@ -657,19 +657,19 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3059(o.services); + checkUnnamed2529(o.services); } buildCounterListServicesResponse--; } -buildUnnamed3060() { +buildUnnamed2530() { var o = new core.List<api.Version>(); o.add(buildVersion()); o.add(buildVersion()); return o; } -checkUnnamed3060(core.List<api.Version> o) { +checkUnnamed2530(core.List<api.Version> o) { unittest.expect(o, unittest.hasLength(2)); checkVersion(o[0]); checkVersion(o[1]); @@ -681,7 +681,7 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { o.nextPageToken = "foo"; - o.versions = buildUnnamed3060(); + o.versions = buildUnnamed2530(); } buildCounterListVersionsResponse--; return o; @@ -691,7 +691,7 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3060(o.versions); + checkUnnamed2530(o.versions); } buildCounterListVersionsResponse--; } @@ -727,27 +727,27 @@ buildCounterLivenessCheck--; } -buildUnnamed3061() { +buildUnnamed2531() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3061(core.Map<core.String, core.String> o) { +checkUnnamed2531(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3062() { +buildUnnamed2532() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3062(core.Map<core.String, core.Object> o) { +checkUnnamed2532(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -758,9 +758,9 @@ var o = new api.Location(); buildCounterLocation++; if (buildCounterLocation < 3) { - o.labels = buildUnnamed3061(); + o.labels = buildUnnamed2531(); o.locationId = "foo"; - o.metadata = buildUnnamed3062(); + o.metadata = buildUnnamed2532(); o.name = "foo"; } buildCounterLocation--; @@ -770,9 +770,9 @@ checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { - checkUnnamed3061(o.labels); + checkUnnamed2531(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed3062(o.metadata); + checkUnnamed2532(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -818,14 +818,14 @@ buildCounterManualScaling--; } -buildUnnamed3063() { +buildUnnamed2533() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3063(core.List<core.String> o) { +checkUnnamed2533(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -836,7 +836,7 @@ var o = new api.Network(); buildCounterNetwork++; if (buildCounterNetwork < 3) { - o.forwardedPorts = buildUnnamed3063(); + o.forwardedPorts = buildUnnamed2533(); o.instanceTag = "foo"; o.name = "foo"; o.subnetworkName = "foo"; @@ -848,7 +848,7 @@ checkNetwork(api.Network o) { buildCounterNetwork++; if (buildCounterNetwork < 3) { - checkUnnamed3063(o.forwardedPorts); + checkUnnamed2533(o.forwardedPorts); unittest.expect(o.instanceTag, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.subnetworkName, unittest.equals('foo')); @@ -881,27 +881,27 @@ buildCounterNetworkUtilization--; } -buildUnnamed3064() { +buildUnnamed2534() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3064(core.Map<core.String, core.Object> o) { +checkUnnamed2534(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed3065() { +buildUnnamed2535() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3065(core.Map<core.String, core.Object> o) { +checkUnnamed2535(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); @@ -914,9 +914,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3064(); + o.metadata = buildUnnamed2534(); o.name = "foo"; - o.response = buildUnnamed3065(); + o.response = buildUnnamed2535(); } buildCounterOperation--; return o; @@ -927,9 +927,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3064(o.metadata); + checkUnnamed2534(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3065(o.response); + checkUnnamed2535(o.response); } buildCounterOperation--; } @@ -990,14 +990,14 @@ buildCounterOperationMetadataExperimental--; } -buildUnnamed3066() { +buildUnnamed2536() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3066(core.List<core.String> o) { +checkUnnamed2536(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1014,7 +1014,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed3066(); + o.warning = buildUnnamed2536(); } buildCounterOperationMetadataV1--; return o; @@ -1029,19 +1029,63 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3066(o.warning); + checkUnnamed2536(o.warning); } buildCounterOperationMetadataV1--; } -buildUnnamed3067() { +buildUnnamed2537() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3067(core.List<core.String> o) { +checkUnnamed2537(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterOperationMetadataV1Alpha = 0; +buildOperationMetadataV1Alpha() { + var o = new api.OperationMetadataV1Alpha(); + buildCounterOperationMetadataV1Alpha++; + if (buildCounterOperationMetadataV1Alpha < 3) { + o.endTime = "foo"; + o.ephemeralMessage = "foo"; + o.insertTime = "foo"; + o.method = "foo"; + o.target = "foo"; + o.user = "foo"; + o.warning = buildUnnamed2537(); + } + buildCounterOperationMetadataV1Alpha--; + return o; +} + +checkOperationMetadataV1Alpha(api.OperationMetadataV1Alpha o) { + buildCounterOperationMetadataV1Alpha++; + if (buildCounterOperationMetadataV1Alpha < 3) { + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.ephemeralMessage, unittest.equals('foo')); + unittest.expect(o.insertTime, unittest.equals('foo')); + unittest.expect(o.method, unittest.equals('foo')); + unittest.expect(o.target, unittest.equals('foo')); + unittest.expect(o.user, unittest.equals('foo')); + checkUnnamed2537(o.warning); + } + buildCounterOperationMetadataV1Alpha--; +} + +buildUnnamed2538() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2538(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1058,7 +1102,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed3067(); + o.warning = buildUnnamed2538(); } buildCounterOperationMetadataV1Beta--; return o; @@ -1073,7 +1117,7 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3067(o.warning); + checkUnnamed2538(o.warning); } buildCounterOperationMetadataV1Beta--; } @@ -1172,14 +1216,14 @@ buildCounterRequestUtilization--; } -buildUnnamed3068() { +buildUnnamed2539() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed3068(core.List<api.Volume> o) { +checkUnnamed2539(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -1193,7 +1237,7 @@ o.cpu = 42.0; o.diskGb = 42.0; o.memoryGb = 42.0; - o.volumes = buildUnnamed3068(); + o.volumes = buildUnnamed2539(); } buildCounterResources--; return o; @@ -1205,7 +1249,7 @@ unittest.expect(o.cpu, unittest.equals(42.0)); unittest.expect(o.diskGb, unittest.equals(42.0)); unittest.expect(o.memoryGb, unittest.equals(42.0)); - checkUnnamed3068(o.volumes); + checkUnnamed2539(o.volumes); } buildCounterResources--; } @@ -1252,14 +1296,14 @@ buildCounterService--; } -buildUnnamed3069() { +buildUnnamed2540() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3069(core.Map<core.String, core.String> o) { +checkUnnamed2540(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1272,7 +1316,7 @@ if (buildCounterStaticFilesHandler < 3) { o.applicationReadable = true; o.expiration = "foo"; - o.httpHeaders = buildUnnamed3069(); + o.httpHeaders = buildUnnamed2540(); o.mimeType = "foo"; o.path = "foo"; o.requireMatchingFile = true; @@ -1287,7 +1331,7 @@ if (buildCounterStaticFilesHandler < 3) { unittest.expect(o.applicationReadable, unittest.isTrue); unittest.expect(o.expiration, unittest.equals('foo')); - checkUnnamed3069(o.httpHeaders); + checkUnnamed2540(o.httpHeaders); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.requireMatchingFile, unittest.isTrue); @@ -1296,30 +1340,30 @@ buildCounterStaticFilesHandler--; } -buildUnnamed3070() { +buildUnnamed2541() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3070(core.Map<core.String, core.Object> o) { +checkUnnamed2541(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed3071() { +buildUnnamed2542() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3070()); - o.add(buildUnnamed3070()); + o.add(buildUnnamed2541()); + o.add(buildUnnamed2541()); return o; } -checkUnnamed3071(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2542(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3070(o[0]); - checkUnnamed3070(o[1]); + checkUnnamed2541(o[0]); + checkUnnamed2541(o[1]); } core.int buildCounterStatus = 0; @@ -1328,7 +1372,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3071(); + o.details = buildUnnamed2542(); o.message = "foo"; } buildCounterStatus--; @@ -1339,20 +1383,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3071(o.details); + checkUnnamed2542(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed3072() { +buildUnnamed2543() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed3072(core.Map<core.String, core.double> o) { +checkUnnamed2543(core.Map<core.String, core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals(42.0)); unittest.expect(o["y"], unittest.equals(42.0)); @@ -1363,7 +1407,7 @@ var o = new api.TrafficSplit(); buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - o.allocations = buildUnnamed3072(); + o.allocations = buildUnnamed2543(); o.shardBy = "foo"; } buildCounterTrafficSplit--; @@ -1373,7 +1417,7 @@ checkTrafficSplit(api.TrafficSplit o) { buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - checkUnnamed3072(o.allocations); + checkUnnamed2543(o.allocations); unittest.expect(o.shardBy, unittest.equals('foo')); } buildCounterTrafficSplit--; @@ -1435,79 +1479,79 @@ buildCounterUrlMap--; } -buildUnnamed3073() { +buildUnnamed2544() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3073(core.Map<core.String, core.String> o) { +checkUnnamed2544(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3074() { +buildUnnamed2545() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3074(core.Map<core.String, core.String> o) { +checkUnnamed2545(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3075() { +buildUnnamed2546() { var o = new core.List<api.ErrorHandler>(); o.add(buildErrorHandler()); o.add(buildErrorHandler()); return o; } -checkUnnamed3075(core.List<api.ErrorHandler> o) { +checkUnnamed2546(core.List<api.ErrorHandler> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorHandler(o[0]); checkErrorHandler(o[1]); } -buildUnnamed3076() { +buildUnnamed2547() { var o = new core.List<api.UrlMap>(); o.add(buildUrlMap()); o.add(buildUrlMap()); return o; } -checkUnnamed3076(core.List<api.UrlMap> o) { +checkUnnamed2547(core.List<api.UrlMap> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); } -buildUnnamed3077() { +buildUnnamed2548() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3077(core.List<core.String> o) { +checkUnnamed2548(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3078() { +buildUnnamed2549() { var o = new core.List<api.Library>(); o.add(buildLibrary()); o.add(buildLibrary()); return o; } -checkUnnamed3078(core.List<api.Library> o) { +checkUnnamed2549(core.List<api.Library> o) { unittest.expect(o, unittest.hasLength(2)); checkLibrary(o[0]); checkLibrary(o[1]); @@ -1521,7 +1565,7 @@ o.apiConfig = buildApiConfigHandler(); o.automaticScaling = buildAutomaticScaling(); o.basicScaling = buildBasicScaling(); - o.betaSettings = buildUnnamed3073(); + o.betaSettings = buildUnnamed2544(); o.createTime = "foo"; o.createdBy = "foo"; o.defaultExpiration = "foo"; @@ -1529,14 +1573,14 @@ o.diskUsageBytes = "foo"; o.endpointsApiService = buildEndpointsApiService(); o.env = "foo"; - o.envVariables = buildUnnamed3074(); - o.errorHandlers = buildUnnamed3075(); - o.handlers = buildUnnamed3076(); + o.envVariables = buildUnnamed2545(); + o.errorHandlers = buildUnnamed2546(); + o.handlers = buildUnnamed2547(); o.healthCheck = buildHealthCheck(); o.id = "foo"; - o.inboundServices = buildUnnamed3077(); + o.inboundServices = buildUnnamed2548(); o.instanceClass = "foo"; - o.libraries = buildUnnamed3078(); + o.libraries = buildUnnamed2549(); o.livenessCheck = buildLivenessCheck(); o.manualScaling = buildManualScaling(); o.name = "foo"; @@ -1545,6 +1589,7 @@ o.readinessCheck = buildReadinessCheck(); o.resources = buildResources(); o.runtime = "foo"; + o.runtimeApiVersion = "foo"; o.servingStatus = "foo"; o.threadsafe = true; o.versionUrl = "foo"; @@ -1560,7 +1605,7 @@ checkApiConfigHandler(o.apiConfig); checkAutomaticScaling(o.automaticScaling); checkBasicScaling(o.basicScaling); - checkUnnamed3073(o.betaSettings); + checkUnnamed2544(o.betaSettings); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.createdBy, unittest.equals('foo')); unittest.expect(o.defaultExpiration, unittest.equals('foo')); @@ -1568,14 +1613,14 @@ unittest.expect(o.diskUsageBytes, unittest.equals('foo')); checkEndpointsApiService(o.endpointsApiService); unittest.expect(o.env, unittest.equals('foo')); - checkUnnamed3074(o.envVariables); - checkUnnamed3075(o.errorHandlers); - checkUnnamed3076(o.handlers); + checkUnnamed2545(o.envVariables); + checkUnnamed2546(o.errorHandlers); + checkUnnamed2547(o.handlers); checkHealthCheck(o.healthCheck); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3077(o.inboundServices); + checkUnnamed2548(o.inboundServices); unittest.expect(o.instanceClass, unittest.equals('foo')); - checkUnnamed3078(o.libraries); + checkUnnamed2549(o.libraries); checkLivenessCheck(o.livenessCheck); checkManualScaling(o.manualScaling); unittest.expect(o.name, unittest.equals('foo')); @@ -1584,6 +1629,7 @@ checkReadinessCheck(o.readinessCheck); checkResources(o.resources); unittest.expect(o.runtime, unittest.equals('foo')); + unittest.expect(o.runtimeApiVersion, unittest.equals('foo')); unittest.expect(o.servingStatus, unittest.equals('foo')); unittest.expect(o.threadsafe, unittest.isTrue); unittest.expect(o.versionUrl, unittest.equals('foo')); @@ -1926,6 +1972,15 @@ }); + unittest.group("obj-schema-OperationMetadataV1Alpha", () { + unittest.test("to-json--from-json", () { + var o = buildOperationMetadataV1Alpha(); + var od = new api.OperationMetadataV1Alpha.fromJson(o.toJson()); + checkOperationMetadataV1Alpha(od); + }); + }); + + unittest.group("obj-schema-OperationMetadataV1Beta", () { unittest.test("to-json--from-json", () { var o = buildOperationMetadataV1Beta(); @@ -2076,7 +2131,7 @@ var mock = new HttpServerMock(); api.AppsResourceApi res = new api.AppengineApi(mock).apps; var arg_request = buildApplication(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Application.fromJson(json); checkApplication(obj); @@ -2113,7 +2168,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request).then(unittest.expectAsync(((api.Operation response) { + res.create(arg_request).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2123,7 +2178,7 @@ var mock = new HttpServerMock(); api.AppsResourceApi res = new api.AppengineApi(mock).apps; var arg_appsId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2160,7 +2215,7 @@ var resp = convert.JSON.encode(buildApplication()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId).then(unittest.expectAsync(((api.Application response) { + res.get(arg_appsId).then(unittest.expectAsync1(((api.Application response) { checkApplication(response); }))); }); @@ -2172,7 +2227,7 @@ var arg_request = buildApplication(); var arg_appsId = "foo"; var arg_updateMask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Application.fromJson(json); checkApplication(obj); @@ -2213,7 +2268,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_appsId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_appsId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2224,7 +2279,7 @@ api.AppsResourceApi res = new api.AppengineApi(mock).apps; var arg_request = buildRepairApplicationRequest(); var arg_appsId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RepairApplicationRequest.fromJson(json); checkRepairApplicationRequest(obj); @@ -2268,7 +2323,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.repair(arg_request, arg_appsId).then(unittest.expectAsync(((api.Operation response) { + res.repair(arg_request, arg_appsId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2283,7 +2338,7 @@ api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locations; var arg_appsId = "foo"; var arg_locationsId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2327,7 +2382,7 @@ var resp = convert.JSON.encode(buildLocation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync(((api.Location response) { + res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync1(((api.Location response) { checkLocation(response); }))); }); @@ -2337,10 +2392,10 @@ var mock = new HttpServerMock(); api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locations; var arg_appsId = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_pageSize = 42; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2373,9 +2428,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); var h = { @@ -2384,7 +2439,7 @@ var resp = convert.JSON.encode(buildListLocationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListLocationsResponse response) { + res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListLocationsResponse response) { checkListLocationsResponse(response); }))); }); @@ -2399,7 +2454,7 @@ api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operations; var arg_appsId = "foo"; var arg_operationsId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2443,7 +2498,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2456,7 +2511,7 @@ var arg_pageSize = 42; var arg_filter = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2500,7 +2555,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response) { + res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); }); @@ -2515,7 +2570,7 @@ api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services; var arg_appsId = "foo"; var arg_servicesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2559,7 +2614,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_appsId, arg_servicesId).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_appsId, arg_servicesId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2570,7 +2625,7 @@ api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services; var arg_appsId = "foo"; var arg_servicesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2614,7 +2669,7 @@ var resp = convert.JSON.encode(buildService()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, arg_servicesId).then(unittest.expectAsync(((api.Service response) { + res.get(arg_appsId, arg_servicesId).then(unittest.expectAsync1(((api.Service response) { checkService(response); }))); }); @@ -2624,9 +2679,9 @@ var mock = new HttpServerMock(); api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services; var arg_appsId = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_pageSize = 42; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2659,8 +2714,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); var h = { @@ -2669,7 +2724,7 @@ var resp = convert.JSON.encode(buildListServicesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListServicesResponse response) { + res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListServicesResponse response) { checkListServicesResponse(response); }))); }); @@ -2683,7 +2738,7 @@ var arg_servicesId = "foo"; var arg_updateMask = "foo"; var arg_migrateTraffic = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Service.fromJson(json); checkService(obj); @@ -2732,7 +2787,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_appsId, arg_servicesId, updateMask: arg_updateMask, migrateTraffic: arg_migrateTraffic).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_appsId, arg_servicesId, updateMask: arg_updateMask, migrateTraffic: arg_migrateTraffic).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2748,7 +2803,7 @@ var arg_request = buildVersion(); var arg_appsId = "foo"; var arg_servicesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Version.fromJson(json); checkVersion(obj); @@ -2799,7 +2854,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_appsId, arg_servicesId).then(unittest.expectAsync(((api.Operation response) { + res.create(arg_request, arg_appsId, arg_servicesId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2811,7 +2866,7 @@ var arg_appsId = "foo"; var arg_servicesId = "foo"; var arg_versionsId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2862,7 +2917,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_appsId, arg_servicesId, arg_versionsId).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_appsId, arg_servicesId, arg_versionsId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2875,7 +2930,7 @@ var arg_servicesId = "foo"; var arg_versionsId = "foo"; var arg_view = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2927,7 +2982,7 @@ var resp = convert.JSON.encode(buildVersion()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, arg_servicesId, arg_versionsId, view: arg_view).then(unittest.expectAsync(((api.Version response) { + res.get(arg_appsId, arg_servicesId, arg_versionsId, view: arg_view).then(unittest.expectAsync1(((api.Version response) { checkVersion(response); }))); }); @@ -2941,7 +2996,7 @@ var arg_pageSize = 42; var arg_view = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2992,7 +3047,7 @@ var resp = convert.JSON.encode(buildListVersionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, arg_servicesId, pageSize: arg_pageSize, view: arg_view, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListVersionsResponse response) { + res.list(arg_appsId, arg_servicesId, pageSize: arg_pageSize, view: arg_view, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListVersionsResponse response) { checkListVersionsResponse(response); }))); }); @@ -3006,7 +3061,7 @@ var arg_servicesId = "foo"; var arg_versionsId = "foo"; var arg_updateMask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Version.fromJson(json); checkVersion(obj); @@ -3061,7 +3116,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_appsId, arg_servicesId, arg_versionsId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_appsId, arg_servicesId, arg_versionsId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3079,7 +3134,7 @@ var arg_servicesId = "foo"; var arg_versionsId = "foo"; var arg_instancesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DebugInstanceRequest.fromJson(json); checkDebugInstanceRequest(obj); @@ -3144,7 +3199,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.debug(arg_request, arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync(((api.Operation response) { + res.debug(arg_request, arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3157,7 +3212,7 @@ var arg_servicesId = "foo"; var arg_versionsId = "foo"; var arg_instancesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3215,7 +3270,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3228,7 +3283,7 @@ var arg_servicesId = "foo"; var arg_versionsId = "foo"; var arg_instancesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3286,7 +3341,7 @@ var resp = convert.JSON.encode(buildInstance()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync(((api.Instance response) { + res.get(arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync1(((api.Instance response) { checkInstance(response); }))); }); @@ -3298,9 +3353,9 @@ var arg_appsId = "foo"; var arg_servicesId = "foo"; var arg_versionsId = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_pageSize = 42; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3347,8 +3402,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); var h = { @@ -3357,7 +3412,7 @@ var resp = convert.JSON.encode(buildListInstancesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, arg_servicesId, arg_versionsId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListInstancesResponse response) { + res.list(arg_appsId, arg_servicesId, arg_versionsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListInstancesResponse response) { checkListInstancesResponse(response); }))); });
diff --git a/generated/googleapis/test/appsactivity/v1_test.dart b/generated/googleapis/test/appsactivity/v1_test.dart index 1e40c8f..c60ca3e 100644 --- a/generated/googleapis/test/appsactivity/v1_test.dart +++ b/generated/googleapis/test/appsactivity/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/appsactivity/v1.dart' as api; @@ -46,19 +46,19 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1021() { +buildUnnamed1028() { var o = new core.List<api.Event>(); o.add(buildEvent()); o.add(buildEvent()); return o; } -checkUnnamed1021(core.List<api.Event> o) { +checkUnnamed1028(core.List<api.Event> o) { unittest.expect(o, unittest.hasLength(2)); checkEvent(o[0]); checkEvent(o[1]); @@ -70,7 +70,7 @@ buildCounterActivity++; if (buildCounterActivity < 3) { o.combinedEvent = buildEvent(); - o.singleEvents = buildUnnamed1021(); + o.singleEvents = buildUnnamed1028(); } buildCounterActivity--; return o; @@ -80,32 +80,32 @@ buildCounterActivity++; if (buildCounterActivity < 3) { checkEvent(o.combinedEvent); - checkUnnamed1021(o.singleEvents); + checkUnnamed1028(o.singleEvents); } buildCounterActivity--; } -buildUnnamed1022() { +buildUnnamed1029() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1022(core.List<core.String> o) { +checkUnnamed1029(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1023() { +buildUnnamed1030() { var o = new core.List<api.PermissionChange>(); o.add(buildPermissionChange()); o.add(buildPermissionChange()); return o; } -checkUnnamed1023(core.List<api.PermissionChange> o) { +checkUnnamed1030(core.List<api.PermissionChange> o) { unittest.expect(o, unittest.hasLength(2)); checkPermissionChange(o[0]); checkPermissionChange(o[1]); @@ -116,11 +116,11 @@ var o = new api.Event(); buildCounterEvent++; if (buildCounterEvent < 3) { - o.additionalEventTypes = buildUnnamed1022(); + o.additionalEventTypes = buildUnnamed1029(); o.eventTimeMillis = "foo"; o.fromUserDeletion = true; o.move = buildMove(); - o.permissionChanges = buildUnnamed1023(); + o.permissionChanges = buildUnnamed1030(); o.primaryEventType = "foo"; o.rename = buildRename(); o.target = buildTarget(); @@ -133,11 +133,11 @@ checkEvent(api.Event o) { buildCounterEvent++; if (buildCounterEvent < 3) { - checkUnnamed1022(o.additionalEventTypes); + checkUnnamed1029(o.additionalEventTypes); unittest.expect(o.eventTimeMillis, unittest.equals('foo')); unittest.expect(o.fromUserDeletion, unittest.isTrue); checkMove(o.move); - checkUnnamed1023(o.permissionChanges); + checkUnnamed1030(o.permissionChanges); unittest.expect(o.primaryEventType, unittest.equals('foo')); checkRename(o.rename); checkTarget(o.target); @@ -146,14 +146,14 @@ buildCounterEvent--; } -buildUnnamed1024() { +buildUnnamed1031() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed1024(core.List<api.Activity> o) { +checkUnnamed1031(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -164,7 +164,7 @@ var o = new api.ListActivitiesResponse(); buildCounterListActivitiesResponse++; if (buildCounterListActivitiesResponse < 3) { - o.activities = buildUnnamed1024(); + o.activities = buildUnnamed1031(); o.nextPageToken = "foo"; } buildCounterListActivitiesResponse--; @@ -174,33 +174,33 @@ checkListActivitiesResponse(api.ListActivitiesResponse o) { buildCounterListActivitiesResponse++; if (buildCounterListActivitiesResponse < 3) { - checkUnnamed1024(o.activities); + checkUnnamed1031(o.activities); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListActivitiesResponse--; } -buildUnnamed1025() { +buildUnnamed1032() { var o = new core.List<api.Parent>(); o.add(buildParent()); o.add(buildParent()); return o; } -checkUnnamed1025(core.List<api.Parent> o) { +checkUnnamed1032(core.List<api.Parent> o) { unittest.expect(o, unittest.hasLength(2)); checkParent(o[0]); checkParent(o[1]); } -buildUnnamed1026() { +buildUnnamed1033() { var o = new core.List<api.Parent>(); o.add(buildParent()); o.add(buildParent()); return o; } -checkUnnamed1026(core.List<api.Parent> o) { +checkUnnamed1033(core.List<api.Parent> o) { unittest.expect(o, unittest.hasLength(2)); checkParent(o[0]); checkParent(o[1]); @@ -211,8 +211,8 @@ var o = new api.Move(); buildCounterMove++; if (buildCounterMove < 3) { - o.addedParents = buildUnnamed1025(); - o.removedParents = buildUnnamed1026(); + o.addedParents = buildUnnamed1032(); + o.removedParents = buildUnnamed1033(); } buildCounterMove--; return o; @@ -221,8 +221,8 @@ checkMove(api.Move o) { buildCounterMove++; if (buildCounterMove < 3) { - checkUnnamed1025(o.addedParents); - checkUnnamed1026(o.removedParents); + checkUnnamed1032(o.addedParents); + checkUnnamed1033(o.removedParents); } buildCounterMove--; } @@ -279,27 +279,27 @@ buildCounterPermission--; } -buildUnnamed1027() { +buildUnnamed1034() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1027(core.List<api.Permission> o) { +checkUnnamed1034(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); } -buildUnnamed1028() { +buildUnnamed1035() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1028(core.List<api.Permission> o) { +checkUnnamed1035(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); @@ -310,8 +310,8 @@ var o = new api.PermissionChange(); buildCounterPermissionChange++; if (buildCounterPermissionChange < 3) { - o.addedPermissions = buildUnnamed1027(); - o.removedPermissions = buildUnnamed1028(); + o.addedPermissions = buildUnnamed1034(); + o.removedPermissions = buildUnnamed1035(); } buildCounterPermissionChange--; return o; @@ -320,8 +320,8 @@ checkPermissionChange(api.PermissionChange o) { buildCounterPermissionChange++; if (buildCounterPermissionChange < 3) { - checkUnnamed1027(o.addedPermissions); - checkUnnamed1028(o.removedPermissions); + checkUnnamed1034(o.addedPermissions); + checkUnnamed1035(o.removedPermissions); } buildCounterPermissionChange--; } @@ -529,7 +529,7 @@ var arg_pageToken = "foo"; var arg_source = "foo"; var arg_userId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -572,7 +572,7 @@ var resp = convert.JSON.encode(buildListActivitiesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(drive_ancestorId: arg_drive_ancestorId, drive_fileId: arg_drive_fileId, groupingStrategy: arg_groupingStrategy, pageSize: arg_pageSize, pageToken: arg_pageToken, source: arg_source, userId: arg_userId).then(unittest.expectAsync(((api.ListActivitiesResponse response) { + res.list(drive_ancestorId: arg_drive_ancestorId, drive_fileId: arg_drive_fileId, groupingStrategy: arg_groupingStrategy, pageSize: arg_pageSize, pageToken: arg_pageToken, source: arg_source, userId: arg_userId).then(unittest.expectAsync1(((api.ListActivitiesResponse response) { checkListActivitiesResponse(response); }))); });
diff --git a/generated/googleapis/test/appstate/v1_test.dart b/generated/googleapis/test/appstate/v1_test.dart index d35d7c4..cc98587 100644 --- a/generated/googleapis/test/appstate/v1_test.dart +++ b/generated/googleapis/test/appstate/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/appstate/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -76,14 +76,14 @@ buildCounterGetResponse--; } -buildUnnamed2888() { +buildUnnamed2358() { var o = new core.List<api.GetResponse>(); o.add(buildGetResponse()); o.add(buildGetResponse()); return o; } -checkUnnamed2888(core.List<api.GetResponse> o) { +checkUnnamed2358(core.List<api.GetResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkGetResponse(o[0]); checkGetResponse(o[1]); @@ -94,7 +94,7 @@ var o = new api.ListResponse(); buildCounterListResponse++; if (buildCounterListResponse < 3) { - o.items = buildUnnamed2888(); + o.items = buildUnnamed2358(); o.kind = "foo"; o.maximumKeyCount = 42; } @@ -105,7 +105,7 @@ checkListResponse(api.ListResponse o) { buildCounterListResponse++; if (buildCounterListResponse < 3) { - checkUnnamed2888(o.items); + checkUnnamed2358(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.maximumKeyCount, unittest.equals(42)); } @@ -201,7 +201,7 @@ api.StatesResourceApi res = new api.AppstateApi(mock).states; var arg_stateKey = 42; var arg_currentDataVersion = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -245,7 +245,7 @@ var resp = convert.JSON.encode(buildWriteResult()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.clear(arg_stateKey, currentDataVersion: arg_currentDataVersion).then(unittest.expectAsync(((api.WriteResult response) { + res.clear(arg_stateKey, currentDataVersion: arg_currentDataVersion).then(unittest.expectAsync1(((api.WriteResult response) { checkWriteResult(response); }))); }); @@ -255,7 +255,7 @@ var mock = new HttpServerMock(); api.StatesResourceApi res = new api.AppstateApi(mock).states; var arg_stateKey = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -294,7 +294,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_stateKey).then(unittest.expectAsync((_) {})); + res.delete(arg_stateKey).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -302,7 +302,7 @@ var mock = new HttpServerMock(); api.StatesResourceApi res = new api.AppstateApi(mock).states; var arg_stateKey = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -341,7 +341,7 @@ var resp = convert.JSON.encode(buildGetResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_stateKey).then(unittest.expectAsync(((api.GetResponse response) { + res.get(arg_stateKey).then(unittest.expectAsync1(((api.GetResponse response) { checkGetResponse(response); }))); }); @@ -351,7 +351,7 @@ var mock = new HttpServerMock(); api.StatesResourceApi res = new api.AppstateApi(mock).states; var arg_includeData = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -388,7 +388,7 @@ var resp = convert.JSON.encode(buildListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(includeData: arg_includeData).then(unittest.expectAsync(((api.ListResponse response) { + res.list(includeData: arg_includeData).then(unittest.expectAsync1(((api.ListResponse response) { checkListResponse(response); }))); }); @@ -400,7 +400,7 @@ var arg_request = buildUpdateRequest(); var arg_stateKey = 42; var arg_currentStateVersion = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UpdateRequest.fromJson(json); checkUpdateRequest(obj); @@ -443,7 +443,7 @@ var resp = convert.JSON.encode(buildWriteResult()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_stateKey, currentStateVersion: arg_currentStateVersion).then(unittest.expectAsync(((api.WriteResult response) { + res.update(arg_request, arg_stateKey, currentStateVersion: arg_currentStateVersion).then(unittest.expectAsync1(((api.WriteResult response) { checkWriteResult(response); }))); });
diff --git a/generated/googleapis/test/cloudbilling/v1_test.dart b/generated/googleapis/test/cloudbilling/v1_test.dart index e6b19a7..94fdfc1 100644 --- a/generated/googleapis/test/cloudbilling/v1_test.dart +++ b/generated/googleapis/test/cloudbilling/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/cloudbilling/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -74,14 +74,14 @@ buildCounterBillingAccount--; } -buildUnnamed37() { +buildUnnamed39() { var o = new core.List<api.BillingAccount>(); o.add(buildBillingAccount()); o.add(buildBillingAccount()); return o; } -checkUnnamed37(core.List<api.BillingAccount> o) { +checkUnnamed39(core.List<api.BillingAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkBillingAccount(o[0]); checkBillingAccount(o[1]); @@ -92,7 +92,7 @@ var o = new api.ListBillingAccountsResponse(); buildCounterListBillingAccountsResponse++; if (buildCounterListBillingAccountsResponse < 3) { - o.billingAccounts = buildUnnamed37(); + o.billingAccounts = buildUnnamed39(); o.nextPageToken = "foo"; } buildCounterListBillingAccountsResponse--; @@ -102,20 +102,20 @@ checkListBillingAccountsResponse(api.ListBillingAccountsResponse o) { buildCounterListBillingAccountsResponse++; if (buildCounterListBillingAccountsResponse < 3) { - checkUnnamed37(o.billingAccounts); + checkUnnamed39(o.billingAccounts); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListBillingAccountsResponse--; } -buildUnnamed38() { +buildUnnamed40() { var o = new core.List<api.ProjectBillingInfo>(); o.add(buildProjectBillingInfo()); o.add(buildProjectBillingInfo()); return o; } -checkUnnamed38(core.List<api.ProjectBillingInfo> o) { +checkUnnamed40(core.List<api.ProjectBillingInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkProjectBillingInfo(o[0]); checkProjectBillingInfo(o[1]); @@ -127,7 +127,7 @@ buildCounterListProjectBillingInfoResponse++; if (buildCounterListProjectBillingInfoResponse < 3) { o.nextPageToken = "foo"; - o.projectBillingInfo = buildUnnamed38(); + o.projectBillingInfo = buildUnnamed40(); } buildCounterListProjectBillingInfoResponse--; return o; @@ -137,7 +137,7 @@ buildCounterListProjectBillingInfoResponse++; if (buildCounterListProjectBillingInfoResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed38(o.projectBillingInfo); + checkUnnamed40(o.projectBillingInfo); } buildCounterListProjectBillingInfoResponse--; } @@ -211,7 +211,7 @@ var mock = new HttpServerMock(); api.BillingAccountsResourceApi res = new api.CloudbillingApi(mock).billingAccounts; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -246,7 +246,7 @@ var resp = convert.JSON.encode(buildBillingAccount()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.BillingAccount response) { + res.get(arg_name).then(unittest.expectAsync1(((api.BillingAccount response) { checkBillingAccount(response); }))); }); @@ -257,7 +257,7 @@ api.BillingAccountsResourceApi res = new api.CloudbillingApi(mock).billingAccounts; var arg_pageSize = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -293,7 +293,7 @@ var resp = convert.JSON.encode(buildListBillingAccountsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListBillingAccountsResponse response) { + res.list(pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListBillingAccountsResponse response) { checkListBillingAccountsResponse(response); }))); }); @@ -309,7 +309,7 @@ var arg_name = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -346,7 +346,7 @@ var resp = convert.JSON.encode(buildListProjectBillingInfoResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListProjectBillingInfoResponse response) { + res.list(arg_name, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListProjectBillingInfoResponse response) { checkListProjectBillingInfoResponse(response); }))); }); @@ -360,7 +360,7 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.CloudbillingApi(mock).projects; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -395,7 +395,7 @@ var resp = convert.JSON.encode(buildProjectBillingInfo()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getBillingInfo(arg_name).then(unittest.expectAsync(((api.ProjectBillingInfo response) { + res.getBillingInfo(arg_name).then(unittest.expectAsync1(((api.ProjectBillingInfo response) { checkProjectBillingInfo(response); }))); }); @@ -406,7 +406,7 @@ api.ProjectsResourceApi res = new api.CloudbillingApi(mock).projects; var arg_request = buildProjectBillingInfo(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ProjectBillingInfo.fromJson(json); checkProjectBillingInfo(obj); @@ -444,7 +444,7 @@ var resp = convert.JSON.encode(buildProjectBillingInfo()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.updateBillingInfo(arg_request, arg_name).then(unittest.expectAsync(((api.ProjectBillingInfo response) { + res.updateBillingInfo(arg_request, arg_name).then(unittest.expectAsync1(((api.ProjectBillingInfo response) { checkProjectBillingInfo(response); }))); });
diff --git a/generated/googleapis/test/cloudbuild/v1_test.dart b/generated/googleapis/test/cloudbuild/v1_test.dart index 5372f8f..effbe35 100644 --- a/generated/googleapis/test/cloudbuild/v1_test.dart +++ b/generated/googleapis/test/cloudbuild/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/cloudbuild/v1.dart' as api; @@ -46,58 +46,58 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1333() { +buildUnnamed1340() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1333(core.List<core.String> o) { +checkUnnamed1340(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1334() { +buildUnnamed1341() { var o = new core.List<api.BuildStep>(); o.add(buildBuildStep()); o.add(buildBuildStep()); return o; } -checkUnnamed1334(core.List<api.BuildStep> o) { +checkUnnamed1341(core.List<api.BuildStep> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildStep(o[0]); checkBuildStep(o[1]); } -buildUnnamed1335() { +buildUnnamed1342() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1335(core.Map<core.String, core.String> o) { +checkUnnamed1342(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1336() { +buildUnnamed1343() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1336(core.List<core.String> o) { +checkUnnamed1343(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -112,7 +112,7 @@ o.createTime = "foo"; o.finishTime = "foo"; o.id = "foo"; - o.images = buildUnnamed1333(); + o.images = buildUnnamed1340(); o.logUrl = "foo"; o.logsBucket = "foo"; o.options = buildBuildOptions(); @@ -123,9 +123,9 @@ o.startTime = "foo"; o.status = "foo"; o.statusDetail = "foo"; - o.steps = buildUnnamed1334(); - o.substitutions = buildUnnamed1335(); - o.tags = buildUnnamed1336(); + o.steps = buildUnnamed1341(); + o.substitutions = buildUnnamed1342(); + o.tags = buildUnnamed1343(); o.timeout = "foo"; } buildCounterBuild--; @@ -139,7 +139,7 @@ unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.finishTime, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1333(o.images); + checkUnnamed1340(o.images); unittest.expect(o.logUrl, unittest.equals('foo')); unittest.expect(o.logsBucket, unittest.equals('foo')); checkBuildOptions(o.options); @@ -150,9 +150,9 @@ unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.statusDetail, unittest.equals('foo')); - checkUnnamed1334(o.steps); - checkUnnamed1335(o.substitutions); - checkUnnamed1336(o.tags); + checkUnnamed1341(o.steps); + checkUnnamed1342(o.substitutions); + checkUnnamed1343(o.tags); unittest.expect(o.timeout, unittest.equals('foo')); } buildCounterBuild--; @@ -177,14 +177,14 @@ buildCounterBuildOperationMetadata--; } -buildUnnamed1337() { +buildUnnamed1344() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1337(core.List<core.String> o) { +checkUnnamed1344(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -196,7 +196,7 @@ buildCounterBuildOptions++; if (buildCounterBuildOptions < 3) { o.requestedVerifyOption = "foo"; - o.sourceProvenanceHash = buildUnnamed1337(); + o.sourceProvenanceHash = buildUnnamed1344(); } buildCounterBuildOptions--; return o; @@ -206,45 +206,45 @@ buildCounterBuildOptions++; if (buildCounterBuildOptions < 3) { unittest.expect(o.requestedVerifyOption, unittest.equals('foo')); - checkUnnamed1337(o.sourceProvenanceHash); + checkUnnamed1344(o.sourceProvenanceHash); } buildCounterBuildOptions--; } -buildUnnamed1338() { +buildUnnamed1345() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1338(core.List<core.String> o) { +checkUnnamed1345(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1339() { +buildUnnamed1346() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1339(core.List<core.String> o) { +checkUnnamed1346(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1340() { +buildUnnamed1347() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1340(core.List<core.String> o) { +checkUnnamed1347(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -255,13 +255,13 @@ var o = new api.BuildStep(); buildCounterBuildStep++; if (buildCounterBuildStep < 3) { - o.args = buildUnnamed1338(); + o.args = buildUnnamed1345(); o.dir = "foo"; o.entrypoint = "foo"; - o.env = buildUnnamed1339(); + o.env = buildUnnamed1346(); o.id = "foo"; o.name = "foo"; - o.waitFor = buildUnnamed1340(); + o.waitFor = buildUnnamed1347(); } buildCounterBuildStep--; return o; @@ -270,25 +270,25 @@ checkBuildStep(api.BuildStep o) { buildCounterBuildStep++; if (buildCounterBuildStep < 3) { - checkUnnamed1338(o.args); + checkUnnamed1345(o.args); unittest.expect(o.dir, unittest.equals('foo')); unittest.expect(o.entrypoint, unittest.equals('foo')); - checkUnnamed1339(o.env); + checkUnnamed1346(o.env); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1340(o.waitFor); + checkUnnamed1347(o.waitFor); } buildCounterBuildStep--; } -buildUnnamed1341() { +buildUnnamed1348() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1341(core.Map<core.String, core.String> o) { +checkUnnamed1348(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -305,7 +305,7 @@ o.disabled = true; o.filename = "foo"; o.id = "foo"; - o.substitutions = buildUnnamed1341(); + o.substitutions = buildUnnamed1348(); o.triggerTemplate = buildRepoSource(); } buildCounterBuildTrigger--; @@ -321,7 +321,7 @@ unittest.expect(o.disabled, unittest.isTrue); unittest.expect(o.filename, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1341(o.substitutions); + checkUnnamed1348(o.substitutions); checkRepoSource(o.triggerTemplate); } buildCounterBuildTrigger--; @@ -399,14 +399,14 @@ buildCounterEmpty--; } -buildUnnamed1342() { +buildUnnamed1349() { var o = new core.List<api.Hash>(); o.add(buildHash()); o.add(buildHash()); return o; } -checkUnnamed1342(core.List<api.Hash> o) { +checkUnnamed1349(core.List<api.Hash> o) { unittest.expect(o, unittest.hasLength(2)); checkHash(o[0]); checkHash(o[1]); @@ -417,7 +417,7 @@ var o = new api.FileHashes(); buildCounterFileHashes++; if (buildCounterFileHashes < 3) { - o.fileHash = buildUnnamed1342(); + o.fileHash = buildUnnamed1349(); } buildCounterFileHashes--; return o; @@ -426,7 +426,7 @@ checkFileHashes(api.FileHashes o) { buildCounterFileHashes++; if (buildCounterFileHashes < 3) { - checkUnnamed1342(o.fileHash); + checkUnnamed1349(o.fileHash); } buildCounterFileHashes--; } @@ -452,14 +452,14 @@ buildCounterHash--; } -buildUnnamed1343() { +buildUnnamed1350() { var o = new core.List<api.BuildTrigger>(); o.add(buildBuildTrigger()); o.add(buildBuildTrigger()); return o; } -checkUnnamed1343(core.List<api.BuildTrigger> o) { +checkUnnamed1350(core.List<api.BuildTrigger> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildTrigger(o[0]); checkBuildTrigger(o[1]); @@ -470,7 +470,7 @@ var o = new api.ListBuildTriggersResponse(); buildCounterListBuildTriggersResponse++; if (buildCounterListBuildTriggersResponse < 3) { - o.triggers = buildUnnamed1343(); + o.triggers = buildUnnamed1350(); } buildCounterListBuildTriggersResponse--; return o; @@ -479,19 +479,19 @@ checkListBuildTriggersResponse(api.ListBuildTriggersResponse o) { buildCounterListBuildTriggersResponse++; if (buildCounterListBuildTriggersResponse < 3) { - checkUnnamed1343(o.triggers); + checkUnnamed1350(o.triggers); } buildCounterListBuildTriggersResponse--; } -buildUnnamed1344() { +buildUnnamed1351() { var o = new core.List<api.Build>(); o.add(buildBuild()); o.add(buildBuild()); return o; } -checkUnnamed1344(core.List<api.Build> o) { +checkUnnamed1351(core.List<api.Build> o) { unittest.expect(o, unittest.hasLength(2)); checkBuild(o[0]); checkBuild(o[1]); @@ -502,7 +502,7 @@ var o = new api.ListBuildsResponse(); buildCounterListBuildsResponse++; if (buildCounterListBuildsResponse < 3) { - o.builds = buildUnnamed1344(); + o.builds = buildUnnamed1351(); o.nextPageToken = "foo"; } buildCounterListBuildsResponse--; @@ -512,20 +512,20 @@ checkListBuildsResponse(api.ListBuildsResponse o) { buildCounterListBuildsResponse++; if (buildCounterListBuildsResponse < 3) { - checkUnnamed1344(o.builds); + checkUnnamed1351(o.builds); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListBuildsResponse--; } -buildUnnamed1345() { +buildUnnamed1352() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1345(core.List<api.Operation> o) { +checkUnnamed1352(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -537,7 +537,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1345(); + o.operations = buildUnnamed1352(); } buildCounterListOperationsResponse--; return o; @@ -547,32 +547,32 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1345(o.operations); + checkUnnamed1352(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1346() { +buildUnnamed1353() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1346(core.Map<core.String, core.Object> o) { +checkUnnamed1353(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1347() { +buildUnnamed1354() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1347(core.Map<core.String, core.Object> o) { +checkUnnamed1354(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -585,9 +585,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1346(); + o.metadata = buildUnnamed1353(); o.name = "foo"; - o.response = buildUnnamed1347(); + o.response = buildUnnamed1354(); } buildCounterOperation--; return o; @@ -598,9 +598,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1346(o.metadata); + checkUnnamed1353(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1347(o.response); + checkUnnamed1354(o.response); } buildCounterOperation--; } @@ -632,27 +632,27 @@ buildCounterRepoSource--; } -buildUnnamed1348() { +buildUnnamed1355() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1348(core.List<core.String> o) { +checkUnnamed1355(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1349() { +buildUnnamed1356() { var o = new core.List<api.BuiltImage>(); o.add(buildBuiltImage()); o.add(buildBuiltImage()); return o; } -checkUnnamed1349(core.List<api.BuiltImage> o) { +checkUnnamed1356(core.List<api.BuiltImage> o) { unittest.expect(o, unittest.hasLength(2)); checkBuiltImage(o[0]); checkBuiltImage(o[1]); @@ -663,8 +663,8 @@ var o = new api.Results(); buildCounterResults++; if (buildCounterResults < 3) { - o.buildStepImages = buildUnnamed1348(); - o.images = buildUnnamed1349(); + o.buildStepImages = buildUnnamed1355(); + o.images = buildUnnamed1356(); } buildCounterResults--; return o; @@ -673,8 +673,8 @@ checkResults(api.Results o) { buildCounterResults++; if (buildCounterResults < 3) { - checkUnnamed1348(o.buildStepImages); - checkUnnamed1349(o.images); + checkUnnamed1355(o.buildStepImages); + checkUnnamed1356(o.images); } buildCounterResults--; } @@ -700,14 +700,14 @@ buildCounterSource--; } -buildUnnamed1350() { +buildUnnamed1357() { var o = new core.Map<core.String, api.FileHashes>(); o["x"] = buildFileHashes(); o["y"] = buildFileHashes(); return o; } -checkUnnamed1350(core.Map<core.String, api.FileHashes> o) { +checkUnnamed1357(core.Map<core.String, api.FileHashes> o) { unittest.expect(o, unittest.hasLength(2)); checkFileHashes(o["x"]); checkFileHashes(o["y"]); @@ -718,7 +718,7 @@ var o = new api.SourceProvenance(); buildCounterSourceProvenance++; if (buildCounterSourceProvenance < 3) { - o.fileHashes = buildUnnamed1350(); + o.fileHashes = buildUnnamed1357(); o.resolvedRepoSource = buildRepoSource(); o.resolvedStorageSource = buildStorageSource(); } @@ -729,37 +729,37 @@ checkSourceProvenance(api.SourceProvenance o) { buildCounterSourceProvenance++; if (buildCounterSourceProvenance < 3) { - checkUnnamed1350(o.fileHashes); + checkUnnamed1357(o.fileHashes); checkRepoSource(o.resolvedRepoSource); checkStorageSource(o.resolvedStorageSource); } buildCounterSourceProvenance--; } -buildUnnamed1351() { +buildUnnamed1358() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1351(core.Map<core.String, core.Object> o) { +checkUnnamed1358(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1352() { +buildUnnamed1359() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1351()); - o.add(buildUnnamed1351()); + o.add(buildUnnamed1358()); + o.add(buildUnnamed1358()); return o; } -checkUnnamed1352(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1359(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1351(o[0]); - checkUnnamed1351(o[1]); + checkUnnamed1358(o[0]); + checkUnnamed1358(o[1]); } core.int buildCounterStatus = 0; @@ -768,7 +768,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1352(); + o.details = buildUnnamed1359(); o.message = "foo"; } buildCounterStatus--; @@ -779,7 +779,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1352(o.details); + checkUnnamed1359(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1006,7 +1006,7 @@ api.OperationsResourceApi res = new api.CloudbuildApi(mock).operations; var arg_request = buildCancelOperationRequest(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CancelOperationRequest.fromJson(json); checkCancelOperationRequest(obj); @@ -1044,7 +1044,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.cancel(arg_request, arg_name).then(unittest.expectAsync(((api.Empty response) { + res.cancel(arg_request, arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1054,7 +1054,7 @@ var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.CloudbuildApi(mock).operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1089,7 +1089,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1099,10 +1099,10 @@ var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.CloudbuildApi(mock).operations; var arg_name = "foo"; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1129,9 +1129,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); var h = { @@ -1140,7 +1140,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListOperationsResponse response) { + res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); }); @@ -1156,7 +1156,7 @@ var arg_request = buildCancelBuildRequest(); var arg_projectId = "foo"; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CancelBuildRequest.fromJson(json); checkCancelBuildRequest(obj); @@ -1207,7 +1207,7 @@ var resp = convert.JSON.encode(buildBuild()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.cancel(arg_request, arg_projectId, arg_id).then(unittest.expectAsync(((api.Build response) { + res.cancel(arg_request, arg_projectId, arg_id).then(unittest.expectAsync1(((api.Build response) { checkBuild(response); }))); }); @@ -1218,7 +1218,7 @@ api.ProjectsBuildsResourceApi res = new api.CloudbuildApi(mock).projects.builds; var arg_request = buildBuild(); var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Build.fromJson(json); checkBuild(obj); @@ -1262,7 +1262,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_projectId).then(unittest.expectAsync(((api.Operation response) { + res.create(arg_request, arg_projectId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1273,7 +1273,7 @@ api.ProjectsBuildsResourceApi res = new api.CloudbuildApi(mock).projects.builds; var arg_projectId = "foo"; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1317,7 +1317,7 @@ var resp = convert.JSON.encode(buildBuild()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_projectId, arg_id).then(unittest.expectAsync(((api.Build response) { + res.get(arg_projectId, arg_id).then(unittest.expectAsync1(((api.Build response) { checkBuild(response); }))); }); @@ -1330,7 +1330,7 @@ var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1374,7 +1374,7 @@ var resp = convert.JSON.encode(buildListBuildsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListBuildsResponse response) { + res.list(arg_projectId, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListBuildsResponse response) { checkListBuildsResponse(response); }))); }); @@ -1389,7 +1389,7 @@ api.ProjectsTriggersResourceApi res = new api.CloudbuildApi(mock).projects.triggers; var arg_request = buildBuildTrigger(); var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.BuildTrigger.fromJson(json); checkBuildTrigger(obj); @@ -1433,7 +1433,7 @@ var resp = convert.JSON.encode(buildBuildTrigger()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_projectId).then(unittest.expectAsync(((api.BuildTrigger response) { + res.create(arg_request, arg_projectId).then(unittest.expectAsync1(((api.BuildTrigger response) { checkBuildTrigger(response); }))); }); @@ -1444,7 +1444,7 @@ api.ProjectsTriggersResourceApi res = new api.CloudbuildApi(mock).projects.triggers; var arg_projectId = "foo"; var arg_triggerId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1488,7 +1488,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_projectId, arg_triggerId).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_projectId, arg_triggerId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1499,7 +1499,7 @@ api.ProjectsTriggersResourceApi res = new api.CloudbuildApi(mock).projects.triggers; var arg_projectId = "foo"; var arg_triggerId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1543,7 +1543,7 @@ var resp = convert.JSON.encode(buildBuildTrigger()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_projectId, arg_triggerId).then(unittest.expectAsync(((api.BuildTrigger response) { + res.get(arg_projectId, arg_triggerId).then(unittest.expectAsync1(((api.BuildTrigger response) { checkBuildTrigger(response); }))); }); @@ -1553,7 +1553,7 @@ var mock = new HttpServerMock(); api.ProjectsTriggersResourceApi res = new api.CloudbuildApi(mock).projects.triggers; var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1594,7 +1594,7 @@ var resp = convert.JSON.encode(buildListBuildTriggersResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId).then(unittest.expectAsync(((api.ListBuildTriggersResponse response) { + res.list(arg_projectId).then(unittest.expectAsync1(((api.ListBuildTriggersResponse response) { checkListBuildTriggersResponse(response); }))); }); @@ -1606,7 +1606,7 @@ var arg_request = buildBuildTrigger(); var arg_projectId = "foo"; var arg_triggerId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.BuildTrigger.fromJson(json); checkBuildTrigger(obj); @@ -1653,7 +1653,7 @@ var resp = convert.JSON.encode(buildBuildTrigger()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_projectId, arg_triggerId).then(unittest.expectAsync(((api.BuildTrigger response) { + res.patch(arg_request, arg_projectId, arg_triggerId).then(unittest.expectAsync1(((api.BuildTrigger response) { checkBuildTrigger(response); }))); });
diff --git a/generated/googleapis/test/clouddebugger/v2_test.dart b/generated/googleapis/test/clouddebugger/v2_test.dart index e465bda..d4ee275 100644 --- a/generated/googleapis/test/clouddebugger/v2_test.dart +++ b/generated/googleapis/test/clouddebugger/v2_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/clouddebugger/v2.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -72,66 +72,66 @@ buildCounterAliasContext--; } -buildUnnamed809() { +buildUnnamed816() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed809(core.List<api.Variable> o) { +checkUnnamed816(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); } -buildUnnamed810() { +buildUnnamed817() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed810(core.List<core.String> o) { +checkUnnamed817(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed811() { +buildUnnamed818() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed811(core.Map<core.String, core.String> o) { +checkUnnamed818(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed812() { +buildUnnamed819() { var o = new core.List<api.StackFrame>(); o.add(buildStackFrame()); o.add(buildStackFrame()); return o; } -checkUnnamed812(core.List<api.StackFrame> o) { +checkUnnamed819(core.List<api.StackFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkStackFrame(o[0]); checkStackFrame(o[1]); } -buildUnnamed813() { +buildUnnamed820() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed813(core.List<api.Variable> o) { +checkUnnamed820(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -145,19 +145,19 @@ o.action = "foo"; o.condition = "foo"; o.createTime = "foo"; - o.evaluatedExpressions = buildUnnamed809(); - o.expressions = buildUnnamed810(); + o.evaluatedExpressions = buildUnnamed816(); + o.expressions = buildUnnamed817(); o.finalTime = "foo"; o.id = "foo"; o.isFinalState = true; - o.labels = buildUnnamed811(); + o.labels = buildUnnamed818(); o.location = buildSourceLocation(); o.logLevel = "foo"; o.logMessageFormat = "foo"; - o.stackFrames = buildUnnamed812(); + o.stackFrames = buildUnnamed819(); o.status = buildStatusMessage(); o.userEmail = "foo"; - o.variableTable = buildUnnamed813(); + o.variableTable = buildUnnamed820(); } buildCounterBreakpoint--; return o; @@ -169,19 +169,19 @@ unittest.expect(o.action, unittest.equals('foo')); unittest.expect(o.condition, unittest.equals('foo')); unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed809(o.evaluatedExpressions); - checkUnnamed810(o.expressions); + checkUnnamed816(o.evaluatedExpressions); + checkUnnamed817(o.expressions); unittest.expect(o.finalTime, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isFinalState, unittest.isTrue); - checkUnnamed811(o.labels); + checkUnnamed818(o.labels); checkSourceLocation(o.location); unittest.expect(o.logLevel, unittest.equals('foo')); unittest.expect(o.logMessageFormat, unittest.equals('foo')); - checkUnnamed812(o.stackFrames); + checkUnnamed819(o.stackFrames); checkStatusMessage(o.status); unittest.expect(o.userEmail, unittest.equals('foo')); - checkUnnamed813(o.variableTable); + checkUnnamed820(o.variableTable); } buildCounterBreakpoint--; } @@ -253,40 +253,40 @@ buildCounterCloudWorkspaceSourceContext--; } -buildUnnamed814() { +buildUnnamed821() { var o = new core.List<api.ExtendedSourceContext>(); o.add(buildExtendedSourceContext()); o.add(buildExtendedSourceContext()); return o; } -checkUnnamed814(core.List<api.ExtendedSourceContext> o) { +checkUnnamed821(core.List<api.ExtendedSourceContext> o) { unittest.expect(o, unittest.hasLength(2)); checkExtendedSourceContext(o[0]); checkExtendedSourceContext(o[1]); } -buildUnnamed815() { +buildUnnamed822() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed815(core.Map<core.String, core.String> o) { +checkUnnamed822(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed816() { +buildUnnamed823() { var o = new core.List<api.SourceContext>(); o.add(buildSourceContext()); o.add(buildSourceContext()); return o; } -checkUnnamed816(core.List<api.SourceContext> o) { +checkUnnamed823(core.List<api.SourceContext> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceContext(o[0]); checkSourceContext(o[1]); @@ -299,13 +299,13 @@ if (buildCounterDebuggee < 3) { o.agentVersion = "foo"; o.description = "foo"; - o.extSourceContexts = buildUnnamed814(); + o.extSourceContexts = buildUnnamed821(); o.id = "foo"; o.isDisabled = true; o.isInactive = true; - o.labels = buildUnnamed815(); + o.labels = buildUnnamed822(); o.project = "foo"; - o.sourceContexts = buildUnnamed816(); + o.sourceContexts = buildUnnamed823(); o.status = buildStatusMessage(); o.uniquifier = "foo"; } @@ -318,13 +318,13 @@ if (buildCounterDebuggee < 3) { unittest.expect(o.agentVersion, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed814(o.extSourceContexts); + checkUnnamed821(o.extSourceContexts); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isDisabled, unittest.isTrue); unittest.expect(o.isInactive, unittest.isTrue); - checkUnnamed815(o.labels); + checkUnnamed822(o.labels); unittest.expect(o.project, unittest.equals('foo')); - checkUnnamed816(o.sourceContexts); + checkUnnamed823(o.sourceContexts); checkStatusMessage(o.status); unittest.expect(o.uniquifier, unittest.equals('foo')); } @@ -348,14 +348,14 @@ buildCounterEmpty--; } -buildUnnamed817() { +buildUnnamed824() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed817(core.Map<core.String, core.String> o) { +checkUnnamed824(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -367,7 +367,7 @@ buildCounterExtendedSourceContext++; if (buildCounterExtendedSourceContext < 3) { o.context = buildSourceContext(); - o.labels = buildUnnamed817(); + o.labels = buildUnnamed824(); } buildCounterExtendedSourceContext--; return o; @@ -377,19 +377,19 @@ buildCounterExtendedSourceContext++; if (buildCounterExtendedSourceContext < 3) { checkSourceContext(o.context); - checkUnnamed817(o.labels); + checkUnnamed824(o.labels); } buildCounterExtendedSourceContext--; } -buildUnnamed818() { +buildUnnamed825() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed818(core.List<core.String> o) { +checkUnnamed825(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -401,7 +401,7 @@ buildCounterFormatMessage++; if (buildCounterFormatMessage < 3) { o.format = "foo"; - o.parameters = buildUnnamed818(); + o.parameters = buildUnnamed825(); } buildCounterFormatMessage--; return o; @@ -411,7 +411,7 @@ buildCounterFormatMessage++; if (buildCounterFormatMessage < 3) { unittest.expect(o.format, unittest.equals('foo')); - checkUnnamed818(o.parameters); + checkUnnamed825(o.parameters); } buildCounterFormatMessage--; } @@ -483,14 +483,14 @@ buildCounterGitSourceContext--; } -buildUnnamed819() { +buildUnnamed826() { var o = new core.List<api.Breakpoint>(); o.add(buildBreakpoint()); o.add(buildBreakpoint()); return o; } -checkUnnamed819(core.List<api.Breakpoint> o) { +checkUnnamed826(core.List<api.Breakpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkBreakpoint(o[0]); checkBreakpoint(o[1]); @@ -501,7 +501,7 @@ var o = new api.ListActiveBreakpointsResponse(); buildCounterListActiveBreakpointsResponse++; if (buildCounterListActiveBreakpointsResponse < 3) { - o.breakpoints = buildUnnamed819(); + o.breakpoints = buildUnnamed826(); o.nextWaitToken = "foo"; o.waitExpired = true; } @@ -512,21 +512,21 @@ checkListActiveBreakpointsResponse(api.ListActiveBreakpointsResponse o) { buildCounterListActiveBreakpointsResponse++; if (buildCounterListActiveBreakpointsResponse < 3) { - checkUnnamed819(o.breakpoints); + checkUnnamed826(o.breakpoints); unittest.expect(o.nextWaitToken, unittest.equals('foo')); unittest.expect(o.waitExpired, unittest.isTrue); } buildCounterListActiveBreakpointsResponse--; } -buildUnnamed820() { +buildUnnamed827() { var o = new core.List<api.Breakpoint>(); o.add(buildBreakpoint()); o.add(buildBreakpoint()); return o; } -checkUnnamed820(core.List<api.Breakpoint> o) { +checkUnnamed827(core.List<api.Breakpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkBreakpoint(o[0]); checkBreakpoint(o[1]); @@ -537,7 +537,7 @@ var o = new api.ListBreakpointsResponse(); buildCounterListBreakpointsResponse++; if (buildCounterListBreakpointsResponse < 3) { - o.breakpoints = buildUnnamed820(); + o.breakpoints = buildUnnamed827(); o.nextWaitToken = "foo"; } buildCounterListBreakpointsResponse--; @@ -547,20 +547,20 @@ checkListBreakpointsResponse(api.ListBreakpointsResponse o) { buildCounterListBreakpointsResponse++; if (buildCounterListBreakpointsResponse < 3) { - checkUnnamed820(o.breakpoints); + checkUnnamed827(o.breakpoints); unittest.expect(o.nextWaitToken, unittest.equals('foo')); } buildCounterListBreakpointsResponse--; } -buildUnnamed821() { +buildUnnamed828() { var o = new core.List<api.Debuggee>(); o.add(buildDebuggee()); o.add(buildDebuggee()); return o; } -checkUnnamed821(core.List<api.Debuggee> o) { +checkUnnamed828(core.List<api.Debuggee> o) { unittest.expect(o, unittest.hasLength(2)); checkDebuggee(o[0]); checkDebuggee(o[1]); @@ -571,7 +571,7 @@ var o = new api.ListDebuggeesResponse(); buildCounterListDebuggeesResponse++; if (buildCounterListDebuggeesResponse < 3) { - o.debuggees = buildUnnamed821(); + o.debuggees = buildUnnamed828(); } buildCounterListDebuggeesResponse--; return o; @@ -580,7 +580,7 @@ checkListDebuggeesResponse(api.ListDebuggeesResponse o) { buildCounterListDebuggeesResponse++; if (buildCounterListDebuggeesResponse < 3) { - checkUnnamed821(o.debuggees); + checkUnnamed828(o.debuggees); } buildCounterListDebuggeesResponse--; } @@ -730,27 +730,27 @@ buildCounterSourceLocation--; } -buildUnnamed822() { +buildUnnamed829() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed822(core.List<api.Variable> o) { +checkUnnamed829(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); } -buildUnnamed823() { +buildUnnamed830() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed823(core.List<api.Variable> o) { +checkUnnamed830(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -761,9 +761,9 @@ var o = new api.StackFrame(); buildCounterStackFrame++; if (buildCounterStackFrame < 3) { - o.arguments = buildUnnamed822(); + o.arguments = buildUnnamed829(); o.function = "foo"; - o.locals = buildUnnamed823(); + o.locals = buildUnnamed830(); o.location = buildSourceLocation(); } buildCounterStackFrame--; @@ -773,9 +773,9 @@ checkStackFrame(api.StackFrame o) { buildCounterStackFrame++; if (buildCounterStackFrame < 3) { - checkUnnamed822(o.arguments); + checkUnnamed829(o.arguments); unittest.expect(o.function, unittest.equals('foo')); - checkUnnamed823(o.locals); + checkUnnamed830(o.locals); checkSourceLocation(o.location); } buildCounterStackFrame--; @@ -840,14 +840,14 @@ buildCounterUpdateActiveBreakpointResponse--; } -buildUnnamed824() { +buildUnnamed831() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed824(core.List<api.Variable> o) { +checkUnnamed831(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -858,7 +858,7 @@ var o = new api.Variable(); buildCounterVariable++; if (buildCounterVariable < 3) { - o.members = buildUnnamed824(); + o.members = buildUnnamed831(); o.name = "foo"; o.status = buildStatusMessage(); o.type = "foo"; @@ -872,7 +872,7 @@ checkVariable(api.Variable o) { buildCounterVariable++; if (buildCounterVariable < 3) { - checkUnnamed824(o.members); + checkUnnamed831(o.members); unittest.expect(o.name, unittest.equals('foo')); checkStatusMessage(o.status); unittest.expect(o.type, unittest.equals('foo')); @@ -1133,7 +1133,7 @@ var mock = new HttpServerMock(); api.ControllerDebuggeesResourceApi res = new api.ClouddebuggerApi(mock).controller.debuggees; var arg_request = buildRegisterDebuggeeRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RegisterDebuggeeRequest.fromJson(json); checkRegisterDebuggeeRequest(obj); @@ -1170,7 +1170,7 @@ var resp = convert.JSON.encode(buildRegisterDebuggeeResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.register(arg_request).then(unittest.expectAsync(((api.RegisterDebuggeeResponse response) { + res.register(arg_request).then(unittest.expectAsync1(((api.RegisterDebuggeeResponse response) { checkRegisterDebuggeeResponse(response); }))); }); @@ -1184,9 +1184,9 @@ var mock = new HttpServerMock(); api.ControllerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerApi(mock).controller.debuggees.breakpoints; var arg_debuggeeId = "foo"; - var arg_successOnTimeout = true; var arg_waitToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_successOnTimeout = true; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1219,8 +1219,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["successOnTimeout"].first, unittest.equals("$arg_successOnTimeout")); unittest.expect(queryMap["waitToken"].first, unittest.equals(arg_waitToken)); + unittest.expect(queryMap["successOnTimeout"].first, unittest.equals("$arg_successOnTimeout")); var h = { @@ -1229,7 +1229,7 @@ var resp = convert.JSON.encode(buildListActiveBreakpointsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_debuggeeId, successOnTimeout: arg_successOnTimeout, waitToken: arg_waitToken).then(unittest.expectAsync(((api.ListActiveBreakpointsResponse response) { + res.list(arg_debuggeeId, waitToken: arg_waitToken, successOnTimeout: arg_successOnTimeout).then(unittest.expectAsync1(((api.ListActiveBreakpointsResponse response) { checkListActiveBreakpointsResponse(response); }))); }); @@ -1241,7 +1241,7 @@ var arg_request = buildUpdateActiveBreakpointRequest(); var arg_debuggeeId = "foo"; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UpdateActiveBreakpointRequest.fromJson(json); checkUpdateActiveBreakpointRequest(obj); @@ -1288,7 +1288,7 @@ var resp = convert.JSON.encode(buildUpdateActiveBreakpointResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_debuggeeId, arg_id).then(unittest.expectAsync(((api.UpdateActiveBreakpointResponse response) { + res.update(arg_request, arg_debuggeeId, arg_id).then(unittest.expectAsync1(((api.UpdateActiveBreakpointResponse response) { checkUpdateActiveBreakpointResponse(response); }))); }); @@ -1301,10 +1301,10 @@ var mock = new HttpServerMock(); api.DebuggerDebuggeesResourceApi res = new api.ClouddebuggerApi(mock).debugger.debuggees; - var arg_project = "foo"; var arg_clientVersion = "foo"; var arg_includeInactive = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_project = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1330,9 +1330,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["project"].first, unittest.equals(arg_project)); unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_clientVersion)); unittest.expect(queryMap["includeInactive"].first, unittest.equals("$arg_includeInactive")); + unittest.expect(queryMap["project"].first, unittest.equals(arg_project)); var h = { @@ -1341,7 +1341,7 @@ var resp = convert.JSON.encode(buildListDebuggeesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(project: arg_project, clientVersion: arg_clientVersion, includeInactive: arg_includeInactive).then(unittest.expectAsync(((api.ListDebuggeesResponse response) { + res.list(clientVersion: arg_clientVersion, includeInactive: arg_includeInactive, project: arg_project).then(unittest.expectAsync1(((api.ListDebuggeesResponse response) { checkListDebuggeesResponse(response); }))); }); @@ -1357,7 +1357,7 @@ var arg_debuggeeId = "foo"; var arg_breakpointId = "foo"; var arg_clientVersion = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1402,7 +1402,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_debuggeeId, arg_breakpointId, clientVersion: arg_clientVersion).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_debuggeeId, arg_breakpointId, clientVersion: arg_clientVersion).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1414,7 +1414,7 @@ var arg_debuggeeId = "foo"; var arg_breakpointId = "foo"; var arg_clientVersion = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1459,7 +1459,7 @@ var resp = convert.JSON.encode(buildGetBreakpointResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_debuggeeId, arg_breakpointId, clientVersion: arg_clientVersion).then(unittest.expectAsync(((api.GetBreakpointResponse response) { + res.get(arg_debuggeeId, arg_breakpointId, clientVersion: arg_clientVersion).then(unittest.expectAsync1(((api.GetBreakpointResponse response) { checkGetBreakpointResponse(response); }))); }); @@ -1469,13 +1469,13 @@ var mock = new HttpServerMock(); api.DebuggerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerApi(mock).debugger.debuggees.breakpoints; var arg_debuggeeId = "foo"; - var arg_clientVersion = "foo"; - var arg_action_value = "foo"; - var arg_includeAllUsers = true; - var arg_includeInactive = true; - var arg_stripResults = true; var arg_waitToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_action_value = "foo"; + var arg_clientVersion = "foo"; + var arg_includeInactive = true; + var arg_includeAllUsers = true; + var arg_stripResults = true; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1508,12 +1508,12 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_clientVersion)); - unittest.expect(queryMap["action.value"].first, unittest.equals(arg_action_value)); - unittest.expect(queryMap["includeAllUsers"].first, unittest.equals("$arg_includeAllUsers")); - unittest.expect(queryMap["includeInactive"].first, unittest.equals("$arg_includeInactive")); - unittest.expect(queryMap["stripResults"].first, unittest.equals("$arg_stripResults")); unittest.expect(queryMap["waitToken"].first, unittest.equals(arg_waitToken)); + unittest.expect(queryMap["action.value"].first, unittest.equals(arg_action_value)); + unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_clientVersion)); + unittest.expect(queryMap["includeInactive"].first, unittest.equals("$arg_includeInactive")); + unittest.expect(queryMap["includeAllUsers"].first, unittest.equals("$arg_includeAllUsers")); + unittest.expect(queryMap["stripResults"].first, unittest.equals("$arg_stripResults")); var h = { @@ -1522,7 +1522,7 @@ var resp = convert.JSON.encode(buildListBreakpointsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_debuggeeId, clientVersion: arg_clientVersion, action_value: arg_action_value, includeAllUsers: arg_includeAllUsers, includeInactive: arg_includeInactive, stripResults: arg_stripResults, waitToken: arg_waitToken).then(unittest.expectAsync(((api.ListBreakpointsResponse response) { + res.list(arg_debuggeeId, waitToken: arg_waitToken, action_value: arg_action_value, clientVersion: arg_clientVersion, includeInactive: arg_includeInactive, includeAllUsers: arg_includeAllUsers, stripResults: arg_stripResults).then(unittest.expectAsync1(((api.ListBreakpointsResponse response) { checkListBreakpointsResponse(response); }))); }); @@ -1534,7 +1534,7 @@ var arg_request = buildBreakpoint(); var arg_debuggeeId = "foo"; var arg_clientVersion = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Breakpoint.fromJson(json); checkBreakpoint(obj); @@ -1579,7 +1579,7 @@ var resp = convert.JSON.encode(buildSetBreakpointResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.set(arg_request, arg_debuggeeId, clientVersion: arg_clientVersion).then(unittest.expectAsync(((api.SetBreakpointResponse response) { + res.set(arg_request, arg_debuggeeId, clientVersion: arg_clientVersion).then(unittest.expectAsync1(((api.SetBreakpointResponse response) { checkSetBreakpointResponse(response); }))); });
diff --git a/generated/googleapis/test/cloudfunctions/v1_test.dart b/generated/googleapis/test/cloudfunctions/v1_test.dart index 2c2edc0..886cd22 100644 --- a/generated/googleapis/test/cloudfunctions/v1_test.dart +++ b/generated/googleapis/test/cloudfunctions/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/cloudfunctions/v1.dart' as api; @@ -46,19 +46,19 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed97() { +buildUnnamed99() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed97(core.Map<core.String, core.Object> o) { +checkUnnamed99(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -69,7 +69,7 @@ var o = new api.OperationMetadataV1Beta2(); buildCounterOperationMetadataV1Beta2++; if (buildCounterOperationMetadataV1Beta2 < 3) { - o.request = buildUnnamed97(); + o.request = buildUnnamed99(); o.target = "foo"; o.type = "foo"; } @@ -80,7 +80,7 @@ checkOperationMetadataV1Beta2(api.OperationMetadataV1Beta2 o) { buildCounterOperationMetadataV1Beta2++; if (buildCounterOperationMetadataV1Beta2 < 3) { - checkUnnamed97(o.request); + checkUnnamed99(o.request); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); }
diff --git a/generated/googleapis/test/cloudkms/v1_test.dart b/generated/googleapis/test/cloudkms/v1_test.dart index 245cf31..7345ce7 100644 --- a/generated/googleapis/test/cloudkms/v1_test.dart +++ b/generated/googleapis/test/cloudkms/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/cloudkms/v1.dart' as api; @@ -46,32 +46,32 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1301() { +buildUnnamed1308() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed1301(core.List<api.AuditLogConfig> o) { +checkUnnamed1308(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); } -buildUnnamed1302() { +buildUnnamed1309() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1302(core.List<core.String> o) { +checkUnnamed1309(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -82,8 +82,8 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed1301(); - o.exemptedMembers = buildUnnamed1302(); + o.auditLogConfigs = buildUnnamed1308(); + o.exemptedMembers = buildUnnamed1309(); o.service = "foo"; } buildCounterAuditConfig--; @@ -93,21 +93,21 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed1301(o.auditLogConfigs); - checkUnnamed1302(o.exemptedMembers); + checkUnnamed1308(o.auditLogConfigs); + checkUnnamed1309(o.exemptedMembers); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed1303() { +buildUnnamed1310() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1303(core.List<core.String> o) { +checkUnnamed1310(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -118,7 +118,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed1303(); + o.exemptedMembers = buildUnnamed1310(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -128,20 +128,20 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed1303(o.exemptedMembers); + checkUnnamed1310(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed1304() { +buildUnnamed1311() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1304(core.List<core.String> o) { +checkUnnamed1311(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -152,7 +152,8 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed1304(); + o.condition = buildExpr(); + o.members = buildUnnamed1311(); o.role = "foo"; } buildCounterBinding--; @@ -162,7 +163,8 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed1304(o.members); + checkExpr(o.condition); + checkUnnamed1311(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -187,14 +189,14 @@ buildCounterCloudAuditOptions--; } -buildUnnamed1305() { +buildUnnamed1312() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1305(core.List<core.String> o) { +checkUnnamed1312(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -210,7 +212,7 @@ o.svc = "foo"; o.sys = "foo"; o.value = "foo"; - o.values = buildUnnamed1305(); + o.values = buildUnnamed1312(); } buildCounterCondition--; return o; @@ -224,7 +226,7 @@ unittest.expect(o.svc, unittest.equals('foo')); unittest.expect(o.sys, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); - checkUnnamed1305(o.values); + checkUnnamed1312(o.values); } buildCounterCondition--; } @@ -422,6 +424,31 @@ buildCounterEncryptResponse--; } +core.int buildCounterExpr = 0; +buildExpr() { + var o = new api.Expr(); + buildCounterExpr++; + if (buildCounterExpr < 3) { + o.description = "foo"; + o.expression = "foo"; + o.location = "foo"; + o.title = "foo"; + } + buildCounterExpr--; + return o; +} + +checkExpr(api.Expr o) { + buildCounterExpr++; + if (buildCounterExpr < 3) { + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.expression, unittest.equals('foo')); + unittest.expect(o.location, unittest.equals('foo')); + unittest.expect(o.title, unittest.equals('foo')); + } + buildCounterExpr--; +} + core.int buildCounterKeyRing = 0; buildKeyRing() { var o = new api.KeyRing(); @@ -443,14 +470,14 @@ buildCounterKeyRing--; } -buildUnnamed1306() { +buildUnnamed1313() { var o = new core.List<api.CryptoKeyVersion>(); o.add(buildCryptoKeyVersion()); o.add(buildCryptoKeyVersion()); return o; } -checkUnnamed1306(core.List<api.CryptoKeyVersion> o) { +checkUnnamed1313(core.List<api.CryptoKeyVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkCryptoKeyVersion(o[0]); checkCryptoKeyVersion(o[1]); @@ -461,7 +488,7 @@ var o = new api.ListCryptoKeyVersionsResponse(); buildCounterListCryptoKeyVersionsResponse++; if (buildCounterListCryptoKeyVersionsResponse < 3) { - o.cryptoKeyVersions = buildUnnamed1306(); + o.cryptoKeyVersions = buildUnnamed1313(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -472,21 +499,21 @@ checkListCryptoKeyVersionsResponse(api.ListCryptoKeyVersionsResponse o) { buildCounterListCryptoKeyVersionsResponse++; if (buildCounterListCryptoKeyVersionsResponse < 3) { - checkUnnamed1306(o.cryptoKeyVersions); + checkUnnamed1313(o.cryptoKeyVersions); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListCryptoKeyVersionsResponse--; } -buildUnnamed1307() { +buildUnnamed1314() { var o = new core.List<api.CryptoKey>(); o.add(buildCryptoKey()); o.add(buildCryptoKey()); return o; } -checkUnnamed1307(core.List<api.CryptoKey> o) { +checkUnnamed1314(core.List<api.CryptoKey> o) { unittest.expect(o, unittest.hasLength(2)); checkCryptoKey(o[0]); checkCryptoKey(o[1]); @@ -497,7 +524,7 @@ var o = new api.ListCryptoKeysResponse(); buildCounterListCryptoKeysResponse++; if (buildCounterListCryptoKeysResponse < 3) { - o.cryptoKeys = buildUnnamed1307(); + o.cryptoKeys = buildUnnamed1314(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -508,21 +535,21 @@ checkListCryptoKeysResponse(api.ListCryptoKeysResponse o) { buildCounterListCryptoKeysResponse++; if (buildCounterListCryptoKeysResponse < 3) { - checkUnnamed1307(o.cryptoKeys); + checkUnnamed1314(o.cryptoKeys); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListCryptoKeysResponse--; } -buildUnnamed1308() { +buildUnnamed1315() { var o = new core.List<api.KeyRing>(); o.add(buildKeyRing()); o.add(buildKeyRing()); return o; } -checkUnnamed1308(core.List<api.KeyRing> o) { +checkUnnamed1315(core.List<api.KeyRing> o) { unittest.expect(o, unittest.hasLength(2)); checkKeyRing(o[0]); checkKeyRing(o[1]); @@ -533,7 +560,7 @@ var o = new api.ListKeyRingsResponse(); buildCounterListKeyRingsResponse++; if (buildCounterListKeyRingsResponse < 3) { - o.keyRings = buildUnnamed1308(); + o.keyRings = buildUnnamed1315(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -544,21 +571,21 @@ checkListKeyRingsResponse(api.ListKeyRingsResponse o) { buildCounterListKeyRingsResponse++; if (buildCounterListKeyRingsResponse < 3) { - checkUnnamed1308(o.keyRings); + checkUnnamed1315(o.keyRings); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListKeyRingsResponse--; } -buildUnnamed1309() { +buildUnnamed1316() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed1309(core.List<api.Location> o) { +checkUnnamed1316(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -569,7 +596,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed1309(); + o.locations = buildUnnamed1316(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -579,33 +606,33 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed1309(o.locations); + checkUnnamed1316(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed1310() { +buildUnnamed1317() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1310(core.Map<core.String, core.String> o) { +checkUnnamed1317(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1311() { +buildUnnamed1318() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1311(core.Map<core.String, core.Object> o) { +checkUnnamed1318(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -616,9 +643,9 @@ var o = new api.Location(); buildCounterLocation++; if (buildCounterLocation < 3) { - o.labels = buildUnnamed1310(); + o.labels = buildUnnamed1317(); o.locationId = "foo"; - o.metadata = buildUnnamed1311(); + o.metadata = buildUnnamed1318(); o.name = "foo"; } buildCounterLocation--; @@ -628,9 +655,9 @@ checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { - checkUnnamed1310(o.labels); + checkUnnamed1317(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed1311(o.metadata); + checkUnnamed1318(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -659,40 +686,40 @@ buildCounterLogConfig--; } -buildUnnamed1312() { +buildUnnamed1319() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed1312(core.List<api.AuditConfig> o) { +checkUnnamed1319(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed1313() { +buildUnnamed1320() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1313(core.List<api.Binding> o) { +checkUnnamed1320(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); } -buildUnnamed1314() { +buildUnnamed1321() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed1314(core.List<api.Rule> o) { +checkUnnamed1321(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); @@ -703,11 +730,11 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed1312(); - o.bindings = buildUnnamed1313(); + o.auditConfigs = buildUnnamed1319(); + o.bindings = buildUnnamed1320(); o.etag = "foo"; o.iamOwned = true; - o.rules = buildUnnamed1314(); + o.rules = buildUnnamed1321(); o.version = 42; } buildCounterPolicy--; @@ -717,11 +744,11 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1312(o.auditConfigs); - checkUnnamed1313(o.bindings); + checkUnnamed1319(o.auditConfigs); + checkUnnamed1320(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.iamOwned, unittest.isTrue); - checkUnnamed1314(o.rules); + checkUnnamed1321(o.rules); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; @@ -744,66 +771,66 @@ buildCounterRestoreCryptoKeyVersionRequest--; } -buildUnnamed1315() { +buildUnnamed1322() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed1315(core.List<api.Condition> o) { +checkUnnamed1322(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed1316() { +buildUnnamed1323() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1316(core.List<core.String> o) { +checkUnnamed1323(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1317() { +buildUnnamed1324() { var o = new core.List<api.LogConfig>(); o.add(buildLogConfig()); o.add(buildLogConfig()); return o; } -checkUnnamed1317(core.List<api.LogConfig> o) { +checkUnnamed1324(core.List<api.LogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkLogConfig(o[0]); checkLogConfig(o[1]); } -buildUnnamed1318() { +buildUnnamed1325() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1318(core.List<core.String> o) { +checkUnnamed1325(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1319() { +buildUnnamed1326() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1319(core.List<core.String> o) { +checkUnnamed1326(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -815,12 +842,12 @@ buildCounterRule++; if (buildCounterRule < 3) { o.action = "foo"; - o.conditions = buildUnnamed1315(); + o.conditions = buildUnnamed1322(); o.description = "foo"; - o.in_ = buildUnnamed1316(); - o.logConfig = buildUnnamed1317(); - o.notIn = buildUnnamed1318(); - o.permissions = buildUnnamed1319(); + o.in_ = buildUnnamed1323(); + o.logConfig = buildUnnamed1324(); + o.notIn = buildUnnamed1325(); + o.permissions = buildUnnamed1326(); } buildCounterRule--; return o; @@ -830,12 +857,12 @@ buildCounterRule++; if (buildCounterRule < 3) { unittest.expect(o.action, unittest.equals('foo')); - checkUnnamed1315(o.conditions); + checkUnnamed1322(o.conditions); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1316(o.in_); - checkUnnamed1317(o.logConfig); - checkUnnamed1318(o.notIn); - checkUnnamed1319(o.permissions); + checkUnnamed1323(o.in_); + checkUnnamed1324(o.logConfig); + checkUnnamed1325(o.notIn); + checkUnnamed1326(o.permissions); } buildCounterRule--; } @@ -861,14 +888,14 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed1320() { +buildUnnamed1327() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1320(core.List<core.String> o) { +checkUnnamed1327(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -879,7 +906,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1320(); + o.permissions = buildUnnamed1327(); } buildCounterTestIamPermissionsRequest--; return o; @@ -888,19 +915,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1320(o.permissions); + checkUnnamed1327(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1321() { +buildUnnamed1328() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1321(core.List<core.String> o) { +checkUnnamed1328(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -911,7 +938,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1321(); + o.permissions = buildUnnamed1328(); } buildCounterTestIamPermissionsResponse--; return o; @@ -920,7 +947,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1321(o.permissions); + checkUnnamed1328(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -1072,6 +1099,15 @@ }); + unittest.group("obj-schema-Expr", () { + unittest.test("to-json--from-json", () { + var o = buildExpr(); + var od = new api.Expr.fromJson(o.toJson()); + checkExpr(od); + }); + }); + + unittest.group("obj-schema-KeyRing", () { unittest.test("to-json--from-json", () { var o = buildKeyRing(); @@ -1204,7 +1240,7 @@ var mock = new HttpServerMock(); api.ProjectsLocationsResourceApi res = new api.CloudkmsApi(mock).projects.locations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1239,7 +1275,7 @@ var resp = convert.JSON.encode(buildLocation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.Location response) { + res.get(arg_name).then(unittest.expectAsync1(((api.Location response) { checkLocation(response); }))); }); @@ -1249,10 +1285,10 @@ var mock = new HttpServerMock(); api.ProjectsLocationsResourceApi res = new api.CloudkmsApi(mock).projects.locations; var arg_name = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_filter = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1279,9 +1315,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -1290,7 +1326,7 @@ var resp = convert.JSON.encode(buildListLocationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListLocationsResponse response) { + res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListLocationsResponse response) { checkListLocationsResponse(response); }))); }); @@ -1306,7 +1342,7 @@ var arg_request = buildKeyRing(); var arg_parent = "foo"; var arg_keyRingId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.KeyRing.fromJson(json); checkKeyRing(obj); @@ -1345,7 +1381,7 @@ var resp = convert.JSON.encode(buildKeyRing()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_parent, keyRingId: arg_keyRingId).then(unittest.expectAsync(((api.KeyRing response) { + res.create(arg_request, arg_parent, keyRingId: arg_keyRingId).then(unittest.expectAsync1(((api.KeyRing response) { checkKeyRing(response); }))); }); @@ -1355,7 +1391,7 @@ var mock = new HttpServerMock(); api.ProjectsLocationsKeyRingsResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1390,7 +1426,7 @@ var resp = convert.JSON.encode(buildKeyRing()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.KeyRing response) { + res.get(arg_name).then(unittest.expectAsync1(((api.KeyRing response) { checkKeyRing(response); }))); }); @@ -1400,7 +1436,7 @@ var mock = new HttpServerMock(); api.ProjectsLocationsKeyRingsResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings; var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1435,7 +1471,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getIamPolicy(arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.getIamPolicy(arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -1447,7 +1483,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1484,7 +1520,7 @@ var resp = convert.JSON.encode(buildListKeyRingsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListKeyRingsResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListKeyRingsResponse response) { checkListKeyRingsResponse(response); }))); }); @@ -1495,7 +1531,7 @@ api.ProjectsLocationsKeyRingsResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings; var arg_request = buildSetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetIamPolicyRequest.fromJson(json); checkSetIamPolicyRequest(obj); @@ -1533,7 +1569,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -1544,7 +1580,7 @@ api.ProjectsLocationsKeyRingsResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings; var arg_request = buildTestIamPermissionsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TestIamPermissionsRequest.fromJson(json); checkTestIamPermissionsRequest(obj); @@ -1582,7 +1618,7 @@ var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { checkTestIamPermissionsResponse(response); }))); }); @@ -1598,7 +1634,7 @@ var arg_request = buildCryptoKey(); var arg_parent = "foo"; var arg_cryptoKeyId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CryptoKey.fromJson(json); checkCryptoKey(obj); @@ -1637,7 +1673,7 @@ var resp = convert.JSON.encode(buildCryptoKey()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_parent, cryptoKeyId: arg_cryptoKeyId).then(unittest.expectAsync(((api.CryptoKey response) { + res.create(arg_request, arg_parent, cryptoKeyId: arg_cryptoKeyId).then(unittest.expectAsync1(((api.CryptoKey response) { checkCryptoKey(response); }))); }); @@ -1648,7 +1684,7 @@ api.ProjectsLocationsKeyRingsCryptoKeysResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings.cryptoKeys; var arg_request = buildDecryptRequest(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DecryptRequest.fromJson(json); checkDecryptRequest(obj); @@ -1686,7 +1722,7 @@ var resp = convert.JSON.encode(buildDecryptResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.decrypt(arg_request, arg_name).then(unittest.expectAsync(((api.DecryptResponse response) { + res.decrypt(arg_request, arg_name).then(unittest.expectAsync1(((api.DecryptResponse response) { checkDecryptResponse(response); }))); }); @@ -1697,7 +1733,7 @@ api.ProjectsLocationsKeyRingsCryptoKeysResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings.cryptoKeys; var arg_request = buildEncryptRequest(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.EncryptRequest.fromJson(json); checkEncryptRequest(obj); @@ -1735,7 +1771,7 @@ var resp = convert.JSON.encode(buildEncryptResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.encrypt(arg_request, arg_name).then(unittest.expectAsync(((api.EncryptResponse response) { + res.encrypt(arg_request, arg_name).then(unittest.expectAsync1(((api.EncryptResponse response) { checkEncryptResponse(response); }))); }); @@ -1745,7 +1781,7 @@ var mock = new HttpServerMock(); api.ProjectsLocationsKeyRingsCryptoKeysResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings.cryptoKeys; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1780,7 +1816,7 @@ var resp = convert.JSON.encode(buildCryptoKey()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.CryptoKey response) { + res.get(arg_name).then(unittest.expectAsync1(((api.CryptoKey response) { checkCryptoKey(response); }))); }); @@ -1790,7 +1826,7 @@ var mock = new HttpServerMock(); api.ProjectsLocationsKeyRingsCryptoKeysResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings.cryptoKeys; var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1825,7 +1861,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getIamPolicy(arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.getIamPolicy(arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -1835,9 +1871,9 @@ var mock = new HttpServerMock(); api.ProjectsLocationsKeyRingsCryptoKeysResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings.cryptoKeys; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1864,8 +1900,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -1874,7 +1910,7 @@ var resp = convert.JSON.encode(buildListCryptoKeysResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListCryptoKeysResponse response) { + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListCryptoKeysResponse response) { checkListCryptoKeysResponse(response); }))); }); @@ -1886,7 +1922,7 @@ var arg_request = buildCryptoKey(); var arg_name = "foo"; var arg_updateMask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CryptoKey.fromJson(json); checkCryptoKey(obj); @@ -1925,7 +1961,7 @@ var resp = convert.JSON.encode(buildCryptoKey()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_name, updateMask: arg_updateMask).then(unittest.expectAsync(((api.CryptoKey response) { + res.patch(arg_request, arg_name, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.CryptoKey response) { checkCryptoKey(response); }))); }); @@ -1936,7 +1972,7 @@ api.ProjectsLocationsKeyRingsCryptoKeysResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings.cryptoKeys; var arg_request = buildSetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetIamPolicyRequest.fromJson(json); checkSetIamPolicyRequest(obj); @@ -1974,7 +2010,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -1985,7 +2021,7 @@ api.ProjectsLocationsKeyRingsCryptoKeysResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings.cryptoKeys; var arg_request = buildTestIamPermissionsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TestIamPermissionsRequest.fromJson(json); checkTestIamPermissionsRequest(obj); @@ -2023,7 +2059,7 @@ var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { checkTestIamPermissionsResponse(response); }))); }); @@ -2034,7 +2070,7 @@ api.ProjectsLocationsKeyRingsCryptoKeysResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings.cryptoKeys; var arg_request = buildUpdateCryptoKeyPrimaryVersionRequest(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UpdateCryptoKeyPrimaryVersionRequest.fromJson(json); checkUpdateCryptoKeyPrimaryVersionRequest(obj); @@ -2072,7 +2108,7 @@ var resp = convert.JSON.encode(buildCryptoKey()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.updatePrimaryVersion(arg_request, arg_name).then(unittest.expectAsync(((api.CryptoKey response) { + res.updatePrimaryVersion(arg_request, arg_name).then(unittest.expectAsync1(((api.CryptoKey response) { checkCryptoKey(response); }))); }); @@ -2087,7 +2123,7 @@ api.ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings.cryptoKeys.cryptoKeyVersions; var arg_request = buildCryptoKeyVersion(); var arg_parent = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CryptoKeyVersion.fromJson(json); checkCryptoKeyVersion(obj); @@ -2125,7 +2161,7 @@ var resp = convert.JSON.encode(buildCryptoKeyVersion()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_parent).then(unittest.expectAsync(((api.CryptoKeyVersion response) { + res.create(arg_request, arg_parent).then(unittest.expectAsync1(((api.CryptoKeyVersion response) { checkCryptoKeyVersion(response); }))); }); @@ -2136,7 +2172,7 @@ api.ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings.cryptoKeys.cryptoKeyVersions; var arg_request = buildDestroyCryptoKeyVersionRequest(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DestroyCryptoKeyVersionRequest.fromJson(json); checkDestroyCryptoKeyVersionRequest(obj); @@ -2174,7 +2210,7 @@ var resp = convert.JSON.encode(buildCryptoKeyVersion()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.destroy(arg_request, arg_name).then(unittest.expectAsync(((api.CryptoKeyVersion response) { + res.destroy(arg_request, arg_name).then(unittest.expectAsync1(((api.CryptoKeyVersion response) { checkCryptoKeyVersion(response); }))); }); @@ -2184,7 +2220,7 @@ var mock = new HttpServerMock(); api.ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings.cryptoKeys.cryptoKeyVersions; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2219,7 +2255,7 @@ var resp = convert.JSON.encode(buildCryptoKeyVersion()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.CryptoKeyVersion response) { + res.get(arg_name).then(unittest.expectAsync1(((api.CryptoKeyVersion response) { checkCryptoKeyVersion(response); }))); }); @@ -2231,7 +2267,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2268,7 +2304,7 @@ var resp = convert.JSON.encode(buildListCryptoKeyVersionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListCryptoKeyVersionsResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListCryptoKeyVersionsResponse response) { checkListCryptoKeyVersionsResponse(response); }))); }); @@ -2280,7 +2316,7 @@ var arg_request = buildCryptoKeyVersion(); var arg_name = "foo"; var arg_updateMask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CryptoKeyVersion.fromJson(json); checkCryptoKeyVersion(obj); @@ -2319,7 +2355,7 @@ var resp = convert.JSON.encode(buildCryptoKeyVersion()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_name, updateMask: arg_updateMask).then(unittest.expectAsync(((api.CryptoKeyVersion response) { + res.patch(arg_request, arg_name, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.CryptoKeyVersion response) { checkCryptoKeyVersion(response); }))); }); @@ -2330,7 +2366,7 @@ api.ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings.cryptoKeys.cryptoKeyVersions; var arg_request = buildRestoreCryptoKeyVersionRequest(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RestoreCryptoKeyVersionRequest.fromJson(json); checkRestoreCryptoKeyVersionRequest(obj); @@ -2368,7 +2404,7 @@ var resp = convert.JSON.encode(buildCryptoKeyVersion()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.restore(arg_request, arg_name).then(unittest.expectAsync(((api.CryptoKeyVersion response) { + res.restore(arg_request, arg_name).then(unittest.expectAsync1(((api.CryptoKeyVersion response) { checkCryptoKeyVersion(response); }))); });
diff --git a/generated/googleapis/test/cloudresourcemanager/v1_test.dart b/generated/googleapis/test/cloudresourcemanager/v1_test.dart index 4d101b8..3b6bc00 100644 --- a/generated/googleapis/test/cloudresourcemanager/v1_test.dart +++ b/generated/googleapis/test/cloudresourcemanager/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/cloudresourcemanager/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -70,14 +70,14 @@ buildCounterAncestor--; } -buildUnnamed1689() { +buildUnnamed1699() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed1689(core.List<api.AuditLogConfig> o) { +checkUnnamed1699(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -88,7 +88,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed1689(); + o.auditLogConfigs = buildUnnamed1699(); o.service = "foo"; } buildCounterAuditConfig--; @@ -98,20 +98,20 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed1689(o.auditLogConfigs); + checkUnnamed1699(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed1690() { +buildUnnamed1700() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1690(core.List<core.String> o) { +checkUnnamed1700(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -122,7 +122,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed1690(); + o.exemptedMembers = buildUnnamed1700(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -132,20 +132,20 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed1690(o.exemptedMembers); + checkUnnamed1700(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed1691() { +buildUnnamed1701() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1691(core.List<core.String> o) { +checkUnnamed1701(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -156,7 +156,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed1691(); + o.members = buildUnnamed1701(); o.role = "foo"; } buildCounterBinding--; @@ -166,7 +166,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed1691(o.members); + checkUnnamed1701(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -338,14 +338,14 @@ buildCounterGetAncestryRequest--; } -buildUnnamed1692() { +buildUnnamed1702() { var o = new core.List<api.Ancestor>(); o.add(buildAncestor()); o.add(buildAncestor()); return o; } -checkUnnamed1692(core.List<api.Ancestor> o) { +checkUnnamed1702(core.List<api.Ancestor> o) { unittest.expect(o, unittest.hasLength(2)); checkAncestor(o[0]); checkAncestor(o[1]); @@ -356,7 +356,7 @@ var o = new api.GetAncestryResponse(); buildCounterGetAncestryResponse++; if (buildCounterGetAncestryResponse < 3) { - o.ancestor = buildUnnamed1692(); + o.ancestor = buildUnnamed1702(); } buildCounterGetAncestryResponse--; return o; @@ -365,7 +365,7 @@ checkGetAncestryResponse(api.GetAncestryResponse o) { buildCounterGetAncestryResponse++; if (buildCounterGetAncestryResponse < 3) { - checkUnnamed1692(o.ancestor); + checkUnnamed1702(o.ancestor); } buildCounterGetAncestryResponse--; } @@ -425,14 +425,14 @@ buildCounterGetOrgPolicyRequest--; } -buildUnnamed1693() { +buildUnnamed1703() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1693(core.List<core.String> o) { +checkUnnamed1703(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -448,7 +448,7 @@ o.origin = "foo"; o.parent = "foo"; o.reason = "foo"; - o.restrictions = buildUnnamed1693(); + o.restrictions = buildUnnamed1703(); } buildCounterLien--; return o; @@ -462,7 +462,7 @@ unittest.expect(o.origin, unittest.equals('foo')); unittest.expect(o.parent, unittest.equals('foo')); unittest.expect(o.reason, unittest.equals('foo')); - checkUnnamed1693(o.restrictions); + checkUnnamed1703(o.restrictions); } buildCounterLien--; } @@ -488,14 +488,14 @@ buildCounterListAvailableOrgPolicyConstraintsRequest--; } -buildUnnamed1694() { +buildUnnamed1704() { var o = new core.List<api.Constraint>(); o.add(buildConstraint()); o.add(buildConstraint()); return o; } -checkUnnamed1694(core.List<api.Constraint> o) { +checkUnnamed1704(core.List<api.Constraint> o) { unittest.expect(o, unittest.hasLength(2)); checkConstraint(o[0]); checkConstraint(o[1]); @@ -506,7 +506,7 @@ var o = new api.ListAvailableOrgPolicyConstraintsResponse(); buildCounterListAvailableOrgPolicyConstraintsResponse++; if (buildCounterListAvailableOrgPolicyConstraintsResponse < 3) { - o.constraints = buildUnnamed1694(); + o.constraints = buildUnnamed1704(); o.nextPageToken = "foo"; } buildCounterListAvailableOrgPolicyConstraintsResponse--; @@ -516,7 +516,7 @@ checkListAvailableOrgPolicyConstraintsResponse(api.ListAvailableOrgPolicyConstraintsResponse o) { buildCounterListAvailableOrgPolicyConstraintsResponse++; if (buildCounterListAvailableOrgPolicyConstraintsResponse < 3) { - checkUnnamed1694(o.constraints); + checkUnnamed1704(o.constraints); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListAvailableOrgPolicyConstraintsResponse--; @@ -541,14 +541,14 @@ buildCounterListConstraint--; } -buildUnnamed1695() { +buildUnnamed1705() { var o = new core.List<api.Lien>(); o.add(buildLien()); o.add(buildLien()); return o; } -checkUnnamed1695(core.List<api.Lien> o) { +checkUnnamed1705(core.List<api.Lien> o) { unittest.expect(o, unittest.hasLength(2)); checkLien(o[0]); checkLien(o[1]); @@ -559,7 +559,7 @@ var o = new api.ListLiensResponse(); buildCounterListLiensResponse++; if (buildCounterListLiensResponse < 3) { - o.liens = buildUnnamed1695(); + o.liens = buildUnnamed1705(); o.nextPageToken = "foo"; } buildCounterListLiensResponse--; @@ -569,7 +569,7 @@ checkListLiensResponse(api.ListLiensResponse o) { buildCounterListLiensResponse++; if (buildCounterListLiensResponse < 3) { - checkUnnamed1695(o.liens); + checkUnnamed1705(o.liens); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLiensResponse--; @@ -596,14 +596,14 @@ buildCounterListOrgPoliciesRequest--; } -buildUnnamed1696() { +buildUnnamed1706() { var o = new core.List<api.OrgPolicy>(); o.add(buildOrgPolicy()); o.add(buildOrgPolicy()); return o; } -checkUnnamed1696(core.List<api.OrgPolicy> o) { +checkUnnamed1706(core.List<api.OrgPolicy> o) { unittest.expect(o, unittest.hasLength(2)); checkOrgPolicy(o[0]); checkOrgPolicy(o[1]); @@ -615,7 +615,7 @@ buildCounterListOrgPoliciesResponse++; if (buildCounterListOrgPoliciesResponse < 3) { o.nextPageToken = "foo"; - o.policies = buildUnnamed1696(); + o.policies = buildUnnamed1706(); } buildCounterListOrgPoliciesResponse--; return o; @@ -625,32 +625,32 @@ buildCounterListOrgPoliciesResponse++; if (buildCounterListOrgPoliciesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1696(o.policies); + checkUnnamed1706(o.policies); } buildCounterListOrgPoliciesResponse--; } -buildUnnamed1697() { +buildUnnamed1707() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1697(core.List<core.String> o) { +checkUnnamed1707(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1698() { +buildUnnamed1708() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1698(core.List<core.String> o) { +checkUnnamed1708(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -662,8 +662,8 @@ buildCounterListPolicy++; if (buildCounterListPolicy < 3) { o.allValues = "foo"; - o.allowedValues = buildUnnamed1697(); - o.deniedValues = buildUnnamed1698(); + o.allowedValues = buildUnnamed1707(); + o.deniedValues = buildUnnamed1708(); o.inheritFromParent = true; o.suggestedValue = "foo"; } @@ -675,22 +675,22 @@ buildCounterListPolicy++; if (buildCounterListPolicy < 3) { unittest.expect(o.allValues, unittest.equals('foo')); - checkUnnamed1697(o.allowedValues); - checkUnnamed1698(o.deniedValues); + checkUnnamed1707(o.allowedValues); + checkUnnamed1708(o.deniedValues); unittest.expect(o.inheritFromParent, unittest.isTrue); unittest.expect(o.suggestedValue, unittest.equals('foo')); } buildCounterListPolicy--; } -buildUnnamed1699() { +buildUnnamed1709() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed1699(core.List<api.Project> o) { +checkUnnamed1709(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -702,7 +702,7 @@ buildCounterListProjectsResponse++; if (buildCounterListProjectsResponse < 3) { o.nextPageToken = "foo"; - o.projects = buildUnnamed1699(); + o.projects = buildUnnamed1709(); } buildCounterListProjectsResponse--; return o; @@ -712,32 +712,32 @@ buildCounterListProjectsResponse++; if (buildCounterListProjectsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1699(o.projects); + checkUnnamed1709(o.projects); } buildCounterListProjectsResponse--; } -buildUnnamed1700() { +buildUnnamed1710() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1700(core.Map<core.String, core.Object> o) { +checkUnnamed1710(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1701() { +buildUnnamed1711() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1701(core.Map<core.String, core.Object> o) { +checkUnnamed1711(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -750,9 +750,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1700(); + o.metadata = buildUnnamed1710(); o.name = "foo"; - o.response = buildUnnamed1701(); + o.response = buildUnnamed1711(); } buildCounterOperation--; return o; @@ -763,9 +763,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1700(o.metadata); + checkUnnamed1710(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1701(o.response); + checkUnnamed1711(o.response); } buildCounterOperation--; } @@ -847,27 +847,27 @@ buildCounterOrganizationOwner--; } -buildUnnamed1702() { +buildUnnamed1712() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed1702(core.List<api.AuditConfig> o) { +checkUnnamed1712(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed1703() { +buildUnnamed1713() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1703(core.List<api.Binding> o) { +checkUnnamed1713(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -878,8 +878,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed1702(); - o.bindings = buildUnnamed1703(); + o.auditConfigs = buildUnnamed1712(); + o.bindings = buildUnnamed1713(); o.etag = "foo"; o.version = 42; } @@ -890,22 +890,22 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1702(o.auditConfigs); - checkUnnamed1703(o.bindings); + checkUnnamed1712(o.auditConfigs); + checkUnnamed1713(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed1704() { +buildUnnamed1714() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1704(core.Map<core.String, core.String> o) { +checkUnnamed1714(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -917,7 +917,7 @@ buildCounterProject++; if (buildCounterProject < 3) { o.createTime = "foo"; - o.labels = buildUnnamed1704(); + o.labels = buildUnnamed1714(); o.lifecycleState = "foo"; o.name = "foo"; o.parent = buildResourceId(); @@ -932,7 +932,7 @@ buildCounterProject++; if (buildCounterProject < 3) { unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed1704(o.labels); + checkUnnamed1714(o.labels); unittest.expect(o.lifecycleState, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkResourceId(o.parent); @@ -1026,14 +1026,14 @@ buildCounterSearchOrganizationsRequest--; } -buildUnnamed1705() { +buildUnnamed1715() { var o = new core.List<api.Organization>(); o.add(buildOrganization()); o.add(buildOrganization()); return o; } -checkUnnamed1705(core.List<api.Organization> o) { +checkUnnamed1715(core.List<api.Organization> o) { unittest.expect(o, unittest.hasLength(2)); checkOrganization(o[0]); checkOrganization(o[1]); @@ -1045,7 +1045,7 @@ buildCounterSearchOrganizationsResponse++; if (buildCounterSearchOrganizationsResponse < 3) { o.nextPageToken = "foo"; - o.organizations = buildUnnamed1705(); + o.organizations = buildUnnamed1715(); } buildCounterSearchOrganizationsResponse--; return o; @@ -1055,7 +1055,7 @@ buildCounterSearchOrganizationsResponse++; if (buildCounterSearchOrganizationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1705(o.organizations); + checkUnnamed1715(o.organizations); } buildCounterSearchOrganizationsResponse--; } @@ -1100,30 +1100,30 @@ buildCounterSetOrgPolicyRequest--; } -buildUnnamed1706() { +buildUnnamed1716() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1706(core.Map<core.String, core.Object> o) { +checkUnnamed1716(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1707() { +buildUnnamed1717() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1706()); - o.add(buildUnnamed1706()); + o.add(buildUnnamed1716()); + o.add(buildUnnamed1716()); return o; } -checkUnnamed1707(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1717(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1706(o[0]); - checkUnnamed1706(o[1]); + checkUnnamed1716(o[0]); + checkUnnamed1716(o[1]); } core.int buildCounterStatus = 0; @@ -1132,7 +1132,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1707(); + o.details = buildUnnamed1717(); o.message = "foo"; } buildCounterStatus--; @@ -1143,20 +1143,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1707(o.details); + checkUnnamed1717(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed1708() { +buildUnnamed1718() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1708(core.List<core.String> o) { +checkUnnamed1718(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1167,7 +1167,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1708(); + o.permissions = buildUnnamed1718(); } buildCounterTestIamPermissionsRequest--; return o; @@ -1176,19 +1176,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1708(o.permissions); + checkUnnamed1718(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1709() { +buildUnnamed1719() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1709(core.List<core.String> o) { +checkUnnamed1719(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1199,7 +1199,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1709(); + o.permissions = buildUnnamed1719(); } buildCounterTestIamPermissionsResponse--; return o; @@ -1208,7 +1208,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1709(o.permissions); + checkUnnamed1719(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -1617,7 +1617,7 @@ api.FoldersResourceApi res = new api.CloudresourcemanagerApi(mock).folders; var arg_request = buildClearOrgPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ClearOrgPolicyRequest.fromJson(json); checkClearOrgPolicyRequest(obj); @@ -1655,7 +1655,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.clearOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Empty response) { + res.clearOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1666,7 +1666,7 @@ api.FoldersResourceApi res = new api.CloudresourcemanagerApi(mock).folders; var arg_request = buildGetEffectiveOrgPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GetEffectiveOrgPolicyRequest.fromJson(json); checkGetEffectiveOrgPolicyRequest(obj); @@ -1704,7 +1704,7 @@ var resp = convert.JSON.encode(buildOrgPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getEffectiveOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.OrgPolicy response) { + res.getEffectiveOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.OrgPolicy response) { checkOrgPolicy(response); }))); }); @@ -1715,7 +1715,7 @@ api.FoldersResourceApi res = new api.CloudresourcemanagerApi(mock).folders; var arg_request = buildGetOrgPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GetOrgPolicyRequest.fromJson(json); checkGetOrgPolicyRequest(obj); @@ -1753,7 +1753,7 @@ var resp = convert.JSON.encode(buildOrgPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.OrgPolicy response) { + res.getOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.OrgPolicy response) { checkOrgPolicy(response); }))); }); @@ -1764,7 +1764,7 @@ api.FoldersResourceApi res = new api.CloudresourcemanagerApi(mock).folders; var arg_request = buildListAvailableOrgPolicyConstraintsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ListAvailableOrgPolicyConstraintsRequest.fromJson(json); checkListAvailableOrgPolicyConstraintsRequest(obj); @@ -1802,7 +1802,7 @@ var resp = convert.JSON.encode(buildListAvailableOrgPolicyConstraintsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listAvailableOrgPolicyConstraints(arg_request, arg_resource).then(unittest.expectAsync(((api.ListAvailableOrgPolicyConstraintsResponse response) { + res.listAvailableOrgPolicyConstraints(arg_request, arg_resource).then(unittest.expectAsync1(((api.ListAvailableOrgPolicyConstraintsResponse response) { checkListAvailableOrgPolicyConstraintsResponse(response); }))); }); @@ -1813,7 +1813,7 @@ api.FoldersResourceApi res = new api.CloudresourcemanagerApi(mock).folders; var arg_request = buildListOrgPoliciesRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ListOrgPoliciesRequest.fromJson(json); checkListOrgPoliciesRequest(obj); @@ -1851,7 +1851,7 @@ var resp = convert.JSON.encode(buildListOrgPoliciesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listOrgPolicies(arg_request, arg_resource).then(unittest.expectAsync(((api.ListOrgPoliciesResponse response) { + res.listOrgPolicies(arg_request, arg_resource).then(unittest.expectAsync1(((api.ListOrgPoliciesResponse response) { checkListOrgPoliciesResponse(response); }))); }); @@ -1862,7 +1862,7 @@ api.FoldersResourceApi res = new api.CloudresourcemanagerApi(mock).folders; var arg_request = buildSetOrgPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetOrgPolicyRequest.fromJson(json); checkSetOrgPolicyRequest(obj); @@ -1900,7 +1900,7 @@ var resp = convert.JSON.encode(buildOrgPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.OrgPolicy response) { + res.setOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.OrgPolicy response) { checkOrgPolicy(response); }))); }); @@ -1914,7 +1914,7 @@ var mock = new HttpServerMock(); api.LiensResourceApi res = new api.CloudresourcemanagerApi(mock).liens; var arg_request = buildLien(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Lien.fromJson(json); checkLien(obj); @@ -1951,7 +1951,7 @@ var resp = convert.JSON.encode(buildLien()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request).then(unittest.expectAsync(((api.Lien response) { + res.create(arg_request).then(unittest.expectAsync1(((api.Lien response) { checkLien(response); }))); }); @@ -1961,7 +1961,7 @@ var mock = new HttpServerMock(); api.LiensResourceApi res = new api.CloudresourcemanagerApi(mock).liens; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1996,7 +1996,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -2008,7 +2008,7 @@ var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_parent = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2045,7 +2045,7 @@ var resp = convert.JSON.encode(buildListLiensResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(pageToken: arg_pageToken, pageSize: arg_pageSize, parent: arg_parent).then(unittest.expectAsync(((api.ListLiensResponse response) { + res.list(pageToken: arg_pageToken, pageSize: arg_pageSize, parent: arg_parent).then(unittest.expectAsync1(((api.ListLiensResponse response) { checkListLiensResponse(response); }))); }); @@ -2059,7 +2059,7 @@ var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.CloudresourcemanagerApi(mock).operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2094,7 +2094,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2109,7 +2109,7 @@ api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; var arg_request = buildClearOrgPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ClearOrgPolicyRequest.fromJson(json); checkClearOrgPolicyRequest(obj); @@ -2147,7 +2147,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.clearOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Empty response) { + res.clearOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -2157,7 +2157,7 @@ var mock = new HttpServerMock(); api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2192,7 +2192,7 @@ var resp = convert.JSON.encode(buildOrganization()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.Organization response) { + res.get(arg_name).then(unittest.expectAsync1(((api.Organization response) { checkOrganization(response); }))); }); @@ -2203,7 +2203,7 @@ api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; var arg_request = buildGetEffectiveOrgPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GetEffectiveOrgPolicyRequest.fromJson(json); checkGetEffectiveOrgPolicyRequest(obj); @@ -2241,7 +2241,7 @@ var resp = convert.JSON.encode(buildOrgPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getEffectiveOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.OrgPolicy response) { + res.getEffectiveOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.OrgPolicy response) { checkOrgPolicy(response); }))); }); @@ -2252,7 +2252,7 @@ api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; var arg_request = buildGetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GetIamPolicyRequest.fromJson(json); checkGetIamPolicyRequest(obj); @@ -2290,7 +2290,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -2301,7 +2301,7 @@ api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; var arg_request = buildGetOrgPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GetOrgPolicyRequest.fromJson(json); checkGetOrgPolicyRequest(obj); @@ -2339,7 +2339,7 @@ var resp = convert.JSON.encode(buildOrgPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.OrgPolicy response) { + res.getOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.OrgPolicy response) { checkOrgPolicy(response); }))); }); @@ -2350,7 +2350,7 @@ api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; var arg_request = buildListAvailableOrgPolicyConstraintsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ListAvailableOrgPolicyConstraintsRequest.fromJson(json); checkListAvailableOrgPolicyConstraintsRequest(obj); @@ -2388,7 +2388,7 @@ var resp = convert.JSON.encode(buildListAvailableOrgPolicyConstraintsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listAvailableOrgPolicyConstraints(arg_request, arg_resource).then(unittest.expectAsync(((api.ListAvailableOrgPolicyConstraintsResponse response) { + res.listAvailableOrgPolicyConstraints(arg_request, arg_resource).then(unittest.expectAsync1(((api.ListAvailableOrgPolicyConstraintsResponse response) { checkListAvailableOrgPolicyConstraintsResponse(response); }))); }); @@ -2399,7 +2399,7 @@ api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; var arg_request = buildListOrgPoliciesRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ListOrgPoliciesRequest.fromJson(json); checkListOrgPoliciesRequest(obj); @@ -2437,7 +2437,7 @@ var resp = convert.JSON.encode(buildListOrgPoliciesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listOrgPolicies(arg_request, arg_resource).then(unittest.expectAsync(((api.ListOrgPoliciesResponse response) { + res.listOrgPolicies(arg_request, arg_resource).then(unittest.expectAsync1(((api.ListOrgPoliciesResponse response) { checkListOrgPoliciesResponse(response); }))); }); @@ -2447,7 +2447,7 @@ var mock = new HttpServerMock(); api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; var arg_request = buildSearchOrganizationsRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SearchOrganizationsRequest.fromJson(json); checkSearchOrganizationsRequest(obj); @@ -2484,7 +2484,7 @@ var resp = convert.JSON.encode(buildSearchOrganizationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.search(arg_request).then(unittest.expectAsync(((api.SearchOrganizationsResponse response) { + res.search(arg_request).then(unittest.expectAsync1(((api.SearchOrganizationsResponse response) { checkSearchOrganizationsResponse(response); }))); }); @@ -2495,7 +2495,7 @@ api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; var arg_request = buildSetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetIamPolicyRequest.fromJson(json); checkSetIamPolicyRequest(obj); @@ -2533,7 +2533,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -2544,7 +2544,7 @@ api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; var arg_request = buildSetOrgPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetOrgPolicyRequest.fromJson(json); checkSetOrgPolicyRequest(obj); @@ -2582,7 +2582,7 @@ var resp = convert.JSON.encode(buildOrgPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.OrgPolicy response) { + res.setOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.OrgPolicy response) { checkOrgPolicy(response); }))); }); @@ -2593,7 +2593,7 @@ api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; var arg_request = buildTestIamPermissionsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TestIamPermissionsRequest.fromJson(json); checkTestIamPermissionsRequest(obj); @@ -2631,7 +2631,7 @@ var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { checkTestIamPermissionsResponse(response); }))); }); @@ -2646,7 +2646,7 @@ api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_request = buildClearOrgPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ClearOrgPolicyRequest.fromJson(json); checkClearOrgPolicyRequest(obj); @@ -2684,7 +2684,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.clearOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Empty response) { + res.clearOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -2694,7 +2694,7 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_request = buildProject(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Project.fromJson(json); checkProject(obj); @@ -2731,7 +2731,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request).then(unittest.expectAsync(((api.Operation response) { + res.create(arg_request).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2741,7 +2741,7 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2778,7 +2778,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_projectId).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_projectId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -2788,7 +2788,7 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2825,7 +2825,7 @@ var resp = convert.JSON.encode(buildProject()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_projectId).then(unittest.expectAsync(((api.Project response) { + res.get(arg_projectId).then(unittest.expectAsync1(((api.Project response) { checkProject(response); }))); }); @@ -2836,7 +2836,7 @@ api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_request = buildGetAncestryRequest(); var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GetAncestryRequest.fromJson(json); checkGetAncestryRequest(obj); @@ -2880,7 +2880,7 @@ var resp = convert.JSON.encode(buildGetAncestryResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getAncestry(arg_request, arg_projectId).then(unittest.expectAsync(((api.GetAncestryResponse response) { + res.getAncestry(arg_request, arg_projectId).then(unittest.expectAsync1(((api.GetAncestryResponse response) { checkGetAncestryResponse(response); }))); }); @@ -2891,7 +2891,7 @@ api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_request = buildGetEffectiveOrgPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GetEffectiveOrgPolicyRequest.fromJson(json); checkGetEffectiveOrgPolicyRequest(obj); @@ -2929,7 +2929,7 @@ var resp = convert.JSON.encode(buildOrgPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getEffectiveOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.OrgPolicy response) { + res.getEffectiveOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.OrgPolicy response) { checkOrgPolicy(response); }))); }); @@ -2940,7 +2940,7 @@ api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_request = buildGetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GetIamPolicyRequest.fromJson(json); checkGetIamPolicyRequest(obj); @@ -2984,7 +2984,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -2995,7 +2995,7 @@ api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_request = buildGetOrgPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GetOrgPolicyRequest.fromJson(json); checkGetOrgPolicyRequest(obj); @@ -3033,7 +3033,7 @@ var resp = convert.JSON.encode(buildOrgPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.OrgPolicy response) { + res.getOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.OrgPolicy response) { checkOrgPolicy(response); }))); }); @@ -3045,7 +3045,7 @@ var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_filter = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3082,7 +3082,7 @@ var resp = convert.JSON.encode(buildListProjectsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListProjectsResponse response) { + res.list(pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListProjectsResponse response) { checkListProjectsResponse(response); }))); }); @@ -3093,7 +3093,7 @@ api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_request = buildListAvailableOrgPolicyConstraintsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ListAvailableOrgPolicyConstraintsRequest.fromJson(json); checkListAvailableOrgPolicyConstraintsRequest(obj); @@ -3131,7 +3131,7 @@ var resp = convert.JSON.encode(buildListAvailableOrgPolicyConstraintsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listAvailableOrgPolicyConstraints(arg_request, arg_resource).then(unittest.expectAsync(((api.ListAvailableOrgPolicyConstraintsResponse response) { + res.listAvailableOrgPolicyConstraints(arg_request, arg_resource).then(unittest.expectAsync1(((api.ListAvailableOrgPolicyConstraintsResponse response) { checkListAvailableOrgPolicyConstraintsResponse(response); }))); }); @@ -3142,7 +3142,7 @@ api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_request = buildListOrgPoliciesRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ListOrgPoliciesRequest.fromJson(json); checkListOrgPoliciesRequest(obj); @@ -3180,7 +3180,7 @@ var resp = convert.JSON.encode(buildListOrgPoliciesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listOrgPolicies(arg_request, arg_resource).then(unittest.expectAsync(((api.ListOrgPoliciesResponse response) { + res.listOrgPolicies(arg_request, arg_resource).then(unittest.expectAsync1(((api.ListOrgPoliciesResponse response) { checkListOrgPoliciesResponse(response); }))); }); @@ -3191,7 +3191,7 @@ api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_request = buildSetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetIamPolicyRequest.fromJson(json); checkSetIamPolicyRequest(obj); @@ -3235,7 +3235,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -3246,7 +3246,7 @@ api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_request = buildSetOrgPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetOrgPolicyRequest.fromJson(json); checkSetOrgPolicyRequest(obj); @@ -3284,7 +3284,7 @@ var resp = convert.JSON.encode(buildOrgPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.OrgPolicy response) { + res.setOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.OrgPolicy response) { checkOrgPolicy(response); }))); }); @@ -3295,7 +3295,7 @@ api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_request = buildTestIamPermissionsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TestIamPermissionsRequest.fromJson(json); checkTestIamPermissionsRequest(obj); @@ -3339,7 +3339,7 @@ var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { checkTestIamPermissionsResponse(response); }))); }); @@ -3350,7 +3350,7 @@ api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_request = buildUndeleteProjectRequest(); var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UndeleteProjectRequest.fromJson(json); checkUndeleteProjectRequest(obj); @@ -3394,7 +3394,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.undelete(arg_request, arg_projectId).then(unittest.expectAsync(((api.Empty response) { + res.undelete(arg_request, arg_projectId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -3405,7 +3405,7 @@ api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_request = buildProject(); var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Project.fromJson(json); checkProject(obj); @@ -3445,7 +3445,7 @@ var resp = convert.JSON.encode(buildProject()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_projectId).then(unittest.expectAsync(((api.Project response) { + res.update(arg_request, arg_projectId).then(unittest.expectAsync1(((api.Project response) { checkProject(response); }))); });
diff --git a/generated/googleapis/test/cloudtrace/v1_test.dart b/generated/googleapis/test/cloudtrace/v1_test.dart index 1d6bae0..350bb40 100644 --- a/generated/googleapis/test/cloudtrace/v1_test.dart +++ b/generated/googleapis/test/cloudtrace/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/cloudtrace/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -68,14 +68,14 @@ buildCounterEmpty--; } -buildUnnamed153() { +buildUnnamed155() { var o = new core.List<api.Trace>(); o.add(buildTrace()); o.add(buildTrace()); return o; } -checkUnnamed153(core.List<api.Trace> o) { +checkUnnamed155(core.List<api.Trace> o) { unittest.expect(o, unittest.hasLength(2)); checkTrace(o[0]); checkTrace(o[1]); @@ -87,7 +87,7 @@ buildCounterListTracesResponse++; if (buildCounterListTracesResponse < 3) { o.nextPageToken = "foo"; - o.traces = buildUnnamed153(); + o.traces = buildUnnamed155(); } buildCounterListTracesResponse--; return o; @@ -97,19 +97,19 @@ buildCounterListTracesResponse++; if (buildCounterListTracesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed153(o.traces); + checkUnnamed155(o.traces); } buildCounterListTracesResponse--; } -buildUnnamed154() { +buildUnnamed156() { var o = new core.List<api.TraceSpan>(); o.add(buildTraceSpan()); o.add(buildTraceSpan()); return o; } -checkUnnamed154(core.List<api.TraceSpan> o) { +checkUnnamed156(core.List<api.TraceSpan> o) { unittest.expect(o, unittest.hasLength(2)); checkTraceSpan(o[0]); checkTraceSpan(o[1]); @@ -121,7 +121,7 @@ buildCounterTrace++; if (buildCounterTrace < 3) { o.projectId = "foo"; - o.spans = buildUnnamed154(); + o.spans = buildUnnamed156(); o.traceId = "foo"; } buildCounterTrace--; @@ -132,20 +132,20 @@ buildCounterTrace++; if (buildCounterTrace < 3) { unittest.expect(o.projectId, unittest.equals('foo')); - checkUnnamed154(o.spans); + checkUnnamed156(o.spans); unittest.expect(o.traceId, unittest.equals('foo')); } buildCounterTrace--; } -buildUnnamed155() { +buildUnnamed157() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed155(core.Map<core.String, core.String> o) { +checkUnnamed157(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -158,7 +158,7 @@ if (buildCounterTraceSpan < 3) { o.endTime = "foo"; o.kind = "foo"; - o.labels = buildUnnamed155(); + o.labels = buildUnnamed157(); o.name = "foo"; o.parentSpanId = "foo"; o.spanId = "foo"; @@ -173,7 +173,7 @@ if (buildCounterTraceSpan < 3) { unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed155(o.labels); + checkUnnamed157(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentSpanId, unittest.equals('foo')); unittest.expect(o.spanId, unittest.equals('foo')); @@ -182,14 +182,14 @@ buildCounterTraceSpan--; } -buildUnnamed156() { +buildUnnamed158() { var o = new core.List<api.Trace>(); o.add(buildTrace()); o.add(buildTrace()); return o; } -checkUnnamed156(core.List<api.Trace> o) { +checkUnnamed158(core.List<api.Trace> o) { unittest.expect(o, unittest.hasLength(2)); checkTrace(o[0]); checkTrace(o[1]); @@ -200,7 +200,7 @@ var o = new api.Traces(); buildCounterTraces++; if (buildCounterTraces < 3) { - o.traces = buildUnnamed156(); + o.traces = buildUnnamed158(); } buildCounterTraces--; return o; @@ -209,7 +209,7 @@ checkTraces(api.Traces o) { buildCounterTraces++; if (buildCounterTraces < 3) { - checkUnnamed156(o.traces); + checkUnnamed158(o.traces); } buildCounterTraces--; } @@ -268,7 +268,7 @@ api.ProjectsResourceApi res = new api.CloudtraceApi(mock).projects; var arg_request = buildTraces(); var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Traces.fromJson(json); checkTraces(obj); @@ -312,7 +312,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patchTraces(arg_request, arg_projectId).then(unittest.expectAsync(((api.Empty response) { + res.patchTraces(arg_request, arg_projectId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -327,7 +327,7 @@ api.ProjectsTracesResourceApi res = new api.CloudtraceApi(mock).projects.traces; var arg_projectId = "foo"; var arg_traceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -371,7 +371,7 @@ var resp = convert.JSON.encode(buildTrace()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_projectId, arg_traceId).then(unittest.expectAsync(((api.Trace response) { + res.get(arg_projectId, arg_traceId).then(unittest.expectAsync1(((api.Trace response) { checkTrace(response); }))); }); @@ -381,14 +381,14 @@ var mock = new HttpServerMock(); api.ProjectsTracesResourceApi res = new api.CloudtraceApi(mock).projects.traces; var arg_projectId = "foo"; - var arg_orderBy = "foo"; var arg_filter = "foo"; var arg_endTime = "foo"; var arg_startTime = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_view = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_orderBy = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -421,13 +421,13 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime)); unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTime)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); var h = { @@ -436,7 +436,7 @@ var resp = convert.JSON.encode(buildListTracesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, orderBy: arg_orderBy, filter: arg_filter, endTime: arg_endTime, startTime: arg_startTime, pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view).then(unittest.expectAsync(((api.ListTracesResponse response) { + res.list(arg_projectId, filter: arg_filter, endTime: arg_endTime, startTime: arg_startTime, pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view, orderBy: arg_orderBy).then(unittest.expectAsync1(((api.ListTracesResponse response) { checkListTracesResponse(response); }))); });
diff --git a/generated/googleapis/test/compute/v1_test.dart b/generated/googleapis/test/compute/v1_test.dart index c2c56c2..62e9502 100644 --- a/generated/googleapis/test/compute/v1_test.dart +++ b/generated/googleapis/test/compute/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/compute/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -76,14 +76,14 @@ buildCounterAccessConfig--; } -buildUnnamed2090() { +buildUnnamed2101() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2090(core.List<core.String> o) { +checkUnnamed2101(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -98,12 +98,13 @@ o.creationTimestamp = "foo"; o.description = "foo"; o.id = "foo"; + o.ipVersion = "foo"; o.kind = "foo"; o.name = "foo"; o.region = "foo"; o.selfLink = "foo"; o.status = "foo"; - o.users = buildUnnamed2090(); + o.users = buildUnnamed2101(); } buildCounterAddress--; return o; @@ -116,24 +117,25 @@ unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); + unittest.expect(o.ipVersion, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed2090(o.users); + checkUnnamed2101(o.users); } buildCounterAddress--; } -buildUnnamed2091() { +buildUnnamed2102() { var o = new core.Map<core.String, api.AddressesScopedList>(); o["x"] = buildAddressesScopedList(); o["y"] = buildAddressesScopedList(); return o; } -checkUnnamed2091(core.Map<core.String, api.AddressesScopedList> o) { +checkUnnamed2102(core.Map<core.String, api.AddressesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkAddressesScopedList(o["x"]); checkAddressesScopedList(o["y"]); @@ -145,7 +147,7 @@ buildCounterAddressAggregatedList++; if (buildCounterAddressAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2091(); + o.items = buildUnnamed2102(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -158,7 +160,7 @@ buildCounterAddressAggregatedList++; if (buildCounterAddressAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2091(o.items); + checkUnnamed2102(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -166,14 +168,14 @@ buildCounterAddressAggregatedList--; } -buildUnnamed2092() { +buildUnnamed2103() { var o = new core.List<api.Address>(); o.add(buildAddress()); o.add(buildAddress()); return o; } -checkUnnamed2092(core.List<api.Address> o) { +checkUnnamed2103(core.List<api.Address> o) { unittest.expect(o, unittest.hasLength(2)); checkAddress(o[0]); checkAddress(o[1]); @@ -185,7 +187,7 @@ buildCounterAddressList++; if (buildCounterAddressList < 3) { o.id = "foo"; - o.items = buildUnnamed2092(); + o.items = buildUnnamed2103(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -198,7 +200,7 @@ buildCounterAddressList++; if (buildCounterAddressList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2092(o.items); + checkUnnamed2103(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -206,14 +208,14 @@ buildCounterAddressList--; } -buildUnnamed2093() { +buildUnnamed2104() { var o = new core.List<api.Address>(); o.add(buildAddress()); o.add(buildAddress()); return o; } -checkUnnamed2093(core.List<api.Address> o) { +checkUnnamed2104(core.List<api.Address> o) { unittest.expect(o, unittest.hasLength(2)); checkAddress(o[0]); checkAddress(o[1]); @@ -240,14 +242,14 @@ buildCounterAddressesScopedListWarningData--; } -buildUnnamed2094() { +buildUnnamed2105() { var o = new core.List<api.AddressesScopedListWarningData>(); o.add(buildAddressesScopedListWarningData()); o.add(buildAddressesScopedListWarningData()); return o; } -checkUnnamed2094(core.List<api.AddressesScopedListWarningData> o) { +checkUnnamed2105(core.List<api.AddressesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAddressesScopedListWarningData(o[0]); checkAddressesScopedListWarningData(o[1]); @@ -259,7 +261,7 @@ buildCounterAddressesScopedListWarning++; if (buildCounterAddressesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2094(); + o.data = buildUnnamed2105(); o.message = "foo"; } buildCounterAddressesScopedListWarning--; @@ -270,7 +272,7 @@ buildCounterAddressesScopedListWarning++; if (buildCounterAddressesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2094(o.data); + checkUnnamed2105(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAddressesScopedListWarning--; @@ -281,7 +283,7 @@ var o = new api.AddressesScopedList(); buildCounterAddressesScopedList++; if (buildCounterAddressesScopedList < 3) { - o.addresses = buildUnnamed2093(); + o.addresses = buildUnnamed2104(); o.warning = buildAddressesScopedListWarning(); } buildCounterAddressesScopedList--; @@ -291,20 +293,20 @@ checkAddressesScopedList(api.AddressesScopedList o) { buildCounterAddressesScopedList++; if (buildCounterAddressesScopedList < 3) { - checkUnnamed2093(o.addresses); + checkUnnamed2104(o.addresses); checkAddressesScopedListWarning(o.warning); } buildCounterAddressesScopedList--; } -buildUnnamed2095() { +buildUnnamed2106() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2095(core.List<core.String> o) { +checkUnnamed2106(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -323,7 +325,7 @@ o.initializeParams = buildAttachedDiskInitializeParams(); o.interface = "foo"; o.kind = "foo"; - o.licenses = buildUnnamed2095(); + o.licenses = buildUnnamed2106(); o.mode = "foo"; o.source = "foo"; o.type = "foo"; @@ -343,7 +345,7 @@ checkAttachedDiskInitializeParams(o.initializeParams); unittest.expect(o.interface, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2095(o.licenses); + checkUnnamed2106(o.licenses); unittest.expect(o.mode, unittest.equals('foo')); unittest.expect(o.source, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -415,14 +417,14 @@ buildCounterAutoscaler--; } -buildUnnamed2096() { +buildUnnamed2107() { var o = new core.Map<core.String, api.AutoscalersScopedList>(); o["x"] = buildAutoscalersScopedList(); o["y"] = buildAutoscalersScopedList(); return o; } -checkUnnamed2096(core.Map<core.String, api.AutoscalersScopedList> o) { +checkUnnamed2107(core.Map<core.String, api.AutoscalersScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalersScopedList(o["x"]); checkAutoscalersScopedList(o["y"]); @@ -434,7 +436,7 @@ buildCounterAutoscalerAggregatedList++; if (buildCounterAutoscalerAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2096(); + o.items = buildUnnamed2107(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -447,7 +449,7 @@ buildCounterAutoscalerAggregatedList++; if (buildCounterAutoscalerAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2096(o.items); + checkUnnamed2107(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -455,14 +457,14 @@ buildCounterAutoscalerAggregatedList--; } -buildUnnamed2097() { +buildUnnamed2108() { var o = new core.List<api.Autoscaler>(); o.add(buildAutoscaler()); o.add(buildAutoscaler()); return o; } -checkUnnamed2097(core.List<api.Autoscaler> o) { +checkUnnamed2108(core.List<api.Autoscaler> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscaler(o[0]); checkAutoscaler(o[1]); @@ -474,7 +476,7 @@ buildCounterAutoscalerList++; if (buildCounterAutoscalerList < 3) { o.id = "foo"; - o.items = buildUnnamed2097(); + o.items = buildUnnamed2108(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -487,7 +489,7 @@ buildCounterAutoscalerList++; if (buildCounterAutoscalerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2097(o.items); + checkUnnamed2108(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -495,14 +497,14 @@ buildCounterAutoscalerList--; } -buildUnnamed2098() { +buildUnnamed2109() { var o = new core.List<api.Autoscaler>(); o.add(buildAutoscaler()); o.add(buildAutoscaler()); return o; } -checkUnnamed2098(core.List<api.Autoscaler> o) { +checkUnnamed2109(core.List<api.Autoscaler> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscaler(o[0]); checkAutoscaler(o[1]); @@ -529,14 +531,14 @@ buildCounterAutoscalersScopedListWarningData--; } -buildUnnamed2099() { +buildUnnamed2110() { var o = new core.List<api.AutoscalersScopedListWarningData>(); o.add(buildAutoscalersScopedListWarningData()); o.add(buildAutoscalersScopedListWarningData()); return o; } -checkUnnamed2099(core.List<api.AutoscalersScopedListWarningData> o) { +checkUnnamed2110(core.List<api.AutoscalersScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalersScopedListWarningData(o[0]); checkAutoscalersScopedListWarningData(o[1]); @@ -548,7 +550,7 @@ buildCounterAutoscalersScopedListWarning++; if (buildCounterAutoscalersScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2099(); + o.data = buildUnnamed2110(); o.message = "foo"; } buildCounterAutoscalersScopedListWarning--; @@ -559,7 +561,7 @@ buildCounterAutoscalersScopedListWarning++; if (buildCounterAutoscalersScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2099(o.data); + checkUnnamed2110(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAutoscalersScopedListWarning--; @@ -570,7 +572,7 @@ var o = new api.AutoscalersScopedList(); buildCounterAutoscalersScopedList++; if (buildCounterAutoscalersScopedList < 3) { - o.autoscalers = buildUnnamed2098(); + o.autoscalers = buildUnnamed2109(); o.warning = buildAutoscalersScopedListWarning(); } buildCounterAutoscalersScopedList--; @@ -580,20 +582,20 @@ checkAutoscalersScopedList(api.AutoscalersScopedList o) { buildCounterAutoscalersScopedList++; if (buildCounterAutoscalersScopedList < 3) { - checkUnnamed2098(o.autoscalers); + checkUnnamed2109(o.autoscalers); checkAutoscalersScopedListWarning(o.warning); } buildCounterAutoscalersScopedList--; } -buildUnnamed2100() { +buildUnnamed2111() { var o = new core.List<api.AutoscalingPolicyCustomMetricUtilization>(); o.add(buildAutoscalingPolicyCustomMetricUtilization()); o.add(buildAutoscalingPolicyCustomMetricUtilization()); return o; } -checkUnnamed2100(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) { +checkUnnamed2111(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalingPolicyCustomMetricUtilization(o[0]); checkAutoscalingPolicyCustomMetricUtilization(o[1]); @@ -606,7 +608,7 @@ if (buildCounterAutoscalingPolicy < 3) { o.coolDownPeriodSec = 42; o.cpuUtilization = buildAutoscalingPolicyCpuUtilization(); - o.customMetricUtilizations = buildUnnamed2100(); + o.customMetricUtilizations = buildUnnamed2111(); o.loadBalancingUtilization = buildAutoscalingPolicyLoadBalancingUtilization(); o.maxNumReplicas = 42; o.minNumReplicas = 42; @@ -620,7 +622,7 @@ if (buildCounterAutoscalingPolicy < 3) { unittest.expect(o.coolDownPeriodSec, unittest.equals(42)); checkAutoscalingPolicyCpuUtilization(o.cpuUtilization); - checkUnnamed2100(o.customMetricUtilizations); + checkUnnamed2111(o.customMetricUtilizations); checkAutoscalingPolicyLoadBalancingUtilization(o.loadBalancingUtilization); unittest.expect(o.maxNumReplicas, unittest.equals(42)); unittest.expect(o.minNumReplicas, unittest.equals(42)); @@ -757,14 +759,14 @@ buildCounterBackendBucket--; } -buildUnnamed2101() { +buildUnnamed2112() { var o = new core.List<api.BackendBucket>(); o.add(buildBackendBucket()); o.add(buildBackendBucket()); return o; } -checkUnnamed2101(core.List<api.BackendBucket> o) { +checkUnnamed2112(core.List<api.BackendBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendBucket(o[0]); checkBackendBucket(o[1]); @@ -776,7 +778,7 @@ buildCounterBackendBucketList++; if (buildCounterBackendBucketList < 3) { o.id = "foo"; - o.items = buildUnnamed2101(); + o.items = buildUnnamed2112(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -789,7 +791,7 @@ buildCounterBackendBucketList++; if (buildCounterBackendBucketList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2101(o.items); + checkUnnamed2112(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -797,27 +799,27 @@ buildCounterBackendBucketList--; } -buildUnnamed2102() { +buildUnnamed2113() { var o = new core.List<api.Backend>(); o.add(buildBackend()); o.add(buildBackend()); return o; } -checkUnnamed2102(core.List<api.Backend> o) { +checkUnnamed2113(core.List<api.Backend> o) { unittest.expect(o, unittest.hasLength(2)); checkBackend(o[0]); checkBackend(o[1]); } -buildUnnamed2103() { +buildUnnamed2114() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2103(core.List<core.String> o) { +checkUnnamed2114(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -829,14 +831,14 @@ buildCounterBackendService++; if (buildCounterBackendService < 3) { o.affinityCookieTtlSec = 42; - o.backends = buildUnnamed2102(); + o.backends = buildUnnamed2113(); o.cdnPolicy = buildBackendServiceCdnPolicy(); o.connectionDraining = buildConnectionDraining(); o.creationTimestamp = "foo"; o.description = "foo"; o.enableCDN = true; o.fingerprint = "foo"; - o.healthChecks = buildUnnamed2103(); + o.healthChecks = buildUnnamed2114(); o.iap = buildBackendServiceIAP(); o.id = "foo"; o.kind = "foo"; @@ -858,14 +860,14 @@ buildCounterBackendService++; if (buildCounterBackendService < 3) { unittest.expect(o.affinityCookieTtlSec, unittest.equals(42)); - checkUnnamed2102(o.backends); + checkUnnamed2113(o.backends); checkBackendServiceCdnPolicy(o.cdnPolicy); checkConnectionDraining(o.connectionDraining); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.enableCDN, unittest.isTrue); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2103(o.healthChecks); + checkUnnamed2114(o.healthChecks); checkBackendServiceIAP(o.iap); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -882,14 +884,14 @@ buildCounterBackendService--; } -buildUnnamed2104() { +buildUnnamed2115() { var o = new core.Map<core.String, api.BackendServicesScopedList>(); o["x"] = buildBackendServicesScopedList(); o["y"] = buildBackendServicesScopedList(); return o; } -checkUnnamed2104(core.Map<core.String, api.BackendServicesScopedList> o) { +checkUnnamed2115(core.Map<core.String, api.BackendServicesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendServicesScopedList(o["x"]); checkBackendServicesScopedList(o["y"]); @@ -901,7 +903,7 @@ buildCounterBackendServiceAggregatedList++; if (buildCounterBackendServiceAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2104(); + o.items = buildUnnamed2115(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -914,7 +916,7 @@ buildCounterBackendServiceAggregatedList++; if (buildCounterBackendServiceAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2104(o.items); + checkUnnamed2115(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -941,14 +943,14 @@ buildCounterBackendServiceCdnPolicy--; } -buildUnnamed2105() { +buildUnnamed2116() { var o = new core.List<api.HealthStatus>(); o.add(buildHealthStatus()); o.add(buildHealthStatus()); return o; } -checkUnnamed2105(core.List<api.HealthStatus> o) { +checkUnnamed2116(core.List<api.HealthStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthStatus(o[0]); checkHealthStatus(o[1]); @@ -959,7 +961,7 @@ var o = new api.BackendServiceGroupHealth(); buildCounterBackendServiceGroupHealth++; if (buildCounterBackendServiceGroupHealth < 3) { - o.healthStatus = buildUnnamed2105(); + o.healthStatus = buildUnnamed2116(); o.kind = "foo"; } buildCounterBackendServiceGroupHealth--; @@ -969,7 +971,7 @@ checkBackendServiceGroupHealth(api.BackendServiceGroupHealth o) { buildCounterBackendServiceGroupHealth++; if (buildCounterBackendServiceGroupHealth < 3) { - checkUnnamed2105(o.healthStatus); + checkUnnamed2116(o.healthStatus); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBackendServiceGroupHealth--; @@ -1000,14 +1002,14 @@ buildCounterBackendServiceIAP--; } -buildUnnamed2106() { +buildUnnamed2117() { var o = new core.List<api.BackendService>(); o.add(buildBackendService()); o.add(buildBackendService()); return o; } -checkUnnamed2106(core.List<api.BackendService> o) { +checkUnnamed2117(core.List<api.BackendService> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendService(o[0]); checkBackendService(o[1]); @@ -1019,7 +1021,7 @@ buildCounterBackendServiceList++; if (buildCounterBackendServiceList < 3) { o.id = "foo"; - o.items = buildUnnamed2106(); + o.items = buildUnnamed2117(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1032,7 +1034,7 @@ buildCounterBackendServiceList++; if (buildCounterBackendServiceList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2106(o.items); + checkUnnamed2117(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1040,14 +1042,14 @@ buildCounterBackendServiceList--; } -buildUnnamed2107() { +buildUnnamed2118() { var o = new core.List<api.BackendService>(); o.add(buildBackendService()); o.add(buildBackendService()); return o; } -checkUnnamed2107(core.List<api.BackendService> o) { +checkUnnamed2118(core.List<api.BackendService> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendService(o[0]); checkBackendService(o[1]); @@ -1074,14 +1076,14 @@ buildCounterBackendServicesScopedListWarningData--; } -buildUnnamed2108() { +buildUnnamed2119() { var o = new core.List<api.BackendServicesScopedListWarningData>(); o.add(buildBackendServicesScopedListWarningData()); o.add(buildBackendServicesScopedListWarningData()); return o; } -checkUnnamed2108(core.List<api.BackendServicesScopedListWarningData> o) { +checkUnnamed2119(core.List<api.BackendServicesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendServicesScopedListWarningData(o[0]); checkBackendServicesScopedListWarningData(o[1]); @@ -1093,7 +1095,7 @@ buildCounterBackendServicesScopedListWarning++; if (buildCounterBackendServicesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2108(); + o.data = buildUnnamed2119(); o.message = "foo"; } buildCounterBackendServicesScopedListWarning--; @@ -1104,7 +1106,7 @@ buildCounterBackendServicesScopedListWarning++; if (buildCounterBackendServicesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2108(o.data); + checkUnnamed2119(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterBackendServicesScopedListWarning--; @@ -1115,7 +1117,7 @@ var o = new api.BackendServicesScopedList(); buildCounterBackendServicesScopedList++; if (buildCounterBackendServicesScopedList < 3) { - o.backendServices = buildUnnamed2107(); + o.backendServices = buildUnnamed2118(); o.warning = buildBackendServicesScopedListWarning(); } buildCounterBackendServicesScopedList--; @@ -1125,7 +1127,7 @@ checkBackendServicesScopedList(api.BackendServicesScopedList o) { buildCounterBackendServicesScopedList++; if (buildCounterBackendServicesScopedList < 3) { - checkUnnamed2107(o.backendServices); + checkUnnamed2118(o.backendServices); checkBackendServicesScopedListWarning(o.warning); } buildCounterBackendServicesScopedList--; @@ -1152,27 +1154,27 @@ buildCounterCacheInvalidationRule--; } -buildUnnamed2109() { +buildUnnamed2120() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2109(core.List<core.String> o) { +checkUnnamed2120(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2110() { +buildUnnamed2121() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2110(core.List<core.String> o) { +checkUnnamed2121(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1186,8 +1188,8 @@ o.includeHost = true; o.includeProtocol = true; o.includeQueryString = true; - o.queryStringBlacklist = buildUnnamed2109(); - o.queryStringWhitelist = buildUnnamed2110(); + o.queryStringBlacklist = buildUnnamed2120(); + o.queryStringWhitelist = buildUnnamed2121(); } buildCounterCacheKeyPolicy--; return o; @@ -1199,8 +1201,8 @@ unittest.expect(o.includeHost, unittest.isTrue); unittest.expect(o.includeProtocol, unittest.isTrue); unittest.expect(o.includeQueryString, unittest.isTrue); - checkUnnamed2109(o.queryStringBlacklist); - checkUnnamed2110(o.queryStringWhitelist); + checkUnnamed2120(o.queryStringBlacklist); + checkUnnamed2121(o.queryStringWhitelist); } buildCounterCacheKeyPolicy--; } @@ -1293,27 +1295,40 @@ buildCounterDeprecationStatus--; } -buildUnnamed2111() { +buildUnnamed2122() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed2122(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +buildUnnamed2123() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2111(core.List<core.String> o) { +checkUnnamed2123(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2112() { +buildUnnamed2124() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2112(core.List<core.String> o) { +checkUnnamed2124(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1329,9 +1344,11 @@ o.diskEncryptionKey = buildCustomerEncryptionKey(); o.id = "foo"; o.kind = "foo"; + o.labelFingerprint = "foo"; + o.labels = buildUnnamed2122(); o.lastAttachTimestamp = "foo"; o.lastDetachTimestamp = "foo"; - o.licenses = buildUnnamed2111(); + o.licenses = buildUnnamed2123(); o.name = "foo"; o.options = "foo"; o.selfLink = "foo"; @@ -1344,7 +1361,7 @@ o.sourceSnapshotId = "foo"; o.status = "foo"; o.type = "foo"; - o.users = buildUnnamed2112(); + o.users = buildUnnamed2124(); o.zone = "foo"; } buildCounterDisk--; @@ -1359,9 +1376,11 @@ checkCustomerEncryptionKey(o.diskEncryptionKey); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.labelFingerprint, unittest.equals('foo')); + checkUnnamed2122(o.labels); unittest.expect(o.lastAttachTimestamp, unittest.equals('foo')); unittest.expect(o.lastDetachTimestamp, unittest.equals('foo')); - checkUnnamed2111(o.licenses); + checkUnnamed2123(o.licenses); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.options, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1374,20 +1393,20 @@ unittest.expect(o.sourceSnapshotId, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); - checkUnnamed2112(o.users); + checkUnnamed2124(o.users); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterDisk--; } -buildUnnamed2113() { +buildUnnamed2125() { var o = new core.Map<core.String, api.DisksScopedList>(); o["x"] = buildDisksScopedList(); o["y"] = buildDisksScopedList(); return o; } -checkUnnamed2113(core.Map<core.String, api.DisksScopedList> o) { +checkUnnamed2125(core.Map<core.String, api.DisksScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkDisksScopedList(o["x"]); checkDisksScopedList(o["y"]); @@ -1399,7 +1418,7 @@ buildCounterDiskAggregatedList++; if (buildCounterDiskAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2113(); + o.items = buildUnnamed2125(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1412,7 +1431,7 @@ buildCounterDiskAggregatedList++; if (buildCounterDiskAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2113(o.items); + checkUnnamed2125(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1420,14 +1439,14 @@ buildCounterDiskAggregatedList--; } -buildUnnamed2114() { +buildUnnamed2126() { var o = new core.List<api.Disk>(); o.add(buildDisk()); o.add(buildDisk()); return o; } -checkUnnamed2114(core.List<api.Disk> o) { +checkUnnamed2126(core.List<api.Disk> o) { unittest.expect(o, unittest.hasLength(2)); checkDisk(o[0]); checkDisk(o[1]); @@ -1439,7 +1458,7 @@ buildCounterDiskList++; if (buildCounterDiskList < 3) { o.id = "foo"; - o.items = buildUnnamed2114(); + o.items = buildUnnamed2126(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1452,7 +1471,7 @@ buildCounterDiskList++; if (buildCounterDiskList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2114(o.items); + checkUnnamed2126(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1518,14 +1537,14 @@ buildCounterDiskType--; } -buildUnnamed2115() { +buildUnnamed2127() { var o = new core.Map<core.String, api.DiskTypesScopedList>(); o["x"] = buildDiskTypesScopedList(); o["y"] = buildDiskTypesScopedList(); return o; } -checkUnnamed2115(core.Map<core.String, api.DiskTypesScopedList> o) { +checkUnnamed2127(core.Map<core.String, api.DiskTypesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskTypesScopedList(o["x"]); checkDiskTypesScopedList(o["y"]); @@ -1537,7 +1556,7 @@ buildCounterDiskTypeAggregatedList++; if (buildCounterDiskTypeAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2115(); + o.items = buildUnnamed2127(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1550,7 +1569,7 @@ buildCounterDiskTypeAggregatedList++; if (buildCounterDiskTypeAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2115(o.items); + checkUnnamed2127(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1558,14 +1577,14 @@ buildCounterDiskTypeAggregatedList--; } -buildUnnamed2116() { +buildUnnamed2128() { var o = new core.List<api.DiskType>(); o.add(buildDiskType()); o.add(buildDiskType()); return o; } -checkUnnamed2116(core.List<api.DiskType> o) { +checkUnnamed2128(core.List<api.DiskType> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskType(o[0]); checkDiskType(o[1]); @@ -1577,7 +1596,7 @@ buildCounterDiskTypeList++; if (buildCounterDiskTypeList < 3) { o.id = "foo"; - o.items = buildUnnamed2116(); + o.items = buildUnnamed2128(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1590,7 +1609,7 @@ buildCounterDiskTypeList++; if (buildCounterDiskTypeList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2116(o.items); + checkUnnamed2128(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1598,14 +1617,14 @@ buildCounterDiskTypeList--; } -buildUnnamed2117() { +buildUnnamed2129() { var o = new core.List<api.DiskType>(); o.add(buildDiskType()); o.add(buildDiskType()); return o; } -checkUnnamed2117(core.List<api.DiskType> o) { +checkUnnamed2129(core.List<api.DiskType> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskType(o[0]); checkDiskType(o[1]); @@ -1632,14 +1651,14 @@ buildCounterDiskTypesScopedListWarningData--; } -buildUnnamed2118() { +buildUnnamed2130() { var o = new core.List<api.DiskTypesScopedListWarningData>(); o.add(buildDiskTypesScopedListWarningData()); o.add(buildDiskTypesScopedListWarningData()); return o; } -checkUnnamed2118(core.List<api.DiskTypesScopedListWarningData> o) { +checkUnnamed2130(core.List<api.DiskTypesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskTypesScopedListWarningData(o[0]); checkDiskTypesScopedListWarningData(o[1]); @@ -1651,7 +1670,7 @@ buildCounterDiskTypesScopedListWarning++; if (buildCounterDiskTypesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2118(); + o.data = buildUnnamed2130(); o.message = "foo"; } buildCounterDiskTypesScopedListWarning--; @@ -1662,7 +1681,7 @@ buildCounterDiskTypesScopedListWarning++; if (buildCounterDiskTypesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2118(o.data); + checkUnnamed2130(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDiskTypesScopedListWarning--; @@ -1673,7 +1692,7 @@ var o = new api.DiskTypesScopedList(); buildCounterDiskTypesScopedList++; if (buildCounterDiskTypesScopedList < 3) { - o.diskTypes = buildUnnamed2117(); + o.diskTypes = buildUnnamed2129(); o.warning = buildDiskTypesScopedListWarning(); } buildCounterDiskTypesScopedList--; @@ -1683,7 +1702,7 @@ checkDiskTypesScopedList(api.DiskTypesScopedList o) { buildCounterDiskTypesScopedList++; if (buildCounterDiskTypesScopedList < 3) { - checkUnnamed2117(o.diskTypes); + checkUnnamed2129(o.diskTypes); checkDiskTypesScopedListWarning(o.warning); } buildCounterDiskTypesScopedList--; @@ -1708,14 +1727,14 @@ buildCounterDisksResizeRequest--; } -buildUnnamed2119() { +buildUnnamed2131() { var o = new core.List<api.Disk>(); o.add(buildDisk()); o.add(buildDisk()); return o; } -checkUnnamed2119(core.List<api.Disk> o) { +checkUnnamed2131(core.List<api.Disk> o) { unittest.expect(o, unittest.hasLength(2)); checkDisk(o[0]); checkDisk(o[1]); @@ -1742,14 +1761,14 @@ buildCounterDisksScopedListWarningData--; } -buildUnnamed2120() { +buildUnnamed2132() { var o = new core.List<api.DisksScopedListWarningData>(); o.add(buildDisksScopedListWarningData()); o.add(buildDisksScopedListWarningData()); return o; } -checkUnnamed2120(core.List<api.DisksScopedListWarningData> o) { +checkUnnamed2132(core.List<api.DisksScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkDisksScopedListWarningData(o[0]); checkDisksScopedListWarningData(o[1]); @@ -1761,7 +1780,7 @@ buildCounterDisksScopedListWarning++; if (buildCounterDisksScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2120(); + o.data = buildUnnamed2132(); o.message = "foo"; } buildCounterDisksScopedListWarning--; @@ -1772,7 +1791,7 @@ buildCounterDisksScopedListWarning++; if (buildCounterDisksScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2120(o.data); + checkUnnamed2132(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDisksScopedListWarning--; @@ -1783,7 +1802,7 @@ var o = new api.DisksScopedList(); buildCounterDisksScopedList++; if (buildCounterDisksScopedList < 3) { - o.disks = buildUnnamed2119(); + o.disks = buildUnnamed2131(); o.warning = buildDisksScopedListWarning(); } buildCounterDisksScopedList--; @@ -1793,20 +1812,20 @@ checkDisksScopedList(api.DisksScopedList o) { buildCounterDisksScopedList++; if (buildCounterDisksScopedList < 3) { - checkUnnamed2119(o.disks); + checkUnnamed2131(o.disks); checkDisksScopedListWarning(o.warning); } buildCounterDisksScopedList--; } -buildUnnamed2121() { +buildUnnamed2133() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2121(core.List<core.String> o) { +checkUnnamed2133(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1818,7 +1837,7 @@ buildCounterFirewallAllowed++; if (buildCounterFirewallAllowed < 3) { o.IPProtocol = "foo"; - o.ports = buildUnnamed2121(); + o.ports = buildUnnamed2133(); } buildCounterFirewallAllowed--; return o; @@ -1828,58 +1847,58 @@ buildCounterFirewallAllowed++; if (buildCounterFirewallAllowed < 3) { unittest.expect(o.IPProtocol, unittest.equals('foo')); - checkUnnamed2121(o.ports); + checkUnnamed2133(o.ports); } buildCounterFirewallAllowed--; } -buildUnnamed2122() { +buildUnnamed2134() { var o = new core.List<api.FirewallAllowed>(); o.add(buildFirewallAllowed()); o.add(buildFirewallAllowed()); return o; } -checkUnnamed2122(core.List<api.FirewallAllowed> o) { +checkUnnamed2134(core.List<api.FirewallAllowed> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallAllowed(o[0]); checkFirewallAllowed(o[1]); } -buildUnnamed2123() { +buildUnnamed2135() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2123(core.List<core.String> o) { +checkUnnamed2135(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2124() { +buildUnnamed2136() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2124(core.List<core.String> o) { +checkUnnamed2136(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2125() { +buildUnnamed2137() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2125(core.List<core.String> o) { +checkUnnamed2137(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1890,7 +1909,7 @@ var o = new api.Firewall(); buildCounterFirewall++; if (buildCounterFirewall < 3) { - o.allowed = buildUnnamed2122(); + o.allowed = buildUnnamed2134(); o.creationTimestamp = "foo"; o.description = "foo"; o.id = "foo"; @@ -1898,9 +1917,9 @@ o.name = "foo"; o.network = "foo"; o.selfLink = "foo"; - o.sourceRanges = buildUnnamed2123(); - o.sourceTags = buildUnnamed2124(); - o.targetTags = buildUnnamed2125(); + o.sourceRanges = buildUnnamed2135(); + o.sourceTags = buildUnnamed2136(); + o.targetTags = buildUnnamed2137(); } buildCounterFirewall--; return o; @@ -1909,7 +1928,7 @@ checkFirewall(api.Firewall o) { buildCounterFirewall++; if (buildCounterFirewall < 3) { - checkUnnamed2122(o.allowed); + checkUnnamed2134(o.allowed); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -1917,21 +1936,21 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2123(o.sourceRanges); - checkUnnamed2124(o.sourceTags); - checkUnnamed2125(o.targetTags); + checkUnnamed2135(o.sourceRanges); + checkUnnamed2136(o.sourceTags); + checkUnnamed2137(o.targetTags); } buildCounterFirewall--; } -buildUnnamed2126() { +buildUnnamed2138() { var o = new core.List<api.Firewall>(); o.add(buildFirewall()); o.add(buildFirewall()); return o; } -checkUnnamed2126(core.List<api.Firewall> o) { +checkUnnamed2138(core.List<api.Firewall> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewall(o[0]); checkFirewall(o[1]); @@ -1943,7 +1962,7 @@ buildCounterFirewallList++; if (buildCounterFirewallList < 3) { o.id = "foo"; - o.items = buildUnnamed2126(); + o.items = buildUnnamed2138(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1956,7 +1975,7 @@ buildCounterFirewallList++; if (buildCounterFirewallList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2126(o.items); + checkUnnamed2138(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1964,14 +1983,14 @@ buildCounterFirewallList--; } -buildUnnamed2127() { +buildUnnamed2139() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2127(core.List<core.String> o) { +checkUnnamed2139(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1988,12 +2007,13 @@ o.creationTimestamp = "foo"; o.description = "foo"; o.id = "foo"; + o.ipVersion = "foo"; o.kind = "foo"; o.loadBalancingScheme = "foo"; o.name = "foo"; o.network = "foo"; o.portRange = "foo"; - o.ports = buildUnnamed2127(); + o.ports = buildUnnamed2139(); o.region = "foo"; o.selfLink = "foo"; o.subnetwork = "foo"; @@ -2012,12 +2032,13 @@ unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); + unittest.expect(o.ipVersion, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.loadBalancingScheme, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.portRange, unittest.equals('foo')); - checkUnnamed2127(o.ports); + checkUnnamed2139(o.ports); unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.subnetwork, unittest.equals('foo')); @@ -2026,14 +2047,14 @@ buildCounterForwardingRule--; } -buildUnnamed2128() { +buildUnnamed2140() { var o = new core.Map<core.String, api.ForwardingRulesScopedList>(); o["x"] = buildForwardingRulesScopedList(); o["y"] = buildForwardingRulesScopedList(); return o; } -checkUnnamed2128(core.Map<core.String, api.ForwardingRulesScopedList> o) { +checkUnnamed2140(core.Map<core.String, api.ForwardingRulesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRulesScopedList(o["x"]); checkForwardingRulesScopedList(o["y"]); @@ -2045,7 +2066,7 @@ buildCounterForwardingRuleAggregatedList++; if (buildCounterForwardingRuleAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2128(); + o.items = buildUnnamed2140(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2058,7 +2079,7 @@ buildCounterForwardingRuleAggregatedList++; if (buildCounterForwardingRuleAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2128(o.items); + checkUnnamed2140(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2066,14 +2087,14 @@ buildCounterForwardingRuleAggregatedList--; } -buildUnnamed2129() { +buildUnnamed2141() { var o = new core.List<api.ForwardingRule>(); o.add(buildForwardingRule()); o.add(buildForwardingRule()); return o; } -checkUnnamed2129(core.List<api.ForwardingRule> o) { +checkUnnamed2141(core.List<api.ForwardingRule> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRule(o[0]); checkForwardingRule(o[1]); @@ -2085,7 +2106,7 @@ buildCounterForwardingRuleList++; if (buildCounterForwardingRuleList < 3) { o.id = "foo"; - o.items = buildUnnamed2129(); + o.items = buildUnnamed2141(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2098,7 +2119,7 @@ buildCounterForwardingRuleList++; if (buildCounterForwardingRuleList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2129(o.items); + checkUnnamed2141(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2106,14 +2127,14 @@ buildCounterForwardingRuleList--; } -buildUnnamed2130() { +buildUnnamed2142() { var o = new core.List<api.ForwardingRule>(); o.add(buildForwardingRule()); o.add(buildForwardingRule()); return o; } -checkUnnamed2130(core.List<api.ForwardingRule> o) { +checkUnnamed2142(core.List<api.ForwardingRule> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRule(o[0]); checkForwardingRule(o[1]); @@ -2140,14 +2161,14 @@ buildCounterForwardingRulesScopedListWarningData--; } -buildUnnamed2131() { +buildUnnamed2143() { var o = new core.List<api.ForwardingRulesScopedListWarningData>(); o.add(buildForwardingRulesScopedListWarningData()); o.add(buildForwardingRulesScopedListWarningData()); return o; } -checkUnnamed2131(core.List<api.ForwardingRulesScopedListWarningData> o) { +checkUnnamed2143(core.List<api.ForwardingRulesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRulesScopedListWarningData(o[0]); checkForwardingRulesScopedListWarningData(o[1]); @@ -2159,7 +2180,7 @@ buildCounterForwardingRulesScopedListWarning++; if (buildCounterForwardingRulesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2131(); + o.data = buildUnnamed2143(); o.message = "foo"; } buildCounterForwardingRulesScopedListWarning--; @@ -2170,7 +2191,7 @@ buildCounterForwardingRulesScopedListWarning++; if (buildCounterForwardingRulesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2131(o.data); + checkUnnamed2143(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterForwardingRulesScopedListWarning--; @@ -2181,7 +2202,7 @@ var o = new api.ForwardingRulesScopedList(); buildCounterForwardingRulesScopedList++; if (buildCounterForwardingRulesScopedList < 3) { - o.forwardingRules = buildUnnamed2130(); + o.forwardingRules = buildUnnamed2142(); o.warning = buildForwardingRulesScopedListWarning(); } buildCounterForwardingRulesScopedList--; @@ -2191,12 +2212,46 @@ checkForwardingRulesScopedList(api.ForwardingRulesScopedList o) { buildCounterForwardingRulesScopedList++; if (buildCounterForwardingRulesScopedList < 3) { - checkUnnamed2130(o.forwardingRules); + checkUnnamed2142(o.forwardingRules); checkForwardingRulesScopedListWarning(o.warning); } buildCounterForwardingRulesScopedList--; } +buildUnnamed2144() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed2144(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +core.int buildCounterGlobalSetLabelsRequest = 0; +buildGlobalSetLabelsRequest() { + var o = new api.GlobalSetLabelsRequest(); + buildCounterGlobalSetLabelsRequest++; + if (buildCounterGlobalSetLabelsRequest < 3) { + o.labelFingerprint = "foo"; + o.labels = buildUnnamed2144(); + } + buildCounterGlobalSetLabelsRequest--; + return o; +} + +checkGlobalSetLabelsRequest(api.GlobalSetLabelsRequest o) { + buildCounterGlobalSetLabelsRequest++; + if (buildCounterGlobalSetLabelsRequest < 3) { + unittest.expect(o.labelFingerprint, unittest.equals('foo')); + checkUnnamed2144(o.labels); + } + buildCounterGlobalSetLabelsRequest--; +} + core.int buildCounterGuestOsFeature = 0; buildGuestOsFeature() { var o = new api.GuestOsFeature(); @@ -2317,14 +2372,14 @@ buildCounterHealthCheck--; } -buildUnnamed2132() { +buildUnnamed2145() { var o = new core.List<api.HealthCheck>(); o.add(buildHealthCheck()); o.add(buildHealthCheck()); return o; } -checkUnnamed2132(core.List<api.HealthCheck> o) { +checkUnnamed2145(core.List<api.HealthCheck> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheck(o[0]); checkHealthCheck(o[1]); @@ -2336,7 +2391,7 @@ buildCounterHealthCheckList++; if (buildCounterHealthCheckList < 3) { o.id = "foo"; - o.items = buildUnnamed2132(); + o.items = buildUnnamed2145(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2349,7 +2404,7 @@ buildCounterHealthCheckList++; if (buildCounterHealthCheckList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2132(o.items); + checkUnnamed2145(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2401,14 +2456,14 @@ buildCounterHealthStatus--; } -buildUnnamed2133() { +buildUnnamed2146() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2133(core.List<core.String> o) { +checkUnnamed2146(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2420,7 +2475,7 @@ buildCounterHostRule++; if (buildCounterHostRule < 3) { o.description = "foo"; - o.hosts = buildUnnamed2133(); + o.hosts = buildUnnamed2146(); o.pathMatcher = "foo"; } buildCounterHostRule--; @@ -2431,7 +2486,7 @@ buildCounterHostRule++; if (buildCounterHostRule < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2133(o.hosts); + checkUnnamed2146(o.hosts); unittest.expect(o.pathMatcher, unittest.equals('foo')); } buildCounterHostRule--; @@ -2480,14 +2535,14 @@ buildCounterHttpHealthCheck--; } -buildUnnamed2134() { +buildUnnamed2147() { var o = new core.List<api.HttpHealthCheck>(); o.add(buildHttpHealthCheck()); o.add(buildHttpHealthCheck()); return o; } -checkUnnamed2134(core.List<api.HttpHealthCheck> o) { +checkUnnamed2147(core.List<api.HttpHealthCheck> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpHealthCheck(o[0]); checkHttpHealthCheck(o[1]); @@ -2499,7 +2554,7 @@ buildCounterHttpHealthCheckList++; if (buildCounterHttpHealthCheckList < 3) { o.id = "foo"; - o.items = buildUnnamed2134(); + o.items = buildUnnamed2147(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2512,7 +2567,7 @@ buildCounterHttpHealthCheckList++; if (buildCounterHttpHealthCheckList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2134(o.items); + checkUnnamed2147(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2563,14 +2618,14 @@ buildCounterHttpsHealthCheck--; } -buildUnnamed2135() { +buildUnnamed2148() { var o = new core.List<api.HttpsHealthCheck>(); o.add(buildHttpsHealthCheck()); o.add(buildHttpsHealthCheck()); return o; } -checkUnnamed2135(core.List<api.HttpsHealthCheck> o) { +checkUnnamed2148(core.List<api.HttpsHealthCheck> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpsHealthCheck(o[0]); checkHttpsHealthCheck(o[1]); @@ -2582,7 +2637,7 @@ buildCounterHttpsHealthCheckList++; if (buildCounterHttpsHealthCheckList < 3) { o.id = "foo"; - o.items = buildUnnamed2135(); + o.items = buildUnnamed2148(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2595,7 +2650,7 @@ buildCounterHttpsHealthCheckList++; if (buildCounterHttpsHealthCheckList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2135(o.items); + checkUnnamed2148(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2603,27 +2658,40 @@ buildCounterHttpsHealthCheckList--; } -buildUnnamed2136() { +buildUnnamed2149() { var o = new core.List<api.GuestOsFeature>(); o.add(buildGuestOsFeature()); o.add(buildGuestOsFeature()); return o; } -checkUnnamed2136(core.List<api.GuestOsFeature> o) { +checkUnnamed2149(core.List<api.GuestOsFeature> o) { unittest.expect(o, unittest.hasLength(2)); checkGuestOsFeature(o[0]); checkGuestOsFeature(o[1]); } -buildUnnamed2137() { +buildUnnamed2150() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed2150(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +buildUnnamed2151() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2137(core.List<core.String> o) { +checkUnnamed2151(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2663,11 +2731,13 @@ o.description = "foo"; o.diskSizeGb = "foo"; o.family = "foo"; - o.guestOsFeatures = buildUnnamed2136(); + o.guestOsFeatures = buildUnnamed2149(); o.id = "foo"; o.imageEncryptionKey = buildCustomerEncryptionKey(); o.kind = "foo"; - o.licenses = buildUnnamed2137(); + o.labelFingerprint = "foo"; + o.labels = buildUnnamed2150(); + o.licenses = buildUnnamed2151(); o.name = "foo"; o.rawDisk = buildImageRawDisk(); o.selfLink = "foo"; @@ -2690,11 +2760,13 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.diskSizeGb, unittest.equals('foo')); unittest.expect(o.family, unittest.equals('foo')); - checkUnnamed2136(o.guestOsFeatures); + checkUnnamed2149(o.guestOsFeatures); unittest.expect(o.id, unittest.equals('foo')); checkCustomerEncryptionKey(o.imageEncryptionKey); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2137(o.licenses); + unittest.expect(o.labelFingerprint, unittest.equals('foo')); + checkUnnamed2150(o.labels); + checkUnnamed2151(o.licenses); unittest.expect(o.name, unittest.equals('foo')); checkImageRawDisk(o.rawDisk); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2707,14 +2779,14 @@ buildCounterImage--; } -buildUnnamed2138() { +buildUnnamed2152() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed2138(core.List<api.Image> o) { +checkUnnamed2152(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); @@ -2726,7 +2798,7 @@ buildCounterImageList++; if (buildCounterImageList < 3) { o.id = "foo"; - o.items = buildUnnamed2138(); + o.items = buildUnnamed2152(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2739,7 +2811,7 @@ buildCounterImageList++; if (buildCounterImageList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2138(o.items); + checkUnnamed2152(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2747,40 +2819,53 @@ buildCounterImageList--; } -buildUnnamed2139() { +buildUnnamed2153() { var o = new core.List<api.AttachedDisk>(); o.add(buildAttachedDisk()); o.add(buildAttachedDisk()); return o; } -checkUnnamed2139(core.List<api.AttachedDisk> o) { +checkUnnamed2153(core.List<api.AttachedDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachedDisk(o[0]); checkAttachedDisk(o[1]); } -buildUnnamed2140() { +buildUnnamed2154() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed2154(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +buildUnnamed2155() { var o = new core.List<api.NetworkInterface>(); o.add(buildNetworkInterface()); o.add(buildNetworkInterface()); return o; } -checkUnnamed2140(core.List<api.NetworkInterface> o) { +checkUnnamed2155(core.List<api.NetworkInterface> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkInterface(o[0]); checkNetworkInterface(o[1]); } -buildUnnamed2141() { +buildUnnamed2156() { var o = new core.List<api.ServiceAccount>(); o.add(buildServiceAccount()); o.add(buildServiceAccount()); return o; } -checkUnnamed2141(core.List<api.ServiceAccount> o) { +checkUnnamed2156(core.List<api.ServiceAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccount(o[0]); checkServiceAccount(o[1]); @@ -2795,16 +2880,19 @@ o.cpuPlatform = "foo"; o.creationTimestamp = "foo"; o.description = "foo"; - o.disks = buildUnnamed2139(); + o.disks = buildUnnamed2153(); o.id = "foo"; o.kind = "foo"; + o.labelFingerprint = "foo"; + o.labels = buildUnnamed2154(); o.machineType = "foo"; o.metadata = buildMetadata(); o.name = "foo"; - o.networkInterfaces = buildUnnamed2140(); + o.networkInterfaces = buildUnnamed2155(); o.scheduling = buildScheduling(); o.selfLink = "foo"; - o.serviceAccounts = buildUnnamed2141(); + o.serviceAccounts = buildUnnamed2156(); + o.startRestricted = true; o.status = "foo"; o.statusMessage = "foo"; o.tags = buildTags(); @@ -2821,16 +2909,19 @@ unittest.expect(o.cpuPlatform, unittest.equals('foo')); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2139(o.disks); + checkUnnamed2153(o.disks); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.labelFingerprint, unittest.equals('foo')); + checkUnnamed2154(o.labels); unittest.expect(o.machineType, unittest.equals('foo')); checkMetadata(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2140(o.networkInterfaces); + checkUnnamed2155(o.networkInterfaces); checkScheduling(o.scheduling); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2141(o.serviceAccounts); + checkUnnamed2156(o.serviceAccounts); + unittest.expect(o.startRestricted, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.statusMessage, unittest.equals('foo')); checkTags(o.tags); @@ -2839,14 +2930,14 @@ buildCounterInstance--; } -buildUnnamed2142() { +buildUnnamed2157() { var o = new core.Map<core.String, api.InstancesScopedList>(); o["x"] = buildInstancesScopedList(); o["y"] = buildInstancesScopedList(); return o; } -checkUnnamed2142(core.Map<core.String, api.InstancesScopedList> o) { +checkUnnamed2157(core.Map<core.String, api.InstancesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkInstancesScopedList(o["x"]); checkInstancesScopedList(o["y"]); @@ -2858,7 +2949,7 @@ buildCounterInstanceAggregatedList++; if (buildCounterInstanceAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2142(); + o.items = buildUnnamed2157(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2871,7 +2962,7 @@ buildCounterInstanceAggregatedList++; if (buildCounterInstanceAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2142(o.items); + checkUnnamed2157(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2879,14 +2970,14 @@ buildCounterInstanceAggregatedList--; } -buildUnnamed2143() { +buildUnnamed2158() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2143(core.List<api.NamedPort> o) { +checkUnnamed2158(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -2903,7 +2994,7 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.namedPorts = buildUnnamed2143(); + o.namedPorts = buildUnnamed2158(); o.network = "foo"; o.region = "foo"; o.selfLink = "foo"; @@ -2924,7 +3015,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2143(o.namedPorts); + checkUnnamed2158(o.namedPorts); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2935,14 +3026,14 @@ buildCounterInstanceGroup--; } -buildUnnamed2144() { +buildUnnamed2159() { var o = new core.Map<core.String, api.InstanceGroupsScopedList>(); o["x"] = buildInstanceGroupsScopedList(); o["y"] = buildInstanceGroupsScopedList(); return o; } -checkUnnamed2144(core.Map<core.String, api.InstanceGroupsScopedList> o) { +checkUnnamed2159(core.Map<core.String, api.InstanceGroupsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupsScopedList(o["x"]); checkInstanceGroupsScopedList(o["y"]); @@ -2954,7 +3045,7 @@ buildCounterInstanceGroupAggregatedList++; if (buildCounterInstanceGroupAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2144(); + o.items = buildUnnamed2159(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2967,7 +3058,7 @@ buildCounterInstanceGroupAggregatedList++; if (buildCounterInstanceGroupAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2144(o.items); + checkUnnamed2159(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2975,14 +3066,14 @@ buildCounterInstanceGroupAggregatedList--; } -buildUnnamed2145() { +buildUnnamed2160() { var o = new core.List<api.InstanceGroup>(); o.add(buildInstanceGroup()); o.add(buildInstanceGroup()); return o; } -checkUnnamed2145(core.List<api.InstanceGroup> o) { +checkUnnamed2160(core.List<api.InstanceGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroup(o[0]); checkInstanceGroup(o[1]); @@ -2994,7 +3085,7 @@ buildCounterInstanceGroupList++; if (buildCounterInstanceGroupList < 3) { o.id = "foo"; - o.items = buildUnnamed2145(); + o.items = buildUnnamed2160(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3007,7 +3098,7 @@ buildCounterInstanceGroupList++; if (buildCounterInstanceGroupList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2145(o.items); + checkUnnamed2160(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3015,27 +3106,27 @@ buildCounterInstanceGroupList--; } -buildUnnamed2146() { +buildUnnamed2161() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2146(core.List<api.NamedPort> o) { +checkUnnamed2161(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); } -buildUnnamed2147() { +buildUnnamed2162() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2147(core.List<core.String> o) { +checkUnnamed2162(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3056,10 +3147,10 @@ o.instanceTemplate = "foo"; o.kind = "foo"; o.name = "foo"; - o.namedPorts = buildUnnamed2146(); + o.namedPorts = buildUnnamed2161(); o.region = "foo"; o.selfLink = "foo"; - o.targetPools = buildUnnamed2147(); + o.targetPools = buildUnnamed2162(); o.targetSize = 42; o.zone = "foo"; } @@ -3080,10 +3171,10 @@ unittest.expect(o.instanceTemplate, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2146(o.namedPorts); + checkUnnamed2161(o.namedPorts); unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2147(o.targetPools); + checkUnnamed2162(o.targetPools); unittest.expect(o.targetSize, unittest.equals(42)); unittest.expect(o.zone, unittest.equals('foo')); } @@ -3123,14 +3214,14 @@ buildCounterInstanceGroupManagerActionsSummary--; } -buildUnnamed2148() { +buildUnnamed2163() { var o = new core.Map<core.String, api.InstanceGroupManagersScopedList>(); o["x"] = buildInstanceGroupManagersScopedList(); o["y"] = buildInstanceGroupManagersScopedList(); return o; } -checkUnnamed2148(core.Map<core.String, api.InstanceGroupManagersScopedList> o) { +checkUnnamed2163(core.Map<core.String, api.InstanceGroupManagersScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagersScopedList(o["x"]); checkInstanceGroupManagersScopedList(o["y"]); @@ -3142,7 +3233,7 @@ buildCounterInstanceGroupManagerAggregatedList++; if (buildCounterInstanceGroupManagerAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2148(); + o.items = buildUnnamed2163(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3155,7 +3246,7 @@ buildCounterInstanceGroupManagerAggregatedList++; if (buildCounterInstanceGroupManagerAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2148(o.items); + checkUnnamed2163(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3163,14 +3254,14 @@ buildCounterInstanceGroupManagerAggregatedList--; } -buildUnnamed2149() { +buildUnnamed2164() { var o = new core.List<api.InstanceGroupManager>(); o.add(buildInstanceGroupManager()); o.add(buildInstanceGroupManager()); return o; } -checkUnnamed2149(core.List<api.InstanceGroupManager> o) { +checkUnnamed2164(core.List<api.InstanceGroupManager> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManager(o[0]); checkInstanceGroupManager(o[1]); @@ -3182,7 +3273,7 @@ buildCounterInstanceGroupManagerList++; if (buildCounterInstanceGroupManagerList < 3) { o.id = "foo"; - o.items = buildUnnamed2149(); + o.items = buildUnnamed2164(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3195,7 +3286,7 @@ buildCounterInstanceGroupManagerList++; if (buildCounterInstanceGroupManagerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2149(o.items); + checkUnnamed2164(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3203,14 +3294,14 @@ buildCounterInstanceGroupManagerList--; } -buildUnnamed2150() { +buildUnnamed2165() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2150(core.List<core.String> o) { +checkUnnamed2165(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3221,7 +3312,7 @@ var o = new api.InstanceGroupManagersAbandonInstancesRequest(); buildCounterInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { - o.instances = buildUnnamed2150(); + o.instances = buildUnnamed2165(); } buildCounterInstanceGroupManagersAbandonInstancesRequest--; return o; @@ -3230,19 +3321,19 @@ checkInstanceGroupManagersAbandonInstancesRequest(api.InstanceGroupManagersAbandonInstancesRequest o) { buildCounterInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { - checkUnnamed2150(o.instances); + checkUnnamed2165(o.instances); } buildCounterInstanceGroupManagersAbandonInstancesRequest--; } -buildUnnamed2151() { +buildUnnamed2166() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2151(core.List<core.String> o) { +checkUnnamed2166(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3253,7 +3344,7 @@ var o = new api.InstanceGroupManagersDeleteInstancesRequest(); buildCounterInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { - o.instances = buildUnnamed2151(); + o.instances = buildUnnamed2166(); } buildCounterInstanceGroupManagersDeleteInstancesRequest--; return o; @@ -3262,19 +3353,19 @@ checkInstanceGroupManagersDeleteInstancesRequest(api.InstanceGroupManagersDeleteInstancesRequest o) { buildCounterInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { - checkUnnamed2151(o.instances); + checkUnnamed2166(o.instances); } buildCounterInstanceGroupManagersDeleteInstancesRequest--; } -buildUnnamed2152() { +buildUnnamed2167() { var o = new core.List<api.ManagedInstance>(); o.add(buildManagedInstance()); o.add(buildManagedInstance()); return o; } -checkUnnamed2152(core.List<api.ManagedInstance> o) { +checkUnnamed2167(core.List<api.ManagedInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedInstance(o[0]); checkManagedInstance(o[1]); @@ -3285,7 +3376,7 @@ var o = new api.InstanceGroupManagersListManagedInstancesResponse(); buildCounterInstanceGroupManagersListManagedInstancesResponse++; if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { - o.managedInstances = buildUnnamed2152(); + o.managedInstances = buildUnnamed2167(); } buildCounterInstanceGroupManagersListManagedInstancesResponse--; return o; @@ -3294,19 +3385,19 @@ checkInstanceGroupManagersListManagedInstancesResponse(api.InstanceGroupManagersListManagedInstancesResponse o) { buildCounterInstanceGroupManagersListManagedInstancesResponse++; if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { - checkUnnamed2152(o.managedInstances); + checkUnnamed2167(o.managedInstances); } buildCounterInstanceGroupManagersListManagedInstancesResponse--; } -buildUnnamed2153() { +buildUnnamed2168() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2153(core.List<core.String> o) { +checkUnnamed2168(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3317,7 +3408,7 @@ var o = new api.InstanceGroupManagersRecreateInstancesRequest(); buildCounterInstanceGroupManagersRecreateInstancesRequest++; if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { - o.instances = buildUnnamed2153(); + o.instances = buildUnnamed2168(); } buildCounterInstanceGroupManagersRecreateInstancesRequest--; return o; @@ -3326,19 +3417,19 @@ checkInstanceGroupManagersRecreateInstancesRequest(api.InstanceGroupManagersRecreateInstancesRequest o) { buildCounterInstanceGroupManagersRecreateInstancesRequest++; if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { - checkUnnamed2153(o.instances); + checkUnnamed2168(o.instances); } buildCounterInstanceGroupManagersRecreateInstancesRequest--; } -buildUnnamed2154() { +buildUnnamed2169() { var o = new core.List<api.InstanceGroupManager>(); o.add(buildInstanceGroupManager()); o.add(buildInstanceGroupManager()); return o; } -checkUnnamed2154(core.List<api.InstanceGroupManager> o) { +checkUnnamed2169(core.List<api.InstanceGroupManager> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManager(o[0]); checkInstanceGroupManager(o[1]); @@ -3365,14 +3456,14 @@ buildCounterInstanceGroupManagersScopedListWarningData--; } -buildUnnamed2155() { +buildUnnamed2170() { var o = new core.List<api.InstanceGroupManagersScopedListWarningData>(); o.add(buildInstanceGroupManagersScopedListWarningData()); o.add(buildInstanceGroupManagersScopedListWarningData()); return o; } -checkUnnamed2155(core.List<api.InstanceGroupManagersScopedListWarningData> o) { +checkUnnamed2170(core.List<api.InstanceGroupManagersScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagersScopedListWarningData(o[0]); checkInstanceGroupManagersScopedListWarningData(o[1]); @@ -3384,7 +3475,7 @@ buildCounterInstanceGroupManagersScopedListWarning++; if (buildCounterInstanceGroupManagersScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2155(); + o.data = buildUnnamed2170(); o.message = "foo"; } buildCounterInstanceGroupManagersScopedListWarning--; @@ -3395,7 +3486,7 @@ buildCounterInstanceGroupManagersScopedListWarning++; if (buildCounterInstanceGroupManagersScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2155(o.data); + checkUnnamed2170(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupManagersScopedListWarning--; @@ -3406,7 +3497,7 @@ var o = new api.InstanceGroupManagersScopedList(); buildCounterInstanceGroupManagersScopedList++; if (buildCounterInstanceGroupManagersScopedList < 3) { - o.instanceGroupManagers = buildUnnamed2154(); + o.instanceGroupManagers = buildUnnamed2169(); o.warning = buildInstanceGroupManagersScopedListWarning(); } buildCounterInstanceGroupManagersScopedList--; @@ -3416,7 +3507,7 @@ checkInstanceGroupManagersScopedList(api.InstanceGroupManagersScopedList o) { buildCounterInstanceGroupManagersScopedList++; if (buildCounterInstanceGroupManagersScopedList < 3) { - checkUnnamed2154(o.instanceGroupManagers); + checkUnnamed2169(o.instanceGroupManagers); checkInstanceGroupManagersScopedListWarning(o.warning); } buildCounterInstanceGroupManagersScopedList--; @@ -3441,14 +3532,14 @@ buildCounterInstanceGroupManagersSetInstanceTemplateRequest--; } -buildUnnamed2156() { +buildUnnamed2171() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2156(core.List<core.String> o) { +checkUnnamed2171(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3460,7 +3551,7 @@ buildCounterInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { o.fingerprint = "foo"; - o.targetPools = buildUnnamed2156(); + o.targetPools = buildUnnamed2171(); } buildCounterInstanceGroupManagersSetTargetPoolsRequest--; return o; @@ -3470,19 +3561,19 @@ buildCounterInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2156(o.targetPools); + checkUnnamed2171(o.targetPools); } buildCounterInstanceGroupManagersSetTargetPoolsRequest--; } -buildUnnamed2157() { +buildUnnamed2172() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2157(core.List<api.InstanceReference> o) { +checkUnnamed2172(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -3493,7 +3584,7 @@ var o = new api.InstanceGroupsAddInstancesRequest(); buildCounterInstanceGroupsAddInstancesRequest++; if (buildCounterInstanceGroupsAddInstancesRequest < 3) { - o.instances = buildUnnamed2157(); + o.instances = buildUnnamed2172(); } buildCounterInstanceGroupsAddInstancesRequest--; return o; @@ -3502,19 +3593,19 @@ checkInstanceGroupsAddInstancesRequest(api.InstanceGroupsAddInstancesRequest o) { buildCounterInstanceGroupsAddInstancesRequest++; if (buildCounterInstanceGroupsAddInstancesRequest < 3) { - checkUnnamed2157(o.instances); + checkUnnamed2172(o.instances); } buildCounterInstanceGroupsAddInstancesRequest--; } -buildUnnamed2158() { +buildUnnamed2173() { var o = new core.List<api.InstanceWithNamedPorts>(); o.add(buildInstanceWithNamedPorts()); o.add(buildInstanceWithNamedPorts()); return o; } -checkUnnamed2158(core.List<api.InstanceWithNamedPorts> o) { +checkUnnamed2173(core.List<api.InstanceWithNamedPorts> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceWithNamedPorts(o[0]); checkInstanceWithNamedPorts(o[1]); @@ -3526,7 +3617,7 @@ buildCounterInstanceGroupsListInstances++; if (buildCounterInstanceGroupsListInstances < 3) { o.id = "foo"; - o.items = buildUnnamed2158(); + o.items = buildUnnamed2173(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3539,7 +3630,7 @@ buildCounterInstanceGroupsListInstances++; if (buildCounterInstanceGroupsListInstances < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2158(o.items); + checkUnnamed2173(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3566,14 +3657,14 @@ buildCounterInstanceGroupsListInstancesRequest--; } -buildUnnamed2159() { +buildUnnamed2174() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2159(core.List<api.InstanceReference> o) { +checkUnnamed2174(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -3584,7 +3675,7 @@ var o = new api.InstanceGroupsRemoveInstancesRequest(); buildCounterInstanceGroupsRemoveInstancesRequest++; if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { - o.instances = buildUnnamed2159(); + o.instances = buildUnnamed2174(); } buildCounterInstanceGroupsRemoveInstancesRequest--; return o; @@ -3593,19 +3684,19 @@ checkInstanceGroupsRemoveInstancesRequest(api.InstanceGroupsRemoveInstancesRequest o) { buildCounterInstanceGroupsRemoveInstancesRequest++; if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { - checkUnnamed2159(o.instances); + checkUnnamed2174(o.instances); } buildCounterInstanceGroupsRemoveInstancesRequest--; } -buildUnnamed2160() { +buildUnnamed2175() { var o = new core.List<api.InstanceGroup>(); o.add(buildInstanceGroup()); o.add(buildInstanceGroup()); return o; } -checkUnnamed2160(core.List<api.InstanceGroup> o) { +checkUnnamed2175(core.List<api.InstanceGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroup(o[0]); checkInstanceGroup(o[1]); @@ -3632,14 +3723,14 @@ buildCounterInstanceGroupsScopedListWarningData--; } -buildUnnamed2161() { +buildUnnamed2176() { var o = new core.List<api.InstanceGroupsScopedListWarningData>(); o.add(buildInstanceGroupsScopedListWarningData()); o.add(buildInstanceGroupsScopedListWarningData()); return o; } -checkUnnamed2161(core.List<api.InstanceGroupsScopedListWarningData> o) { +checkUnnamed2176(core.List<api.InstanceGroupsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupsScopedListWarningData(o[0]); checkInstanceGroupsScopedListWarningData(o[1]); @@ -3651,7 +3742,7 @@ buildCounterInstanceGroupsScopedListWarning++; if (buildCounterInstanceGroupsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2161(); + o.data = buildUnnamed2176(); o.message = "foo"; } buildCounterInstanceGroupsScopedListWarning--; @@ -3662,7 +3753,7 @@ buildCounterInstanceGroupsScopedListWarning++; if (buildCounterInstanceGroupsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2161(o.data); + checkUnnamed2176(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupsScopedListWarning--; @@ -3673,7 +3764,7 @@ var o = new api.InstanceGroupsScopedList(); buildCounterInstanceGroupsScopedList++; if (buildCounterInstanceGroupsScopedList < 3) { - o.instanceGroups = buildUnnamed2160(); + o.instanceGroups = buildUnnamed2175(); o.warning = buildInstanceGroupsScopedListWarning(); } buildCounterInstanceGroupsScopedList--; @@ -3683,20 +3774,20 @@ checkInstanceGroupsScopedList(api.InstanceGroupsScopedList o) { buildCounterInstanceGroupsScopedList++; if (buildCounterInstanceGroupsScopedList < 3) { - checkUnnamed2160(o.instanceGroups); + checkUnnamed2175(o.instanceGroups); checkInstanceGroupsScopedListWarning(o.warning); } buildCounterInstanceGroupsScopedList--; } -buildUnnamed2162() { +buildUnnamed2177() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2162(core.List<api.NamedPort> o) { +checkUnnamed2177(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -3708,7 +3799,7 @@ buildCounterInstanceGroupsSetNamedPortsRequest++; if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { o.fingerprint = "foo"; - o.namedPorts = buildUnnamed2162(); + o.namedPorts = buildUnnamed2177(); } buildCounterInstanceGroupsSetNamedPortsRequest--; return o; @@ -3718,19 +3809,19 @@ buildCounterInstanceGroupsSetNamedPortsRequest++; if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2162(o.namedPorts); + checkUnnamed2177(o.namedPorts); } buildCounterInstanceGroupsSetNamedPortsRequest--; } -buildUnnamed2163() { +buildUnnamed2178() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed2163(core.List<api.Instance> o) { +checkUnnamed2178(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -3742,7 +3833,7 @@ buildCounterInstanceList++; if (buildCounterInstanceList < 3) { o.id = "foo"; - o.items = buildUnnamed2163(); + o.items = buildUnnamed2178(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3755,7 +3846,7 @@ buildCounterInstanceList++; if (buildCounterInstanceList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2163(o.items); + checkUnnamed2178(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3784,40 +3875,53 @@ buildCounterInstanceMoveRequest--; } -buildUnnamed2164() { +buildUnnamed2179() { var o = new core.List<api.AttachedDisk>(); o.add(buildAttachedDisk()); o.add(buildAttachedDisk()); return o; } -checkUnnamed2164(core.List<api.AttachedDisk> o) { +checkUnnamed2179(core.List<api.AttachedDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachedDisk(o[0]); checkAttachedDisk(o[1]); } -buildUnnamed2165() { +buildUnnamed2180() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed2180(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +buildUnnamed2181() { var o = new core.List<api.NetworkInterface>(); o.add(buildNetworkInterface()); o.add(buildNetworkInterface()); return o; } -checkUnnamed2165(core.List<api.NetworkInterface> o) { +checkUnnamed2181(core.List<api.NetworkInterface> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkInterface(o[0]); checkNetworkInterface(o[1]); } -buildUnnamed2166() { +buildUnnamed2182() { var o = new core.List<api.ServiceAccount>(); o.add(buildServiceAccount()); o.add(buildServiceAccount()); return o; } -checkUnnamed2166(core.List<api.ServiceAccount> o) { +checkUnnamed2182(core.List<api.ServiceAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccount(o[0]); checkServiceAccount(o[1]); @@ -3830,12 +3934,13 @@ if (buildCounterInstanceProperties < 3) { o.canIpForward = true; o.description = "foo"; - o.disks = buildUnnamed2164(); + o.disks = buildUnnamed2179(); + o.labels = buildUnnamed2180(); o.machineType = "foo"; o.metadata = buildMetadata(); - o.networkInterfaces = buildUnnamed2165(); + o.networkInterfaces = buildUnnamed2181(); o.scheduling = buildScheduling(); - o.serviceAccounts = buildUnnamed2166(); + o.serviceAccounts = buildUnnamed2182(); o.tags = buildTags(); } buildCounterInstanceProperties--; @@ -3847,12 +3952,13 @@ if (buildCounterInstanceProperties < 3) { unittest.expect(o.canIpForward, unittest.isTrue); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2164(o.disks); + checkUnnamed2179(o.disks); + checkUnnamed2180(o.labels); unittest.expect(o.machineType, unittest.equals('foo')); checkMetadata(o.metadata); - checkUnnamed2165(o.networkInterfaces); + checkUnnamed2181(o.networkInterfaces); checkScheduling(o.scheduling); - checkUnnamed2166(o.serviceAccounts); + checkUnnamed2182(o.serviceAccounts); checkTags(o.tags); } buildCounterInstanceProperties--; @@ -3908,14 +4014,14 @@ buildCounterInstanceTemplate--; } -buildUnnamed2167() { +buildUnnamed2183() { var o = new core.List<api.InstanceTemplate>(); o.add(buildInstanceTemplate()); o.add(buildInstanceTemplate()); return o; } -checkUnnamed2167(core.List<api.InstanceTemplate> o) { +checkUnnamed2183(core.List<api.InstanceTemplate> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceTemplate(o[0]); checkInstanceTemplate(o[1]); @@ -3927,7 +4033,7 @@ buildCounterInstanceTemplateList++; if (buildCounterInstanceTemplateList < 3) { o.id = "foo"; - o.items = buildUnnamed2167(); + o.items = buildUnnamed2183(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3940,7 +4046,7 @@ buildCounterInstanceTemplateList++; if (buildCounterInstanceTemplateList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2167(o.items); + checkUnnamed2183(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3948,14 +4054,14 @@ buildCounterInstanceTemplateList--; } -buildUnnamed2168() { +buildUnnamed2184() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2168(core.List<api.NamedPort> o) { +checkUnnamed2184(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -3967,7 +4073,7 @@ buildCounterInstanceWithNamedPorts++; if (buildCounterInstanceWithNamedPorts < 3) { o.instance = "foo"; - o.namedPorts = buildUnnamed2168(); + o.namedPorts = buildUnnamed2184(); o.status = "foo"; } buildCounterInstanceWithNamedPorts--; @@ -3978,20 +4084,20 @@ buildCounterInstanceWithNamedPorts++; if (buildCounterInstanceWithNamedPorts < 3) { unittest.expect(o.instance, unittest.equals('foo')); - checkUnnamed2168(o.namedPorts); + checkUnnamed2184(o.namedPorts); unittest.expect(o.status, unittest.equals('foo')); } buildCounterInstanceWithNamedPorts--; } -buildUnnamed2169() { +buildUnnamed2185() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed2169(core.List<api.Instance> o) { +checkUnnamed2185(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -4018,14 +4124,14 @@ buildCounterInstancesScopedListWarningData--; } -buildUnnamed2170() { +buildUnnamed2186() { var o = new core.List<api.InstancesScopedListWarningData>(); o.add(buildInstancesScopedListWarningData()); o.add(buildInstancesScopedListWarningData()); return o; } -checkUnnamed2170(core.List<api.InstancesScopedListWarningData> o) { +checkUnnamed2186(core.List<api.InstancesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstancesScopedListWarningData(o[0]); checkInstancesScopedListWarningData(o[1]); @@ -4037,7 +4143,7 @@ buildCounterInstancesScopedListWarning++; if (buildCounterInstancesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2170(); + o.data = buildUnnamed2186(); o.message = "foo"; } buildCounterInstancesScopedListWarning--; @@ -4048,7 +4154,7 @@ buildCounterInstancesScopedListWarning++; if (buildCounterInstancesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2170(o.data); + checkUnnamed2186(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstancesScopedListWarning--; @@ -4059,7 +4165,7 @@ var o = new api.InstancesScopedList(); buildCounterInstancesScopedList++; if (buildCounterInstancesScopedList < 3) { - o.instances = buildUnnamed2169(); + o.instances = buildUnnamed2185(); o.warning = buildInstancesScopedListWarning(); } buildCounterInstancesScopedList--; @@ -4069,12 +4175,46 @@ checkInstancesScopedList(api.InstancesScopedList o) { buildCounterInstancesScopedList++; if (buildCounterInstancesScopedList < 3) { - checkUnnamed2169(o.instances); + checkUnnamed2185(o.instances); checkInstancesScopedListWarning(o.warning); } buildCounterInstancesScopedList--; } +buildUnnamed2187() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed2187(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +core.int buildCounterInstancesSetLabelsRequest = 0; +buildInstancesSetLabelsRequest() { + var o = new api.InstancesSetLabelsRequest(); + buildCounterInstancesSetLabelsRequest++; + if (buildCounterInstancesSetLabelsRequest < 3) { + o.labelFingerprint = "foo"; + o.labels = buildUnnamed2187(); + } + buildCounterInstancesSetLabelsRequest--; + return o; +} + +checkInstancesSetLabelsRequest(api.InstancesSetLabelsRequest o) { + buildCounterInstancesSetLabelsRequest++; + if (buildCounterInstancesSetLabelsRequest < 3) { + unittest.expect(o.labelFingerprint, unittest.equals('foo')); + checkUnnamed2187(o.labels); + } + buildCounterInstancesSetLabelsRequest--; +} + core.int buildCounterInstancesSetMachineTypeRequest = 0; buildInstancesSetMachineTypeRequest() { var o = new api.InstancesSetMachineTypeRequest(); @@ -4094,14 +4234,14 @@ buildCounterInstancesSetMachineTypeRequest--; } -buildUnnamed2171() { +buildUnnamed2188() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2171(core.List<core.String> o) { +checkUnnamed2188(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4113,7 +4253,7 @@ buildCounterInstancesSetServiceAccountRequest++; if (buildCounterInstancesSetServiceAccountRequest < 3) { o.email = "foo"; - o.scopes = buildUnnamed2171(); + o.scopes = buildUnnamed2188(); } buildCounterInstancesSetServiceAccountRequest--; return o; @@ -4123,19 +4263,19 @@ buildCounterInstancesSetServiceAccountRequest++; if (buildCounterInstancesSetServiceAccountRequest < 3) { unittest.expect(o.email, unittest.equals('foo')); - checkUnnamed2171(o.scopes); + checkUnnamed2188(o.scopes); } buildCounterInstancesSetServiceAccountRequest--; } -buildUnnamed2172() { +buildUnnamed2189() { var o = new core.List<api.CustomerEncryptionKeyProtectedDisk>(); o.add(buildCustomerEncryptionKeyProtectedDisk()); o.add(buildCustomerEncryptionKeyProtectedDisk()); return o; } -checkUnnamed2172(core.List<api.CustomerEncryptionKeyProtectedDisk> o) { +checkUnnamed2189(core.List<api.CustomerEncryptionKeyProtectedDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomerEncryptionKeyProtectedDisk(o[0]); checkCustomerEncryptionKeyProtectedDisk(o[1]); @@ -4146,7 +4286,7 @@ var o = new api.InstancesStartWithEncryptionKeyRequest(); buildCounterInstancesStartWithEncryptionKeyRequest++; if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { - o.disks = buildUnnamed2172(); + o.disks = buildUnnamed2189(); } buildCounterInstancesStartWithEncryptionKeyRequest--; return o; @@ -4155,7 +4295,7 @@ checkInstancesStartWithEncryptionKeyRequest(api.InstancesStartWithEncryptionKeyRequest o) { buildCounterInstancesStartWithEncryptionKeyRequest++; if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { - checkUnnamed2172(o.disks); + checkUnnamed2189(o.disks); } buildCounterInstancesStartWithEncryptionKeyRequest--; } @@ -4204,14 +4344,14 @@ buildCounterMachineTypeScratchDisks--; } -buildUnnamed2173() { +buildUnnamed2190() { var o = new core.List<api.MachineTypeScratchDisks>(); o.add(buildMachineTypeScratchDisks()); o.add(buildMachineTypeScratchDisks()); return o; } -checkUnnamed2173(core.List<api.MachineTypeScratchDisks> o) { +checkUnnamed2190(core.List<api.MachineTypeScratchDisks> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypeScratchDisks(o[0]); checkMachineTypeScratchDisks(o[1]); @@ -4234,7 +4374,7 @@ o.maximumPersistentDisksSizeGb = "foo"; o.memoryMb = 42; o.name = "foo"; - o.scratchDisks = buildUnnamed2173(); + o.scratchDisks = buildUnnamed2190(); o.selfLink = "foo"; o.zone = "foo"; } @@ -4257,21 +4397,21 @@ unittest.expect(o.maximumPersistentDisksSizeGb, unittest.equals('foo')); unittest.expect(o.memoryMb, unittest.equals(42)); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2173(o.scratchDisks); + checkUnnamed2190(o.scratchDisks); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterMachineType--; } -buildUnnamed2174() { +buildUnnamed2191() { var o = new core.Map<core.String, api.MachineTypesScopedList>(); o["x"] = buildMachineTypesScopedList(); o["y"] = buildMachineTypesScopedList(); return o; } -checkUnnamed2174(core.Map<core.String, api.MachineTypesScopedList> o) { +checkUnnamed2191(core.Map<core.String, api.MachineTypesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypesScopedList(o["x"]); checkMachineTypesScopedList(o["y"]); @@ -4283,7 +4423,7 @@ buildCounterMachineTypeAggregatedList++; if (buildCounterMachineTypeAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2174(); + o.items = buildUnnamed2191(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4296,7 +4436,7 @@ buildCounterMachineTypeAggregatedList++; if (buildCounterMachineTypeAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2174(o.items); + checkUnnamed2191(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4304,14 +4444,14 @@ buildCounterMachineTypeAggregatedList--; } -buildUnnamed2175() { +buildUnnamed2192() { var o = new core.List<api.MachineType>(); o.add(buildMachineType()); o.add(buildMachineType()); return o; } -checkUnnamed2175(core.List<api.MachineType> o) { +checkUnnamed2192(core.List<api.MachineType> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineType(o[0]); checkMachineType(o[1]); @@ -4323,7 +4463,7 @@ buildCounterMachineTypeList++; if (buildCounterMachineTypeList < 3) { o.id = "foo"; - o.items = buildUnnamed2175(); + o.items = buildUnnamed2192(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4336,7 +4476,7 @@ buildCounterMachineTypeList++; if (buildCounterMachineTypeList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2175(o.items); + checkUnnamed2192(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4344,14 +4484,14 @@ buildCounterMachineTypeList--; } -buildUnnamed2176() { +buildUnnamed2193() { var o = new core.List<api.MachineType>(); o.add(buildMachineType()); o.add(buildMachineType()); return o; } -checkUnnamed2176(core.List<api.MachineType> o) { +checkUnnamed2193(core.List<api.MachineType> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineType(o[0]); checkMachineType(o[1]); @@ -4378,14 +4518,14 @@ buildCounterMachineTypesScopedListWarningData--; } -buildUnnamed2177() { +buildUnnamed2194() { var o = new core.List<api.MachineTypesScopedListWarningData>(); o.add(buildMachineTypesScopedListWarningData()); o.add(buildMachineTypesScopedListWarningData()); return o; } -checkUnnamed2177(core.List<api.MachineTypesScopedListWarningData> o) { +checkUnnamed2194(core.List<api.MachineTypesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypesScopedListWarningData(o[0]); checkMachineTypesScopedListWarningData(o[1]); @@ -4397,7 +4537,7 @@ buildCounterMachineTypesScopedListWarning++; if (buildCounterMachineTypesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2177(); + o.data = buildUnnamed2194(); o.message = "foo"; } buildCounterMachineTypesScopedListWarning--; @@ -4408,7 +4548,7 @@ buildCounterMachineTypesScopedListWarning++; if (buildCounterMachineTypesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2177(o.data); + checkUnnamed2194(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterMachineTypesScopedListWarning--; @@ -4419,7 +4559,7 @@ var o = new api.MachineTypesScopedList(); buildCounterMachineTypesScopedList++; if (buildCounterMachineTypesScopedList < 3) { - o.machineTypes = buildUnnamed2176(); + o.machineTypes = buildUnnamed2193(); o.warning = buildMachineTypesScopedListWarning(); } buildCounterMachineTypesScopedList--; @@ -4429,7 +4569,7 @@ checkMachineTypesScopedList(api.MachineTypesScopedList o) { buildCounterMachineTypesScopedList++; if (buildCounterMachineTypesScopedList < 3) { - checkUnnamed2176(o.machineTypes); + checkUnnamed2193(o.machineTypes); checkMachineTypesScopedListWarning(o.warning); } buildCounterMachineTypesScopedList--; @@ -4485,14 +4625,14 @@ buildCounterManagedInstanceLastAttemptErrorsErrors--; } -buildUnnamed2178() { +buildUnnamed2195() { var o = new core.List<api.ManagedInstanceLastAttemptErrorsErrors>(); o.add(buildManagedInstanceLastAttemptErrorsErrors()); o.add(buildManagedInstanceLastAttemptErrorsErrors()); return o; } -checkUnnamed2178(core.List<api.ManagedInstanceLastAttemptErrorsErrors> o) { +checkUnnamed2195(core.List<api.ManagedInstanceLastAttemptErrorsErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedInstanceLastAttemptErrorsErrors(o[0]); checkManagedInstanceLastAttemptErrorsErrors(o[1]); @@ -4503,7 +4643,7 @@ var o = new api.ManagedInstanceLastAttemptErrors(); buildCounterManagedInstanceLastAttemptErrors++; if (buildCounterManagedInstanceLastAttemptErrors < 3) { - o.errors = buildUnnamed2178(); + o.errors = buildUnnamed2195(); } buildCounterManagedInstanceLastAttemptErrors--; return o; @@ -4512,7 +4652,7 @@ checkManagedInstanceLastAttemptErrors(api.ManagedInstanceLastAttemptErrors o) { buildCounterManagedInstanceLastAttemptErrors++; if (buildCounterManagedInstanceLastAttemptErrors < 3) { - checkUnnamed2178(o.errors); + checkUnnamed2195(o.errors); } buildCounterManagedInstanceLastAttemptErrors--; } @@ -4557,14 +4697,14 @@ buildCounterMetadataItems--; } -buildUnnamed2179() { +buildUnnamed2196() { var o = new core.List<api.MetadataItems>(); o.add(buildMetadataItems()); o.add(buildMetadataItems()); return o; } -checkUnnamed2179(core.List<api.MetadataItems> o) { +checkUnnamed2196(core.List<api.MetadataItems> o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataItems(o[0]); checkMetadataItems(o[1]); @@ -4576,7 +4716,7 @@ buildCounterMetadata++; if (buildCounterMetadata < 3) { o.fingerprint = "foo"; - o.items = buildUnnamed2179(); + o.items = buildUnnamed2196(); o.kind = "foo"; } buildCounterMetadata--; @@ -4587,7 +4727,7 @@ buildCounterMetadata++; if (buildCounterMetadata < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2179(o.items); + checkUnnamed2196(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; @@ -4614,14 +4754,27 @@ buildCounterNamedPort--; } -buildUnnamed2180() { +buildUnnamed2197() { + var o = new core.List<api.NetworkPeering>(); + o.add(buildNetworkPeering()); + o.add(buildNetworkPeering()); + return o; +} + +checkUnnamed2197(core.List<api.NetworkPeering> o) { + unittest.expect(o, unittest.hasLength(2)); + checkNetworkPeering(o[0]); + checkNetworkPeering(o[1]); +} + +buildUnnamed2198() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2180(core.List<core.String> o) { +checkUnnamed2198(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4640,8 +4793,9 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; + o.peerings = buildUnnamed2197(); o.selfLink = "foo"; - o.subnetworks = buildUnnamed2180(); + o.subnetworks = buildUnnamed2198(); } buildCounterNetwork--; return o; @@ -4658,20 +4812,21 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); + checkUnnamed2197(o.peerings); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2180(o.subnetworks); + checkUnnamed2198(o.subnetworks); } buildCounterNetwork--; } -buildUnnamed2181() { +buildUnnamed2199() { var o = new core.List<api.AccessConfig>(); o.add(buildAccessConfig()); o.add(buildAccessConfig()); return o; } -checkUnnamed2181(core.List<api.AccessConfig> o) { +checkUnnamed2199(core.List<api.AccessConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAccessConfig(o[0]); checkAccessConfig(o[1]); @@ -4682,7 +4837,7 @@ var o = new api.NetworkInterface(); buildCounterNetworkInterface++; if (buildCounterNetworkInterface < 3) { - o.accessConfigs = buildUnnamed2181(); + o.accessConfigs = buildUnnamed2199(); o.kind = "foo"; o.name = "foo"; o.network = "foo"; @@ -4696,7 +4851,7 @@ checkNetworkInterface(api.NetworkInterface o) { buildCounterNetworkInterface++; if (buildCounterNetworkInterface < 3) { - checkUnnamed2181(o.accessConfigs); + checkUnnamed2199(o.accessConfigs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); @@ -4706,14 +4861,14 @@ buildCounterNetworkInterface--; } -buildUnnamed2182() { +buildUnnamed2200() { var o = new core.List<api.Network>(); o.add(buildNetwork()); o.add(buildNetwork()); return o; } -checkUnnamed2182(core.List<api.Network> o) { +checkUnnamed2200(core.List<api.Network> o) { unittest.expect(o, unittest.hasLength(2)); checkNetwork(o[0]); checkNetwork(o[1]); @@ -4725,7 +4880,7 @@ buildCounterNetworkList++; if (buildCounterNetworkList < 3) { o.id = "foo"; - o.items = buildUnnamed2182(); + o.items = buildUnnamed2200(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4738,7 +4893,7 @@ buildCounterNetworkList++; if (buildCounterNetworkList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2182(o.items); + checkUnnamed2200(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4746,6 +4901,75 @@ buildCounterNetworkList--; } +core.int buildCounterNetworkPeering = 0; +buildNetworkPeering() { + var o = new api.NetworkPeering(); + buildCounterNetworkPeering++; + if (buildCounterNetworkPeering < 3) { + o.autoCreateRoutes = true; + o.name = "foo"; + o.network = "foo"; + o.state = "foo"; + o.stateDetails = "foo"; + } + buildCounterNetworkPeering--; + return o; +} + +checkNetworkPeering(api.NetworkPeering o) { + buildCounterNetworkPeering++; + if (buildCounterNetworkPeering < 3) { + unittest.expect(o.autoCreateRoutes, unittest.isTrue); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.network, unittest.equals('foo')); + unittest.expect(o.state, unittest.equals('foo')); + unittest.expect(o.stateDetails, unittest.equals('foo')); + } + buildCounterNetworkPeering--; +} + +core.int buildCounterNetworksAddPeeringRequest = 0; +buildNetworksAddPeeringRequest() { + var o = new api.NetworksAddPeeringRequest(); + buildCounterNetworksAddPeeringRequest++; + if (buildCounterNetworksAddPeeringRequest < 3) { + o.autoCreateRoutes = true; + o.name = "foo"; + o.peerNetwork = "foo"; + } + buildCounterNetworksAddPeeringRequest--; + return o; +} + +checkNetworksAddPeeringRequest(api.NetworksAddPeeringRequest o) { + buildCounterNetworksAddPeeringRequest++; + if (buildCounterNetworksAddPeeringRequest < 3) { + unittest.expect(o.autoCreateRoutes, unittest.isTrue); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.peerNetwork, unittest.equals('foo')); + } + buildCounterNetworksAddPeeringRequest--; +} + +core.int buildCounterNetworksRemovePeeringRequest = 0; +buildNetworksRemovePeeringRequest() { + var o = new api.NetworksRemovePeeringRequest(); + buildCounterNetworksRemovePeeringRequest++; + if (buildCounterNetworksRemovePeeringRequest < 3) { + o.name = "foo"; + } + buildCounterNetworksRemovePeeringRequest--; + return o; +} + +checkNetworksRemovePeeringRequest(api.NetworksRemovePeeringRequest o) { + buildCounterNetworksRemovePeeringRequest++; + if (buildCounterNetworksRemovePeeringRequest < 3) { + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterNetworksRemovePeeringRequest--; +} + core.int buildCounterOperationErrorErrors = 0; buildOperationErrorErrors() { var o = new api.OperationErrorErrors(); @@ -4769,14 +4993,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed2183() { +buildUnnamed2201() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed2183(core.List<api.OperationErrorErrors> o) { +checkUnnamed2201(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -4787,7 +5011,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed2183(); + o.errors = buildUnnamed2201(); } buildCounterOperationError--; return o; @@ -4796,7 +5020,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed2183(o.errors); + checkUnnamed2201(o.errors); } buildCounterOperationError--; } @@ -4822,14 +5046,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed2184() { +buildUnnamed2202() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed2184(core.List<api.OperationWarningsData> o) { +checkUnnamed2202(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -4841,7 +5065,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2184(); + o.data = buildUnnamed2202(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -4852,20 +5076,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2184(o.data); + checkUnnamed2202(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed2185() { +buildUnnamed2203() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed2185(core.List<api.OperationWarnings> o) { +checkUnnamed2203(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -4897,7 +5121,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed2185(); + o.warnings = buildUnnamed2203(); o.zone = "foo"; } buildCounterOperation--; @@ -4928,20 +5152,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed2185(o.warnings); + checkUnnamed2203(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed2186() { +buildUnnamed2204() { var o = new core.Map<core.String, api.OperationsScopedList>(); o["x"] = buildOperationsScopedList(); o["y"] = buildOperationsScopedList(); return o; } -checkUnnamed2186(core.Map<core.String, api.OperationsScopedList> o) { +checkUnnamed2204(core.Map<core.String, api.OperationsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationsScopedList(o["x"]); checkOperationsScopedList(o["y"]); @@ -4953,7 +5177,7 @@ buildCounterOperationAggregatedList++; if (buildCounterOperationAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2186(); + o.items = buildUnnamed2204(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4966,7 +5190,7 @@ buildCounterOperationAggregatedList++; if (buildCounterOperationAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2186(o.items); + checkUnnamed2204(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4974,14 +5198,14 @@ buildCounterOperationAggregatedList--; } -buildUnnamed2187() { +buildUnnamed2205() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2187(core.List<api.Operation> o) { +checkUnnamed2205(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -4993,7 +5217,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { o.id = "foo"; - o.items = buildUnnamed2187(); + o.items = buildUnnamed2205(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5006,7 +5230,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2187(o.items); + checkUnnamed2205(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5014,14 +5238,14 @@ buildCounterOperationList--; } -buildUnnamed2188() { +buildUnnamed2206() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2188(core.List<api.Operation> o) { +checkUnnamed2206(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -5048,14 +5272,14 @@ buildCounterOperationsScopedListWarningData--; } -buildUnnamed2189() { +buildUnnamed2207() { var o = new core.List<api.OperationsScopedListWarningData>(); o.add(buildOperationsScopedListWarningData()); o.add(buildOperationsScopedListWarningData()); return o; } -checkUnnamed2189(core.List<api.OperationsScopedListWarningData> o) { +checkUnnamed2207(core.List<api.OperationsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationsScopedListWarningData(o[0]); checkOperationsScopedListWarningData(o[1]); @@ -5067,7 +5291,7 @@ buildCounterOperationsScopedListWarning++; if (buildCounterOperationsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2189(); + o.data = buildUnnamed2207(); o.message = "foo"; } buildCounterOperationsScopedListWarning--; @@ -5078,7 +5302,7 @@ buildCounterOperationsScopedListWarning++; if (buildCounterOperationsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2189(o.data); + checkUnnamed2207(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationsScopedListWarning--; @@ -5089,7 +5313,7 @@ var o = new api.OperationsScopedList(); buildCounterOperationsScopedList++; if (buildCounterOperationsScopedList < 3) { - o.operations = buildUnnamed2188(); + o.operations = buildUnnamed2206(); o.warning = buildOperationsScopedListWarning(); } buildCounterOperationsScopedList--; @@ -5099,20 +5323,20 @@ checkOperationsScopedList(api.OperationsScopedList o) { buildCounterOperationsScopedList++; if (buildCounterOperationsScopedList < 3) { - checkUnnamed2188(o.operations); + checkUnnamed2206(o.operations); checkOperationsScopedListWarning(o.warning); } buildCounterOperationsScopedList--; } -buildUnnamed2190() { +buildUnnamed2208() { var o = new core.List<api.PathRule>(); o.add(buildPathRule()); o.add(buildPathRule()); return o; } -checkUnnamed2190(core.List<api.PathRule> o) { +checkUnnamed2208(core.List<api.PathRule> o) { unittest.expect(o, unittest.hasLength(2)); checkPathRule(o[0]); checkPathRule(o[1]); @@ -5126,7 +5350,7 @@ o.defaultService = "foo"; o.description = "foo"; o.name = "foo"; - o.pathRules = buildUnnamed2190(); + o.pathRules = buildUnnamed2208(); } buildCounterPathMatcher--; return o; @@ -5138,19 +5362,19 @@ unittest.expect(o.defaultService, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2190(o.pathRules); + checkUnnamed2208(o.pathRules); } buildCounterPathMatcher--; } -buildUnnamed2191() { +buildUnnamed2209() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2191(core.List<core.String> o) { +checkUnnamed2209(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5161,7 +5385,7 @@ var o = new api.PathRule(); buildCounterPathRule++; if (buildCounterPathRule < 3) { - o.paths = buildUnnamed2191(); + o.paths = buildUnnamed2209(); o.service = "foo"; } buildCounterPathRule--; @@ -5171,33 +5395,33 @@ checkPathRule(api.PathRule o) { buildCounterPathRule++; if (buildCounterPathRule < 3) { - checkUnnamed2191(o.paths); + checkUnnamed2209(o.paths); unittest.expect(o.service, unittest.equals('foo')); } buildCounterPathRule--; } -buildUnnamed2192() { +buildUnnamed2210() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2192(core.List<core.String> o) { +checkUnnamed2210(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2193() { +buildUnnamed2211() { var o = new core.List<api.Quota>(); o.add(buildQuota()); o.add(buildQuota()); return o; } -checkUnnamed2193(core.List<api.Quota> o) { +checkUnnamed2211(core.List<api.Quota> o) { unittest.expect(o, unittest.hasLength(2)); checkQuota(o[0]); checkQuota(o[1]); @@ -5212,13 +5436,14 @@ o.creationTimestamp = "foo"; o.defaultServiceAccount = "foo"; o.description = "foo"; - o.enabledFeatures = buildUnnamed2192(); + o.enabledFeatures = buildUnnamed2210(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.quotas = buildUnnamed2193(); + o.quotas = buildUnnamed2211(); o.selfLink = "foo"; o.usageExportLocation = buildUsageExportLocation(); + o.xpnProjectStatus = "foo"; } buildCounterProject--; return o; @@ -5231,17 +5456,111 @@ unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.defaultServiceAccount, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2192(o.enabledFeatures); + checkUnnamed2210(o.enabledFeatures); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2193(o.quotas); + checkUnnamed2211(o.quotas); unittest.expect(o.selfLink, unittest.equals('foo')); checkUsageExportLocation(o.usageExportLocation); + unittest.expect(o.xpnProjectStatus, unittest.equals('foo')); } buildCounterProject--; } +core.int buildCounterProjectsDisableXpnResourceRequest = 0; +buildProjectsDisableXpnResourceRequest() { + var o = new api.ProjectsDisableXpnResourceRequest(); + buildCounterProjectsDisableXpnResourceRequest++; + if (buildCounterProjectsDisableXpnResourceRequest < 3) { + o.xpnResource = buildXpnResourceId(); + } + buildCounterProjectsDisableXpnResourceRequest--; + return o; +} + +checkProjectsDisableXpnResourceRequest(api.ProjectsDisableXpnResourceRequest o) { + buildCounterProjectsDisableXpnResourceRequest++; + if (buildCounterProjectsDisableXpnResourceRequest < 3) { + checkXpnResourceId(o.xpnResource); + } + buildCounterProjectsDisableXpnResourceRequest--; +} + +core.int buildCounterProjectsEnableXpnResourceRequest = 0; +buildProjectsEnableXpnResourceRequest() { + var o = new api.ProjectsEnableXpnResourceRequest(); + buildCounterProjectsEnableXpnResourceRequest++; + if (buildCounterProjectsEnableXpnResourceRequest < 3) { + o.xpnResource = buildXpnResourceId(); + } + buildCounterProjectsEnableXpnResourceRequest--; + return o; +} + +checkProjectsEnableXpnResourceRequest(api.ProjectsEnableXpnResourceRequest o) { + buildCounterProjectsEnableXpnResourceRequest++; + if (buildCounterProjectsEnableXpnResourceRequest < 3) { + checkXpnResourceId(o.xpnResource); + } + buildCounterProjectsEnableXpnResourceRequest--; +} + +buildUnnamed2212() { + var o = new core.List<api.XpnResourceId>(); + o.add(buildXpnResourceId()); + o.add(buildXpnResourceId()); + return o; +} + +checkUnnamed2212(core.List<api.XpnResourceId> o) { + unittest.expect(o, unittest.hasLength(2)); + checkXpnResourceId(o[0]); + checkXpnResourceId(o[1]); +} + +core.int buildCounterProjectsGetXpnResources = 0; +buildProjectsGetXpnResources() { + var o = new api.ProjectsGetXpnResources(); + buildCounterProjectsGetXpnResources++; + if (buildCounterProjectsGetXpnResources < 3) { + o.kind = "foo"; + o.nextPageToken = "foo"; + o.resources = buildUnnamed2212(); + } + buildCounterProjectsGetXpnResources--; + return o; +} + +checkProjectsGetXpnResources(api.ProjectsGetXpnResources o) { + buildCounterProjectsGetXpnResources++; + if (buildCounterProjectsGetXpnResources < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed2212(o.resources); + } + buildCounterProjectsGetXpnResources--; +} + +core.int buildCounterProjectsListXpnHostsRequest = 0; +buildProjectsListXpnHostsRequest() { + var o = new api.ProjectsListXpnHostsRequest(); + buildCounterProjectsListXpnHostsRequest++; + if (buildCounterProjectsListXpnHostsRequest < 3) { + o.organization = "foo"; + } + buildCounterProjectsListXpnHostsRequest--; + return o; +} + +checkProjectsListXpnHostsRequest(api.ProjectsListXpnHostsRequest o) { + buildCounterProjectsListXpnHostsRequest++; + if (buildCounterProjectsListXpnHostsRequest < 3) { + unittest.expect(o.organization, unittest.equals('foo')); + } + buildCounterProjectsListXpnHostsRequest--; +} + core.int buildCounterQuota = 0; buildQuota() { var o = new api.Quota(); @@ -5265,27 +5584,27 @@ buildCounterQuota--; } -buildUnnamed2194() { +buildUnnamed2213() { var o = new core.List<api.Quota>(); o.add(buildQuota()); o.add(buildQuota()); return o; } -checkUnnamed2194(core.List<api.Quota> o) { +checkUnnamed2213(core.List<api.Quota> o) { unittest.expect(o, unittest.hasLength(2)); checkQuota(o[0]); checkQuota(o[1]); } -buildUnnamed2195() { +buildUnnamed2214() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2195(core.List<core.String> o) { +checkUnnamed2214(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5302,10 +5621,10 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.quotas = buildUnnamed2194(); + o.quotas = buildUnnamed2213(); o.selfLink = "foo"; o.status = "foo"; - o.zones = buildUnnamed2195(); + o.zones = buildUnnamed2214(); } buildCounterRegion--; return o; @@ -5320,22 +5639,22 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2194(o.quotas); + checkUnnamed2213(o.quotas); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed2195(o.zones); + checkUnnamed2214(o.zones); } buildCounterRegion--; } -buildUnnamed2196() { +buildUnnamed2215() { var o = new core.List<api.Autoscaler>(); o.add(buildAutoscaler()); o.add(buildAutoscaler()); return o; } -checkUnnamed2196(core.List<api.Autoscaler> o) { +checkUnnamed2215(core.List<api.Autoscaler> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscaler(o[0]); checkAutoscaler(o[1]); @@ -5347,7 +5666,7 @@ buildCounterRegionAutoscalerList++; if (buildCounterRegionAutoscalerList < 3) { o.id = "foo"; - o.items = buildUnnamed2196(); + o.items = buildUnnamed2215(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5360,7 +5679,7 @@ buildCounterRegionAutoscalerList++; if (buildCounterRegionAutoscalerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2196(o.items); + checkUnnamed2215(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5368,14 +5687,14 @@ buildCounterRegionAutoscalerList--; } -buildUnnamed2197() { +buildUnnamed2216() { var o = new core.List<api.InstanceGroup>(); o.add(buildInstanceGroup()); o.add(buildInstanceGroup()); return o; } -checkUnnamed2197(core.List<api.InstanceGroup> o) { +checkUnnamed2216(core.List<api.InstanceGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroup(o[0]); checkInstanceGroup(o[1]); @@ -5387,7 +5706,7 @@ buildCounterRegionInstanceGroupList++; if (buildCounterRegionInstanceGroupList < 3) { o.id = "foo"; - o.items = buildUnnamed2197(); + o.items = buildUnnamed2216(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5400,7 +5719,7 @@ buildCounterRegionInstanceGroupList++; if (buildCounterRegionInstanceGroupList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2197(o.items); + checkUnnamed2216(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5408,14 +5727,14 @@ buildCounterRegionInstanceGroupList--; } -buildUnnamed2198() { +buildUnnamed2217() { var o = new core.List<api.InstanceGroupManager>(); o.add(buildInstanceGroupManager()); o.add(buildInstanceGroupManager()); return o; } -checkUnnamed2198(core.List<api.InstanceGroupManager> o) { +checkUnnamed2217(core.List<api.InstanceGroupManager> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManager(o[0]); checkInstanceGroupManager(o[1]); @@ -5427,7 +5746,7 @@ buildCounterRegionInstanceGroupManagerList++; if (buildCounterRegionInstanceGroupManagerList < 3) { o.id = "foo"; - o.items = buildUnnamed2198(); + o.items = buildUnnamed2217(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5440,7 +5759,7 @@ buildCounterRegionInstanceGroupManagerList++; if (buildCounterRegionInstanceGroupManagerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2198(o.items); + checkUnnamed2217(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5448,14 +5767,14 @@ buildCounterRegionInstanceGroupManagerList--; } -buildUnnamed2199() { +buildUnnamed2218() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2199(core.List<core.String> o) { +checkUnnamed2218(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5466,7 +5785,7 @@ var o = new api.RegionInstanceGroupManagersAbandonInstancesRequest(); buildCounterRegionInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterRegionInstanceGroupManagersAbandonInstancesRequest < 3) { - o.instances = buildUnnamed2199(); + o.instances = buildUnnamed2218(); } buildCounterRegionInstanceGroupManagersAbandonInstancesRequest--; return o; @@ -5475,19 +5794,19 @@ checkRegionInstanceGroupManagersAbandonInstancesRequest(api.RegionInstanceGroupManagersAbandonInstancesRequest o) { buildCounterRegionInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterRegionInstanceGroupManagersAbandonInstancesRequest < 3) { - checkUnnamed2199(o.instances); + checkUnnamed2218(o.instances); } buildCounterRegionInstanceGroupManagersAbandonInstancesRequest--; } -buildUnnamed2200() { +buildUnnamed2219() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2200(core.List<core.String> o) { +checkUnnamed2219(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5498,7 +5817,7 @@ var o = new api.RegionInstanceGroupManagersDeleteInstancesRequest(); buildCounterRegionInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterRegionInstanceGroupManagersDeleteInstancesRequest < 3) { - o.instances = buildUnnamed2200(); + o.instances = buildUnnamed2219(); } buildCounterRegionInstanceGroupManagersDeleteInstancesRequest--; return o; @@ -5507,19 +5826,19 @@ checkRegionInstanceGroupManagersDeleteInstancesRequest(api.RegionInstanceGroupManagersDeleteInstancesRequest o) { buildCounterRegionInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterRegionInstanceGroupManagersDeleteInstancesRequest < 3) { - checkUnnamed2200(o.instances); + checkUnnamed2219(o.instances); } buildCounterRegionInstanceGroupManagersDeleteInstancesRequest--; } -buildUnnamed2201() { +buildUnnamed2220() { var o = new core.List<api.ManagedInstance>(); o.add(buildManagedInstance()); o.add(buildManagedInstance()); return o; } -checkUnnamed2201(core.List<api.ManagedInstance> o) { +checkUnnamed2220(core.List<api.ManagedInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedInstance(o[0]); checkManagedInstance(o[1]); @@ -5530,7 +5849,7 @@ var o = new api.RegionInstanceGroupManagersListInstancesResponse(); buildCounterRegionInstanceGroupManagersListInstancesResponse++; if (buildCounterRegionInstanceGroupManagersListInstancesResponse < 3) { - o.managedInstances = buildUnnamed2201(); + o.managedInstances = buildUnnamed2220(); } buildCounterRegionInstanceGroupManagersListInstancesResponse--; return o; @@ -5539,19 +5858,19 @@ checkRegionInstanceGroupManagersListInstancesResponse(api.RegionInstanceGroupManagersListInstancesResponse o) { buildCounterRegionInstanceGroupManagersListInstancesResponse++; if (buildCounterRegionInstanceGroupManagersListInstancesResponse < 3) { - checkUnnamed2201(o.managedInstances); + checkUnnamed2220(o.managedInstances); } buildCounterRegionInstanceGroupManagersListInstancesResponse--; } -buildUnnamed2202() { +buildUnnamed2221() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2202(core.List<core.String> o) { +checkUnnamed2221(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5562,7 +5881,7 @@ var o = new api.RegionInstanceGroupManagersRecreateRequest(); buildCounterRegionInstanceGroupManagersRecreateRequest++; if (buildCounterRegionInstanceGroupManagersRecreateRequest < 3) { - o.instances = buildUnnamed2202(); + o.instances = buildUnnamed2221(); } buildCounterRegionInstanceGroupManagersRecreateRequest--; return o; @@ -5571,19 +5890,19 @@ checkRegionInstanceGroupManagersRecreateRequest(api.RegionInstanceGroupManagersRecreateRequest o) { buildCounterRegionInstanceGroupManagersRecreateRequest++; if (buildCounterRegionInstanceGroupManagersRecreateRequest < 3) { - checkUnnamed2202(o.instances); + checkUnnamed2221(o.instances); } buildCounterRegionInstanceGroupManagersRecreateRequest--; } -buildUnnamed2203() { +buildUnnamed2222() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2203(core.List<core.String> o) { +checkUnnamed2222(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5595,7 +5914,7 @@ buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest < 3) { o.fingerprint = "foo"; - o.targetPools = buildUnnamed2203(); + o.targetPools = buildUnnamed2222(); } buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest--; return o; @@ -5605,7 +5924,7 @@ buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2203(o.targetPools); + checkUnnamed2222(o.targetPools); } buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest--; } @@ -5629,14 +5948,14 @@ buildCounterRegionInstanceGroupManagersSetTemplateRequest--; } -buildUnnamed2204() { +buildUnnamed2223() { var o = new core.List<api.InstanceWithNamedPorts>(); o.add(buildInstanceWithNamedPorts()); o.add(buildInstanceWithNamedPorts()); return o; } -checkUnnamed2204(core.List<api.InstanceWithNamedPorts> o) { +checkUnnamed2223(core.List<api.InstanceWithNamedPorts> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceWithNamedPorts(o[0]); checkInstanceWithNamedPorts(o[1]); @@ -5648,7 +5967,7 @@ buildCounterRegionInstanceGroupsListInstances++; if (buildCounterRegionInstanceGroupsListInstances < 3) { o.id = "foo"; - o.items = buildUnnamed2204(); + o.items = buildUnnamed2223(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5661,7 +5980,7 @@ buildCounterRegionInstanceGroupsListInstances++; if (buildCounterRegionInstanceGroupsListInstances < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2204(o.items); + checkUnnamed2223(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5690,14 +6009,14 @@ buildCounterRegionInstanceGroupsListInstancesRequest--; } -buildUnnamed2205() { +buildUnnamed2224() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2205(core.List<api.NamedPort> o) { +checkUnnamed2224(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -5709,7 +6028,7 @@ buildCounterRegionInstanceGroupsSetNamedPortsRequest++; if (buildCounterRegionInstanceGroupsSetNamedPortsRequest < 3) { o.fingerprint = "foo"; - o.namedPorts = buildUnnamed2205(); + o.namedPorts = buildUnnamed2224(); } buildCounterRegionInstanceGroupsSetNamedPortsRequest--; return o; @@ -5719,19 +6038,19 @@ buildCounterRegionInstanceGroupsSetNamedPortsRequest++; if (buildCounterRegionInstanceGroupsSetNamedPortsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2205(o.namedPorts); + checkUnnamed2224(o.namedPorts); } buildCounterRegionInstanceGroupsSetNamedPortsRequest--; } -buildUnnamed2206() { +buildUnnamed2225() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed2206(core.List<api.Region> o) { +checkUnnamed2225(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -5743,7 +6062,7 @@ buildCounterRegionList++; if (buildCounterRegionList < 3) { o.id = "foo"; - o.items = buildUnnamed2206(); + o.items = buildUnnamed2225(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5756,7 +6075,7 @@ buildCounterRegionList++; if (buildCounterRegionList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2206(o.items); + checkUnnamed2225(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5783,14 +6102,14 @@ buildCounterResourceGroupReference--; } -buildUnnamed2207() { +buildUnnamed2226() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2207(core.List<core.String> o) { +checkUnnamed2226(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5817,14 +6136,14 @@ buildCounterRouteWarningsData--; } -buildUnnamed2208() { +buildUnnamed2227() { var o = new core.List<api.RouteWarningsData>(); o.add(buildRouteWarningsData()); o.add(buildRouteWarningsData()); return o; } -checkUnnamed2208(core.List<api.RouteWarningsData> o) { +checkUnnamed2227(core.List<api.RouteWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkRouteWarningsData(o[0]); checkRouteWarningsData(o[1]); @@ -5836,7 +6155,7 @@ buildCounterRouteWarnings++; if (buildCounterRouteWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2208(); + o.data = buildUnnamed2227(); o.message = "foo"; } buildCounterRouteWarnings--; @@ -5847,20 +6166,20 @@ buildCounterRouteWarnings++; if (buildCounterRouteWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2208(o.data); + checkUnnamed2227(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRouteWarnings--; } -buildUnnamed2209() { +buildUnnamed2228() { var o = new core.List<api.RouteWarnings>(); o.add(buildRouteWarnings()); o.add(buildRouteWarnings()); return o; } -checkUnnamed2209(core.List<api.RouteWarnings> o) { +checkUnnamed2228(core.List<api.RouteWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkRouteWarnings(o[0]); checkRouteWarnings(o[1]); @@ -5882,11 +6201,12 @@ o.nextHopInstance = "foo"; o.nextHopIp = "foo"; o.nextHopNetwork = "foo"; + o.nextHopPeering = "foo"; o.nextHopVpnTunnel = "foo"; o.priority = 42; o.selfLink = "foo"; - o.tags = buildUnnamed2207(); - o.warnings = buildUnnamed2209(); + o.tags = buildUnnamed2226(); + o.warnings = buildUnnamed2228(); } buildCounterRoute--; return o; @@ -5906,23 +6226,24 @@ unittest.expect(o.nextHopInstance, unittest.equals('foo')); unittest.expect(o.nextHopIp, unittest.equals('foo')); unittest.expect(o.nextHopNetwork, unittest.equals('foo')); + unittest.expect(o.nextHopPeering, unittest.equals('foo')); unittest.expect(o.nextHopVpnTunnel, unittest.equals('foo')); unittest.expect(o.priority, unittest.equals(42)); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2207(o.tags); - checkUnnamed2209(o.warnings); + checkUnnamed2226(o.tags); + checkUnnamed2228(o.warnings); } buildCounterRoute--; } -buildUnnamed2210() { +buildUnnamed2229() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2210(core.List<api.Route> o) { +checkUnnamed2229(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); @@ -5934,7 +6255,7 @@ buildCounterRouteList++; if (buildCounterRouteList < 3) { o.id = "foo"; - o.items = buildUnnamed2210(); + o.items = buildUnnamed2229(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5947,7 +6268,7 @@ buildCounterRouteList++; if (buildCounterRouteList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2210(o.items); + checkUnnamed2229(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5955,27 +6276,27 @@ buildCounterRouteList--; } -buildUnnamed2211() { +buildUnnamed2230() { var o = new core.List<api.RouterBgpPeer>(); o.add(buildRouterBgpPeer()); o.add(buildRouterBgpPeer()); return o; } -checkUnnamed2211(core.List<api.RouterBgpPeer> o) { +checkUnnamed2230(core.List<api.RouterBgpPeer> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterBgpPeer(o[0]); checkRouterBgpPeer(o[1]); } -buildUnnamed2212() { +buildUnnamed2231() { var o = new core.List<api.RouterInterface>(); o.add(buildRouterInterface()); o.add(buildRouterInterface()); return o; } -checkUnnamed2212(core.List<api.RouterInterface> o) { +checkUnnamed2231(core.List<api.RouterInterface> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterInterface(o[0]); checkRouterInterface(o[1]); @@ -5987,11 +6308,11 @@ buildCounterRouter++; if (buildCounterRouter < 3) { o.bgp = buildRouterBgp(); - o.bgpPeers = buildUnnamed2211(); + o.bgpPeers = buildUnnamed2230(); o.creationTimestamp = "foo"; o.description = "foo"; o.id = "foo"; - o.interfaces = buildUnnamed2212(); + o.interfaces = buildUnnamed2231(); o.kind = "foo"; o.name = "foo"; o.network = "foo"; @@ -6006,11 +6327,11 @@ buildCounterRouter++; if (buildCounterRouter < 3) { checkRouterBgp(o.bgp); - checkUnnamed2211(o.bgpPeers); + checkUnnamed2230(o.bgpPeers); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2212(o.interfaces); + checkUnnamed2231(o.interfaces); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); @@ -6020,14 +6341,14 @@ buildCounterRouter--; } -buildUnnamed2213() { +buildUnnamed2232() { var o = new core.Map<core.String, api.RoutersScopedList>(); o["x"] = buildRoutersScopedList(); o["y"] = buildRoutersScopedList(); return o; } -checkUnnamed2213(core.Map<core.String, api.RoutersScopedList> o) { +checkUnnamed2232(core.Map<core.String, api.RoutersScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkRoutersScopedList(o["x"]); checkRoutersScopedList(o["y"]); @@ -6039,7 +6360,7 @@ buildCounterRouterAggregatedList++; if (buildCounterRouterAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2213(); + o.items = buildUnnamed2232(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6052,7 +6373,7 @@ buildCounterRouterAggregatedList++; if (buildCounterRouterAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2213(o.items); + checkUnnamed2232(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6131,14 +6452,14 @@ buildCounterRouterInterface--; } -buildUnnamed2214() { +buildUnnamed2233() { var o = new core.List<api.Router>(); o.add(buildRouter()); o.add(buildRouter()); return o; } -checkUnnamed2214(core.List<api.Router> o) { +checkUnnamed2233(core.List<api.Router> o) { unittest.expect(o, unittest.hasLength(2)); checkRouter(o[0]); checkRouter(o[1]); @@ -6150,7 +6471,7 @@ buildCounterRouterList++; if (buildCounterRouterList < 3) { o.id = "foo"; - o.items = buildUnnamed2214(); + o.items = buildUnnamed2233(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6163,7 +6484,7 @@ buildCounterRouterList++; if (buildCounterRouterList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2214(o.items); + checkUnnamed2233(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6171,40 +6492,40 @@ buildCounterRouterList--; } -buildUnnamed2215() { +buildUnnamed2234() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2215(core.List<api.Route> o) { +checkUnnamed2234(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); } -buildUnnamed2216() { +buildUnnamed2235() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2216(core.List<api.Route> o) { +checkUnnamed2235(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); } -buildUnnamed2217() { +buildUnnamed2236() { var o = new core.List<api.RouterStatusBgpPeerStatus>(); o.add(buildRouterStatusBgpPeerStatus()); o.add(buildRouterStatusBgpPeerStatus()); return o; } -checkUnnamed2217(core.List<api.RouterStatusBgpPeerStatus> o) { +checkUnnamed2236(core.List<api.RouterStatusBgpPeerStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterStatusBgpPeerStatus(o[0]); checkRouterStatusBgpPeerStatus(o[1]); @@ -6215,9 +6536,9 @@ var o = new api.RouterStatus(); buildCounterRouterStatus++; if (buildCounterRouterStatus < 3) { - o.bestRoutes = buildUnnamed2215(); - o.bestRoutesForRouter = buildUnnamed2216(); - o.bgpPeerStatus = buildUnnamed2217(); + o.bestRoutes = buildUnnamed2234(); + o.bestRoutesForRouter = buildUnnamed2235(); + o.bgpPeerStatus = buildUnnamed2236(); o.network = "foo"; } buildCounterRouterStatus--; @@ -6227,22 +6548,22 @@ checkRouterStatus(api.RouterStatus o) { buildCounterRouterStatus++; if (buildCounterRouterStatus < 3) { - checkUnnamed2215(o.bestRoutes); - checkUnnamed2216(o.bestRoutesForRouter); - checkUnnamed2217(o.bgpPeerStatus); + checkUnnamed2234(o.bestRoutes); + checkUnnamed2235(o.bestRoutesForRouter); + checkUnnamed2236(o.bgpPeerStatus); unittest.expect(o.network, unittest.equals('foo')); } buildCounterRouterStatus--; } -buildUnnamed2218() { +buildUnnamed2237() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2218(core.List<api.Route> o) { +checkUnnamed2237(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); @@ -6253,7 +6574,7 @@ var o = new api.RouterStatusBgpPeerStatus(); buildCounterRouterStatusBgpPeerStatus++; if (buildCounterRouterStatusBgpPeerStatus < 3) { - o.advertisedRoutes = buildUnnamed2218(); + o.advertisedRoutes = buildUnnamed2237(); o.ipAddress = "foo"; o.linkedVpnTunnel = "foo"; o.name = "foo"; @@ -6271,7 +6592,7 @@ checkRouterStatusBgpPeerStatus(api.RouterStatusBgpPeerStatus o) { buildCounterRouterStatusBgpPeerStatus++; if (buildCounterRouterStatusBgpPeerStatus < 3) { - checkUnnamed2218(o.advertisedRoutes); + checkUnnamed2237(o.advertisedRoutes); unittest.expect(o.ipAddress, unittest.equals('foo')); unittest.expect(o.linkedVpnTunnel, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -6325,14 +6646,14 @@ buildCounterRoutersPreviewResponse--; } -buildUnnamed2219() { +buildUnnamed2238() { var o = new core.List<api.Router>(); o.add(buildRouter()); o.add(buildRouter()); return o; } -checkUnnamed2219(core.List<api.Router> o) { +checkUnnamed2238(core.List<api.Router> o) { unittest.expect(o, unittest.hasLength(2)); checkRouter(o[0]); checkRouter(o[1]); @@ -6359,14 +6680,14 @@ buildCounterRoutersScopedListWarningData--; } -buildUnnamed2220() { +buildUnnamed2239() { var o = new core.List<api.RoutersScopedListWarningData>(); o.add(buildRoutersScopedListWarningData()); o.add(buildRoutersScopedListWarningData()); return o; } -checkUnnamed2220(core.List<api.RoutersScopedListWarningData> o) { +checkUnnamed2239(core.List<api.RoutersScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRoutersScopedListWarningData(o[0]); checkRoutersScopedListWarningData(o[1]); @@ -6378,7 +6699,7 @@ buildCounterRoutersScopedListWarning++; if (buildCounterRoutersScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2220(); + o.data = buildUnnamed2239(); o.message = "foo"; } buildCounterRoutersScopedListWarning--; @@ -6389,7 +6710,7 @@ buildCounterRoutersScopedListWarning++; if (buildCounterRoutersScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2220(o.data); + checkUnnamed2239(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRoutersScopedListWarning--; @@ -6400,7 +6721,7 @@ var o = new api.RoutersScopedList(); buildCounterRoutersScopedList++; if (buildCounterRoutersScopedList < 3) { - o.routers = buildUnnamed2219(); + o.routers = buildUnnamed2238(); o.warning = buildRoutersScopedListWarning(); } buildCounterRoutersScopedList--; @@ -6410,7 +6731,7 @@ checkRoutersScopedList(api.RoutersScopedList o) { buildCounterRoutersScopedList++; if (buildCounterRoutersScopedList < 3) { - checkUnnamed2219(o.routers); + checkUnnamed2238(o.routers); checkRoutersScopedListWarning(o.warning); } buildCounterRoutersScopedList--; @@ -6493,14 +6814,14 @@ buildCounterSerialPortOutput--; } -buildUnnamed2221() { +buildUnnamed2240() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2221(core.List<core.String> o) { +checkUnnamed2240(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6512,7 +6833,7 @@ buildCounterServiceAccount++; if (buildCounterServiceAccount < 3) { o.email = "foo"; - o.scopes = buildUnnamed2221(); + o.scopes = buildUnnamed2240(); } buildCounterServiceAccount--; return o; @@ -6522,19 +6843,32 @@ buildCounterServiceAccount++; if (buildCounterServiceAccount < 3) { unittest.expect(o.email, unittest.equals('foo')); - checkUnnamed2221(o.scopes); + checkUnnamed2240(o.scopes); } buildCounterServiceAccount--; } -buildUnnamed2222() { +buildUnnamed2241() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed2241(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +buildUnnamed2242() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2222(core.List<core.String> o) { +checkUnnamed2242(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6550,7 +6884,9 @@ o.diskSizeGb = "foo"; o.id = "foo"; o.kind = "foo"; - o.licenses = buildUnnamed2222(); + o.labelFingerprint = "foo"; + o.labels = buildUnnamed2241(); + o.licenses = buildUnnamed2242(); o.name = "foo"; o.selfLink = "foo"; o.snapshotEncryptionKey = buildCustomerEncryptionKey(); @@ -6573,7 +6909,9 @@ unittest.expect(o.diskSizeGb, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2222(o.licenses); + unittest.expect(o.labelFingerprint, unittest.equals('foo')); + checkUnnamed2241(o.labels); + checkUnnamed2242(o.licenses); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); checkCustomerEncryptionKey(o.snapshotEncryptionKey); @@ -6587,14 +6925,14 @@ buildCounterSnapshot--; } -buildUnnamed2223() { +buildUnnamed2243() { var o = new core.List<api.Snapshot>(); o.add(buildSnapshot()); o.add(buildSnapshot()); return o; } -checkUnnamed2223(core.List<api.Snapshot> o) { +checkUnnamed2243(core.List<api.Snapshot> o) { unittest.expect(o, unittest.hasLength(2)); checkSnapshot(o[0]); checkSnapshot(o[1]); @@ -6606,7 +6944,7 @@ buildCounterSnapshotList++; if (buildCounterSnapshotList < 3) { o.id = "foo"; - o.items = buildUnnamed2223(); + o.items = buildUnnamed2243(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6619,7 +6957,7 @@ buildCounterSnapshotList++; if (buildCounterSnapshotList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2223(o.items); + checkUnnamed2243(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6660,14 +6998,14 @@ buildCounterSslCertificate--; } -buildUnnamed2224() { +buildUnnamed2244() { var o = new core.List<api.SslCertificate>(); o.add(buildSslCertificate()); o.add(buildSslCertificate()); return o; } -checkUnnamed2224(core.List<api.SslCertificate> o) { +checkUnnamed2244(core.List<api.SslCertificate> o) { unittest.expect(o, unittest.hasLength(2)); checkSslCertificate(o[0]); checkSslCertificate(o[1]); @@ -6679,7 +7017,7 @@ buildCounterSslCertificateList++; if (buildCounterSslCertificateList < 3) { o.id = "foo"; - o.items = buildUnnamed2224(); + o.items = buildUnnamed2244(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6692,7 +7030,7 @@ buildCounterSslCertificateList++; if (buildCounterSslCertificateList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2224(o.items); + checkUnnamed2244(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6739,14 +7077,14 @@ buildCounterSubnetwork--; } -buildUnnamed2225() { +buildUnnamed2245() { var o = new core.Map<core.String, api.SubnetworksScopedList>(); o["x"] = buildSubnetworksScopedList(); o["y"] = buildSubnetworksScopedList(); return o; } -checkUnnamed2225(core.Map<core.String, api.SubnetworksScopedList> o) { +checkUnnamed2245(core.Map<core.String, api.SubnetworksScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworksScopedList(o["x"]); checkSubnetworksScopedList(o["y"]); @@ -6758,7 +7096,7 @@ buildCounterSubnetworkAggregatedList++; if (buildCounterSubnetworkAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2225(); + o.items = buildUnnamed2245(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6771,7 +7109,7 @@ buildCounterSubnetworkAggregatedList++; if (buildCounterSubnetworkAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2225(o.items); + checkUnnamed2245(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6779,14 +7117,14 @@ buildCounterSubnetworkAggregatedList--; } -buildUnnamed2226() { +buildUnnamed2246() { var o = new core.List<api.Subnetwork>(); o.add(buildSubnetwork()); o.add(buildSubnetwork()); return o; } -checkUnnamed2226(core.List<api.Subnetwork> o) { +checkUnnamed2246(core.List<api.Subnetwork> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetwork(o[0]); checkSubnetwork(o[1]); @@ -6798,7 +7136,7 @@ buildCounterSubnetworkList++; if (buildCounterSubnetworkList < 3) { o.id = "foo"; - o.items = buildUnnamed2226(); + o.items = buildUnnamed2246(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6811,7 +7149,7 @@ buildCounterSubnetworkList++; if (buildCounterSubnetworkList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2226(o.items); + checkUnnamed2246(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6838,14 +7176,14 @@ buildCounterSubnetworksExpandIpCidrRangeRequest--; } -buildUnnamed2227() { +buildUnnamed2247() { var o = new core.List<api.Subnetwork>(); o.add(buildSubnetwork()); o.add(buildSubnetwork()); return o; } -checkUnnamed2227(core.List<api.Subnetwork> o) { +checkUnnamed2247(core.List<api.Subnetwork> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetwork(o[0]); checkSubnetwork(o[1]); @@ -6872,14 +7210,14 @@ buildCounterSubnetworksScopedListWarningData--; } -buildUnnamed2228() { +buildUnnamed2248() { var o = new core.List<api.SubnetworksScopedListWarningData>(); o.add(buildSubnetworksScopedListWarningData()); o.add(buildSubnetworksScopedListWarningData()); return o; } -checkUnnamed2228(core.List<api.SubnetworksScopedListWarningData> o) { +checkUnnamed2248(core.List<api.SubnetworksScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworksScopedListWarningData(o[0]); checkSubnetworksScopedListWarningData(o[1]); @@ -6891,7 +7229,7 @@ buildCounterSubnetworksScopedListWarning++; if (buildCounterSubnetworksScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2228(); + o.data = buildUnnamed2248(); o.message = "foo"; } buildCounterSubnetworksScopedListWarning--; @@ -6902,7 +7240,7 @@ buildCounterSubnetworksScopedListWarning++; if (buildCounterSubnetworksScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2228(o.data); + checkUnnamed2248(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterSubnetworksScopedListWarning--; @@ -6913,7 +7251,7 @@ var o = new api.SubnetworksScopedList(); buildCounterSubnetworksScopedList++; if (buildCounterSubnetworksScopedList < 3) { - o.subnetworks = buildUnnamed2227(); + o.subnetworks = buildUnnamed2247(); o.warning = buildSubnetworksScopedListWarning(); } buildCounterSubnetworksScopedList--; @@ -6923,7 +7261,7 @@ checkSubnetworksScopedList(api.SubnetworksScopedList o) { buildCounterSubnetworksScopedList++; if (buildCounterSubnetworksScopedList < 3) { - checkUnnamed2227(o.subnetworks); + checkUnnamed2247(o.subnetworks); checkSubnetworksScopedListWarning(o.warning); } buildCounterSubnetworksScopedList--; @@ -6975,14 +7313,14 @@ buildCounterTCPHealthCheck--; } -buildUnnamed2229() { +buildUnnamed2249() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2229(core.List<core.String> o) { +checkUnnamed2249(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6994,7 +7332,7 @@ buildCounterTags++; if (buildCounterTags < 3) { o.fingerprint = "foo"; - o.items = buildUnnamed2229(); + o.items = buildUnnamed2249(); } buildCounterTags--; return o; @@ -7004,7 +7342,7 @@ buildCounterTags++; if (buildCounterTags < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2229(o.items); + checkUnnamed2249(o.items); } buildCounterTags--; } @@ -7040,14 +7378,14 @@ buildCounterTargetHttpProxy--; } -buildUnnamed2230() { +buildUnnamed2250() { var o = new core.List<api.TargetHttpProxy>(); o.add(buildTargetHttpProxy()); o.add(buildTargetHttpProxy()); return o; } -checkUnnamed2230(core.List<api.TargetHttpProxy> o) { +checkUnnamed2250(core.List<api.TargetHttpProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpProxy(o[0]); checkTargetHttpProxy(o[1]); @@ -7059,7 +7397,7 @@ buildCounterTargetHttpProxyList++; if (buildCounterTargetHttpProxyList < 3) { o.id = "foo"; - o.items = buildUnnamed2230(); + o.items = buildUnnamed2250(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7072,7 +7410,7 @@ buildCounterTargetHttpProxyList++; if (buildCounterTargetHttpProxyList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2230(o.items); + checkUnnamed2250(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7080,14 +7418,14 @@ buildCounterTargetHttpProxyList--; } -buildUnnamed2231() { +buildUnnamed2251() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2231(core.List<core.String> o) { +checkUnnamed2251(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7098,7 +7436,7 @@ var o = new api.TargetHttpsProxiesSetSslCertificatesRequest(); buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { - o.sslCertificates = buildUnnamed2231(); + o.sslCertificates = buildUnnamed2251(); } buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; return o; @@ -7107,19 +7445,19 @@ checkTargetHttpsProxiesSetSslCertificatesRequest(api.TargetHttpsProxiesSetSslCertificatesRequest o) { buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { - checkUnnamed2231(o.sslCertificates); + checkUnnamed2251(o.sslCertificates); } buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; } -buildUnnamed2232() { +buildUnnamed2252() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2232(core.List<core.String> o) { +checkUnnamed2252(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7136,7 +7474,7 @@ o.kind = "foo"; o.name = "foo"; o.selfLink = "foo"; - o.sslCertificates = buildUnnamed2232(); + o.sslCertificates = buildUnnamed2252(); o.urlMap = "foo"; } buildCounterTargetHttpsProxy--; @@ -7152,20 +7490,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2232(o.sslCertificates); + checkUnnamed2252(o.sslCertificates); unittest.expect(o.urlMap, unittest.equals('foo')); } buildCounterTargetHttpsProxy--; } -buildUnnamed2233() { +buildUnnamed2253() { var o = new core.List<api.TargetHttpsProxy>(); o.add(buildTargetHttpsProxy()); o.add(buildTargetHttpsProxy()); return o; } -checkUnnamed2233(core.List<api.TargetHttpsProxy> o) { +checkUnnamed2253(core.List<api.TargetHttpsProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpsProxy(o[0]); checkTargetHttpsProxy(o[1]); @@ -7177,7 +7515,7 @@ buildCounterTargetHttpsProxyList++; if (buildCounterTargetHttpsProxyList < 3) { o.id = "foo"; - o.items = buildUnnamed2233(); + o.items = buildUnnamed2253(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7190,7 +7528,7 @@ buildCounterTargetHttpsProxyList++; if (buildCounterTargetHttpsProxyList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2233(o.items); + checkUnnamed2253(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7233,14 +7571,14 @@ buildCounterTargetInstance--; } -buildUnnamed2234() { +buildUnnamed2254() { var o = new core.Map<core.String, api.TargetInstancesScopedList>(); o["x"] = buildTargetInstancesScopedList(); o["y"] = buildTargetInstancesScopedList(); return o; } -checkUnnamed2234(core.Map<core.String, api.TargetInstancesScopedList> o) { +checkUnnamed2254(core.Map<core.String, api.TargetInstancesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstancesScopedList(o["x"]); checkTargetInstancesScopedList(o["y"]); @@ -7252,7 +7590,7 @@ buildCounterTargetInstanceAggregatedList++; if (buildCounterTargetInstanceAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2234(); + o.items = buildUnnamed2254(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7265,7 +7603,7 @@ buildCounterTargetInstanceAggregatedList++; if (buildCounterTargetInstanceAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2234(o.items); + checkUnnamed2254(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7273,14 +7611,14 @@ buildCounterTargetInstanceAggregatedList--; } -buildUnnamed2235() { +buildUnnamed2255() { var o = new core.List<api.TargetInstance>(); o.add(buildTargetInstance()); o.add(buildTargetInstance()); return o; } -checkUnnamed2235(core.List<api.TargetInstance> o) { +checkUnnamed2255(core.List<api.TargetInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstance(o[0]); checkTargetInstance(o[1]); @@ -7292,7 +7630,7 @@ buildCounterTargetInstanceList++; if (buildCounterTargetInstanceList < 3) { o.id = "foo"; - o.items = buildUnnamed2235(); + o.items = buildUnnamed2255(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7305,7 +7643,7 @@ buildCounterTargetInstanceList++; if (buildCounterTargetInstanceList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2235(o.items); + checkUnnamed2255(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7313,14 +7651,14 @@ buildCounterTargetInstanceList--; } -buildUnnamed2236() { +buildUnnamed2256() { var o = new core.List<api.TargetInstance>(); o.add(buildTargetInstance()); o.add(buildTargetInstance()); return o; } -checkUnnamed2236(core.List<api.TargetInstance> o) { +checkUnnamed2256(core.List<api.TargetInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstance(o[0]); checkTargetInstance(o[1]); @@ -7347,14 +7685,14 @@ buildCounterTargetInstancesScopedListWarningData--; } -buildUnnamed2237() { +buildUnnamed2257() { var o = new core.List<api.TargetInstancesScopedListWarningData>(); o.add(buildTargetInstancesScopedListWarningData()); o.add(buildTargetInstancesScopedListWarningData()); return o; } -checkUnnamed2237(core.List<api.TargetInstancesScopedListWarningData> o) { +checkUnnamed2257(core.List<api.TargetInstancesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstancesScopedListWarningData(o[0]); checkTargetInstancesScopedListWarningData(o[1]); @@ -7366,7 +7704,7 @@ buildCounterTargetInstancesScopedListWarning++; if (buildCounterTargetInstancesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2237(); + o.data = buildUnnamed2257(); o.message = "foo"; } buildCounterTargetInstancesScopedListWarning--; @@ -7377,7 +7715,7 @@ buildCounterTargetInstancesScopedListWarning++; if (buildCounterTargetInstancesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2237(o.data); + checkUnnamed2257(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetInstancesScopedListWarning--; @@ -7388,7 +7726,7 @@ var o = new api.TargetInstancesScopedList(); buildCounterTargetInstancesScopedList++; if (buildCounterTargetInstancesScopedList < 3) { - o.targetInstances = buildUnnamed2236(); + o.targetInstances = buildUnnamed2256(); o.warning = buildTargetInstancesScopedListWarning(); } buildCounterTargetInstancesScopedList--; @@ -7398,33 +7736,33 @@ checkTargetInstancesScopedList(api.TargetInstancesScopedList o) { buildCounterTargetInstancesScopedList++; if (buildCounterTargetInstancesScopedList < 3) { - checkUnnamed2236(o.targetInstances); + checkUnnamed2256(o.targetInstances); checkTargetInstancesScopedListWarning(o.warning); } buildCounterTargetInstancesScopedList--; } -buildUnnamed2238() { +buildUnnamed2258() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2238(core.List<core.String> o) { +checkUnnamed2258(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2239() { +buildUnnamed2259() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2239(core.List<core.String> o) { +checkUnnamed2259(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7439,9 +7777,9 @@ o.creationTimestamp = "foo"; o.description = "foo"; o.failoverRatio = 42.0; - o.healthChecks = buildUnnamed2238(); + o.healthChecks = buildUnnamed2258(); o.id = "foo"; - o.instances = buildUnnamed2239(); + o.instances = buildUnnamed2259(); o.kind = "foo"; o.name = "foo"; o.region = "foo"; @@ -7459,9 +7797,9 @@ unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.failoverRatio, unittest.equals(42.0)); - checkUnnamed2238(o.healthChecks); + checkUnnamed2258(o.healthChecks); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2239(o.instances); + checkUnnamed2259(o.instances); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); @@ -7471,14 +7809,14 @@ buildCounterTargetPool--; } -buildUnnamed2240() { +buildUnnamed2260() { var o = new core.Map<core.String, api.TargetPoolsScopedList>(); o["x"] = buildTargetPoolsScopedList(); o["y"] = buildTargetPoolsScopedList(); return o; } -checkUnnamed2240(core.Map<core.String, api.TargetPoolsScopedList> o) { +checkUnnamed2260(core.Map<core.String, api.TargetPoolsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPoolsScopedList(o["x"]); checkTargetPoolsScopedList(o["y"]); @@ -7490,7 +7828,7 @@ buildCounterTargetPoolAggregatedList++; if (buildCounterTargetPoolAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2240(); + o.items = buildUnnamed2260(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7503,7 +7841,7 @@ buildCounterTargetPoolAggregatedList++; if (buildCounterTargetPoolAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2240(o.items); + checkUnnamed2260(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7511,14 +7849,14 @@ buildCounterTargetPoolAggregatedList--; } -buildUnnamed2241() { +buildUnnamed2261() { var o = new core.List<api.HealthStatus>(); o.add(buildHealthStatus()); o.add(buildHealthStatus()); return o; } -checkUnnamed2241(core.List<api.HealthStatus> o) { +checkUnnamed2261(core.List<api.HealthStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthStatus(o[0]); checkHealthStatus(o[1]); @@ -7529,7 +7867,7 @@ var o = new api.TargetPoolInstanceHealth(); buildCounterTargetPoolInstanceHealth++; if (buildCounterTargetPoolInstanceHealth < 3) { - o.healthStatus = buildUnnamed2241(); + o.healthStatus = buildUnnamed2261(); o.kind = "foo"; } buildCounterTargetPoolInstanceHealth--; @@ -7539,20 +7877,20 @@ checkTargetPoolInstanceHealth(api.TargetPoolInstanceHealth o) { buildCounterTargetPoolInstanceHealth++; if (buildCounterTargetPoolInstanceHealth < 3) { - checkUnnamed2241(o.healthStatus); + checkUnnamed2261(o.healthStatus); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTargetPoolInstanceHealth--; } -buildUnnamed2242() { +buildUnnamed2262() { var o = new core.List<api.TargetPool>(); o.add(buildTargetPool()); o.add(buildTargetPool()); return o; } -checkUnnamed2242(core.List<api.TargetPool> o) { +checkUnnamed2262(core.List<api.TargetPool> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPool(o[0]); checkTargetPool(o[1]); @@ -7564,7 +7902,7 @@ buildCounterTargetPoolList++; if (buildCounterTargetPoolList < 3) { o.id = "foo"; - o.items = buildUnnamed2242(); + o.items = buildUnnamed2262(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7577,7 +7915,7 @@ buildCounterTargetPoolList++; if (buildCounterTargetPoolList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2242(o.items); + checkUnnamed2262(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7585,14 +7923,14 @@ buildCounterTargetPoolList--; } -buildUnnamed2243() { +buildUnnamed2263() { var o = new core.List<api.HealthCheckReference>(); o.add(buildHealthCheckReference()); o.add(buildHealthCheckReference()); return o; } -checkUnnamed2243(core.List<api.HealthCheckReference> o) { +checkUnnamed2263(core.List<api.HealthCheckReference> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheckReference(o[0]); checkHealthCheckReference(o[1]); @@ -7603,7 +7941,7 @@ var o = new api.TargetPoolsAddHealthCheckRequest(); buildCounterTargetPoolsAddHealthCheckRequest++; if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { - o.healthChecks = buildUnnamed2243(); + o.healthChecks = buildUnnamed2263(); } buildCounterTargetPoolsAddHealthCheckRequest--; return o; @@ -7612,19 +7950,19 @@ checkTargetPoolsAddHealthCheckRequest(api.TargetPoolsAddHealthCheckRequest o) { buildCounterTargetPoolsAddHealthCheckRequest++; if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { - checkUnnamed2243(o.healthChecks); + checkUnnamed2263(o.healthChecks); } buildCounterTargetPoolsAddHealthCheckRequest--; } -buildUnnamed2244() { +buildUnnamed2264() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2244(core.List<api.InstanceReference> o) { +checkUnnamed2264(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -7635,7 +7973,7 @@ var o = new api.TargetPoolsAddInstanceRequest(); buildCounterTargetPoolsAddInstanceRequest++; if (buildCounterTargetPoolsAddInstanceRequest < 3) { - o.instances = buildUnnamed2244(); + o.instances = buildUnnamed2264(); } buildCounterTargetPoolsAddInstanceRequest--; return o; @@ -7644,19 +7982,19 @@ checkTargetPoolsAddInstanceRequest(api.TargetPoolsAddInstanceRequest o) { buildCounterTargetPoolsAddInstanceRequest++; if (buildCounterTargetPoolsAddInstanceRequest < 3) { - checkUnnamed2244(o.instances); + checkUnnamed2264(o.instances); } buildCounterTargetPoolsAddInstanceRequest--; } -buildUnnamed2245() { +buildUnnamed2265() { var o = new core.List<api.HealthCheckReference>(); o.add(buildHealthCheckReference()); o.add(buildHealthCheckReference()); return o; } -checkUnnamed2245(core.List<api.HealthCheckReference> o) { +checkUnnamed2265(core.List<api.HealthCheckReference> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheckReference(o[0]); checkHealthCheckReference(o[1]); @@ -7667,7 +8005,7 @@ var o = new api.TargetPoolsRemoveHealthCheckRequest(); buildCounterTargetPoolsRemoveHealthCheckRequest++; if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { - o.healthChecks = buildUnnamed2245(); + o.healthChecks = buildUnnamed2265(); } buildCounterTargetPoolsRemoveHealthCheckRequest--; return o; @@ -7676,19 +8014,19 @@ checkTargetPoolsRemoveHealthCheckRequest(api.TargetPoolsRemoveHealthCheckRequest o) { buildCounterTargetPoolsRemoveHealthCheckRequest++; if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { - checkUnnamed2245(o.healthChecks); + checkUnnamed2265(o.healthChecks); } buildCounterTargetPoolsRemoveHealthCheckRequest--; } -buildUnnamed2246() { +buildUnnamed2266() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2246(core.List<api.InstanceReference> o) { +checkUnnamed2266(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -7699,7 +8037,7 @@ var o = new api.TargetPoolsRemoveInstanceRequest(); buildCounterTargetPoolsRemoveInstanceRequest++; if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { - o.instances = buildUnnamed2246(); + o.instances = buildUnnamed2266(); } buildCounterTargetPoolsRemoveInstanceRequest--; return o; @@ -7708,19 +8046,19 @@ checkTargetPoolsRemoveInstanceRequest(api.TargetPoolsRemoveInstanceRequest o) { buildCounterTargetPoolsRemoveInstanceRequest++; if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { - checkUnnamed2246(o.instances); + checkUnnamed2266(o.instances); } buildCounterTargetPoolsRemoveInstanceRequest--; } -buildUnnamed2247() { +buildUnnamed2267() { var o = new core.List<api.TargetPool>(); o.add(buildTargetPool()); o.add(buildTargetPool()); return o; } -checkUnnamed2247(core.List<api.TargetPool> o) { +checkUnnamed2267(core.List<api.TargetPool> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPool(o[0]); checkTargetPool(o[1]); @@ -7747,14 +8085,14 @@ buildCounterTargetPoolsScopedListWarningData--; } -buildUnnamed2248() { +buildUnnamed2268() { var o = new core.List<api.TargetPoolsScopedListWarningData>(); o.add(buildTargetPoolsScopedListWarningData()); o.add(buildTargetPoolsScopedListWarningData()); return o; } -checkUnnamed2248(core.List<api.TargetPoolsScopedListWarningData> o) { +checkUnnamed2268(core.List<api.TargetPoolsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPoolsScopedListWarningData(o[0]); checkTargetPoolsScopedListWarningData(o[1]); @@ -7766,7 +8104,7 @@ buildCounterTargetPoolsScopedListWarning++; if (buildCounterTargetPoolsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2248(); + o.data = buildUnnamed2268(); o.message = "foo"; } buildCounterTargetPoolsScopedListWarning--; @@ -7777,7 +8115,7 @@ buildCounterTargetPoolsScopedListWarning++; if (buildCounterTargetPoolsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2248(o.data); + checkUnnamed2268(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetPoolsScopedListWarning--; @@ -7788,7 +8126,7 @@ var o = new api.TargetPoolsScopedList(); buildCounterTargetPoolsScopedList++; if (buildCounterTargetPoolsScopedList < 3) { - o.targetPools = buildUnnamed2247(); + o.targetPools = buildUnnamed2267(); o.warning = buildTargetPoolsScopedListWarning(); } buildCounterTargetPoolsScopedList--; @@ -7798,7 +8136,7 @@ checkTargetPoolsScopedList(api.TargetPoolsScopedList o) { buildCounterTargetPoolsScopedList++; if (buildCounterTargetPoolsScopedList < 3) { - checkUnnamed2247(o.targetPools); + checkUnnamed2267(o.targetPools); checkTargetPoolsScopedListWarning(o.warning); } buildCounterTargetPoolsScopedList--; @@ -7861,14 +8199,14 @@ buildCounterTargetSslProxiesSetProxyHeaderRequest--; } -buildUnnamed2249() { +buildUnnamed2269() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2249(core.List<core.String> o) { +checkUnnamed2269(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7879,7 +8217,7 @@ var o = new api.TargetSslProxiesSetSslCertificatesRequest(); buildCounterTargetSslProxiesSetSslCertificatesRequest++; if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { - o.sslCertificates = buildUnnamed2249(); + o.sslCertificates = buildUnnamed2269(); } buildCounterTargetSslProxiesSetSslCertificatesRequest--; return o; @@ -7888,19 +8226,19 @@ checkTargetSslProxiesSetSslCertificatesRequest(api.TargetSslProxiesSetSslCertificatesRequest o) { buildCounterTargetSslProxiesSetSslCertificatesRequest++; if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { - checkUnnamed2249(o.sslCertificates); + checkUnnamed2269(o.sslCertificates); } buildCounterTargetSslProxiesSetSslCertificatesRequest--; } -buildUnnamed2250() { +buildUnnamed2270() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2250(core.List<core.String> o) { +checkUnnamed2270(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7919,7 +8257,7 @@ o.proxyHeader = "foo"; o.selfLink = "foo"; o.service = "foo"; - o.sslCertificates = buildUnnamed2250(); + o.sslCertificates = buildUnnamed2270(); } buildCounterTargetSslProxy--; return o; @@ -7936,19 +8274,19 @@ unittest.expect(o.proxyHeader, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.service, unittest.equals('foo')); - checkUnnamed2250(o.sslCertificates); + checkUnnamed2270(o.sslCertificates); } buildCounterTargetSslProxy--; } -buildUnnamed2251() { +buildUnnamed2271() { var o = new core.List<api.TargetSslProxy>(); o.add(buildTargetSslProxy()); o.add(buildTargetSslProxy()); return o; } -checkUnnamed2251(core.List<api.TargetSslProxy> o) { +checkUnnamed2271(core.List<api.TargetSslProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetSslProxy(o[0]); checkTargetSslProxy(o[1]); @@ -7960,7 +8298,7 @@ buildCounterTargetSslProxyList++; if (buildCounterTargetSslProxyList < 3) { o.id = "foo"; - o.items = buildUnnamed2251(); + o.items = buildUnnamed2271(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7973,7 +8311,7 @@ buildCounterTargetSslProxyList++; if (buildCounterTargetSslProxyList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2251(o.items); + checkUnnamed2271(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7981,27 +8319,138 @@ buildCounterTargetSslProxyList--; } -buildUnnamed2252() { +core.int buildCounterTargetTcpProxiesSetBackendServiceRequest = 0; +buildTargetTcpProxiesSetBackendServiceRequest() { + var o = new api.TargetTcpProxiesSetBackendServiceRequest(); + buildCounterTargetTcpProxiesSetBackendServiceRequest++; + if (buildCounterTargetTcpProxiesSetBackendServiceRequest < 3) { + o.service = "foo"; + } + buildCounterTargetTcpProxiesSetBackendServiceRequest--; + return o; +} + +checkTargetTcpProxiesSetBackendServiceRequest(api.TargetTcpProxiesSetBackendServiceRequest o) { + buildCounterTargetTcpProxiesSetBackendServiceRequest++; + if (buildCounterTargetTcpProxiesSetBackendServiceRequest < 3) { + unittest.expect(o.service, unittest.equals('foo')); + } + buildCounterTargetTcpProxiesSetBackendServiceRequest--; +} + +core.int buildCounterTargetTcpProxiesSetProxyHeaderRequest = 0; +buildTargetTcpProxiesSetProxyHeaderRequest() { + var o = new api.TargetTcpProxiesSetProxyHeaderRequest(); + buildCounterTargetTcpProxiesSetProxyHeaderRequest++; + if (buildCounterTargetTcpProxiesSetProxyHeaderRequest < 3) { + o.proxyHeader = "foo"; + } + buildCounterTargetTcpProxiesSetProxyHeaderRequest--; + return o; +} + +checkTargetTcpProxiesSetProxyHeaderRequest(api.TargetTcpProxiesSetProxyHeaderRequest o) { + buildCounterTargetTcpProxiesSetProxyHeaderRequest++; + if (buildCounterTargetTcpProxiesSetProxyHeaderRequest < 3) { + unittest.expect(o.proxyHeader, unittest.equals('foo')); + } + buildCounterTargetTcpProxiesSetProxyHeaderRequest--; +} + +core.int buildCounterTargetTcpProxy = 0; +buildTargetTcpProxy() { + var o = new api.TargetTcpProxy(); + buildCounterTargetTcpProxy++; + if (buildCounterTargetTcpProxy < 3) { + o.creationTimestamp = "foo"; + o.description = "foo"; + o.id = "foo"; + o.kind = "foo"; + o.name = "foo"; + o.proxyHeader = "foo"; + o.selfLink = "foo"; + o.service = "foo"; + } + buildCounterTargetTcpProxy--; + return o; +} + +checkTargetTcpProxy(api.TargetTcpProxy o) { + buildCounterTargetTcpProxy++; + if (buildCounterTargetTcpProxy < 3) { + unittest.expect(o.creationTimestamp, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.id, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.proxyHeader, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + unittest.expect(o.service, unittest.equals('foo')); + } + buildCounterTargetTcpProxy--; +} + +buildUnnamed2272() { + var o = new core.List<api.TargetTcpProxy>(); + o.add(buildTargetTcpProxy()); + o.add(buildTargetTcpProxy()); + return o; +} + +checkUnnamed2272(core.List<api.TargetTcpProxy> o) { + unittest.expect(o, unittest.hasLength(2)); + checkTargetTcpProxy(o[0]); + checkTargetTcpProxy(o[1]); +} + +core.int buildCounterTargetTcpProxyList = 0; +buildTargetTcpProxyList() { + var o = new api.TargetTcpProxyList(); + buildCounterTargetTcpProxyList++; + if (buildCounterTargetTcpProxyList < 3) { + o.id = "foo"; + o.items = buildUnnamed2272(); + o.kind = "foo"; + o.nextPageToken = "foo"; + o.selfLink = "foo"; + } + buildCounterTargetTcpProxyList--; + return o; +} + +checkTargetTcpProxyList(api.TargetTcpProxyList o) { + buildCounterTargetTcpProxyList++; + if (buildCounterTargetTcpProxyList < 3) { + unittest.expect(o.id, unittest.equals('foo')); + checkUnnamed2272(o.items); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + } + buildCounterTargetTcpProxyList--; +} + +buildUnnamed2273() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2252(core.List<core.String> o) { +checkUnnamed2273(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2253() { +buildUnnamed2274() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2253(core.List<core.String> o) { +checkUnnamed2274(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8014,7 +8463,7 @@ if (buildCounterTargetVpnGateway < 3) { o.creationTimestamp = "foo"; o.description = "foo"; - o.forwardingRules = buildUnnamed2252(); + o.forwardingRules = buildUnnamed2273(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -8022,7 +8471,7 @@ o.region = "foo"; o.selfLink = "foo"; o.status = "foo"; - o.tunnels = buildUnnamed2253(); + o.tunnels = buildUnnamed2274(); } buildCounterTargetVpnGateway--; return o; @@ -8033,7 +8482,7 @@ if (buildCounterTargetVpnGateway < 3) { unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2252(o.forwardingRules); + checkUnnamed2273(o.forwardingRules); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -8041,19 +8490,19 @@ unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed2253(o.tunnels); + checkUnnamed2274(o.tunnels); } buildCounterTargetVpnGateway--; } -buildUnnamed2254() { +buildUnnamed2275() { var o = new core.Map<core.String, api.TargetVpnGatewaysScopedList>(); o["x"] = buildTargetVpnGatewaysScopedList(); o["y"] = buildTargetVpnGatewaysScopedList(); return o; } -checkUnnamed2254(core.Map<core.String, api.TargetVpnGatewaysScopedList> o) { +checkUnnamed2275(core.Map<core.String, api.TargetVpnGatewaysScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGatewaysScopedList(o["x"]); checkTargetVpnGatewaysScopedList(o["y"]); @@ -8065,7 +8514,7 @@ buildCounterTargetVpnGatewayAggregatedList++; if (buildCounterTargetVpnGatewayAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2254(); + o.items = buildUnnamed2275(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -8078,7 +8527,7 @@ buildCounterTargetVpnGatewayAggregatedList++; if (buildCounterTargetVpnGatewayAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2254(o.items); + checkUnnamed2275(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -8086,14 +8535,14 @@ buildCounterTargetVpnGatewayAggregatedList--; } -buildUnnamed2255() { +buildUnnamed2276() { var o = new core.List<api.TargetVpnGateway>(); o.add(buildTargetVpnGateway()); o.add(buildTargetVpnGateway()); return o; } -checkUnnamed2255(core.List<api.TargetVpnGateway> o) { +checkUnnamed2276(core.List<api.TargetVpnGateway> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGateway(o[0]); checkTargetVpnGateway(o[1]); @@ -8105,7 +8554,7 @@ buildCounterTargetVpnGatewayList++; if (buildCounterTargetVpnGatewayList < 3) { o.id = "foo"; - o.items = buildUnnamed2255(); + o.items = buildUnnamed2276(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -8118,7 +8567,7 @@ buildCounterTargetVpnGatewayList++; if (buildCounterTargetVpnGatewayList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2255(o.items); + checkUnnamed2276(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -8126,14 +8575,14 @@ buildCounterTargetVpnGatewayList--; } -buildUnnamed2256() { +buildUnnamed2277() { var o = new core.List<api.TargetVpnGateway>(); o.add(buildTargetVpnGateway()); o.add(buildTargetVpnGateway()); return o; } -checkUnnamed2256(core.List<api.TargetVpnGateway> o) { +checkUnnamed2277(core.List<api.TargetVpnGateway> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGateway(o[0]); checkTargetVpnGateway(o[1]); @@ -8160,14 +8609,14 @@ buildCounterTargetVpnGatewaysScopedListWarningData--; } -buildUnnamed2257() { +buildUnnamed2278() { var o = new core.List<api.TargetVpnGatewaysScopedListWarningData>(); o.add(buildTargetVpnGatewaysScopedListWarningData()); o.add(buildTargetVpnGatewaysScopedListWarningData()); return o; } -checkUnnamed2257(core.List<api.TargetVpnGatewaysScopedListWarningData> o) { +checkUnnamed2278(core.List<api.TargetVpnGatewaysScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGatewaysScopedListWarningData(o[0]); checkTargetVpnGatewaysScopedListWarningData(o[1]); @@ -8179,7 +8628,7 @@ buildCounterTargetVpnGatewaysScopedListWarning++; if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2257(); + o.data = buildUnnamed2278(); o.message = "foo"; } buildCounterTargetVpnGatewaysScopedListWarning--; @@ -8190,7 +8639,7 @@ buildCounterTargetVpnGatewaysScopedListWarning++; if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2257(o.data); + checkUnnamed2278(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetVpnGatewaysScopedListWarning--; @@ -8201,7 +8650,7 @@ var o = new api.TargetVpnGatewaysScopedList(); buildCounterTargetVpnGatewaysScopedList++; if (buildCounterTargetVpnGatewaysScopedList < 3) { - o.targetVpnGateways = buildUnnamed2256(); + o.targetVpnGateways = buildUnnamed2277(); o.warning = buildTargetVpnGatewaysScopedListWarning(); } buildCounterTargetVpnGatewaysScopedList--; @@ -8211,7 +8660,7 @@ checkTargetVpnGatewaysScopedList(api.TargetVpnGatewaysScopedList o) { buildCounterTargetVpnGatewaysScopedList++; if (buildCounterTargetVpnGatewaysScopedList < 3) { - checkUnnamed2256(o.targetVpnGateways); + checkUnnamed2277(o.targetVpnGateways); checkTargetVpnGatewaysScopedListWarning(o.warning); } buildCounterTargetVpnGatewaysScopedList--; @@ -8242,40 +8691,40 @@ buildCounterTestFailure--; } -buildUnnamed2258() { +buildUnnamed2279() { var o = new core.List<api.HostRule>(); o.add(buildHostRule()); o.add(buildHostRule()); return o; } -checkUnnamed2258(core.List<api.HostRule> o) { +checkUnnamed2279(core.List<api.HostRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHostRule(o[0]); checkHostRule(o[1]); } -buildUnnamed2259() { +buildUnnamed2280() { var o = new core.List<api.PathMatcher>(); o.add(buildPathMatcher()); o.add(buildPathMatcher()); return o; } -checkUnnamed2259(core.List<api.PathMatcher> o) { +checkUnnamed2280(core.List<api.PathMatcher> o) { unittest.expect(o, unittest.hasLength(2)); checkPathMatcher(o[0]); checkPathMatcher(o[1]); } -buildUnnamed2260() { +buildUnnamed2281() { var o = new core.List<api.UrlMapTest>(); o.add(buildUrlMapTest()); o.add(buildUrlMapTest()); return o; } -checkUnnamed2260(core.List<api.UrlMapTest> o) { +checkUnnamed2281(core.List<api.UrlMapTest> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMapTest(o[0]); checkUrlMapTest(o[1]); @@ -8290,13 +8739,13 @@ o.defaultService = "foo"; o.description = "foo"; o.fingerprint = "foo"; - o.hostRules = buildUnnamed2258(); + o.hostRules = buildUnnamed2279(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.pathMatchers = buildUnnamed2259(); + o.pathMatchers = buildUnnamed2280(); o.selfLink = "foo"; - o.tests = buildUnnamed2260(); + o.tests = buildUnnamed2281(); } buildCounterUrlMap--; return o; @@ -8309,25 +8758,25 @@ unittest.expect(o.defaultService, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2258(o.hostRules); + checkUnnamed2279(o.hostRules); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2259(o.pathMatchers); + checkUnnamed2280(o.pathMatchers); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2260(o.tests); + checkUnnamed2281(o.tests); } buildCounterUrlMap--; } -buildUnnamed2261() { +buildUnnamed2282() { var o = new core.List<api.UrlMap>(); o.add(buildUrlMap()); o.add(buildUrlMap()); return o; } -checkUnnamed2261(core.List<api.UrlMap> o) { +checkUnnamed2282(core.List<api.UrlMap> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); @@ -8339,7 +8788,7 @@ buildCounterUrlMapList++; if (buildCounterUrlMapList < 3) { o.id = "foo"; - o.items = buildUnnamed2261(); + o.items = buildUnnamed2282(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -8352,7 +8801,7 @@ buildCounterUrlMapList++; if (buildCounterUrlMapList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2261(o.items); + checkUnnamed2282(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -8404,27 +8853,27 @@ buildCounterUrlMapTest--; } -buildUnnamed2262() { +buildUnnamed2283() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2262(core.List<core.String> o) { +checkUnnamed2283(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2263() { +buildUnnamed2284() { var o = new core.List<api.TestFailure>(); o.add(buildTestFailure()); o.add(buildTestFailure()); return o; } -checkUnnamed2263(core.List<api.TestFailure> o) { +checkUnnamed2284(core.List<api.TestFailure> o) { unittest.expect(o, unittest.hasLength(2)); checkTestFailure(o[0]); checkTestFailure(o[1]); @@ -8435,9 +8884,9 @@ var o = new api.UrlMapValidationResult(); buildCounterUrlMapValidationResult++; if (buildCounterUrlMapValidationResult < 3) { - o.loadErrors = buildUnnamed2262(); + o.loadErrors = buildUnnamed2283(); o.loadSucceeded = true; - o.testFailures = buildUnnamed2263(); + o.testFailures = buildUnnamed2284(); o.testPassed = true; } buildCounterUrlMapValidationResult--; @@ -8447,9 +8896,9 @@ checkUrlMapValidationResult(api.UrlMapValidationResult o) { buildCounterUrlMapValidationResult++; if (buildCounterUrlMapValidationResult < 3) { - checkUnnamed2262(o.loadErrors); + checkUnnamed2283(o.loadErrors); unittest.expect(o.loadSucceeded, unittest.isTrue); - checkUnnamed2263(o.testFailures); + checkUnnamed2284(o.testFailures); unittest.expect(o.testPassed, unittest.isTrue); } buildCounterUrlMapValidationResult--; @@ -8514,27 +8963,27 @@ buildCounterUsageExportLocation--; } -buildUnnamed2264() { +buildUnnamed2285() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2264(core.List<core.String> o) { +checkUnnamed2285(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2265() { +buildUnnamed2286() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2265(core.List<core.String> o) { +checkUnnamed2286(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8551,11 +9000,11 @@ o.id = "foo"; o.ikeVersion = 42; o.kind = "foo"; - o.localTrafficSelector = buildUnnamed2264(); + o.localTrafficSelector = buildUnnamed2285(); o.name = "foo"; o.peerIp = "foo"; o.region = "foo"; - o.remoteTrafficSelector = buildUnnamed2265(); + o.remoteTrafficSelector = buildUnnamed2286(); o.router = "foo"; o.selfLink = "foo"; o.sharedSecret = "foo"; @@ -8576,11 +9025,11 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.ikeVersion, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2264(o.localTrafficSelector); + checkUnnamed2285(o.localTrafficSelector); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.peerIp, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed2265(o.remoteTrafficSelector); + checkUnnamed2286(o.remoteTrafficSelector); unittest.expect(o.router, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.sharedSecret, unittest.equals('foo')); @@ -8591,14 +9040,14 @@ buildCounterVpnTunnel--; } -buildUnnamed2266() { +buildUnnamed2287() { var o = new core.Map<core.String, api.VpnTunnelsScopedList>(); o["x"] = buildVpnTunnelsScopedList(); o["y"] = buildVpnTunnelsScopedList(); return o; } -checkUnnamed2266(core.Map<core.String, api.VpnTunnelsScopedList> o) { +checkUnnamed2287(core.Map<core.String, api.VpnTunnelsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnelsScopedList(o["x"]); checkVpnTunnelsScopedList(o["y"]); @@ -8610,7 +9059,7 @@ buildCounterVpnTunnelAggregatedList++; if (buildCounterVpnTunnelAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2266(); + o.items = buildUnnamed2287(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -8623,7 +9072,7 @@ buildCounterVpnTunnelAggregatedList++; if (buildCounterVpnTunnelAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2266(o.items); + checkUnnamed2287(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -8631,14 +9080,14 @@ buildCounterVpnTunnelAggregatedList--; } -buildUnnamed2267() { +buildUnnamed2288() { var o = new core.List<api.VpnTunnel>(); o.add(buildVpnTunnel()); o.add(buildVpnTunnel()); return o; } -checkUnnamed2267(core.List<api.VpnTunnel> o) { +checkUnnamed2288(core.List<api.VpnTunnel> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnel(o[0]); checkVpnTunnel(o[1]); @@ -8650,7 +9099,7 @@ buildCounterVpnTunnelList++; if (buildCounterVpnTunnelList < 3) { o.id = "foo"; - o.items = buildUnnamed2267(); + o.items = buildUnnamed2288(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -8663,7 +9112,7 @@ buildCounterVpnTunnelList++; if (buildCounterVpnTunnelList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2267(o.items); + checkUnnamed2288(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -8671,14 +9120,14 @@ buildCounterVpnTunnelList--; } -buildUnnamed2268() { +buildUnnamed2289() { var o = new core.List<api.VpnTunnel>(); o.add(buildVpnTunnel()); o.add(buildVpnTunnel()); return o; } -checkUnnamed2268(core.List<api.VpnTunnel> o) { +checkUnnamed2289(core.List<api.VpnTunnel> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnel(o[0]); checkVpnTunnel(o[1]); @@ -8705,14 +9154,14 @@ buildCounterVpnTunnelsScopedListWarningData--; } -buildUnnamed2269() { +buildUnnamed2290() { var o = new core.List<api.VpnTunnelsScopedListWarningData>(); o.add(buildVpnTunnelsScopedListWarningData()); o.add(buildVpnTunnelsScopedListWarningData()); return o; } -checkUnnamed2269(core.List<api.VpnTunnelsScopedListWarningData> o) { +checkUnnamed2290(core.List<api.VpnTunnelsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnelsScopedListWarningData(o[0]); checkVpnTunnelsScopedListWarningData(o[1]); @@ -8724,7 +9173,7 @@ buildCounterVpnTunnelsScopedListWarning++; if (buildCounterVpnTunnelsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2269(); + o.data = buildUnnamed2290(); o.message = "foo"; } buildCounterVpnTunnelsScopedListWarning--; @@ -8735,7 +9184,7 @@ buildCounterVpnTunnelsScopedListWarning++; if (buildCounterVpnTunnelsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2269(o.data); + checkUnnamed2290(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterVpnTunnelsScopedListWarning--; @@ -8746,7 +9195,7 @@ var o = new api.VpnTunnelsScopedList(); buildCounterVpnTunnelsScopedList++; if (buildCounterVpnTunnelsScopedList < 3) { - o.vpnTunnels = buildUnnamed2268(); + o.vpnTunnels = buildUnnamed2289(); o.warning = buildVpnTunnelsScopedListWarning(); } buildCounterVpnTunnelsScopedList--; @@ -8756,12 +9205,73 @@ checkVpnTunnelsScopedList(api.VpnTunnelsScopedList o) { buildCounterVpnTunnelsScopedList++; if (buildCounterVpnTunnelsScopedList < 3) { - checkUnnamed2268(o.vpnTunnels); + checkUnnamed2289(o.vpnTunnels); checkVpnTunnelsScopedListWarning(o.warning); } buildCounterVpnTunnelsScopedList--; } +buildUnnamed2291() { + var o = new core.List<api.Project>(); + o.add(buildProject()); + o.add(buildProject()); + return o; +} + +checkUnnamed2291(core.List<api.Project> o) { + unittest.expect(o, unittest.hasLength(2)); + checkProject(o[0]); + checkProject(o[1]); +} + +core.int buildCounterXpnHostList = 0; +buildXpnHostList() { + var o = new api.XpnHostList(); + buildCounterXpnHostList++; + if (buildCounterXpnHostList < 3) { + o.id = "foo"; + o.items = buildUnnamed2291(); + o.kind = "foo"; + o.nextPageToken = "foo"; + o.selfLink = "foo"; + } + buildCounterXpnHostList--; + return o; +} + +checkXpnHostList(api.XpnHostList o) { + buildCounterXpnHostList++; + if (buildCounterXpnHostList < 3) { + unittest.expect(o.id, unittest.equals('foo')); + checkUnnamed2291(o.items); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + } + buildCounterXpnHostList--; +} + +core.int buildCounterXpnResourceId = 0; +buildXpnResourceId() { + var o = new api.XpnResourceId(); + buildCounterXpnResourceId++; + if (buildCounterXpnResourceId < 3) { + o.id = "foo"; + o.type = "foo"; + } + buildCounterXpnResourceId--; + return o; +} + +checkXpnResourceId(api.XpnResourceId o) { + buildCounterXpnResourceId++; + if (buildCounterXpnResourceId < 3) { + unittest.expect(o.id, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterXpnResourceId--; +} + core.int buildCounterZone = 0; buildZone() { var o = new api.Zone(); @@ -8797,14 +9307,14 @@ buildCounterZone--; } -buildUnnamed2270() { +buildUnnamed2292() { var o = new core.List<api.Zone>(); o.add(buildZone()); o.add(buildZone()); return o; } -checkUnnamed2270(core.List<api.Zone> o) { +checkUnnamed2292(core.List<api.Zone> o) { unittest.expect(o, unittest.hasLength(2)); checkZone(o[0]); checkZone(o[1]); @@ -8816,7 +9326,7 @@ buildCounterZoneList++; if (buildCounterZoneList < 3) { o.id = "foo"; - o.items = buildUnnamed2270(); + o.items = buildUnnamed2292(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -8829,7 +9339,7 @@ buildCounterZoneList++; if (buildCounterZoneList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2270(o.items); + checkUnnamed2292(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -8837,6 +9347,40 @@ buildCounterZoneList--; } +buildUnnamed2293() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed2293(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +core.int buildCounterZoneSetLabelsRequest = 0; +buildZoneSetLabelsRequest() { + var o = new api.ZoneSetLabelsRequest(); + buildCounterZoneSetLabelsRequest++; + if (buildCounterZoneSetLabelsRequest < 3) { + o.labelFingerprint = "foo"; + o.labels = buildUnnamed2293(); + } + buildCounterZoneSetLabelsRequest--; + return o; +} + +checkZoneSetLabelsRequest(api.ZoneSetLabelsRequest o) { + buildCounterZoneSetLabelsRequest++; + if (buildCounterZoneSetLabelsRequest < 3) { + unittest.expect(o.labelFingerprint, unittest.equals('foo')); + checkUnnamed2293(o.labels); + } + buildCounterZoneSetLabelsRequest--; +} + main() { unittest.group("obj-schema-AccessConfig", () { @@ -9379,6 +9923,15 @@ }); + unittest.group("obj-schema-GlobalSetLabelsRequest", () { + unittest.test("to-json--from-json", () { + var o = buildGlobalSetLabelsRequest(); + var od = new api.GlobalSetLabelsRequest.fromJson(o.toJson()); + checkGlobalSetLabelsRequest(od); + }); + }); + + unittest.group("obj-schema-GuestOsFeature", () { unittest.test("to-json--from-json", () { var o = buildGuestOsFeature(); @@ -9838,6 +10391,15 @@ }); + unittest.group("obj-schema-InstancesSetLabelsRequest", () { + unittest.test("to-json--from-json", () { + var o = buildInstancesSetLabelsRequest(); + var od = new api.InstancesSetLabelsRequest.fromJson(o.toJson()); + checkInstancesSetLabelsRequest(od); + }); + }); + + unittest.group("obj-schema-InstancesSetMachineTypeRequest", () { unittest.test("to-json--from-json", () { var o = buildInstancesSetMachineTypeRequest(); @@ -10027,6 +10589,33 @@ }); + unittest.group("obj-schema-NetworkPeering", () { + unittest.test("to-json--from-json", () { + var o = buildNetworkPeering(); + var od = new api.NetworkPeering.fromJson(o.toJson()); + checkNetworkPeering(od); + }); + }); + + + unittest.group("obj-schema-NetworksAddPeeringRequest", () { + unittest.test("to-json--from-json", () { + var o = buildNetworksAddPeeringRequest(); + var od = new api.NetworksAddPeeringRequest.fromJson(o.toJson()); + checkNetworksAddPeeringRequest(od); + }); + }); + + + unittest.group("obj-schema-NetworksRemovePeeringRequest", () { + unittest.test("to-json--from-json", () { + var o = buildNetworksRemovePeeringRequest(); + var od = new api.NetworksRemovePeeringRequest.fromJson(o.toJson()); + checkNetworksRemovePeeringRequest(od); + }); + }); + + unittest.group("obj-schema-OperationErrorErrors", () { unittest.test("to-json--from-json", () { var o = buildOperationErrorErrors(); @@ -10144,6 +10733,42 @@ }); + unittest.group("obj-schema-ProjectsDisableXpnResourceRequest", () { + unittest.test("to-json--from-json", () { + var o = buildProjectsDisableXpnResourceRequest(); + var od = new api.ProjectsDisableXpnResourceRequest.fromJson(o.toJson()); + checkProjectsDisableXpnResourceRequest(od); + }); + }); + + + unittest.group("obj-schema-ProjectsEnableXpnResourceRequest", () { + unittest.test("to-json--from-json", () { + var o = buildProjectsEnableXpnResourceRequest(); + var od = new api.ProjectsEnableXpnResourceRequest.fromJson(o.toJson()); + checkProjectsEnableXpnResourceRequest(od); + }); + }); + + + unittest.group("obj-schema-ProjectsGetXpnResources", () { + unittest.test("to-json--from-json", () { + var o = buildProjectsGetXpnResources(); + var od = new api.ProjectsGetXpnResources.fromJson(o.toJson()); + checkProjectsGetXpnResources(od); + }); + }); + + + unittest.group("obj-schema-ProjectsListXpnHostsRequest", () { + unittest.test("to-json--from-json", () { + var o = buildProjectsListXpnHostsRequest(); + var od = new api.ProjectsListXpnHostsRequest.fromJson(o.toJson()); + checkProjectsListXpnHostsRequest(od); + }); + }); + + unittest.group("obj-schema-Quota", () { unittest.test("to-json--from-json", () { var o = buildQuota(); @@ -10855,6 +11480,42 @@ }); + unittest.group("obj-schema-TargetTcpProxiesSetBackendServiceRequest", () { + unittest.test("to-json--from-json", () { + var o = buildTargetTcpProxiesSetBackendServiceRequest(); + var od = new api.TargetTcpProxiesSetBackendServiceRequest.fromJson(o.toJson()); + checkTargetTcpProxiesSetBackendServiceRequest(od); + }); + }); + + + unittest.group("obj-schema-TargetTcpProxiesSetProxyHeaderRequest", () { + unittest.test("to-json--from-json", () { + var o = buildTargetTcpProxiesSetProxyHeaderRequest(); + var od = new api.TargetTcpProxiesSetProxyHeaderRequest.fromJson(o.toJson()); + checkTargetTcpProxiesSetProxyHeaderRequest(od); + }); + }); + + + unittest.group("obj-schema-TargetTcpProxy", () { + unittest.test("to-json--from-json", () { + var o = buildTargetTcpProxy(); + var od = new api.TargetTcpProxy.fromJson(o.toJson()); + checkTargetTcpProxy(od); + }); + }); + + + unittest.group("obj-schema-TargetTcpProxyList", () { + unittest.test("to-json--from-json", () { + var o = buildTargetTcpProxyList(); + var od = new api.TargetTcpProxyList.fromJson(o.toJson()); + checkTargetTcpProxyList(od); + }); + }); + + unittest.group("obj-schema-TargetVpnGateway", () { unittest.test("to-json--from-json", () { var o = buildTargetVpnGateway(); @@ -11044,6 +11705,24 @@ }); + unittest.group("obj-schema-XpnHostList", () { + unittest.test("to-json--from-json", () { + var o = buildXpnHostList(); + var od = new api.XpnHostList.fromJson(o.toJson()); + checkXpnHostList(od); + }); + }); + + + unittest.group("obj-schema-XpnResourceId", () { + unittest.test("to-json--from-json", () { + var o = buildXpnResourceId(); + var od = new api.XpnResourceId.fromJson(o.toJson()); + checkXpnResourceId(od); + }); + }); + + unittest.group("obj-schema-Zone", () { unittest.test("to-json--from-json", () { var o = buildZone(); @@ -11062,6 +11741,15 @@ }); + unittest.group("obj-schema-ZoneSetLabelsRequest", () { + unittest.test("to-json--from-json", () { + var o = buildZoneSetLabelsRequest(); + var od = new api.ZoneSetLabelsRequest.fromJson(o.toJson()); + checkZoneSetLabelsRequest(od); + }); + }); + + unittest.group("resource-AddressesResourceApi", () { unittest.test("method--aggregatedList", () { @@ -11072,7 +11760,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -11108,7 +11796,7 @@ var resp = convert.JSON.encode(buildAddressAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.AddressAggregatedList response) { checkAddressAggregatedList(response); }))); }); @@ -11120,7 +11808,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_address = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -11152,7 +11840,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_region, arg_address).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_region, arg_address).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -11164,7 +11852,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_address = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -11196,7 +11884,7 @@ var resp = convert.JSON.encode(buildAddress()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_region, arg_address).then(unittest.expectAsync(((api.Address response) { + res.get(arg_project, arg_region, arg_address).then(unittest.expectAsync1(((api.Address response) { checkAddress(response); }))); }); @@ -11208,7 +11896,7 @@ var arg_request = buildAddress(); var arg_project = "foo"; var arg_region = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Address.fromJson(json); checkAddress(obj); @@ -11243,7 +11931,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -11258,7 +11946,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -11294,7 +11982,7 @@ var resp = convert.JSON.encode(buildAddressList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.AddressList response) { checkAddressList(response); }))); }); @@ -11312,7 +12000,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -11348,7 +12036,7 @@ var resp = convert.JSON.encode(buildAutoscalerAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AutoscalerAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.AutoscalerAggregatedList response) { checkAutoscalerAggregatedList(response); }))); }); @@ -11360,7 +12048,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_autoscaler = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -11392,7 +12080,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_zone, arg_autoscaler).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_zone, arg_autoscaler).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -11404,7 +12092,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_autoscaler = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -11436,7 +12124,7 @@ var resp = convert.JSON.encode(buildAutoscaler()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_zone, arg_autoscaler).then(unittest.expectAsync(((api.Autoscaler response) { + res.get(arg_project, arg_zone, arg_autoscaler).then(unittest.expectAsync1(((api.Autoscaler response) { checkAutoscaler(response); }))); }); @@ -11448,7 +12136,7 @@ var arg_request = buildAutoscaler(); var arg_project = "foo"; var arg_zone = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Autoscaler.fromJson(json); checkAutoscaler(obj); @@ -11483,7 +12171,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -11498,7 +12186,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -11534,7 +12222,7 @@ var resp = convert.JSON.encode(buildAutoscalerList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AutoscalerList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.AutoscalerList response) { checkAutoscalerList(response); }))); }); @@ -11547,7 +12235,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_autoscaler = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Autoscaler.fromJson(json); checkAutoscaler(obj); @@ -11583,7 +12271,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_project, arg_zone, autoscaler: arg_autoscaler).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_project, arg_zone, autoscaler: arg_autoscaler).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -11596,7 +12284,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_autoscaler = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Autoscaler.fromJson(json); checkAutoscaler(obj); @@ -11632,7 +12320,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_project, arg_zone, autoscaler: arg_autoscaler).then(unittest.expectAsync(((api.Operation response) { + res.update(arg_request, arg_project, arg_zone, autoscaler: arg_autoscaler).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -11647,7 +12335,7 @@ api.BackendBucketsResourceApi res = new api.ComputeApi(mock).backendBuckets; var arg_project = "foo"; var arg_backendBucket = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -11679,7 +12367,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_backendBucket).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_backendBucket).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -11690,7 +12378,7 @@ api.BackendBucketsResourceApi res = new api.ComputeApi(mock).backendBuckets; var arg_project = "foo"; var arg_backendBucket = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -11722,7 +12410,7 @@ var resp = convert.JSON.encode(buildBackendBucket()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_backendBucket).then(unittest.expectAsync(((api.BackendBucket response) { + res.get(arg_project, arg_backendBucket).then(unittest.expectAsync1(((api.BackendBucket response) { checkBackendBucket(response); }))); }); @@ -11733,7 +12421,7 @@ api.BackendBucketsResourceApi res = new api.ComputeApi(mock).backendBuckets; var arg_request = buildBackendBucket(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.BackendBucket.fromJson(json); checkBackendBucket(obj); @@ -11768,7 +12456,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -11782,7 +12470,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -11818,7 +12506,7 @@ var resp = convert.JSON.encode(buildBackendBucketList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.BackendBucketList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.BackendBucketList response) { checkBackendBucketList(response); }))); }); @@ -11830,7 +12518,7 @@ var arg_request = buildBackendBucket(); var arg_project = "foo"; var arg_backendBucket = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.BackendBucket.fromJson(json); checkBackendBucket(obj); @@ -11865,7 +12553,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_project, arg_backendBucket).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_project, arg_backendBucket).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -11877,7 +12565,7 @@ var arg_request = buildBackendBucket(); var arg_project = "foo"; var arg_backendBucket = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.BackendBucket.fromJson(json); checkBackendBucket(obj); @@ -11912,7 +12600,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_project, arg_backendBucket).then(unittest.expectAsync(((api.Operation response) { + res.update(arg_request, arg_project, arg_backendBucket).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -11930,7 +12618,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -11966,7 +12654,7 @@ var resp = convert.JSON.encode(buildBackendServiceAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.BackendServiceAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.BackendServiceAggregatedList response) { checkBackendServiceAggregatedList(response); }))); }); @@ -11977,7 +12665,7 @@ api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServices; var arg_project = "foo"; var arg_backendService = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -12009,7 +12697,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_backendService).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_backendService).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -12020,7 +12708,7 @@ api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServices; var arg_project = "foo"; var arg_backendService = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -12052,7 +12740,7 @@ var resp = convert.JSON.encode(buildBackendService()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_backendService).then(unittest.expectAsync(((api.BackendService response) { + res.get(arg_project, arg_backendService).then(unittest.expectAsync1(((api.BackendService response) { checkBackendService(response); }))); }); @@ -12064,7 +12752,7 @@ var arg_request = buildResourceGroupReference(); var arg_project = "foo"; var arg_backendService = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ResourceGroupReference.fromJson(json); checkResourceGroupReference(obj); @@ -12099,7 +12787,7 @@ var resp = convert.JSON.encode(buildBackendServiceGroupHealth()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getHealth(arg_request, arg_project, arg_backendService).then(unittest.expectAsync(((api.BackendServiceGroupHealth response) { + res.getHealth(arg_request, arg_project, arg_backendService).then(unittest.expectAsync1(((api.BackendServiceGroupHealth response) { checkBackendServiceGroupHealth(response); }))); }); @@ -12110,7 +12798,7 @@ api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServices; var arg_request = buildBackendService(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.BackendService.fromJson(json); checkBackendService(obj); @@ -12145,7 +12833,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -12159,7 +12847,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -12195,7 +12883,7 @@ var resp = convert.JSON.encode(buildBackendServiceList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.BackendServiceList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.BackendServiceList response) { checkBackendServiceList(response); }))); }); @@ -12207,7 +12895,7 @@ var arg_request = buildBackendService(); var arg_project = "foo"; var arg_backendService = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.BackendService.fromJson(json); checkBackendService(obj); @@ -12242,7 +12930,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_project, arg_backendService).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_project, arg_backendService).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -12254,7 +12942,7 @@ var arg_request = buildBackendService(); var arg_project = "foo"; var arg_backendService = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.BackendService.fromJson(json); checkBackendService(obj); @@ -12289,7 +12977,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_project, arg_backendService).then(unittest.expectAsync(((api.Operation response) { + res.update(arg_request, arg_project, arg_backendService).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -12307,7 +12995,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -12343,7 +13031,7 @@ var resp = convert.JSON.encode(buildDiskTypeAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskTypeAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.DiskTypeAggregatedList response) { checkDiskTypeAggregatedList(response); }))); }); @@ -12355,7 +13043,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_diskType = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -12387,7 +13075,7 @@ var resp = convert.JSON.encode(buildDiskType()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_zone, arg_diskType).then(unittest.expectAsync(((api.DiskType response) { + res.get(arg_project, arg_zone, arg_diskType).then(unittest.expectAsync1(((api.DiskType response) { checkDiskType(response); }))); }); @@ -12402,7 +13090,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -12438,7 +13126,7 @@ var resp = convert.JSON.encode(buildDiskTypeList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskTypeList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.DiskTypeList response) { checkDiskTypeList(response); }))); }); @@ -12456,7 +13144,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -12492,7 +13180,7 @@ var resp = convert.JSON.encode(buildDiskAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.DiskAggregatedList response) { checkDiskAggregatedList(response); }))); }); @@ -12506,7 +13194,7 @@ var arg_zone = "foo"; var arg_disk = "foo"; var arg_guestFlush = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Snapshot.fromJson(json); checkSnapshot(obj); @@ -12542,7 +13230,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.createSnapshot(arg_request, arg_project, arg_zone, arg_disk, guestFlush: arg_guestFlush).then(unittest.expectAsync(((api.Operation response) { + res.createSnapshot(arg_request, arg_project, arg_zone, arg_disk, guestFlush: arg_guestFlush).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -12554,7 +13242,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_disk = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -12586,7 +13274,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_zone, arg_disk).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_zone, arg_disk).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -12598,7 +13286,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_disk = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -12630,7 +13318,7 @@ var resp = convert.JSON.encode(buildDisk()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_zone, arg_disk).then(unittest.expectAsync(((api.Disk response) { + res.get(arg_project, arg_zone, arg_disk).then(unittest.expectAsync1(((api.Disk response) { checkDisk(response); }))); }); @@ -12643,7 +13331,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_sourceImage = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Disk.fromJson(json); checkDisk(obj); @@ -12679,7 +13367,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_zone, sourceImage: arg_sourceImage).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project, arg_zone, sourceImage: arg_sourceImage).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -12694,7 +13382,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -12730,7 +13418,7 @@ var resp = convert.JSON.encode(buildDiskList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.DiskList response) { checkDiskList(response); }))); }); @@ -12743,7 +13431,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_disk = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DisksResizeRequest.fromJson(json); checkDisksResizeRequest(obj); @@ -12778,22 +13466,23 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resize(arg_request, arg_project, arg_zone, arg_disk).then(unittest.expectAsync(((api.Operation response) { + res.resize(arg_request, arg_project, arg_zone, arg_disk).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); - }); - - - unittest.group("resource-FirewallsResourceApi", () { - unittest.test("method--delete", () { + unittest.test("method--setLabels", () { var mock = new HttpServerMock(); - api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; + api.DisksResourceApi res = new api.ComputeApi(mock).disks; + var arg_request = buildZoneSetLabelsRequest(); var arg_project = "foo"; - var arg_firewall = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_zone = "foo"; + var arg_resource = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.ZoneSetLabelsRequest.fromJson(json); + checkZoneSetLabelsRequest(obj); + var path = (req.url).path; var pathOffset = 0; var index; @@ -12825,7 +13514,54 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_firewall).then(unittest.expectAsync(((api.Operation response) { + res.setLabels(arg_request, arg_project, arg_zone, arg_resource).then(unittest.expectAsync1(((api.Operation response) { + checkOperation(response); + }))); + }); + + }); + + + unittest.group("resource-FirewallsResourceApi", () { + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; + var arg_project = "foo"; + var arg_firewall = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_project, arg_firewall).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -12836,7 +13572,7 @@ api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; var arg_project = "foo"; var arg_firewall = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -12868,7 +13604,7 @@ var resp = convert.JSON.encode(buildFirewall()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_firewall).then(unittest.expectAsync(((api.Firewall response) { + res.get(arg_project, arg_firewall).then(unittest.expectAsync1(((api.Firewall response) { checkFirewall(response); }))); }); @@ -12879,7 +13615,7 @@ api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; var arg_request = buildFirewall(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Firewall.fromJson(json); checkFirewall(obj); @@ -12914,7 +13650,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -12928,7 +13664,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -12964,7 +13700,7 @@ var resp = convert.JSON.encode(buildFirewallList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.FirewallList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.FirewallList response) { checkFirewallList(response); }))); }); @@ -12976,7 +13712,7 @@ var arg_request = buildFirewall(); var arg_project = "foo"; var arg_firewall = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Firewall.fromJson(json); checkFirewall(obj); @@ -13011,7 +13747,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_project, arg_firewall).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_project, arg_firewall).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -13023,7 +13759,7 @@ var arg_request = buildFirewall(); var arg_project = "foo"; var arg_firewall = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Firewall.fromJson(json); checkFirewall(obj); @@ -13058,7 +13794,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_project, arg_firewall).then(unittest.expectAsync(((api.Operation response) { + res.update(arg_request, arg_project, arg_firewall).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -13076,7 +13812,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -13112,7 +13848,7 @@ var resp = convert.JSON.encode(buildForwardingRuleAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ForwardingRuleAggregatedList response) { checkForwardingRuleAggregatedList(response); }))); }); @@ -13124,7 +13860,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_forwardingRule = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -13156,7 +13892,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_region, arg_forwardingRule).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_region, arg_forwardingRule).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -13168,7 +13904,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_forwardingRule = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -13200,7 +13936,7 @@ var resp = convert.JSON.encode(buildForwardingRule()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_region, arg_forwardingRule).then(unittest.expectAsync(((api.ForwardingRule response) { + res.get(arg_project, arg_region, arg_forwardingRule).then(unittest.expectAsync1(((api.ForwardingRule response) { checkForwardingRule(response); }))); }); @@ -13212,7 +13948,7 @@ var arg_request = buildForwardingRule(); var arg_project = "foo"; var arg_region = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ForwardingRule.fromJson(json); checkForwardingRule(obj); @@ -13247,7 +13983,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -13262,7 +13998,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -13298,7 +14034,7 @@ var resp = convert.JSON.encode(buildForwardingRuleList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ForwardingRuleList response) { checkForwardingRuleList(response); }))); }); @@ -13311,7 +14047,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_forwardingRule = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TargetReference.fromJson(json); checkTargetReference(obj); @@ -13346,7 +14082,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setTarget(arg_request, arg_project, arg_region, arg_forwardingRule).then(unittest.expectAsync(((api.Operation response) { + res.setTarget(arg_request, arg_project, arg_region, arg_forwardingRule).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -13361,7 +14097,7 @@ api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddresses; var arg_project = "foo"; var arg_address = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -13393,7 +14129,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_address).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_address).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -13404,7 +14140,7 @@ api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddresses; var arg_project = "foo"; var arg_address = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -13436,7 +14172,7 @@ var resp = convert.JSON.encode(buildAddress()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_address).then(unittest.expectAsync(((api.Address response) { + res.get(arg_project, arg_address).then(unittest.expectAsync1(((api.Address response) { checkAddress(response); }))); }); @@ -13447,7 +14183,7 @@ api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddresses; var arg_request = buildAddress(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Address.fromJson(json); checkAddress(obj); @@ -13482,7 +14218,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -13496,7 +14232,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -13532,7 +14268,7 @@ var resp = convert.JSON.encode(buildAddressList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.AddressList response) { checkAddressList(response); }))); }); @@ -13547,7 +14283,7 @@ api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).globalForwardingRules; var arg_project = "foo"; var arg_forwardingRule = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -13579,7 +14315,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_forwardingRule).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_forwardingRule).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -13590,7 +14326,7 @@ api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).globalForwardingRules; var arg_project = "foo"; var arg_forwardingRule = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -13622,7 +14358,7 @@ var resp = convert.JSON.encode(buildForwardingRule()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_forwardingRule).then(unittest.expectAsync(((api.ForwardingRule response) { + res.get(arg_project, arg_forwardingRule).then(unittest.expectAsync1(((api.ForwardingRule response) { checkForwardingRule(response); }))); }); @@ -13633,7 +14369,7 @@ api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).globalForwardingRules; var arg_request = buildForwardingRule(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ForwardingRule.fromJson(json); checkForwardingRule(obj); @@ -13668,7 +14404,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -13682,7 +14418,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -13718,7 +14454,7 @@ var resp = convert.JSON.encode(buildForwardingRuleList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ForwardingRuleList response) { checkForwardingRuleList(response); }))); }); @@ -13730,7 +14466,7 @@ var arg_request = buildTargetReference(); var arg_project = "foo"; var arg_forwardingRule = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TargetReference.fromJson(json); checkTargetReference(obj); @@ -13765,7 +14501,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setTarget(arg_request, arg_project, arg_forwardingRule).then(unittest.expectAsync(((api.Operation response) { + res.setTarget(arg_request, arg_project, arg_forwardingRule).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -13783,7 +14519,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -13819,7 +14555,7 @@ var resp = convert.JSON.encode(buildOperationAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.OperationAggregatedList response) { checkOperationAggregatedList(response); }))); }); @@ -13830,7 +14566,7 @@ api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOperations; var arg_project = "foo"; var arg_operation = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -13862,7 +14598,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_operation).then(unittest.expectAsync((_) {})); + res.delete(arg_project, arg_operation).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -13871,7 +14607,7 @@ api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOperations; var arg_project = "foo"; var arg_operation = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -13903,7 +14639,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_operation).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_project, arg_operation).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -13917,7 +14653,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -13953,7 +14689,7 @@ var resp = convert.JSON.encode(buildOperationList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.OperationList response) { checkOperationList(response); }))); }); @@ -13968,7 +14704,7 @@ api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; var arg_project = "foo"; var arg_healthCheck = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -14000,7 +14736,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_healthCheck).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_healthCheck).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -14011,7 +14747,7 @@ api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; var arg_project = "foo"; var arg_healthCheck = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -14043,7 +14779,7 @@ var resp = convert.JSON.encode(buildHealthCheck()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_healthCheck).then(unittest.expectAsync(((api.HealthCheck response) { + res.get(arg_project, arg_healthCheck).then(unittest.expectAsync1(((api.HealthCheck response) { checkHealthCheck(response); }))); }); @@ -14054,7 +14790,7 @@ api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; var arg_request = buildHealthCheck(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.HealthCheck.fromJson(json); checkHealthCheck(obj); @@ -14089,7 +14825,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -14103,7 +14839,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -14139,7 +14875,7 @@ var resp = convert.JSON.encode(buildHealthCheckList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.HealthCheckList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.HealthCheckList response) { checkHealthCheckList(response); }))); }); @@ -14151,7 +14887,7 @@ var arg_request = buildHealthCheck(); var arg_project = "foo"; var arg_healthCheck = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.HealthCheck.fromJson(json); checkHealthCheck(obj); @@ -14186,7 +14922,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_project, arg_healthCheck).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_project, arg_healthCheck).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -14198,7 +14934,7 @@ var arg_request = buildHealthCheck(); var arg_project = "foo"; var arg_healthCheck = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.HealthCheck.fromJson(json); checkHealthCheck(obj); @@ -14233,7 +14969,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_project, arg_healthCheck).then(unittest.expectAsync(((api.Operation response) { + res.update(arg_request, arg_project, arg_healthCheck).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -14248,7 +14984,7 @@ api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthChecks; var arg_project = "foo"; var arg_httpHealthCheck = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -14280,7 +15016,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_httpHealthCheck).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_httpHealthCheck).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -14291,7 +15027,7 @@ api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthChecks; var arg_project = "foo"; var arg_httpHealthCheck = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -14323,7 +15059,7 @@ var resp = convert.JSON.encode(buildHttpHealthCheck()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_httpHealthCheck).then(unittest.expectAsync(((api.HttpHealthCheck response) { + res.get(arg_project, arg_httpHealthCheck).then(unittest.expectAsync1(((api.HttpHealthCheck response) { checkHttpHealthCheck(response); }))); }); @@ -14334,7 +15070,7 @@ api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthChecks; var arg_request = buildHttpHealthCheck(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.HttpHealthCheck.fromJson(json); checkHttpHealthCheck(obj); @@ -14369,7 +15105,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -14383,7 +15119,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -14419,7 +15155,7 @@ var resp = convert.JSON.encode(buildHttpHealthCheckList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.HttpHealthCheckList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.HttpHealthCheckList response) { checkHttpHealthCheckList(response); }))); }); @@ -14431,7 +15167,7 @@ var arg_request = buildHttpHealthCheck(); var arg_project = "foo"; var arg_httpHealthCheck = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.HttpHealthCheck.fromJson(json); checkHttpHealthCheck(obj); @@ -14466,7 +15202,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_project, arg_httpHealthCheck).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_project, arg_httpHealthCheck).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -14478,7 +15214,7 @@ var arg_request = buildHttpHealthCheck(); var arg_project = "foo"; var arg_httpHealthCheck = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.HttpHealthCheck.fromJson(json); checkHttpHealthCheck(obj); @@ -14513,7 +15249,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_project, arg_httpHealthCheck).then(unittest.expectAsync(((api.Operation response) { + res.update(arg_request, arg_project, arg_httpHealthCheck).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -14528,7 +15264,7 @@ api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealthChecks; var arg_project = "foo"; var arg_httpsHealthCheck = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -14560,7 +15296,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_httpsHealthCheck).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_httpsHealthCheck).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -14571,7 +15307,7 @@ api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealthChecks; var arg_project = "foo"; var arg_httpsHealthCheck = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -14603,7 +15339,7 @@ var resp = convert.JSON.encode(buildHttpsHealthCheck()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_httpsHealthCheck).then(unittest.expectAsync(((api.HttpsHealthCheck response) { + res.get(arg_project, arg_httpsHealthCheck).then(unittest.expectAsync1(((api.HttpsHealthCheck response) { checkHttpsHealthCheck(response); }))); }); @@ -14614,7 +15350,7 @@ api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealthChecks; var arg_request = buildHttpsHealthCheck(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.HttpsHealthCheck.fromJson(json); checkHttpsHealthCheck(obj); @@ -14649,7 +15385,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -14663,7 +15399,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -14699,7 +15435,7 @@ var resp = convert.JSON.encode(buildHttpsHealthCheckList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.HttpsHealthCheckList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.HttpsHealthCheckList response) { checkHttpsHealthCheckList(response); }))); }); @@ -14711,7 +15447,7 @@ var arg_request = buildHttpsHealthCheck(); var arg_project = "foo"; var arg_httpsHealthCheck = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.HttpsHealthCheck.fromJson(json); checkHttpsHealthCheck(obj); @@ -14746,7 +15482,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_project, arg_httpsHealthCheck).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_project, arg_httpsHealthCheck).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -14758,7 +15494,7 @@ var arg_request = buildHttpsHealthCheck(); var arg_project = "foo"; var arg_httpsHealthCheck = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.HttpsHealthCheck.fromJson(json); checkHttpsHealthCheck(obj); @@ -14793,7 +15529,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_project, arg_httpsHealthCheck).then(unittest.expectAsync(((api.Operation response) { + res.update(arg_request, arg_project, arg_httpsHealthCheck).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -14808,7 +15544,7 @@ api.ImagesResourceApi res = new api.ComputeApi(mock).images; var arg_project = "foo"; var arg_image = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -14840,7 +15576,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_image).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_image).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -14852,7 +15588,7 @@ var arg_request = buildDeprecationStatus(); var arg_project = "foo"; var arg_image = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DeprecationStatus.fromJson(json); checkDeprecationStatus(obj); @@ -14887,7 +15623,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.deprecate(arg_request, arg_project, arg_image).then(unittest.expectAsync(((api.Operation response) { + res.deprecate(arg_request, arg_project, arg_image).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -14898,7 +15634,7 @@ api.ImagesResourceApi res = new api.ComputeApi(mock).images; var arg_project = "foo"; var arg_image = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -14930,7 +15666,7 @@ var resp = convert.JSON.encode(buildImage()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_image).then(unittest.expectAsync(((api.Image response) { + res.get(arg_project, arg_image).then(unittest.expectAsync1(((api.Image response) { checkImage(response); }))); }); @@ -14941,7 +15677,7 @@ api.ImagesResourceApi res = new api.ComputeApi(mock).images; var arg_project = "foo"; var arg_family = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -14973,7 +15709,7 @@ var resp = convert.JSON.encode(buildImage()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getFromFamily(arg_project, arg_family).then(unittest.expectAsync(((api.Image response) { + res.getFromFamily(arg_project, arg_family).then(unittest.expectAsync1(((api.Image response) { checkImage(response); }))); }); @@ -14984,7 +15720,7 @@ api.ImagesResourceApi res = new api.ComputeApi(mock).images; var arg_request = buildImage(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Image.fromJson(json); checkImage(obj); @@ -15019,7 +15755,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -15033,7 +15769,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -15069,11 +15805,58 @@ var resp = convert.JSON.encode(buildImageList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ImageList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ImageList response) { checkImageList(response); }))); }); + unittest.test("method--setLabels", () { + + var mock = new HttpServerMock(); + api.ImagesResourceApi res = new api.ComputeApi(mock).images; + var arg_request = buildGlobalSetLabelsRequest(); + var arg_project = "foo"; + var arg_resource = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.GlobalSetLabelsRequest.fromJson(json); + checkGlobalSetLabelsRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.setLabels(arg_request, arg_project, arg_resource).then(unittest.expectAsync1(((api.Operation response) { + checkOperation(response); + }))); + }); + }); @@ -15086,7 +15869,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instanceGroupManager = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstanceGroupManagersAbandonInstancesRequest.fromJson(json); checkInstanceGroupManagersAbandonInstancesRequest(obj); @@ -15121,7 +15904,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.abandonInstances(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + res.abandonInstances(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -15135,7 +15918,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -15171,7 +15954,7 @@ var resp = convert.JSON.encode(buildInstanceGroupManagerAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupManagerAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.InstanceGroupManagerAggregatedList response) { checkInstanceGroupManagerAggregatedList(response); }))); }); @@ -15183,7 +15966,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instanceGroupManager = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -15215,7 +15998,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -15228,7 +16011,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instanceGroupManager = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstanceGroupManagersDeleteInstancesRequest.fromJson(json); checkInstanceGroupManagersDeleteInstancesRequest(obj); @@ -15263,7 +16046,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.deleteInstances(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + res.deleteInstances(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -15275,7 +16058,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instanceGroupManager = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -15307,7 +16090,7 @@ var resp = convert.JSON.encode(buildInstanceGroupManager()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.InstanceGroupManager response) { + res.get(arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync1(((api.InstanceGroupManager response) { checkInstanceGroupManager(response); }))); }); @@ -15319,7 +16102,7 @@ var arg_request = buildInstanceGroupManager(); var arg_project = "foo"; var arg_zone = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstanceGroupManager.fromJson(json); checkInstanceGroupManager(obj); @@ -15354,7 +16137,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -15369,7 +16152,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -15405,7 +16188,7 @@ var resp = convert.JSON.encode(buildInstanceGroupManagerList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupManagerList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.InstanceGroupManagerList response) { checkInstanceGroupManagerList(response); }))); }); @@ -15421,7 +16204,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -15457,7 +16240,7 @@ var resp = convert.JSON.encode(buildInstanceGroupManagersListManagedInstancesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listManagedInstances(arg_project, arg_zone, arg_instanceGroupManager, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupManagersListManagedInstancesResponse response) { + res.listManagedInstances(arg_project, arg_zone, arg_instanceGroupManager, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.InstanceGroupManagersListManagedInstancesResponse response) { checkInstanceGroupManagersListManagedInstancesResponse(response); }))); }); @@ -15470,7 +16253,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instanceGroupManager = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstanceGroupManagersRecreateInstancesRequest.fromJson(json); checkInstanceGroupManagersRecreateInstancesRequest(obj); @@ -15505,7 +16288,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.recreateInstances(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + res.recreateInstances(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -15518,7 +16301,7 @@ var arg_zone = "foo"; var arg_instanceGroupManager = "foo"; var arg_size = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -15551,7 +16334,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resize(arg_project, arg_zone, arg_instanceGroupManager, arg_size).then(unittest.expectAsync(((api.Operation response) { + res.resize(arg_project, arg_zone, arg_instanceGroupManager, arg_size).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -15564,7 +16347,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instanceGroupManager = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstanceGroupManagersSetInstanceTemplateRequest.fromJson(json); checkInstanceGroupManagersSetInstanceTemplateRequest(obj); @@ -15599,7 +16382,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setInstanceTemplate(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + res.setInstanceTemplate(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -15612,7 +16395,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instanceGroupManager = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstanceGroupManagersSetTargetPoolsRequest.fromJson(json); checkInstanceGroupManagersSetTargetPoolsRequest(obj); @@ -15647,7 +16430,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setTargetPools(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + res.setTargetPools(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -15664,7 +16447,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instanceGroup = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstanceGroupsAddInstancesRequest.fromJson(json); checkInstanceGroupsAddInstancesRequest(obj); @@ -15699,7 +16482,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.addInstances(arg_request, arg_project, arg_zone, arg_instanceGroup).then(unittest.expectAsync(((api.Operation response) { + res.addInstances(arg_request, arg_project, arg_zone, arg_instanceGroup).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -15713,7 +16496,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -15749,7 +16532,7 @@ var resp = convert.JSON.encode(buildInstanceGroupAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.InstanceGroupAggregatedList response) { checkInstanceGroupAggregatedList(response); }))); }); @@ -15761,7 +16544,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instanceGroup = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -15793,7 +16576,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_zone, arg_instanceGroup).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_zone, arg_instanceGroup).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -15805,7 +16588,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instanceGroup = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -15837,7 +16620,7 @@ var resp = convert.JSON.encode(buildInstanceGroup()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_zone, arg_instanceGroup).then(unittest.expectAsync(((api.InstanceGroup response) { + res.get(arg_project, arg_zone, arg_instanceGroup).then(unittest.expectAsync1(((api.InstanceGroup response) { checkInstanceGroup(response); }))); }); @@ -15849,7 +16632,7 @@ var arg_request = buildInstanceGroup(); var arg_project = "foo"; var arg_zone = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstanceGroup.fromJson(json); checkInstanceGroup(obj); @@ -15884,7 +16667,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -15899,7 +16682,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -15935,7 +16718,7 @@ var resp = convert.JSON.encode(buildInstanceGroupList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.InstanceGroupList response) { checkInstanceGroupList(response); }))); }); @@ -15952,7 +16735,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstanceGroupsListInstancesRequest.fromJson(json); checkInstanceGroupsListInstancesRequest(obj); @@ -15991,7 +16774,7 @@ var resp = convert.JSON.encode(buildInstanceGroupsListInstances()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listInstances(arg_request, arg_project, arg_zone, arg_instanceGroup, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupsListInstances response) { + res.listInstances(arg_request, arg_project, arg_zone, arg_instanceGroup, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.InstanceGroupsListInstances response) { checkInstanceGroupsListInstances(response); }))); }); @@ -16004,7 +16787,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instanceGroup = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstanceGroupsRemoveInstancesRequest.fromJson(json); checkInstanceGroupsRemoveInstancesRequest(obj); @@ -16039,7 +16822,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.removeInstances(arg_request, arg_project, arg_zone, arg_instanceGroup).then(unittest.expectAsync(((api.Operation response) { + res.removeInstances(arg_request, arg_project, arg_zone, arg_instanceGroup).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -16052,7 +16835,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instanceGroup = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstanceGroupsSetNamedPortsRequest.fromJson(json); checkInstanceGroupsSetNamedPortsRequest(obj); @@ -16087,7 +16870,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setNamedPorts(arg_request, arg_project, arg_zone, arg_instanceGroup).then(unittest.expectAsync(((api.Operation response) { + res.setNamedPorts(arg_request, arg_project, arg_zone, arg_instanceGroup).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -16102,7 +16885,7 @@ api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTemplates; var arg_project = "foo"; var arg_instanceTemplate = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -16134,7 +16917,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_instanceTemplate).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_instanceTemplate).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -16145,7 +16928,7 @@ api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTemplates; var arg_project = "foo"; var arg_instanceTemplate = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -16177,7 +16960,7 @@ var resp = convert.JSON.encode(buildInstanceTemplate()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_instanceTemplate).then(unittest.expectAsync(((api.InstanceTemplate response) { + res.get(arg_project, arg_instanceTemplate).then(unittest.expectAsync1(((api.InstanceTemplate response) { checkInstanceTemplate(response); }))); }); @@ -16188,7 +16971,7 @@ api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTemplates; var arg_request = buildInstanceTemplate(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstanceTemplate.fromJson(json); checkInstanceTemplate(obj); @@ -16223,7 +17006,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -16237,7 +17020,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -16273,7 +17056,7 @@ var resp = convert.JSON.encode(buildInstanceTemplateList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceTemplateList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.InstanceTemplateList response) { checkInstanceTemplateList(response); }))); }); @@ -16291,7 +17074,7 @@ var arg_zone = "foo"; var arg_instance = "foo"; var arg_networkInterface = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AccessConfig.fromJson(json); checkAccessConfig(obj); @@ -16327,7 +17110,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.addAccessConfig(arg_request, arg_project, arg_zone, arg_instance, arg_networkInterface).then(unittest.expectAsync(((api.Operation response) { + res.addAccessConfig(arg_request, arg_project, arg_zone, arg_instance, arg_networkInterface).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -16341,7 +17124,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -16377,7 +17160,7 @@ var resp = convert.JSON.encode(buildInstanceAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.InstanceAggregatedList response) { checkInstanceAggregatedList(response); }))); }); @@ -16390,7 +17173,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AttachedDisk.fromJson(json); checkAttachedDisk(obj); @@ -16425,7 +17208,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.attachDisk(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.attachDisk(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -16437,7 +17220,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -16469,7 +17252,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_zone, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -16483,7 +17266,7 @@ var arg_instance = "foo"; var arg_accessConfig = "foo"; var arg_networkInterface = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -16517,7 +17300,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.deleteAccessConfig(arg_project, arg_zone, arg_instance, arg_accessConfig, arg_networkInterface).then(unittest.expectAsync(((api.Operation response) { + res.deleteAccessConfig(arg_project, arg_zone, arg_instance, arg_accessConfig, arg_networkInterface).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -16530,7 +17313,7 @@ var arg_zone = "foo"; var arg_instance = "foo"; var arg_deviceName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -16563,7 +17346,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.detachDisk(arg_project, arg_zone, arg_instance, arg_deviceName).then(unittest.expectAsync(((api.Operation response) { + res.detachDisk(arg_project, arg_zone, arg_instance, arg_deviceName).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -16575,7 +17358,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -16607,7 +17390,7 @@ var resp = convert.JSON.encode(buildInstance()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Instance response) { + res.get(arg_project, arg_zone, arg_instance).then(unittest.expectAsync1(((api.Instance response) { checkInstance(response); }))); }); @@ -16621,7 +17404,7 @@ var arg_instance = "foo"; var arg_port = 42; var arg_start_1 = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -16655,7 +17438,7 @@ var resp = convert.JSON.encode(buildSerialPortOutput()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getSerialPortOutput(arg_project, arg_zone, arg_instance, port: arg_port, start_1: arg_start_1).then(unittest.expectAsync(((api.SerialPortOutput response) { + res.getSerialPortOutput(arg_project, arg_zone, arg_instance, port: arg_port, start_1: arg_start_1).then(unittest.expectAsync1(((api.SerialPortOutput response) { checkSerialPortOutput(response); }))); }); @@ -16667,7 +17450,7 @@ var arg_request = buildInstance(); var arg_project = "foo"; var arg_zone = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Instance.fromJson(json); checkInstance(obj); @@ -16702,7 +17485,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -16717,7 +17500,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -16753,7 +17536,7 @@ var resp = convert.JSON.encode(buildInstanceList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.InstanceList response) { checkInstanceList(response); }))); }); @@ -16765,7 +17548,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -16797,7 +17580,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.reset(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.reset(arg_project, arg_zone, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -16811,7 +17594,7 @@ var arg_instance = "foo"; var arg_autoDelete = true; var arg_deviceName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -16845,7 +17628,55 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setDiskAutoDelete(arg_project, arg_zone, arg_instance, arg_autoDelete, arg_deviceName).then(unittest.expectAsync(((api.Operation response) { + res.setDiskAutoDelete(arg_project, arg_zone, arg_instance, arg_autoDelete, arg_deviceName).then(unittest.expectAsync1(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--setLabels", () { + + var mock = new HttpServerMock(); + api.InstancesResourceApi res = new api.ComputeApi(mock).instances; + var arg_request = buildInstancesSetLabelsRequest(); + var arg_project = "foo"; + var arg_zone = "foo"; + var arg_instance = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.InstancesSetLabelsRequest.fromJson(json); + checkInstancesSetLabelsRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.setLabels(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -16858,7 +17689,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstancesSetMachineTypeRequest.fromJson(json); checkInstancesSetMachineTypeRequest(obj); @@ -16893,7 +17724,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setMachineType(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.setMachineType(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -16906,7 +17737,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Metadata.fromJson(json); checkMetadata(obj); @@ -16941,7 +17772,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setMetadata(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.setMetadata(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -16954,7 +17785,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Scheduling.fromJson(json); checkScheduling(obj); @@ -16989,7 +17820,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setScheduling(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.setScheduling(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -17002,7 +17833,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstancesSetServiceAccountRequest.fromJson(json); checkInstancesSetServiceAccountRequest(obj); @@ -17037,7 +17868,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setServiceAccount(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.setServiceAccount(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -17050,7 +17881,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Tags.fromJson(json); checkTags(obj); @@ -17085,7 +17916,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setTags(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.setTags(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -17097,7 +17928,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -17129,7 +17960,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.start(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.start(arg_project, arg_zone, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -17142,7 +17973,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstancesStartWithEncryptionKeyRequest.fromJson(json); checkInstancesStartWithEncryptionKeyRequest(obj); @@ -17177,7 +18008,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.startWithEncryptionKey(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.startWithEncryptionKey(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -17189,7 +18020,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -17221,7 +18052,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.stop(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.stop(arg_project, arg_zone, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -17236,7 +18067,7 @@ api.LicensesResourceApi res = new api.ComputeApi(mock).licenses; var arg_project = "foo"; var arg_license = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -17268,7 +18099,7 @@ var resp = convert.JSON.encode(buildLicense()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_license).then(unittest.expectAsync(((api.License response) { + res.get(arg_project, arg_license).then(unittest.expectAsync1(((api.License response) { checkLicense(response); }))); }); @@ -17286,7 +18117,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -17322,7 +18153,7 @@ var resp = convert.JSON.encode(buildMachineTypeAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.MachineTypeAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.MachineTypeAggregatedList response) { checkMachineTypeAggregatedList(response); }))); }); @@ -17334,7 +18165,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_machineType = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -17366,7 +18197,7 @@ var resp = convert.JSON.encode(buildMachineType()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_zone, arg_machineType).then(unittest.expectAsync(((api.MachineType response) { + res.get(arg_project, arg_zone, arg_machineType).then(unittest.expectAsync1(((api.MachineType response) { checkMachineType(response); }))); }); @@ -17381,7 +18212,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -17417,7 +18248,7 @@ var resp = convert.JSON.encode(buildMachineTypeList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.MachineTypeList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.MachineTypeList response) { checkMachineTypeList(response); }))); }); @@ -17426,13 +18257,17 @@ unittest.group("resource-NetworksResourceApi", () { - unittest.test("method--delete", () { + unittest.test("method--addPeering", () { var mock = new HttpServerMock(); api.NetworksResourceApi res = new api.ComputeApi(mock).networks; + var arg_request = buildNetworksAddPeeringRequest(); var arg_project = "foo"; var arg_network = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.NetworksAddPeeringRequest.fromJson(json); + checkNetworksAddPeeringRequest(obj); + var path = (req.url).path; var pathOffset = 0; var index; @@ -17464,7 +18299,50 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_network).then(unittest.expectAsync(((api.Operation response) { + res.addPeering(arg_request, arg_project, arg_network).then(unittest.expectAsync1(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.NetworksResourceApi res = new api.ComputeApi(mock).networks; + var arg_project = "foo"; + var arg_network = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_project, arg_network).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -17475,7 +18353,7 @@ api.NetworksResourceApi res = new api.ComputeApi(mock).networks; var arg_project = "foo"; var arg_network = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -17507,7 +18385,7 @@ var resp = convert.JSON.encode(buildNetwork()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_network).then(unittest.expectAsync(((api.Network response) { + res.get(arg_project, arg_network).then(unittest.expectAsync1(((api.Network response) { checkNetwork(response); }))); }); @@ -17518,7 +18396,7 @@ api.NetworksResourceApi res = new api.ComputeApi(mock).networks; var arg_request = buildNetwork(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Network.fromJson(json); checkNetwork(obj); @@ -17553,7 +18431,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -17567,7 +18445,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -17603,18 +18481,22 @@ var resp = convert.JSON.encode(buildNetworkList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.NetworkList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.NetworkList response) { checkNetworkList(response); }))); }); - unittest.test("method--switchToCustomMode", () { + unittest.test("method--removePeering", () { var mock = new HttpServerMock(); api.NetworksResourceApi res = new api.ComputeApi(mock).networks; + var arg_request = buildNetworksRemovePeeringRequest(); var arg_project = "foo"; var arg_network = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.NetworksRemovePeeringRequest.fromJson(json); + checkNetworksRemovePeeringRequest(obj); + var path = (req.url).path; var pathOffset = 0; var index; @@ -17646,7 +18528,50 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.switchToCustomMode(arg_project, arg_network).then(unittest.expectAsync(((api.Operation response) { + res.removePeering(arg_request, arg_project, arg_network).then(unittest.expectAsync1(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--switchToCustomMode", () { + + var mock = new HttpServerMock(); + api.NetworksResourceApi res = new api.ComputeApi(mock).networks; + var arg_project = "foo"; + var arg_network = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.switchToCustomMode(arg_project, arg_network).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -17655,12 +18580,188 @@ unittest.group("resource-ProjectsResourceApi", () { + unittest.test("method--disableXpnHost", () { + + var mock = new HttpServerMock(); + api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; + var arg_project = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.disableXpnHost(arg_project).then(unittest.expectAsync1(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--disableXpnResource", () { + + var mock = new HttpServerMock(); + api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; + var arg_request = buildProjectsDisableXpnResourceRequest(); + var arg_project = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.ProjectsDisableXpnResourceRequest.fromJson(json); + checkProjectsDisableXpnResourceRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.disableXpnResource(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--enableXpnHost", () { + + var mock = new HttpServerMock(); + api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; + var arg_project = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.enableXpnHost(arg_project).then(unittest.expectAsync1(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--enableXpnResource", () { + + var mock = new HttpServerMock(); + api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; + var arg_request = buildProjectsEnableXpnResourceRequest(); + var arg_project = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.ProjectsEnableXpnResourceRequest.fromJson(json); + checkProjectsEnableXpnResourceRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.enableXpnResource(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { + checkOperation(response); + }))); + }); + unittest.test("method--get", () { var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -17692,18 +18793,164 @@ var resp = convert.JSON.encode(buildProject()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project).then(unittest.expectAsync(((api.Project response) { + res.get(arg_project).then(unittest.expectAsync1(((api.Project response) { checkProject(response); }))); }); + unittest.test("method--getXpnHost", () { + + var mock = new HttpServerMock(); + api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; + var arg_project = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildProject()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.getXpnHost(arg_project).then(unittest.expectAsync1(((api.Project response) { + checkProject(response); + }))); + }); + + unittest.test("method--getXpnResources", () { + + var mock = new HttpServerMock(); + api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; + var arg_project = "foo"; + var arg_filter = "foo"; + var arg_maxResults = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["order_by"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildProjectsGetXpnResources()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.getXpnResources(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ProjectsGetXpnResources response) { + checkProjectsGetXpnResources(response); + }))); + }); + + unittest.test("method--listXpnHosts", () { + + var mock = new HttpServerMock(); + api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; + var arg_request = buildProjectsListXpnHostsRequest(); + var arg_project = "foo"; + var arg_filter = "foo"; + var arg_maxResults = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.ProjectsListXpnHostsRequest.fromJson(json); + checkProjectsListXpnHostsRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["order_by"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildXpnHostList()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.listXpnHosts(arg_request, arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.XpnHostList response) { + checkXpnHostList(response); + }))); + }); + unittest.test("method--moveDisk", () { var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; var arg_request = buildDiskMoveRequest(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DiskMoveRequest.fromJson(json); checkDiskMoveRequest(obj); @@ -17738,7 +18985,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.moveDisk(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.moveDisk(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -17749,7 +18996,7 @@ api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; var arg_request = buildInstanceMoveRequest(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstanceMoveRequest.fromJson(json); checkInstanceMoveRequest(obj); @@ -17784,7 +19031,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.moveInstance(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.moveInstance(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -17795,7 +19042,7 @@ api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; var arg_request = buildMetadata(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Metadata.fromJson(json); checkMetadata(obj); @@ -17830,7 +19077,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setCommonInstanceMetadata(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.setCommonInstanceMetadata(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -17841,7 +19088,7 @@ api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; var arg_request = buildUsageExportLocation(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UsageExportLocation.fromJson(json); checkUsageExportLocation(obj); @@ -17876,7 +19123,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setUsageExportBucket(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.setUsageExportBucket(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -17892,7 +19139,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_autoscaler = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -17924,7 +19171,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_region, arg_autoscaler).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_region, arg_autoscaler).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -17936,7 +19183,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_autoscaler = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -17968,7 +19215,7 @@ var resp = convert.JSON.encode(buildAutoscaler()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_region, arg_autoscaler).then(unittest.expectAsync(((api.Autoscaler response) { + res.get(arg_project, arg_region, arg_autoscaler).then(unittest.expectAsync1(((api.Autoscaler response) { checkAutoscaler(response); }))); }); @@ -17980,7 +19227,7 @@ var arg_request = buildAutoscaler(); var arg_project = "foo"; var arg_region = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Autoscaler.fromJson(json); checkAutoscaler(obj); @@ -18015,7 +19262,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -18030,7 +19277,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -18066,7 +19313,7 @@ var resp = convert.JSON.encode(buildRegionAutoscalerList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RegionAutoscalerList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.RegionAutoscalerList response) { checkRegionAutoscalerList(response); }))); }); @@ -18079,7 +19326,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_autoscaler = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Autoscaler.fromJson(json); checkAutoscaler(obj); @@ -18115,7 +19362,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_project, arg_region, autoscaler: arg_autoscaler).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_project, arg_region, autoscaler: arg_autoscaler).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -18128,7 +19375,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_autoscaler = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Autoscaler.fromJson(json); checkAutoscaler(obj); @@ -18164,7 +19411,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_project, arg_region, autoscaler: arg_autoscaler).then(unittest.expectAsync(((api.Operation response) { + res.update(arg_request, arg_project, arg_region, autoscaler: arg_autoscaler).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -18180,7 +19427,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_backendService = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -18212,7 +19459,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_region, arg_backendService).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_region, arg_backendService).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -18224,7 +19471,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_backendService = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -18256,7 +19503,7 @@ var resp = convert.JSON.encode(buildBackendService()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_region, arg_backendService).then(unittest.expectAsync(((api.BackendService response) { + res.get(arg_project, arg_region, arg_backendService).then(unittest.expectAsync1(((api.BackendService response) { checkBackendService(response); }))); }); @@ -18269,7 +19516,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_backendService = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ResourceGroupReference.fromJson(json); checkResourceGroupReference(obj); @@ -18304,7 +19551,7 @@ var resp = convert.JSON.encode(buildBackendServiceGroupHealth()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getHealth(arg_request, arg_project, arg_region, arg_backendService).then(unittest.expectAsync(((api.BackendServiceGroupHealth response) { + res.getHealth(arg_request, arg_project, arg_region, arg_backendService).then(unittest.expectAsync1(((api.BackendServiceGroupHealth response) { checkBackendServiceGroupHealth(response); }))); }); @@ -18316,7 +19563,7 @@ var arg_request = buildBackendService(); var arg_project = "foo"; var arg_region = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.BackendService.fromJson(json); checkBackendService(obj); @@ -18351,7 +19598,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -18366,7 +19613,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -18402,7 +19649,7 @@ var resp = convert.JSON.encode(buildBackendServiceList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.BackendServiceList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.BackendServiceList response) { checkBackendServiceList(response); }))); }); @@ -18415,7 +19662,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_backendService = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.BackendService.fromJson(json); checkBackendService(obj); @@ -18450,7 +19697,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_project, arg_region, arg_backendService).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_project, arg_region, arg_backendService).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -18463,7 +19710,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_backendService = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.BackendService.fromJson(json); checkBackendService(obj); @@ -18498,7 +19745,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_project, arg_region, arg_backendService).then(unittest.expectAsync(((api.Operation response) { + res.update(arg_request, arg_project, arg_region, arg_backendService).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -18515,7 +19762,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_instanceGroupManager = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RegionInstanceGroupManagersAbandonInstancesRequest.fromJson(json); checkRegionInstanceGroupManagersAbandonInstancesRequest(obj); @@ -18550,7 +19797,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.abandonInstances(arg_request, arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + res.abandonInstances(arg_request, arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -18562,7 +19809,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_instanceGroupManager = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -18594,7 +19841,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -18607,7 +19854,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_instanceGroupManager = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RegionInstanceGroupManagersDeleteInstancesRequest.fromJson(json); checkRegionInstanceGroupManagersDeleteInstancesRequest(obj); @@ -18642,7 +19889,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.deleteInstances(arg_request, arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + res.deleteInstances(arg_request, arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -18654,7 +19901,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_instanceGroupManager = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -18686,7 +19933,7 @@ var resp = convert.JSON.encode(buildInstanceGroupManager()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync(((api.InstanceGroupManager response) { + res.get(arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync1(((api.InstanceGroupManager response) { checkInstanceGroupManager(response); }))); }); @@ -18698,7 +19945,7 @@ var arg_request = buildInstanceGroupManager(); var arg_project = "foo"; var arg_region = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstanceGroupManager.fromJson(json); checkInstanceGroupManager(obj); @@ -18733,7 +19980,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -18748,7 +19995,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -18784,7 +20031,7 @@ var resp = convert.JSON.encode(buildRegionInstanceGroupManagerList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RegionInstanceGroupManagerList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.RegionInstanceGroupManagerList response) { checkRegionInstanceGroupManagerList(response); }))); }); @@ -18800,7 +20047,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -18836,7 +20083,7 @@ var resp = convert.JSON.encode(buildRegionInstanceGroupManagersListInstancesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listManagedInstances(arg_project, arg_region, arg_instanceGroupManager, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RegionInstanceGroupManagersListInstancesResponse response) { + res.listManagedInstances(arg_project, arg_region, arg_instanceGroupManager, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.RegionInstanceGroupManagersListInstancesResponse response) { checkRegionInstanceGroupManagersListInstancesResponse(response); }))); }); @@ -18849,7 +20096,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_instanceGroupManager = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RegionInstanceGroupManagersRecreateRequest.fromJson(json); checkRegionInstanceGroupManagersRecreateRequest(obj); @@ -18884,7 +20131,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.recreateInstances(arg_request, arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + res.recreateInstances(arg_request, arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -18897,7 +20144,7 @@ var arg_region = "foo"; var arg_instanceGroupManager = "foo"; var arg_size = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -18930,7 +20177,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resize(arg_project, arg_region, arg_instanceGroupManager, arg_size).then(unittest.expectAsync(((api.Operation response) { + res.resize(arg_project, arg_region, arg_instanceGroupManager, arg_size).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -18943,7 +20190,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_instanceGroupManager = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RegionInstanceGroupManagersSetTemplateRequest.fromJson(json); checkRegionInstanceGroupManagersSetTemplateRequest(obj); @@ -18978,7 +20225,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setInstanceTemplate(arg_request, arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + res.setInstanceTemplate(arg_request, arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -18991,7 +20238,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_instanceGroupManager = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RegionInstanceGroupManagersSetTargetPoolsRequest.fromJson(json); checkRegionInstanceGroupManagersSetTargetPoolsRequest(obj); @@ -19026,7 +20273,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setTargetPools(arg_request, arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + res.setTargetPools(arg_request, arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -19042,7 +20289,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_instanceGroup = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -19074,7 +20321,7 @@ var resp = convert.JSON.encode(buildInstanceGroup()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_region, arg_instanceGroup).then(unittest.expectAsync(((api.InstanceGroup response) { + res.get(arg_project, arg_region, arg_instanceGroup).then(unittest.expectAsync1(((api.InstanceGroup response) { checkInstanceGroup(response); }))); }); @@ -19089,7 +20336,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -19125,7 +20372,7 @@ var resp = convert.JSON.encode(buildRegionInstanceGroupList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RegionInstanceGroupList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.RegionInstanceGroupList response) { checkRegionInstanceGroupList(response); }))); }); @@ -19142,7 +20389,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RegionInstanceGroupsListInstancesRequest.fromJson(json); checkRegionInstanceGroupsListInstancesRequest(obj); @@ -19181,7 +20428,7 @@ var resp = convert.JSON.encode(buildRegionInstanceGroupsListInstances()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listInstances(arg_request, arg_project, arg_region, arg_instanceGroup, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RegionInstanceGroupsListInstances response) { + res.listInstances(arg_request, arg_project, arg_region, arg_instanceGroup, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.RegionInstanceGroupsListInstances response) { checkRegionInstanceGroupsListInstances(response); }))); }); @@ -19194,7 +20441,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_instanceGroup = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RegionInstanceGroupsSetNamedPortsRequest.fromJson(json); checkRegionInstanceGroupsSetNamedPortsRequest(obj); @@ -19229,7 +20476,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setNamedPorts(arg_request, arg_project, arg_region, arg_instanceGroup).then(unittest.expectAsync(((api.Operation response) { + res.setNamedPorts(arg_request, arg_project, arg_region, arg_instanceGroup).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -19245,7 +20492,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_operation = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -19277,7 +20524,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_region, arg_operation).then(unittest.expectAsync((_) {})); + res.delete(arg_project, arg_region, arg_operation).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -19287,7 +20534,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_operation = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -19319,7 +20566,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_region, arg_operation).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_project, arg_region, arg_operation).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -19334,7 +20581,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -19370,7 +20617,7 @@ var resp = convert.JSON.encode(buildOperationList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.OperationList response) { checkOperationList(response); }))); }); @@ -19385,7 +20632,7 @@ api.RegionsResourceApi res = new api.ComputeApi(mock).regions; var arg_project = "foo"; var arg_region = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -19417,7 +20664,7 @@ var resp = convert.JSON.encode(buildRegion()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_region).then(unittest.expectAsync(((api.Region response) { + res.get(arg_project, arg_region).then(unittest.expectAsync1(((api.Region response) { checkRegion(response); }))); }); @@ -19431,7 +20678,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -19467,7 +20714,7 @@ var resp = convert.JSON.encode(buildRegionList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RegionList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.RegionList response) { checkRegionList(response); }))); }); @@ -19485,7 +20732,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -19521,7 +20768,7 @@ var resp = convert.JSON.encode(buildRouterAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RouterAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.RouterAggregatedList response) { checkRouterAggregatedList(response); }))); }); @@ -19533,7 +20780,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_router = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -19565,7 +20812,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_region, arg_router).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_region, arg_router).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -19577,7 +20824,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_router = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -19609,7 +20856,7 @@ var resp = convert.JSON.encode(buildRouter()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_region, arg_router).then(unittest.expectAsync(((api.Router response) { + res.get(arg_project, arg_region, arg_router).then(unittest.expectAsync1(((api.Router response) { checkRouter(response); }))); }); @@ -19621,7 +20868,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_router = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -19653,7 +20900,7 @@ var resp = convert.JSON.encode(buildRouterStatusResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getRouterStatus(arg_project, arg_region, arg_router).then(unittest.expectAsync(((api.RouterStatusResponse response) { + res.getRouterStatus(arg_project, arg_region, arg_router).then(unittest.expectAsync1(((api.RouterStatusResponse response) { checkRouterStatusResponse(response); }))); }); @@ -19665,7 +20912,7 @@ var arg_request = buildRouter(); var arg_project = "foo"; var arg_region = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Router.fromJson(json); checkRouter(obj); @@ -19700,7 +20947,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -19715,7 +20962,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -19751,7 +20998,7 @@ var resp = convert.JSON.encode(buildRouterList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RouterList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.RouterList response) { checkRouterList(response); }))); }); @@ -19764,7 +21011,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_router = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Router.fromJson(json); checkRouter(obj); @@ -19799,7 +21046,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_project, arg_region, arg_router).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_project, arg_region, arg_router).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -19812,7 +21059,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_router = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Router.fromJson(json); checkRouter(obj); @@ -19847,7 +21094,7 @@ var resp = convert.JSON.encode(buildRoutersPreviewResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.preview(arg_request, arg_project, arg_region, arg_router).then(unittest.expectAsync(((api.RoutersPreviewResponse response) { + res.preview(arg_request, arg_project, arg_region, arg_router).then(unittest.expectAsync1(((api.RoutersPreviewResponse response) { checkRoutersPreviewResponse(response); }))); }); @@ -19860,7 +21107,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_router = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Router.fromJson(json); checkRouter(obj); @@ -19895,7 +21142,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_project, arg_region, arg_router).then(unittest.expectAsync(((api.Operation response) { + res.update(arg_request, arg_project, arg_region, arg_router).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -19910,7 +21157,7 @@ api.RoutesResourceApi res = new api.ComputeApi(mock).routes; var arg_project = "foo"; var arg_route = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -19942,7 +21189,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_route).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_route).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -19953,7 +21200,7 @@ api.RoutesResourceApi res = new api.ComputeApi(mock).routes; var arg_project = "foo"; var arg_route = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -19985,7 +21232,7 @@ var resp = convert.JSON.encode(buildRoute()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_route).then(unittest.expectAsync(((api.Route response) { + res.get(arg_project, arg_route).then(unittest.expectAsync1(((api.Route response) { checkRoute(response); }))); }); @@ -19996,7 +21243,7 @@ api.RoutesResourceApi res = new api.ComputeApi(mock).routes; var arg_request = buildRoute(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Route.fromJson(json); checkRoute(obj); @@ -20031,7 +21278,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -20045,7 +21292,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -20081,7 +21328,7 @@ var resp = convert.JSON.encode(buildRouteList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RouteList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.RouteList response) { checkRouteList(response); }))); }); @@ -20096,7 +21343,7 @@ api.SnapshotsResourceApi res = new api.ComputeApi(mock).snapshots; var arg_project = "foo"; var arg_snapshot = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -20128,7 +21375,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_snapshot).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_snapshot).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -20139,7 +21386,7 @@ api.SnapshotsResourceApi res = new api.ComputeApi(mock).snapshots; var arg_project = "foo"; var arg_snapshot = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -20171,7 +21418,7 @@ var resp = convert.JSON.encode(buildSnapshot()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_snapshot).then(unittest.expectAsync(((api.Snapshot response) { + res.get(arg_project, arg_snapshot).then(unittest.expectAsync1(((api.Snapshot response) { checkSnapshot(response); }))); }); @@ -20185,7 +21432,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -20221,22 +21468,22 @@ var resp = convert.JSON.encode(buildSnapshotList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SnapshotList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.SnapshotList response) { checkSnapshotList(response); }))); }); - }); - - - unittest.group("resource-SslCertificatesResourceApi", () { - unittest.test("method--delete", () { + unittest.test("method--setLabels", () { var mock = new HttpServerMock(); - api.SslCertificatesResourceApi res = new api.ComputeApi(mock).sslCertificates; + api.SnapshotsResourceApi res = new api.ComputeApi(mock).snapshots; + var arg_request = buildGlobalSetLabelsRequest(); var arg_project = "foo"; - var arg_sslCertificate = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_resource = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.GlobalSetLabelsRequest.fromJson(json); + checkGlobalSetLabelsRequest(obj); + var path = (req.url).path; var pathOffset = 0; var index; @@ -20268,7 +21515,54 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_sslCertificate).then(unittest.expectAsync(((api.Operation response) { + res.setLabels(arg_request, arg_project, arg_resource).then(unittest.expectAsync1(((api.Operation response) { + checkOperation(response); + }))); + }); + + }); + + + unittest.group("resource-SslCertificatesResourceApi", () { + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.SslCertificatesResourceApi res = new api.ComputeApi(mock).sslCertificates; + var arg_project = "foo"; + var arg_sslCertificate = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_project, arg_sslCertificate).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -20279,7 +21573,7 @@ api.SslCertificatesResourceApi res = new api.ComputeApi(mock).sslCertificates; var arg_project = "foo"; var arg_sslCertificate = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -20311,7 +21605,7 @@ var resp = convert.JSON.encode(buildSslCertificate()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_sslCertificate).then(unittest.expectAsync(((api.SslCertificate response) { + res.get(arg_project, arg_sslCertificate).then(unittest.expectAsync1(((api.SslCertificate response) { checkSslCertificate(response); }))); }); @@ -20322,7 +21616,7 @@ api.SslCertificatesResourceApi res = new api.ComputeApi(mock).sslCertificates; var arg_request = buildSslCertificate(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SslCertificate.fromJson(json); checkSslCertificate(obj); @@ -20357,7 +21651,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -20371,7 +21665,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -20407,7 +21701,7 @@ var resp = convert.JSON.encode(buildSslCertificateList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SslCertificateList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.SslCertificateList response) { checkSslCertificateList(response); }))); }); @@ -20425,7 +21719,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -20461,7 +21755,7 @@ var resp = convert.JSON.encode(buildSubnetworkAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SubnetworkAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.SubnetworkAggregatedList response) { checkSubnetworkAggregatedList(response); }))); }); @@ -20473,7 +21767,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_subnetwork = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -20505,7 +21799,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_region, arg_subnetwork).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_region, arg_subnetwork).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -20518,7 +21812,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_subnetwork = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SubnetworksExpandIpCidrRangeRequest.fromJson(json); checkSubnetworksExpandIpCidrRangeRequest(obj); @@ -20553,7 +21847,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.expandIpCidrRange(arg_request, arg_project, arg_region, arg_subnetwork).then(unittest.expectAsync(((api.Operation response) { + res.expandIpCidrRange(arg_request, arg_project, arg_region, arg_subnetwork).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -20565,7 +21859,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_subnetwork = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -20597,7 +21891,7 @@ var resp = convert.JSON.encode(buildSubnetwork()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_region, arg_subnetwork).then(unittest.expectAsync(((api.Subnetwork response) { + res.get(arg_project, arg_region, arg_subnetwork).then(unittest.expectAsync1(((api.Subnetwork response) { checkSubnetwork(response); }))); }); @@ -20609,7 +21903,7 @@ var arg_request = buildSubnetwork(); var arg_project = "foo"; var arg_region = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Subnetwork.fromJson(json); checkSubnetwork(obj); @@ -20644,7 +21938,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -20659,7 +21953,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -20695,7 +21989,7 @@ var resp = convert.JSON.encode(buildSubnetworkList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SubnetworkList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.SubnetworkList response) { checkSubnetworkList(response); }))); }); @@ -20708,7 +22002,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_subnetwork = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SubnetworksSetPrivateIpGoogleAccessRequest.fromJson(json); checkSubnetworksSetPrivateIpGoogleAccessRequest(obj); @@ -20743,7 +22037,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setPrivateIpGoogleAccess(arg_request, arg_project, arg_region, arg_subnetwork).then(unittest.expectAsync(((api.Operation response) { + res.setPrivateIpGoogleAccess(arg_request, arg_project, arg_region, arg_subnetwork).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -20758,7 +22052,7 @@ api.TargetHttpProxiesResourceApi res = new api.ComputeApi(mock).targetHttpProxies; var arg_project = "foo"; var arg_targetHttpProxy = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -20790,7 +22084,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_targetHttpProxy).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_targetHttpProxy).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -20801,7 +22095,7 @@ api.TargetHttpProxiesResourceApi res = new api.ComputeApi(mock).targetHttpProxies; var arg_project = "foo"; var arg_targetHttpProxy = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -20833,7 +22127,7 @@ var resp = convert.JSON.encode(buildTargetHttpProxy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_targetHttpProxy).then(unittest.expectAsync(((api.TargetHttpProxy response) { + res.get(arg_project, arg_targetHttpProxy).then(unittest.expectAsync1(((api.TargetHttpProxy response) { checkTargetHttpProxy(response); }))); }); @@ -20844,7 +22138,7 @@ api.TargetHttpProxiesResourceApi res = new api.ComputeApi(mock).targetHttpProxies; var arg_request = buildTargetHttpProxy(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TargetHttpProxy.fromJson(json); checkTargetHttpProxy(obj); @@ -20879,7 +22173,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -20893,7 +22187,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -20929,7 +22223,7 @@ var resp = convert.JSON.encode(buildTargetHttpProxyList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetHttpProxyList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.TargetHttpProxyList response) { checkTargetHttpProxyList(response); }))); }); @@ -20941,7 +22235,7 @@ var arg_request = buildUrlMapReference(); var arg_project = "foo"; var arg_targetHttpProxy = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UrlMapReference.fromJson(json); checkUrlMapReference(obj); @@ -20976,7 +22270,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setUrlMap(arg_request, arg_project, arg_targetHttpProxy).then(unittest.expectAsync(((api.Operation response) { + res.setUrlMap(arg_request, arg_project, arg_targetHttpProxy).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -20991,7 +22285,7 @@ api.TargetHttpsProxiesResourceApi res = new api.ComputeApi(mock).targetHttpsProxies; var arg_project = "foo"; var arg_targetHttpsProxy = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -21023,7 +22317,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_targetHttpsProxy).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_targetHttpsProxy).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -21034,7 +22328,7 @@ api.TargetHttpsProxiesResourceApi res = new api.ComputeApi(mock).targetHttpsProxies; var arg_project = "foo"; var arg_targetHttpsProxy = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -21066,7 +22360,7 @@ var resp = convert.JSON.encode(buildTargetHttpsProxy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_targetHttpsProxy).then(unittest.expectAsync(((api.TargetHttpsProxy response) { + res.get(arg_project, arg_targetHttpsProxy).then(unittest.expectAsync1(((api.TargetHttpsProxy response) { checkTargetHttpsProxy(response); }))); }); @@ -21077,7 +22371,7 @@ api.TargetHttpsProxiesResourceApi res = new api.ComputeApi(mock).targetHttpsProxies; var arg_request = buildTargetHttpsProxy(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TargetHttpsProxy.fromJson(json); checkTargetHttpsProxy(obj); @@ -21112,7 +22406,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -21126,7 +22420,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -21162,7 +22456,7 @@ var resp = convert.JSON.encode(buildTargetHttpsProxyList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetHttpsProxyList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.TargetHttpsProxyList response) { checkTargetHttpsProxyList(response); }))); }); @@ -21174,7 +22468,7 @@ var arg_request = buildTargetHttpsProxiesSetSslCertificatesRequest(); var arg_project = "foo"; var arg_targetHttpsProxy = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TargetHttpsProxiesSetSslCertificatesRequest.fromJson(json); checkTargetHttpsProxiesSetSslCertificatesRequest(obj); @@ -21209,7 +22503,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setSslCertificates(arg_request, arg_project, arg_targetHttpsProxy).then(unittest.expectAsync(((api.Operation response) { + res.setSslCertificates(arg_request, arg_project, arg_targetHttpsProxy).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -21221,7 +22515,7 @@ var arg_request = buildUrlMapReference(); var arg_project = "foo"; var arg_targetHttpsProxy = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UrlMapReference.fromJson(json); checkUrlMapReference(obj); @@ -21256,7 +22550,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setUrlMap(arg_request, arg_project, arg_targetHttpsProxy).then(unittest.expectAsync(((api.Operation response) { + res.setUrlMap(arg_request, arg_project, arg_targetHttpsProxy).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -21274,7 +22568,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -21310,7 +22604,7 @@ var resp = convert.JSON.encode(buildTargetInstanceAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetInstanceAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.TargetInstanceAggregatedList response) { checkTargetInstanceAggregatedList(response); }))); }); @@ -21322,7 +22616,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_targetInstance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -21354,7 +22648,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_zone, arg_targetInstance).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_zone, arg_targetInstance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -21366,7 +22660,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_targetInstance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -21398,7 +22692,7 @@ var resp = convert.JSON.encode(buildTargetInstance()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_zone, arg_targetInstance).then(unittest.expectAsync(((api.TargetInstance response) { + res.get(arg_project, arg_zone, arg_targetInstance).then(unittest.expectAsync1(((api.TargetInstance response) { checkTargetInstance(response); }))); }); @@ -21410,7 +22704,7 @@ var arg_request = buildTargetInstance(); var arg_project = "foo"; var arg_zone = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TargetInstance.fromJson(json); checkTargetInstance(obj); @@ -21445,7 +22739,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -21460,7 +22754,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -21496,7 +22790,7 @@ var resp = convert.JSON.encode(buildTargetInstanceList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetInstanceList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.TargetInstanceList response) { checkTargetInstanceList(response); }))); }); @@ -21513,7 +22807,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_targetPool = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TargetPoolsAddHealthCheckRequest.fromJson(json); checkTargetPoolsAddHealthCheckRequest(obj); @@ -21548,7 +22842,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.addHealthCheck(arg_request, arg_project, arg_region, arg_targetPool).then(unittest.expectAsync(((api.Operation response) { + res.addHealthCheck(arg_request, arg_project, arg_region, arg_targetPool).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -21561,7 +22855,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_targetPool = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TargetPoolsAddInstanceRequest.fromJson(json); checkTargetPoolsAddInstanceRequest(obj); @@ -21596,7 +22890,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.addInstance(arg_request, arg_project, arg_region, arg_targetPool).then(unittest.expectAsync(((api.Operation response) { + res.addInstance(arg_request, arg_project, arg_region, arg_targetPool).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -21610,7 +22904,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -21646,7 +22940,7 @@ var resp = convert.JSON.encode(buildTargetPoolAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetPoolAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.TargetPoolAggregatedList response) { checkTargetPoolAggregatedList(response); }))); }); @@ -21658,7 +22952,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_targetPool = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -21690,7 +22984,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_region, arg_targetPool).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_region, arg_targetPool).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -21702,7 +22996,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_targetPool = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -21734,7 +23028,7 @@ var resp = convert.JSON.encode(buildTargetPool()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_region, arg_targetPool).then(unittest.expectAsync(((api.TargetPool response) { + res.get(arg_project, arg_region, arg_targetPool).then(unittest.expectAsync1(((api.TargetPool response) { checkTargetPool(response); }))); }); @@ -21747,7 +23041,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_targetPool = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstanceReference.fromJson(json); checkInstanceReference(obj); @@ -21782,7 +23076,7 @@ var resp = convert.JSON.encode(buildTargetPoolInstanceHealth()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getHealth(arg_request, arg_project, arg_region, arg_targetPool).then(unittest.expectAsync(((api.TargetPoolInstanceHealth response) { + res.getHealth(arg_request, arg_project, arg_region, arg_targetPool).then(unittest.expectAsync1(((api.TargetPoolInstanceHealth response) { checkTargetPoolInstanceHealth(response); }))); }); @@ -21794,7 +23088,7 @@ var arg_request = buildTargetPool(); var arg_project = "foo"; var arg_region = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TargetPool.fromJson(json); checkTargetPool(obj); @@ -21829,7 +23123,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -21844,7 +23138,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -21880,7 +23174,7 @@ var resp = convert.JSON.encode(buildTargetPoolList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetPoolList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.TargetPoolList response) { checkTargetPoolList(response); }))); }); @@ -21893,7 +23187,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_targetPool = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TargetPoolsRemoveHealthCheckRequest.fromJson(json); checkTargetPoolsRemoveHealthCheckRequest(obj); @@ -21928,7 +23222,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.removeHealthCheck(arg_request, arg_project, arg_region, arg_targetPool).then(unittest.expectAsync(((api.Operation response) { + res.removeHealthCheck(arg_request, arg_project, arg_region, arg_targetPool).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -21941,7 +23235,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_targetPool = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TargetPoolsRemoveInstanceRequest.fromJson(json); checkTargetPoolsRemoveInstanceRequest(obj); @@ -21976,7 +23270,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.removeInstance(arg_request, arg_project, arg_region, arg_targetPool).then(unittest.expectAsync(((api.Operation response) { + res.removeInstance(arg_request, arg_project, arg_region, arg_targetPool).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -21990,7 +23284,7 @@ var arg_region = "foo"; var arg_targetPool = "foo"; var arg_failoverRatio = 42.0; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TargetReference.fromJson(json); checkTargetReference(obj); @@ -22026,7 +23320,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setBackup(arg_request, arg_project, arg_region, arg_targetPool, failoverRatio: arg_failoverRatio).then(unittest.expectAsync(((api.Operation response) { + res.setBackup(arg_request, arg_project, arg_region, arg_targetPool, failoverRatio: arg_failoverRatio).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -22041,7 +23335,7 @@ api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslProxies; var arg_project = "foo"; var arg_targetSslProxy = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -22073,7 +23367,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_targetSslProxy).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_targetSslProxy).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -22084,7 +23378,7 @@ api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslProxies; var arg_project = "foo"; var arg_targetSslProxy = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -22116,7 +23410,7 @@ var resp = convert.JSON.encode(buildTargetSslProxy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_targetSslProxy).then(unittest.expectAsync(((api.TargetSslProxy response) { + res.get(arg_project, arg_targetSslProxy).then(unittest.expectAsync1(((api.TargetSslProxy response) { checkTargetSslProxy(response); }))); }); @@ -22127,7 +23421,7 @@ api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslProxies; var arg_request = buildTargetSslProxy(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TargetSslProxy.fromJson(json); checkTargetSslProxy(obj); @@ -22162,7 +23456,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -22176,7 +23470,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -22212,7 +23506,7 @@ var resp = convert.JSON.encode(buildTargetSslProxyList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetSslProxyList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.TargetSslProxyList response) { checkTargetSslProxyList(response); }))); }); @@ -22224,7 +23518,7 @@ var arg_request = buildTargetSslProxiesSetBackendServiceRequest(); var arg_project = "foo"; var arg_targetSslProxy = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TargetSslProxiesSetBackendServiceRequest.fromJson(json); checkTargetSslProxiesSetBackendServiceRequest(obj); @@ -22259,7 +23553,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setBackendService(arg_request, arg_project, arg_targetSslProxy).then(unittest.expectAsync(((api.Operation response) { + res.setBackendService(arg_request, arg_project, arg_targetSslProxy).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -22271,7 +23565,7 @@ var arg_request = buildTargetSslProxiesSetProxyHeaderRequest(); var arg_project = "foo"; var arg_targetSslProxy = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TargetSslProxiesSetProxyHeaderRequest.fromJson(json); checkTargetSslProxiesSetProxyHeaderRequest(obj); @@ -22306,7 +23600,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setProxyHeader(arg_request, arg_project, arg_targetSslProxy).then(unittest.expectAsync(((api.Operation response) { + res.setProxyHeader(arg_request, arg_project, arg_targetSslProxy).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -22318,7 +23612,7 @@ var arg_request = buildTargetSslProxiesSetSslCertificatesRequest(); var arg_project = "foo"; var arg_targetSslProxy = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TargetSslProxiesSetSslCertificatesRequest.fromJson(json); checkTargetSslProxiesSetSslCertificatesRequest(obj); @@ -22353,7 +23647,287 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setSslCertificates(arg_request, arg_project, arg_targetSslProxy).then(unittest.expectAsync(((api.Operation response) { + res.setSslCertificates(arg_request, arg_project, arg_targetSslProxy).then(unittest.expectAsync1(((api.Operation response) { + checkOperation(response); + }))); + }); + + }); + + + unittest.group("resource-TargetTcpProxiesResourceApi", () { + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.TargetTcpProxiesResourceApi res = new api.ComputeApi(mock).targetTcpProxies; + var arg_project = "foo"; + var arg_targetTcpProxy = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_project, arg_targetTcpProxy).then(unittest.expectAsync1(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.TargetTcpProxiesResourceApi res = new api.ComputeApi(mock).targetTcpProxies; + var arg_project = "foo"; + var arg_targetTcpProxy = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildTargetTcpProxy()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_project, arg_targetTcpProxy).then(unittest.expectAsync1(((api.TargetTcpProxy response) { + checkTargetTcpProxy(response); + }))); + }); + + unittest.test("method--insert", () { + + var mock = new HttpServerMock(); + api.TargetTcpProxiesResourceApi res = new api.ComputeApi(mock).targetTcpProxies; + var arg_request = buildTargetTcpProxy(); + var arg_project = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.TargetTcpProxy.fromJson(json); + checkTargetTcpProxy(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.TargetTcpProxiesResourceApi res = new api.ComputeApi(mock).targetTcpProxies; + var arg_project = "foo"; + var arg_filter = "foo"; + var arg_maxResults = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildTargetTcpProxyList()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.TargetTcpProxyList response) { + checkTargetTcpProxyList(response); + }))); + }); + + unittest.test("method--setBackendService", () { + + var mock = new HttpServerMock(); + api.TargetTcpProxiesResourceApi res = new api.ComputeApi(mock).targetTcpProxies; + var arg_request = buildTargetTcpProxiesSetBackendServiceRequest(); + var arg_project = "foo"; + var arg_targetTcpProxy = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.TargetTcpProxiesSetBackendServiceRequest.fromJson(json); + checkTargetTcpProxiesSetBackendServiceRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.setBackendService(arg_request, arg_project, arg_targetTcpProxy).then(unittest.expectAsync1(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--setProxyHeader", () { + + var mock = new HttpServerMock(); + api.TargetTcpProxiesResourceApi res = new api.ComputeApi(mock).targetTcpProxies; + var arg_request = buildTargetTcpProxiesSetProxyHeaderRequest(); + var arg_project = "foo"; + var arg_targetTcpProxy = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.TargetTcpProxiesSetProxyHeaderRequest.fromJson(json); + checkTargetTcpProxiesSetProxyHeaderRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.setProxyHeader(arg_request, arg_project, arg_targetTcpProxy).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -22371,7 +23945,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -22407,7 +23981,7 @@ var resp = convert.JSON.encode(buildTargetVpnGatewayAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetVpnGatewayAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.TargetVpnGatewayAggregatedList response) { checkTargetVpnGatewayAggregatedList(response); }))); }); @@ -22419,7 +23993,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_targetVpnGateway = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -22451,7 +24025,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_region, arg_targetVpnGateway).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_region, arg_targetVpnGateway).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -22463,7 +24037,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_targetVpnGateway = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -22495,7 +24069,7 @@ var resp = convert.JSON.encode(buildTargetVpnGateway()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_region, arg_targetVpnGateway).then(unittest.expectAsync(((api.TargetVpnGateway response) { + res.get(arg_project, arg_region, arg_targetVpnGateway).then(unittest.expectAsync1(((api.TargetVpnGateway response) { checkTargetVpnGateway(response); }))); }); @@ -22507,7 +24081,7 @@ var arg_request = buildTargetVpnGateway(); var arg_project = "foo"; var arg_region = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TargetVpnGateway.fromJson(json); checkTargetVpnGateway(obj); @@ -22542,7 +24116,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -22557,7 +24131,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -22593,7 +24167,7 @@ var resp = convert.JSON.encode(buildTargetVpnGatewayList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetVpnGatewayList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.TargetVpnGatewayList response) { checkTargetVpnGatewayList(response); }))); }); @@ -22608,7 +24182,7 @@ api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; var arg_project = "foo"; var arg_urlMap = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -22640,7 +24214,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_urlMap).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_urlMap).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -22651,7 +24225,7 @@ api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; var arg_project = "foo"; var arg_urlMap = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -22683,7 +24257,7 @@ var resp = convert.JSON.encode(buildUrlMap()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_urlMap).then(unittest.expectAsync(((api.UrlMap response) { + res.get(arg_project, arg_urlMap).then(unittest.expectAsync1(((api.UrlMap response) { checkUrlMap(response); }))); }); @@ -22694,7 +24268,7 @@ api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; var arg_request = buildUrlMap(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UrlMap.fromJson(json); checkUrlMap(obj); @@ -22729,7 +24303,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -22741,7 +24315,7 @@ var arg_request = buildCacheInvalidationRule(); var arg_project = "foo"; var arg_urlMap = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CacheInvalidationRule.fromJson(json); checkCacheInvalidationRule(obj); @@ -22776,7 +24350,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.invalidateCache(arg_request, arg_project, arg_urlMap).then(unittest.expectAsync(((api.Operation response) { + res.invalidateCache(arg_request, arg_project, arg_urlMap).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -22790,7 +24364,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -22826,7 +24400,7 @@ var resp = convert.JSON.encode(buildUrlMapList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.UrlMapList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.UrlMapList response) { checkUrlMapList(response); }))); }); @@ -22838,7 +24412,7 @@ var arg_request = buildUrlMap(); var arg_project = "foo"; var arg_urlMap = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UrlMap.fromJson(json); checkUrlMap(obj); @@ -22873,7 +24447,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_project, arg_urlMap).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_project, arg_urlMap).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -22885,7 +24459,7 @@ var arg_request = buildUrlMap(); var arg_project = "foo"; var arg_urlMap = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UrlMap.fromJson(json); checkUrlMap(obj); @@ -22920,7 +24494,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_project, arg_urlMap).then(unittest.expectAsync(((api.Operation response) { + res.update(arg_request, arg_project, arg_urlMap).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -22932,7 +24506,7 @@ var arg_request = buildUrlMapsValidateRequest(); var arg_project = "foo"; var arg_urlMap = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UrlMapsValidateRequest.fromJson(json); checkUrlMapsValidateRequest(obj); @@ -22967,7 +24541,7 @@ var resp = convert.JSON.encode(buildUrlMapsValidateResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.validate(arg_request, arg_project, arg_urlMap).then(unittest.expectAsync(((api.UrlMapsValidateResponse response) { + res.validate(arg_request, arg_project, arg_urlMap).then(unittest.expectAsync1(((api.UrlMapsValidateResponse response) { checkUrlMapsValidateResponse(response); }))); }); @@ -22985,7 +24559,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -23021,7 +24595,7 @@ var resp = convert.JSON.encode(buildVpnTunnelAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.VpnTunnelAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.VpnTunnelAggregatedList response) { checkVpnTunnelAggregatedList(response); }))); }); @@ -23033,7 +24607,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_vpnTunnel = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -23065,7 +24639,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_region, arg_vpnTunnel).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_region, arg_vpnTunnel).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -23077,7 +24651,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_vpnTunnel = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -23109,7 +24683,7 @@ var resp = convert.JSON.encode(buildVpnTunnel()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_region, arg_vpnTunnel).then(unittest.expectAsync(((api.VpnTunnel response) { + res.get(arg_project, arg_region, arg_vpnTunnel).then(unittest.expectAsync1(((api.VpnTunnel response) { checkVpnTunnel(response); }))); }); @@ -23121,7 +24695,7 @@ var arg_request = buildVpnTunnel(); var arg_project = "foo"; var arg_region = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.VpnTunnel.fromJson(json); checkVpnTunnel(obj); @@ -23156,7 +24730,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -23171,7 +24745,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -23207,7 +24781,7 @@ var resp = convert.JSON.encode(buildVpnTunnelList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.VpnTunnelList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.VpnTunnelList response) { checkVpnTunnelList(response); }))); }); @@ -23223,7 +24797,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_operation = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -23255,7 +24829,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_zone, arg_operation).then(unittest.expectAsync((_) {})); + res.delete(arg_project, arg_zone, arg_operation).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -23265,7 +24839,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_operation = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -23297,7 +24871,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_zone, arg_operation).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_project, arg_zone, arg_operation).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -23312,7 +24886,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -23348,7 +24922,7 @@ var resp = convert.JSON.encode(buildOperationList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.OperationList response) { checkOperationList(response); }))); }); @@ -23363,7 +24937,7 @@ api.ZonesResourceApi res = new api.ComputeApi(mock).zones; var arg_project = "foo"; var arg_zone = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -23395,7 +24969,7 @@ var resp = convert.JSON.encode(buildZone()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_zone).then(unittest.expectAsync(((api.Zone response) { + res.get(arg_project, arg_zone).then(unittest.expectAsync1(((api.Zone response) { checkZone(response); }))); }); @@ -23409,7 +24983,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -23445,7 +25019,7 @@ var resp = convert.JSON.encode(buildZoneList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ZoneList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ZoneList response) { checkZoneList(response); }))); });
diff --git a/generated/googleapis/test/consumersurveys/v2_test.dart b/generated/googleapis/test/consumersurveys/v2_test.dart index 7c0b37d..7e50e18 100644 --- a/generated/googleapis/test/consumersurveys/v2_test.dart +++ b/generated/googleapis/test/consumersurveys/v2_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/consumersurveys/v2.dart' as api; @@ -46,19 +46,19 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed39() { +buildUnnamed41() { var o = new core.List<api.FieldMask>(); o.add(buildFieldMask()); o.add(buildFieldMask()); return o; } -checkUnnamed39(core.List<api.FieldMask> o) { +checkUnnamed41(core.List<api.FieldMask> o) { unittest.expect(o, unittest.hasLength(2)); checkFieldMask(o[0]); checkFieldMask(o[1]); @@ -69,7 +69,7 @@ var o = new api.FieldMask(); buildCounterFieldMask++; if (buildCounterFieldMask < 3) { - o.fields = buildUnnamed39(); + o.fields = buildUnnamed41(); o.id = 42; } buildCounterFieldMask--; @@ -79,20 +79,20 @@ checkFieldMask(api.FieldMask o) { buildCounterFieldMask++; if (buildCounterFieldMask < 3) { - checkUnnamed39(o.fields); + checkUnnamed41(o.fields); unittest.expect(o.id, unittest.equals(42)); } buildCounterFieldMask--; } -buildUnnamed40() { +buildUnnamed42() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed40(core.List<core.String> o) { +checkUnnamed42(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -108,7 +108,7 @@ o.language = "foo"; o.mobileAppPanelId = "foo"; o.name = "foo"; - o.owners = buildUnnamed40(); + o.owners = buildUnnamed42(); } buildCounterMobileAppPanel--; return o; @@ -122,19 +122,19 @@ unittest.expect(o.language, unittest.equals('foo')); unittest.expect(o.mobileAppPanelId, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed40(o.owners); + checkUnnamed42(o.owners); } buildCounterMobileAppPanel--; } -buildUnnamed41() { +buildUnnamed43() { var o = new core.List<api.MobileAppPanel>(); o.add(buildMobileAppPanel()); o.add(buildMobileAppPanel()); return o; } -checkUnnamed41(core.List<api.MobileAppPanel> o) { +checkUnnamed43(core.List<api.MobileAppPanel> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileAppPanel(o[0]); checkMobileAppPanel(o[1]); @@ -147,7 +147,7 @@ if (buildCounterMobileAppPanelsListResponse < 3) { o.pageInfo = buildPageInfo(); o.requestId = "foo"; - o.resources = buildUnnamed41(); + o.resources = buildUnnamed43(); o.tokenPagination = buildTokenPagination(); } buildCounterMobileAppPanelsListResponse--; @@ -159,7 +159,7 @@ if (buildCounterMobileAppPanelsListResponse < 3) { checkPageInfo(o.pageInfo); unittest.expect(o.requestId, unittest.equals('foo')); - checkUnnamed41(o.resources); + checkUnnamed43(o.resources); checkTokenPagination(o.tokenPagination); } buildCounterMobileAppPanelsListResponse--; @@ -207,14 +207,14 @@ buildCounterResultsGetRequest--; } -buildUnnamed42() { +buildUnnamed44() { var o = new core.List<api.FieldMask>(); o.add(buildFieldMask()); o.add(buildFieldMask()); return o; } -checkUnnamed42(core.List<api.FieldMask> o) { +checkUnnamed44(core.List<api.FieldMask> o) { unittest.expect(o, unittest.hasLength(2)); checkFieldMask(o[0]); checkFieldMask(o[1]); @@ -225,7 +225,7 @@ var o = new api.ResultsMask(); buildCounterResultsMask++; if (buildCounterResultsMask < 3) { - o.fields = buildUnnamed42(); + o.fields = buildUnnamed44(); o.projection = "foo"; } buildCounterResultsMask--; @@ -235,33 +235,33 @@ checkResultsMask(api.ResultsMask o) { buildCounterResultsMask++; if (buildCounterResultsMask < 3) { - checkUnnamed42(o.fields); + checkUnnamed44(o.fields); unittest.expect(o.projection, unittest.equals('foo')); } buildCounterResultsMask--; } -buildUnnamed43() { +buildUnnamed45() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed43(core.List<core.String> o) { +checkUnnamed45(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed44() { +buildUnnamed46() { var o = new core.List<api.SurveyQuestion>(); o.add(buildSurveyQuestion()); o.add(buildSurveyQuestion()); return o; } -checkUnnamed44(core.List<api.SurveyQuestion> o) { +checkUnnamed46(core.List<api.SurveyQuestion> o) { unittest.expect(o, unittest.hasLength(2)); checkSurveyQuestion(o[0]); checkSurveyQuestion(o[1]); @@ -276,8 +276,8 @@ o.cost = buildSurveyCost(); o.customerData = "foo"; o.description = "foo"; - o.owners = buildUnnamed43(); - o.questions = buildUnnamed44(); + o.owners = buildUnnamed45(); + o.questions = buildUnnamed46(); o.rejectionReason = buildSurveyRejection(); o.state = "foo"; o.surveyUrlId = "foo"; @@ -295,8 +295,8 @@ checkSurveyCost(o.cost); unittest.expect(o.customerData, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed43(o.owners); - checkUnnamed44(o.questions); + checkUnnamed45(o.owners); + checkUnnamed46(o.questions); checkSurveyRejection(o.rejectionReason); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.surveyUrlId, unittest.equals('foo')); @@ -306,27 +306,27 @@ buildCounterSurvey--; } -buildUnnamed45() { +buildUnnamed47() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed45(core.List<core.String> o) { +checkUnnamed47(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed46() { +buildUnnamed48() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed46(core.List<core.String> o) { +checkUnnamed48(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -337,11 +337,11 @@ var o = new api.SurveyAudience(); buildCounterSurveyAudience++; if (buildCounterSurveyAudience < 3) { - o.ages = buildUnnamed45(); + o.ages = buildUnnamed47(); o.country = "foo"; o.countrySubdivision = "foo"; o.gender = "foo"; - o.languages = buildUnnamed46(); + o.languages = buildUnnamed48(); o.mobileAppPanelId = "foo"; o.populationSource = "foo"; } @@ -352,11 +352,11 @@ checkSurveyAudience(api.SurveyAudience o) { buildCounterSurveyAudience++; if (buildCounterSurveyAudience < 3) { - checkUnnamed45(o.ages); + checkUnnamed47(o.ages); unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.countrySubdivision, unittest.equals('foo')); unittest.expect(o.gender, unittest.equals('foo')); - checkUnnamed46(o.languages); + checkUnnamed48(o.languages); unittest.expect(o.mobileAppPanelId, unittest.equals('foo')); unittest.expect(o.populationSource, unittest.equals('foo')); } @@ -388,32 +388,6 @@ buildCounterSurveyCost--; } -buildUnnamed47() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed47(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed48() { - var o = new core.List<api.SurveyQuestionImage>(); - o.add(buildSurveyQuestionImage()); - o.add(buildSurveyQuestionImage()); - return o; -} - -checkUnnamed48(core.List<api.SurveyQuestionImage> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSurveyQuestionImage(o[0]); - checkSurveyQuestionImage(o[1]); -} - buildUnnamed49() { var o = new core.List<core.String>(); o.add("foo"); @@ -428,13 +402,39 @@ } buildUnnamed50() { + var o = new core.List<api.SurveyQuestionImage>(); + o.add(buildSurveyQuestionImage()); + o.add(buildSurveyQuestionImage()); + return o; +} + +checkUnnamed50(core.List<api.SurveyQuestionImage> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSurveyQuestionImage(o[0]); + checkSurveyQuestionImage(o[1]); +} + +buildUnnamed51() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed50(core.List<core.String> o) { +checkUnnamed51(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed52() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed52(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -446,20 +446,20 @@ buildCounterSurveyQuestion++; if (buildCounterSurveyQuestion < 3) { o.answerOrder = "foo"; - o.answers = buildUnnamed47(); + o.answers = buildUnnamed49(); o.hasOther = true; o.highValueLabel = "foo"; - o.images = buildUnnamed48(); + o.images = buildUnnamed50(); o.lastAnswerPositionPinned = true; o.lowValueLabel = "foo"; o.mustPickSuggestion = true; o.numStars = "foo"; o.openTextPlaceholder = "foo"; - o.openTextSuggestions = buildUnnamed49(); + o.openTextSuggestions = buildUnnamed51(); o.question = "foo"; o.sentimentText = "foo"; o.singleLineResponse = true; - o.thresholdAnswers = buildUnnamed50(); + o.thresholdAnswers = buildUnnamed52(); o.type = "foo"; o.unitOfMeasurementLabel = "foo"; o.videoId = "foo"; @@ -472,20 +472,20 @@ buildCounterSurveyQuestion++; if (buildCounterSurveyQuestion < 3) { unittest.expect(o.answerOrder, unittest.equals('foo')); - checkUnnamed47(o.answers); + checkUnnamed49(o.answers); unittest.expect(o.hasOther, unittest.isTrue); unittest.expect(o.highValueLabel, unittest.equals('foo')); - checkUnnamed48(o.images); + checkUnnamed50(o.images); unittest.expect(o.lastAnswerPositionPinned, unittest.isTrue); unittest.expect(o.lowValueLabel, unittest.equals('foo')); unittest.expect(o.mustPickSuggestion, unittest.isTrue); unittest.expect(o.numStars, unittest.equals('foo')); unittest.expect(o.openTextPlaceholder, unittest.equals('foo')); - checkUnnamed49(o.openTextSuggestions); + checkUnnamed51(o.openTextSuggestions); unittest.expect(o.question, unittest.equals('foo')); unittest.expect(o.sentimentText, unittest.equals('foo')); unittest.expect(o.singleLineResponse, unittest.isTrue); - checkUnnamed50(o.thresholdAnswers); + checkUnnamed52(o.thresholdAnswers); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.unitOfMeasurementLabel, unittest.equals('foo')); unittest.expect(o.videoId, unittest.equals('foo')); @@ -577,14 +577,14 @@ buildCounterSurveysDeleteResponse--; } -buildUnnamed51() { +buildUnnamed53() { var o = new core.List<api.Survey>(); o.add(buildSurvey()); o.add(buildSurvey()); return o; } -checkUnnamed51(core.List<api.Survey> o) { +checkUnnamed53(core.List<api.Survey> o) { unittest.expect(o, unittest.hasLength(2)); checkSurvey(o[0]); checkSurvey(o[1]); @@ -597,7 +597,7 @@ if (buildCounterSurveysListResponse < 3) { o.pageInfo = buildPageInfo(); o.requestId = "foo"; - o.resources = buildUnnamed51(); + o.resources = buildUnnamed53(); o.tokenPagination = buildTokenPagination(); } buildCounterSurveysListResponse--; @@ -609,7 +609,7 @@ if (buildCounterSurveysListResponse < 3) { checkPageInfo(o.pageInfo); unittest.expect(o.requestId, unittest.equals('foo')); - checkUnnamed51(o.resources); + checkUnnamed53(o.resources); checkTokenPagination(o.tokenPagination); } buildCounterSurveysListResponse--; @@ -872,7 +872,7 @@ var mock = new HttpServerMock(); api.MobileapppanelsResourceApi res = new api.ConsumersurveysApi(mock).mobileapppanels; var arg_panelId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -911,7 +911,7 @@ var resp = convert.JSON.encode(buildMobileAppPanel()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_panelId).then(unittest.expectAsync(((api.MobileAppPanel response) { + res.get(arg_panelId).then(unittest.expectAsync1(((api.MobileAppPanel response) { checkMobileAppPanel(response); }))); }); @@ -923,7 +923,7 @@ var arg_maxResults = 42; var arg_startIndex = 42; var arg_token = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -962,7 +962,7 @@ var resp = convert.JSON.encode(buildMobileAppPanelsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(maxResults: arg_maxResults, startIndex: arg_startIndex, token: arg_token).then(unittest.expectAsync(((api.MobileAppPanelsListResponse response) { + res.list(maxResults: arg_maxResults, startIndex: arg_startIndex, token: arg_token).then(unittest.expectAsync1(((api.MobileAppPanelsListResponse response) { checkMobileAppPanelsListResponse(response); }))); }); @@ -973,7 +973,7 @@ api.MobileapppanelsResourceApi res = new api.ConsumersurveysApi(mock).mobileapppanels; var arg_request = buildMobileAppPanel(); var arg_panelId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.MobileAppPanel.fromJson(json); checkMobileAppPanel(obj); @@ -1015,7 +1015,7 @@ var resp = convert.JSON.encode(buildMobileAppPanel()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_panelId).then(unittest.expectAsync(((api.MobileAppPanel response) { + res.update(arg_request, arg_panelId).then(unittest.expectAsync1(((api.MobileAppPanel response) { checkMobileAppPanel(response); }))); }); @@ -1032,7 +1032,7 @@ api.ResultsResourceApi res = new api.ConsumersurveysApi(mock).results; var arg_request = buildResultsGetRequest(); var arg_surveyUrlId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ResultsGetRequest.fromJson(json); checkResultsGetRequest(obj); @@ -1078,7 +1078,7 @@ var resp = convert.JSON.encode(buildSurveyResults()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_request, arg_surveyUrlId).then(unittest.expectAsync(((api.SurveyResults response) { + res.get(arg_request, arg_surveyUrlId).then(unittest.expectAsync1(((api.SurveyResults response) { checkSurveyResults(response); }))); }); @@ -1092,7 +1092,7 @@ var mock = new HttpServerMock(); api.SurveysResourceApi res = new api.ConsumersurveysApi(mock).surveys; var arg_surveyUrlId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1131,7 +1131,7 @@ var resp = convert.JSON.encode(buildSurveysDeleteResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_surveyUrlId).then(unittest.expectAsync(((api.SurveysDeleteResponse response) { + res.delete(arg_surveyUrlId).then(unittest.expectAsync1(((api.SurveysDeleteResponse response) { checkSurveysDeleteResponse(response); }))); }); @@ -1141,7 +1141,7 @@ var mock = new HttpServerMock(); api.SurveysResourceApi res = new api.ConsumersurveysApi(mock).surveys; var arg_surveyUrlId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1180,7 +1180,7 @@ var resp = convert.JSON.encode(buildSurvey()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_surveyUrlId).then(unittest.expectAsync(((api.Survey response) { + res.get(arg_surveyUrlId).then(unittest.expectAsync1(((api.Survey response) { checkSurvey(response); }))); }); @@ -1190,7 +1190,7 @@ var mock = new HttpServerMock(); api.SurveysResourceApi res = new api.ConsumersurveysApi(mock).surveys; var arg_request = buildSurvey(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Survey.fromJson(json); checkSurvey(obj); @@ -1229,7 +1229,7 @@ var resp = convert.JSON.encode(buildSurvey()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request).then(unittest.expectAsync(((api.Survey response) { + res.insert(arg_request).then(unittest.expectAsync1(((api.Survey response) { checkSurvey(response); }))); }); @@ -1241,7 +1241,7 @@ var arg_maxResults = 42; var arg_startIndex = 42; var arg_token = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1280,7 +1280,7 @@ var resp = convert.JSON.encode(buildSurveysListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(maxResults: arg_maxResults, startIndex: arg_startIndex, token: arg_token).then(unittest.expectAsync(((api.SurveysListResponse response) { + res.list(maxResults: arg_maxResults, startIndex: arg_startIndex, token: arg_token).then(unittest.expectAsync1(((api.SurveysListResponse response) { checkSurveysListResponse(response); }))); }); @@ -1291,7 +1291,7 @@ api.SurveysResourceApi res = new api.ConsumersurveysApi(mock).surveys; var arg_request = buildSurveysStartRequest(); var arg_resourceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SurveysStartRequest.fromJson(json); checkSurveysStartRequest(obj); @@ -1337,7 +1337,7 @@ var resp = convert.JSON.encode(buildSurveysStartResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.start(arg_request, arg_resourceId).then(unittest.expectAsync(((api.SurveysStartResponse response) { + res.start(arg_request, arg_resourceId).then(unittest.expectAsync1(((api.SurveysStartResponse response) { checkSurveysStartResponse(response); }))); }); @@ -1347,7 +1347,7 @@ var mock = new HttpServerMock(); api.SurveysResourceApi res = new api.ConsumersurveysApi(mock).surveys; var arg_resourceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1390,7 +1390,7 @@ var resp = convert.JSON.encode(buildSurveysStopResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.stop(arg_resourceId).then(unittest.expectAsync(((api.SurveysStopResponse response) { + res.stop(arg_resourceId).then(unittest.expectAsync1(((api.SurveysStopResponse response) { checkSurveysStopResponse(response); }))); }); @@ -1401,7 +1401,7 @@ api.SurveysResourceApi res = new api.ConsumersurveysApi(mock).surveys; var arg_request = buildSurvey(); var arg_surveyUrlId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Survey.fromJson(json); checkSurvey(obj); @@ -1443,7 +1443,7 @@ var resp = convert.JSON.encode(buildSurvey()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_surveyUrlId).then(unittest.expectAsync(((api.Survey response) { + res.update(arg_request, arg_surveyUrlId).then(unittest.expectAsync1(((api.Survey response) { checkSurvey(response); }))); });
diff --git a/generated/googleapis/test/container/v1_test.dart b/generated/googleapis/test/container/v1_test.dart index f281a88..64d036d 100644 --- a/generated/googleapis/test/container/v1_test.dart +++ b/generated/googleapis/test/container/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/container/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -110,53 +110,53 @@ buildCounterCancelOperationRequest--; } -buildUnnamed1710() { +buildUnnamed1720() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1710(core.List<core.String> o) { +checkUnnamed1720(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1711() { +buildUnnamed1721() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1711(core.List<core.String> o) { +checkUnnamed1721(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1712() { +buildUnnamed1722() { var o = new core.List<api.NodePool>(); o.add(buildNodePool()); o.add(buildNodePool()); return o; } -checkUnnamed1712(core.List<api.NodePool> o) { +checkUnnamed1722(core.List<api.NodePool> o) { unittest.expect(o, unittest.hasLength(2)); checkNodePool(o[0]); checkNodePool(o[1]); } -buildUnnamed1713() { +buildUnnamed1723() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1713(core.Map<core.String, core.String> o) { +checkUnnamed1723(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -179,10 +179,10 @@ o.expireTime = "foo"; o.initialClusterVersion = "foo"; o.initialNodeCount = 42; - o.instanceGroupUrls = buildUnnamed1710(); + o.instanceGroupUrls = buildUnnamed1720(); o.labelFingerprint = "foo"; o.legacyAbac = buildLegacyAbac(); - o.locations = buildUnnamed1711(); + o.locations = buildUnnamed1721(); o.loggingService = "foo"; o.masterAuth = buildMasterAuth(); o.monitoringService = "foo"; @@ -190,8 +190,8 @@ o.network = "foo"; o.nodeConfig = buildNodeConfig(); o.nodeIpv4CidrSize = 42; - o.nodePools = buildUnnamed1712(); - o.resourceLabels = buildUnnamed1713(); + o.nodePools = buildUnnamed1722(); + o.resourceLabels = buildUnnamed1723(); o.selfLink = "foo"; o.servicesIpv4Cidr = "foo"; o.status = "foo"; @@ -218,10 +218,10 @@ unittest.expect(o.expireTime, unittest.equals('foo')); unittest.expect(o.initialClusterVersion, unittest.equals('foo')); unittest.expect(o.initialNodeCount, unittest.equals(42)); - checkUnnamed1710(o.instanceGroupUrls); + checkUnnamed1720(o.instanceGroupUrls); unittest.expect(o.labelFingerprint, unittest.equals('foo')); checkLegacyAbac(o.legacyAbac); - checkUnnamed1711(o.locations); + checkUnnamed1721(o.locations); unittest.expect(o.loggingService, unittest.equals('foo')); checkMasterAuth(o.masterAuth); unittest.expect(o.monitoringService, unittest.equals('foo')); @@ -229,8 +229,8 @@ unittest.expect(o.network, unittest.equals('foo')); checkNodeConfig(o.nodeConfig); unittest.expect(o.nodeIpv4CidrSize, unittest.equals(42)); - checkUnnamed1712(o.nodePools); - checkUnnamed1713(o.resourceLabels); + checkUnnamed1722(o.nodePools); + checkUnnamed1723(o.resourceLabels); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); @@ -241,14 +241,14 @@ buildCounterCluster--; } -buildUnnamed1714() { +buildUnnamed1724() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1714(core.List<core.String> o) { +checkUnnamed1724(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -261,7 +261,7 @@ if (buildCounterClusterUpdate < 3) { o.desiredAddonsConfig = buildAddonsConfig(); o.desiredImageType = "foo"; - o.desiredLocations = buildUnnamed1714(); + o.desiredLocations = buildUnnamed1724(); o.desiredMasterVersion = "foo"; o.desiredMonitoringService = "foo"; o.desiredNodePoolAutoscaling = buildNodePoolAutoscaling(); @@ -277,7 +277,7 @@ if (buildCounterClusterUpdate < 3) { checkAddonsConfig(o.desiredAddonsConfig); unittest.expect(o.desiredImageType, unittest.equals('foo')); - checkUnnamed1714(o.desiredLocations); + checkUnnamed1724(o.desiredLocations); unittest.expect(o.desiredMasterVersion, unittest.equals('foo')); unittest.expect(o.desiredMonitoringService, unittest.equals('foo')); checkNodePoolAutoscaling(o.desiredNodePoolAutoscaling); @@ -416,27 +416,27 @@ buildCounterLegacyAbac--; } -buildUnnamed1715() { +buildUnnamed1725() { var o = new core.List<api.Cluster>(); o.add(buildCluster()); o.add(buildCluster()); return o; } -checkUnnamed1715(core.List<api.Cluster> o) { +checkUnnamed1725(core.List<api.Cluster> o) { unittest.expect(o, unittest.hasLength(2)); checkCluster(o[0]); checkCluster(o[1]); } -buildUnnamed1716() { +buildUnnamed1726() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1716(core.List<core.String> o) { +checkUnnamed1726(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -447,8 +447,8 @@ var o = new api.ListClustersResponse(); buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - o.clusters = buildUnnamed1715(); - o.missingZones = buildUnnamed1716(); + o.clusters = buildUnnamed1725(); + o.missingZones = buildUnnamed1726(); } buildCounterListClustersResponse--; return o; @@ -457,20 +457,20 @@ checkListClustersResponse(api.ListClustersResponse o) { buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - checkUnnamed1715(o.clusters); - checkUnnamed1716(o.missingZones); + checkUnnamed1725(o.clusters); + checkUnnamed1726(o.missingZones); } buildCounterListClustersResponse--; } -buildUnnamed1717() { +buildUnnamed1727() { var o = new core.List<api.NodePool>(); o.add(buildNodePool()); o.add(buildNodePool()); return o; } -checkUnnamed1717(core.List<api.NodePool> o) { +checkUnnamed1727(core.List<api.NodePool> o) { unittest.expect(o, unittest.hasLength(2)); checkNodePool(o[0]); checkNodePool(o[1]); @@ -481,7 +481,7 @@ var o = new api.ListNodePoolsResponse(); buildCounterListNodePoolsResponse++; if (buildCounterListNodePoolsResponse < 3) { - o.nodePools = buildUnnamed1717(); + o.nodePools = buildUnnamed1727(); } buildCounterListNodePoolsResponse--; return o; @@ -490,32 +490,32 @@ checkListNodePoolsResponse(api.ListNodePoolsResponse o) { buildCounterListNodePoolsResponse++; if (buildCounterListNodePoolsResponse < 3) { - checkUnnamed1717(o.nodePools); + checkUnnamed1727(o.nodePools); } buildCounterListNodePoolsResponse--; } -buildUnnamed1718() { +buildUnnamed1728() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1718(core.List<core.String> o) { +checkUnnamed1728(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1719() { +buildUnnamed1729() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1719(core.List<api.Operation> o) { +checkUnnamed1729(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -526,8 +526,8 @@ var o = new api.ListOperationsResponse(); buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { - o.missingZones = buildUnnamed1718(); - o.operations = buildUnnamed1719(); + o.missingZones = buildUnnamed1728(); + o.operations = buildUnnamed1729(); } buildCounterListOperationsResponse--; return o; @@ -536,8 +536,8 @@ checkListOperationsResponse(api.ListOperationsResponse o) { buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { - checkUnnamed1718(o.missingZones); - checkUnnamed1719(o.operations); + checkUnnamed1728(o.missingZones); + checkUnnamed1729(o.operations); } buildCounterListOperationsResponse--; } @@ -569,53 +569,53 @@ buildCounterMasterAuth--; } -buildUnnamed1720() { +buildUnnamed1730() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1720(core.Map<core.String, core.String> o) { +checkUnnamed1730(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1721() { +buildUnnamed1731() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1721(core.Map<core.String, core.String> o) { +checkUnnamed1731(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1722() { +buildUnnamed1732() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1722(core.List<core.String> o) { +checkUnnamed1732(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1723() { +buildUnnamed1733() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1723(core.List<core.String> o) { +checkUnnamed1733(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -628,14 +628,14 @@ if (buildCounterNodeConfig < 3) { o.diskSizeGb = 42; o.imageType = "foo"; - o.labels = buildUnnamed1720(); + o.labels = buildUnnamed1730(); o.localSsdCount = 42; o.machineType = "foo"; - o.metadata = buildUnnamed1721(); - o.oauthScopes = buildUnnamed1722(); + o.metadata = buildUnnamed1731(); + o.oauthScopes = buildUnnamed1732(); o.preemptible = true; o.serviceAccount = "foo"; - o.tags = buildUnnamed1723(); + o.tags = buildUnnamed1733(); } buildCounterNodeConfig--; return o; @@ -646,14 +646,14 @@ if (buildCounterNodeConfig < 3) { unittest.expect(o.diskSizeGb, unittest.equals(42)); unittest.expect(o.imageType, unittest.equals('foo')); - checkUnnamed1720(o.labels); + checkUnnamed1730(o.labels); unittest.expect(o.localSsdCount, unittest.equals(42)); unittest.expect(o.machineType, unittest.equals('foo')); - checkUnnamed1721(o.metadata); - checkUnnamed1722(o.oauthScopes); + checkUnnamed1731(o.metadata); + checkUnnamed1732(o.oauthScopes); unittest.expect(o.preemptible, unittest.isTrue); unittest.expect(o.serviceAccount, unittest.equals('foo')); - checkUnnamed1723(o.tags); + checkUnnamed1733(o.tags); } buildCounterNodeConfig--; } @@ -681,14 +681,14 @@ buildCounterNodeManagement--; } -buildUnnamed1724() { +buildUnnamed1734() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1724(core.List<core.String> o) { +checkUnnamed1734(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -702,7 +702,7 @@ o.autoscaling = buildNodePoolAutoscaling(); o.config = buildNodeConfig(); o.initialNodeCount = 42; - o.instanceGroupUrls = buildUnnamed1724(); + o.instanceGroupUrls = buildUnnamed1734(); o.management = buildNodeManagement(); o.name = "foo"; o.selfLink = "foo"; @@ -720,7 +720,7 @@ checkNodePoolAutoscaling(o.autoscaling); checkNodeConfig(o.config); unittest.expect(o.initialNodeCount, unittest.equals(42)); - checkUnnamed1724(o.instanceGroupUrls); + checkUnnamed1734(o.instanceGroupUrls); checkNodeManagement(o.management); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -804,40 +804,40 @@ buildCounterRollbackNodePoolUpgradeRequest--; } -buildUnnamed1725() { +buildUnnamed1735() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1725(core.List<core.String> o) { +checkUnnamed1735(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1726() { +buildUnnamed1736() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1726(core.List<core.String> o) { +checkUnnamed1736(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1727() { +buildUnnamed1737() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1727(core.List<core.String> o) { +checkUnnamed1737(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -850,9 +850,9 @@ if (buildCounterServerConfig < 3) { o.defaultClusterVersion = "foo"; o.defaultImageType = "foo"; - o.validImageTypes = buildUnnamed1725(); - o.validMasterVersions = buildUnnamed1726(); - o.validNodeVersions = buildUnnamed1727(); + o.validImageTypes = buildUnnamed1735(); + o.validMasterVersions = buildUnnamed1736(); + o.validNodeVersions = buildUnnamed1737(); } buildCounterServerConfig--; return o; @@ -863,21 +863,21 @@ if (buildCounterServerConfig < 3) { unittest.expect(o.defaultClusterVersion, unittest.equals('foo')); unittest.expect(o.defaultImageType, unittest.equals('foo')); - checkUnnamed1725(o.validImageTypes); - checkUnnamed1726(o.validMasterVersions); - checkUnnamed1727(o.validNodeVersions); + checkUnnamed1735(o.validImageTypes); + checkUnnamed1736(o.validMasterVersions); + checkUnnamed1737(o.validNodeVersions); } buildCounterServerConfig--; } -buildUnnamed1728() { +buildUnnamed1738() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1728(core.Map<core.String, core.String> o) { +checkUnnamed1738(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -889,7 +889,7 @@ buildCounterSetLabelsRequest++; if (buildCounterSetLabelsRequest < 3) { o.labelFingerprint = "foo"; - o.resourceLabels = buildUnnamed1728(); + o.resourceLabels = buildUnnamed1738(); } buildCounterSetLabelsRequest--; return o; @@ -899,7 +899,7 @@ buildCounterSetLabelsRequest++; if (buildCounterSetLabelsRequest < 3) { unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed1728(o.resourceLabels); + checkUnnamed1738(o.resourceLabels); } buildCounterSetLabelsRequest--; } @@ -1269,7 +1269,7 @@ api.ProjectsZonesResourceApi res = new api.ContainerApi(mock).projects.zones; var arg_projectId = "foo"; var arg_zone = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1317,7 +1317,7 @@ var resp = convert.JSON.encode(buildServerConfig()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getServerconfig(arg_projectId, arg_zone).then(unittest.expectAsync(((api.ServerConfig response) { + res.getServerconfig(arg_projectId, arg_zone).then(unittest.expectAsync1(((api.ServerConfig response) { checkServerConfig(response); }))); }); @@ -1334,7 +1334,7 @@ var arg_projectId = "foo"; var arg_zone = "foo"; var arg_clusterId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CompleteIPRotationRequest.fromJson(json); checkCompleteIPRotationRequest(obj); @@ -1392,7 +1392,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.completeIpRotation(arg_request, arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync(((api.Operation response) { + res.completeIpRotation(arg_request, arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1404,7 +1404,7 @@ var arg_request = buildCreateClusterRequest(); var arg_projectId = "foo"; var arg_zone = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CreateClusterRequest.fromJson(json); checkCreateClusterRequest(obj); @@ -1455,7 +1455,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_projectId, arg_zone).then(unittest.expectAsync(((api.Operation response) { + res.create(arg_request, arg_projectId, arg_zone).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1467,7 +1467,7 @@ var arg_projectId = "foo"; var arg_zone = "foo"; var arg_clusterId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1518,7 +1518,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1530,7 +1530,7 @@ var arg_projectId = "foo"; var arg_zone = "foo"; var arg_clusterId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1581,7 +1581,7 @@ var resp = convert.JSON.encode(buildCluster()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync(((api.Cluster response) { + res.get(arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync1(((api.Cluster response) { checkCluster(response); }))); }); @@ -1594,7 +1594,7 @@ var arg_projectId = "foo"; var arg_zone = "foo"; var arg_clusterId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetLegacyAbacRequest.fromJson(json); checkSetLegacyAbacRequest(obj); @@ -1652,7 +1652,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.legacyAbac(arg_request, arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync(((api.Operation response) { + res.legacyAbac(arg_request, arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1663,7 +1663,7 @@ api.ProjectsZonesClustersResourceApi res = new api.ContainerApi(mock).projects.zones.clusters; var arg_projectId = "foo"; var arg_zone = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1711,7 +1711,7 @@ var resp = convert.JSON.encode(buildListClustersResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, arg_zone).then(unittest.expectAsync(((api.ListClustersResponse response) { + res.list(arg_projectId, arg_zone).then(unittest.expectAsync1(((api.ListClustersResponse response) { checkListClustersResponse(response); }))); }); @@ -1724,7 +1724,7 @@ var arg_projectId = "foo"; var arg_zone = "foo"; var arg_clusterId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetLabelsRequest.fromJson(json); checkSetLabelsRequest(obj); @@ -1782,7 +1782,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resourceLabels(arg_request, arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync(((api.Operation response) { + res.resourceLabels(arg_request, arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1795,7 +1795,7 @@ var arg_projectId = "foo"; var arg_zone = "foo"; var arg_clusterId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetMasterAuthRequest.fromJson(json); checkSetMasterAuthRequest(obj); @@ -1853,7 +1853,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setMasterAuth(arg_request, arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync(((api.Operation response) { + res.setMasterAuth(arg_request, arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1866,7 +1866,7 @@ var arg_projectId = "foo"; var arg_zone = "foo"; var arg_clusterId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.StartIPRotationRequest.fromJson(json); checkStartIPRotationRequest(obj); @@ -1924,7 +1924,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.startIpRotation(arg_request, arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync(((api.Operation response) { + res.startIpRotation(arg_request, arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1937,7 +1937,7 @@ var arg_projectId = "foo"; var arg_zone = "foo"; var arg_clusterId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UpdateClusterRequest.fromJson(json); checkUpdateClusterRequest(obj); @@ -1991,7 +1991,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync(((api.Operation response) { + res.update(arg_request, arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2008,7 +2008,7 @@ var arg_projectId = "foo"; var arg_zone = "foo"; var arg_clusterId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CreateNodePoolRequest.fromJson(json); checkCreateNodePoolRequest(obj); @@ -2066,7 +2066,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync(((api.Operation response) { + res.create(arg_request, arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2079,7 +2079,7 @@ var arg_zone = "foo"; var arg_clusterId = "foo"; var arg_nodePoolId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2137,7 +2137,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_projectId, arg_zone, arg_clusterId, arg_nodePoolId).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_projectId, arg_zone, arg_clusterId, arg_nodePoolId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2150,7 +2150,7 @@ var arg_zone = "foo"; var arg_clusterId = "foo"; var arg_nodePoolId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2208,7 +2208,7 @@ var resp = convert.JSON.encode(buildNodePool()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_projectId, arg_zone, arg_clusterId, arg_nodePoolId).then(unittest.expectAsync(((api.NodePool response) { + res.get(arg_projectId, arg_zone, arg_clusterId, arg_nodePoolId).then(unittest.expectAsync1(((api.NodePool response) { checkNodePool(response); }))); }); @@ -2220,7 +2220,7 @@ var arg_projectId = "foo"; var arg_zone = "foo"; var arg_clusterId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2275,7 +2275,7 @@ var resp = convert.JSON.encode(buildListNodePoolsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync(((api.ListNodePoolsResponse response) { + res.list(arg_projectId, arg_zone, arg_clusterId).then(unittest.expectAsync1(((api.ListNodePoolsResponse response) { checkListNodePoolsResponse(response); }))); }); @@ -2289,7 +2289,7 @@ var arg_zone = "foo"; var arg_clusterId = "foo"; var arg_nodePoolId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RollbackNodePoolUpgradeRequest.fromJson(json); checkRollbackNodePoolUpgradeRequest(obj); @@ -2354,7 +2354,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.rollback(arg_request, arg_projectId, arg_zone, arg_clusterId, arg_nodePoolId).then(unittest.expectAsync(((api.Operation response) { + res.rollback(arg_request, arg_projectId, arg_zone, arg_clusterId, arg_nodePoolId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2368,7 +2368,7 @@ var arg_zone = "foo"; var arg_clusterId = "foo"; var arg_nodePoolId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetNodePoolManagementRequest.fromJson(json); checkSetNodePoolManagementRequest(obj); @@ -2433,7 +2433,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setManagement(arg_request, arg_projectId, arg_zone, arg_clusterId, arg_nodePoolId).then(unittest.expectAsync(((api.Operation response) { + res.setManagement(arg_request, arg_projectId, arg_zone, arg_clusterId, arg_nodePoolId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2450,7 +2450,7 @@ var arg_projectId = "foo"; var arg_zone = "foo"; var arg_operationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CancelOperationRequest.fromJson(json); checkCancelOperationRequest(obj); @@ -2508,7 +2508,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.cancel(arg_request, arg_projectId, arg_zone, arg_operationId).then(unittest.expectAsync(((api.Empty response) { + res.cancel(arg_request, arg_projectId, arg_zone, arg_operationId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -2520,7 +2520,7 @@ var arg_projectId = "foo"; var arg_zone = "foo"; var arg_operationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2571,7 +2571,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_projectId, arg_zone, arg_operationId).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_projectId, arg_zone, arg_operationId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2582,7 +2582,7 @@ api.ProjectsZonesOperationsResourceApi res = new api.ContainerApi(mock).projects.zones.operations; var arg_projectId = "foo"; var arg_zone = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2630,7 +2630,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, arg_zone).then(unittest.expectAsync(((api.ListOperationsResponse response) { + res.list(arg_projectId, arg_zone).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); });
diff --git a/generated/googleapis/test/customsearch/v1_test.dart b/generated/googleapis/test/customsearch/v1_test.dart index cceab85..3e5f70d 100644 --- a/generated/googleapis/test/customsearch/v1_test.dart +++ b/generated/googleapis/test/customsearch/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/customsearch/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -74,30 +74,30 @@ buildCounterContextFacets--; } -buildUnnamed242() { +buildUnnamed244() { var o = new core.List<api.ContextFacets>(); o.add(buildContextFacets()); o.add(buildContextFacets()); return o; } -checkUnnamed242(core.List<api.ContextFacets> o) { +checkUnnamed244(core.List<api.ContextFacets> o) { unittest.expect(o, unittest.hasLength(2)); checkContextFacets(o[0]); checkContextFacets(o[1]); } -buildUnnamed243() { +buildUnnamed245() { var o = new core.List<core.List<api.ContextFacets>>(); - o.add(buildUnnamed242()); - o.add(buildUnnamed242()); + o.add(buildUnnamed244()); + o.add(buildUnnamed244()); return o; } -checkUnnamed243(core.List<core.List<api.ContextFacets>> o) { +checkUnnamed245(core.List<core.List<api.ContextFacets>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed242(o[0]); - checkUnnamed242(o[1]); + checkUnnamed244(o[0]); + checkUnnamed244(o[1]); } core.int buildCounterContext = 0; @@ -105,7 +105,7 @@ var o = new api.Context(); buildCounterContext++; if (buildCounterContext < 3) { - o.facets = buildUnnamed243(); + o.facets = buildUnnamed245(); o.title = "foo"; } buildCounterContext--; @@ -115,7 +115,7 @@ checkContext(api.Context o) { buildCounterContext++; if (buildCounterContext < 3) { - checkUnnamed243(o.facets); + checkUnnamed245(o.facets); unittest.expect(o.title, unittest.equals('foo')); } buildCounterContext--; @@ -146,14 +146,14 @@ buildCounterPromotionBodyLines--; } -buildUnnamed244() { +buildUnnamed246() { var o = new core.List<api.PromotionBodyLines>(); o.add(buildPromotionBodyLines()); o.add(buildPromotionBodyLines()); return o; } -checkUnnamed244(core.List<api.PromotionBodyLines> o) { +checkUnnamed246(core.List<api.PromotionBodyLines> o) { unittest.expect(o, unittest.hasLength(2)); checkPromotionBodyLines(o[0]); checkPromotionBodyLines(o[1]); @@ -187,7 +187,7 @@ var o = new api.Promotion(); buildCounterPromotion++; if (buildCounterPromotion < 3) { - o.bodyLines = buildUnnamed244(); + o.bodyLines = buildUnnamed246(); o.displayLink = "foo"; o.htmlTitle = "foo"; o.image = buildPromotionImage(); @@ -201,7 +201,7 @@ checkPromotion(api.Promotion o) { buildCounterPromotion++; if (buildCounterPromotion < 3) { - checkUnnamed244(o.bodyLines); + checkUnnamed246(o.bodyLines); unittest.expect(o.displayLink, unittest.equals('foo')); unittest.expect(o.htmlTitle, unittest.equals('foo')); checkPromotionImage(o.image); @@ -218,7 +218,6 @@ if (buildCounterQuery < 3) { o.count = 42; o.cr = "foo"; - o.cref = "foo"; o.cx = "foo"; o.dateRestrict = "foo"; o.disableCnTwTranslation = "foo"; @@ -263,7 +262,6 @@ if (buildCounterQuery < 3) { unittest.expect(o.count, unittest.equals(42)); unittest.expect(o.cr, unittest.equals('foo')); - unittest.expect(o.cref, unittest.equals('foo')); unittest.expect(o.cx, unittest.equals('foo')); unittest.expect(o.dateRestrict, unittest.equals('foo')); unittest.expect(o.disableCnTwTranslation, unittest.equals('foo')); @@ -356,56 +354,56 @@ buildCounterResultLabels--; } -buildUnnamed245() { +buildUnnamed247() { var o = new core.List<api.ResultLabels>(); o.add(buildResultLabels()); o.add(buildResultLabels()); return o; } -checkUnnamed245(core.List<api.ResultLabels> o) { +checkUnnamed247(core.List<api.ResultLabels> o) { unittest.expect(o, unittest.hasLength(2)); checkResultLabels(o[0]); checkResultLabels(o[1]); } -buildUnnamed246() { +buildUnnamed248() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed246(core.Map<core.String, core.Object> o) { +checkUnnamed248(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed247() { +buildUnnamed249() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed246()); - o.add(buildUnnamed246()); + o.add(buildUnnamed248()); + o.add(buildUnnamed248()); return o; } -checkUnnamed247(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed249(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed246(o[0]); - checkUnnamed246(o[1]); + checkUnnamed248(o[0]); + checkUnnamed248(o[1]); } -buildUnnamed248() { +buildUnnamed250() { var o = new core.Map<core.String, core.List<core.Map<core.String, core.Object>>>(); - o["x"] = buildUnnamed247(); - o["y"] = buildUnnamed247(); + o["x"] = buildUnnamed249(); + o["y"] = buildUnnamed249(); return o; } -checkUnnamed248(core.Map<core.String, core.List<core.Map<core.String, core.Object>>> o) { +checkUnnamed250(core.Map<core.String, core.List<core.Map<core.String, core.Object>>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed247(o["x"]); - checkUnnamed247(o["y"]); + checkUnnamed249(o["x"]); + checkUnnamed249(o["y"]); } core.int buildCounterResult = 0; @@ -422,10 +420,10 @@ o.htmlTitle = "foo"; o.image = buildResultImage(); o.kind = "foo"; - o.labels = buildUnnamed245(); + o.labels = buildUnnamed247(); o.link = "foo"; o.mime = "foo"; - o.pagemap = buildUnnamed248(); + o.pagemap = buildUnnamed250(); o.snippet = "foo"; o.title = "foo"; } @@ -445,66 +443,66 @@ unittest.expect(o.htmlTitle, unittest.equals('foo')); checkResultImage(o.image); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed245(o.labels); + checkUnnamed247(o.labels); unittest.expect(o.link, unittest.equals('foo')); unittest.expect(o.mime, unittest.equals('foo')); - checkUnnamed248(o.pagemap); + checkUnnamed250(o.pagemap); unittest.expect(o.snippet, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); } buildCounterResult--; } -buildUnnamed249() { +buildUnnamed251() { var o = new core.List<api.Result>(); o.add(buildResult()); o.add(buildResult()); return o; } -checkUnnamed249(core.List<api.Result> o) { +checkUnnamed251(core.List<api.Result> o) { unittest.expect(o, unittest.hasLength(2)); checkResult(o[0]); checkResult(o[1]); } -buildUnnamed250() { +buildUnnamed252() { var o = new core.List<api.Promotion>(); o.add(buildPromotion()); o.add(buildPromotion()); return o; } -checkUnnamed250(core.List<api.Promotion> o) { +checkUnnamed252(core.List<api.Promotion> o) { unittest.expect(o, unittest.hasLength(2)); checkPromotion(o[0]); checkPromotion(o[1]); } -buildUnnamed251() { +buildUnnamed253() { var o = new core.List<api.Query>(); o.add(buildQuery()); o.add(buildQuery()); return o; } -checkUnnamed251(core.List<api.Query> o) { +checkUnnamed253(core.List<api.Query> o) { unittest.expect(o, unittest.hasLength(2)); checkQuery(o[0]); checkQuery(o[1]); } -buildUnnamed252() { +buildUnnamed254() { var o = new core.Map<core.String, core.List<api.Query>>(); - o["x"] = buildUnnamed251(); - o["y"] = buildUnnamed251(); + o["x"] = buildUnnamed253(); + o["y"] = buildUnnamed253(); return o; } -checkUnnamed252(core.Map<core.String, core.List<api.Query>> o) { +checkUnnamed254(core.Map<core.String, core.List<api.Query>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed251(o["x"]); - checkUnnamed251(o["y"]); + checkUnnamed253(o["x"]); + checkUnnamed253(o["y"]); } core.int buildCounterSearchSearchInformation = 0; @@ -580,10 +578,10 @@ buildCounterSearch++; if (buildCounterSearch < 3) { o.context = buildContext(); - o.items = buildUnnamed249(); + o.items = buildUnnamed251(); o.kind = "foo"; - o.promotions = buildUnnamed250(); - o.queries = buildUnnamed252(); + o.promotions = buildUnnamed252(); + o.queries = buildUnnamed254(); o.searchInformation = buildSearchSearchInformation(); o.spelling = buildSearchSpelling(); o.url = buildSearchUrl(); @@ -596,10 +594,10 @@ buildCounterSearch++; if (buildCounterSearch < 3) { checkContext(o.context); - checkUnnamed249(o.items); + checkUnnamed251(o.items); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed250(o.promotions); - checkUnnamed252(o.queries); + checkUnnamed252(o.promotions); + checkUnnamed254(o.queries); checkSearchSearchInformation(o.searchInformation); checkSearchSpelling(o.spelling); checkSearchUrl(o.url); @@ -734,7 +732,6 @@ var arg_q = "foo"; var arg_c2coff = "foo"; var arg_cr = "foo"; - var arg_cref = "foo"; var arg_cx = "foo"; var arg_dateRestrict = "foo"; var arg_exactTerms = "foo"; @@ -763,7 +760,7 @@ var arg_siteSearchFilter = "foo"; var arg_sort = "foo"; var arg_start = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -794,7 +791,6 @@ unittest.expect(queryMap["q"].first, unittest.equals(arg_q)); unittest.expect(queryMap["c2coff"].first, unittest.equals(arg_c2coff)); unittest.expect(queryMap["cr"].first, unittest.equals(arg_cr)); - unittest.expect(queryMap["cref"].first, unittest.equals(arg_cref)); unittest.expect(queryMap["cx"].first, unittest.equals(arg_cx)); unittest.expect(queryMap["dateRestrict"].first, unittest.equals(arg_dateRestrict)); unittest.expect(queryMap["exactTerms"].first, unittest.equals(arg_exactTerms)); @@ -831,7 +827,7 @@ var resp = convert.JSON.encode(buildSearch()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_q, c2coff: arg_c2coff, cr: arg_cr, cref: arg_cref, cx: arg_cx, dateRestrict: arg_dateRestrict, exactTerms: arg_exactTerms, excludeTerms: arg_excludeTerms, fileType: arg_fileType, filter: arg_filter, gl: arg_gl, googlehost: arg_googlehost, highRange: arg_highRange, hl: arg_hl, hq: arg_hq, imgColorType: arg_imgColorType, imgDominantColor: arg_imgDominantColor, imgSize: arg_imgSize, imgType: arg_imgType, linkSite: arg_linkSite, lowRange: arg_lowRange, lr: arg_lr, num: arg_num, orTerms: arg_orTerms, relatedSite: arg_relatedSite, rights: arg_rights, safe: arg_safe, searchType: arg_searchType, siteSearch: arg_siteSearch, siteSearchFilter: arg_siteSearchFilter, sort: arg_sort, start: arg_start).then(unittest.expectAsync(((api.Search response) { + res.list(arg_q, c2coff: arg_c2coff, cr: arg_cr, cx: arg_cx, dateRestrict: arg_dateRestrict, exactTerms: arg_exactTerms, excludeTerms: arg_excludeTerms, fileType: arg_fileType, filter: arg_filter, gl: arg_gl, googlehost: arg_googlehost, highRange: arg_highRange, hl: arg_hl, hq: arg_hq, imgColorType: arg_imgColorType, imgDominantColor: arg_imgDominantColor, imgSize: arg_imgSize, imgType: arg_imgType, linkSite: arg_linkSite, lowRange: arg_lowRange, lr: arg_lr, num: arg_num, orTerms: arg_orTerms, relatedSite: arg_relatedSite, rights: arg_rights, safe: arg_safe, searchType: arg_searchType, siteSearch: arg_siteSearch, siteSearchFilter: arg_siteSearchFilter, sort: arg_sort, start: arg_start).then(unittest.expectAsync1(((api.Search response) { checkSearch(response); }))); });
diff --git a/generated/googleapis/test/dataproc/v1_test.dart b/generated/googleapis/test/dataproc/v1_test.dart index b9f6fc0..611607c 100644 --- a/generated/googleapis/test/dataproc/v1_test.dart +++ b/generated/googleapis/test/dataproc/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/dataproc/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -89,27 +89,27 @@ buildCounterCancelJobRequest--; } -buildUnnamed452() { +buildUnnamed456() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed452(core.Map<core.String, core.String> o) { +checkUnnamed456(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed453() { +buildUnnamed457() { var o = new core.List<api.ClusterStatus>(); o.add(buildClusterStatus()); o.add(buildClusterStatus()); return o; } -checkUnnamed453(core.List<api.ClusterStatus> o) { +checkUnnamed457(core.List<api.ClusterStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkClusterStatus(o[0]); checkClusterStatus(o[1]); @@ -123,11 +123,11 @@ o.clusterName = "foo"; o.clusterUuid = "foo"; o.config = buildClusterConfig(); - o.labels = buildUnnamed452(); + o.labels = buildUnnamed456(); o.metrics = buildClusterMetrics(); o.projectId = "foo"; o.status = buildClusterStatus(); - o.statusHistory = buildUnnamed453(); + o.statusHistory = buildUnnamed457(); } buildCounterCluster--; return o; @@ -139,23 +139,23 @@ unittest.expect(o.clusterName, unittest.equals('foo')); unittest.expect(o.clusterUuid, unittest.equals('foo')); checkClusterConfig(o.config); - checkUnnamed452(o.labels); + checkUnnamed456(o.labels); checkClusterMetrics(o.metrics); unittest.expect(o.projectId, unittest.equals('foo')); checkClusterStatus(o.status); - checkUnnamed453(o.statusHistory); + checkUnnamed457(o.statusHistory); } buildCounterCluster--; } -buildUnnamed454() { +buildUnnamed458() { var o = new core.List<api.NodeInitializationAction>(); o.add(buildNodeInitializationAction()); o.add(buildNodeInitializationAction()); return o; } -checkUnnamed454(core.List<api.NodeInitializationAction> o) { +checkUnnamed458(core.List<api.NodeInitializationAction> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeInitializationAction(o[0]); checkNodeInitializationAction(o[1]); @@ -168,7 +168,7 @@ if (buildCounterClusterConfig < 3) { o.configBucket = "foo"; o.gceClusterConfig = buildGceClusterConfig(); - o.initializationActions = buildUnnamed454(); + o.initializationActions = buildUnnamed458(); o.masterConfig = buildInstanceGroupConfig(); o.secondaryWorkerConfig = buildInstanceGroupConfig(); o.softwareConfig = buildSoftwareConfig(); @@ -183,7 +183,7 @@ if (buildCounterClusterConfig < 3) { unittest.expect(o.configBucket, unittest.equals('foo')); checkGceClusterConfig(o.gceClusterConfig); - checkUnnamed454(o.initializationActions); + checkUnnamed458(o.initializationActions); checkInstanceGroupConfig(o.masterConfig); checkInstanceGroupConfig(o.secondaryWorkerConfig); checkSoftwareConfig(o.softwareConfig); @@ -192,27 +192,27 @@ buildCounterClusterConfig--; } -buildUnnamed455() { +buildUnnamed459() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed455(core.Map<core.String, core.String> o) { +checkUnnamed459(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed456() { +buildUnnamed460() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed456(core.Map<core.String, core.String> o) { +checkUnnamed460(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -223,8 +223,8 @@ var o = new api.ClusterMetrics(); buildCounterClusterMetrics++; if (buildCounterClusterMetrics < 3) { - o.hdfsMetrics = buildUnnamed455(); - o.yarnMetrics = buildUnnamed456(); + o.hdfsMetrics = buildUnnamed459(); + o.yarnMetrics = buildUnnamed460(); } buildCounterClusterMetrics--; return o; @@ -233,46 +233,46 @@ checkClusterMetrics(api.ClusterMetrics o) { buildCounterClusterMetrics++; if (buildCounterClusterMetrics < 3) { - checkUnnamed455(o.hdfsMetrics); - checkUnnamed456(o.yarnMetrics); + checkUnnamed459(o.hdfsMetrics); + checkUnnamed460(o.yarnMetrics); } buildCounterClusterMetrics--; } -buildUnnamed457() { +buildUnnamed461() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed457(core.Map<core.String, core.String> o) { +checkUnnamed461(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed458() { +buildUnnamed462() { var o = new core.List<api.ClusterOperationStatus>(); o.add(buildClusterOperationStatus()); o.add(buildClusterOperationStatus()); return o; } -checkUnnamed458(core.List<api.ClusterOperationStatus> o) { +checkUnnamed462(core.List<api.ClusterOperationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkClusterOperationStatus(o[0]); checkClusterOperationStatus(o[1]); } -buildUnnamed459() { +buildUnnamed463() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed459(core.List<core.String> o) { +checkUnnamed463(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -286,11 +286,11 @@ o.clusterName = "foo"; o.clusterUuid = "foo"; o.description = "foo"; - o.labels = buildUnnamed457(); + o.labels = buildUnnamed461(); o.operationType = "foo"; o.status = buildClusterOperationStatus(); - o.statusHistory = buildUnnamed458(); - o.warnings = buildUnnamed459(); + o.statusHistory = buildUnnamed462(); + o.warnings = buildUnnamed463(); } buildCounterClusterOperationMetadata--; return o; @@ -302,11 +302,11 @@ unittest.expect(o.clusterName, unittest.equals('foo')); unittest.expect(o.clusterUuid, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed457(o.labels); + checkUnnamed461(o.labels); unittest.expect(o.operationType, unittest.equals('foo')); checkClusterOperationStatus(o.status); - checkUnnamed458(o.statusHistory); - checkUnnamed459(o.warnings); + checkUnnamed462(o.statusHistory); + checkUnnamed463(o.warnings); } buildCounterClusterOperationMetadata--; } @@ -361,25 +361,6 @@ buildCounterClusterStatus--; } -core.int buildCounterDiagnoseClusterOutputLocation = 0; -buildDiagnoseClusterOutputLocation() { - var o = new api.DiagnoseClusterOutputLocation(); - buildCounterDiagnoseClusterOutputLocation++; - if (buildCounterDiagnoseClusterOutputLocation < 3) { - o.outputUri = "foo"; - } - buildCounterDiagnoseClusterOutputLocation--; - return o; -} - -checkDiagnoseClusterOutputLocation(api.DiagnoseClusterOutputLocation o) { - buildCounterDiagnoseClusterOutputLocation++; - if (buildCounterDiagnoseClusterOutputLocation < 3) { - unittest.expect(o.outputUri, unittest.equals('foo')); - } - buildCounterDiagnoseClusterOutputLocation--; -} - core.int buildCounterDiagnoseClusterRequest = 0; buildDiagnoseClusterRequest() { var o = new api.DiagnoseClusterRequest(); @@ -454,104 +435,19 @@ buildCounterEmpty--; } -buildUnnamed460() { +buildUnnamed464() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed460(core.Map<core.String, core.String> o) { +checkUnnamed464(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed461() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed461(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed462() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed462(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterGceClusterConfig = 0; -buildGceClusterConfig() { - var o = new api.GceClusterConfig(); - buildCounterGceClusterConfig++; - if (buildCounterGceClusterConfig < 3) { - o.internalIpOnly = true; - o.metadata = buildUnnamed460(); - o.networkUri = "foo"; - o.serviceAccount = "foo"; - o.serviceAccountScopes = buildUnnamed461(); - o.subnetworkUri = "foo"; - o.tags = buildUnnamed462(); - o.zoneUri = "foo"; - } - buildCounterGceClusterConfig--; - return o; -} - -checkGceClusterConfig(api.GceClusterConfig o) { - buildCounterGceClusterConfig++; - if (buildCounterGceClusterConfig < 3) { - unittest.expect(o.internalIpOnly, unittest.isTrue); - checkUnnamed460(o.metadata); - unittest.expect(o.networkUri, unittest.equals('foo')); - unittest.expect(o.serviceAccount, unittest.equals('foo')); - checkUnnamed461(o.serviceAccountScopes); - unittest.expect(o.subnetworkUri, unittest.equals('foo')); - checkUnnamed462(o.tags); - unittest.expect(o.zoneUri, unittest.equals('foo')); - } - buildCounterGceClusterConfig--; -} - -buildUnnamed463() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed463(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed464() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed464(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - buildUnnamed465() { var o = new core.List<core.String>(); o.add("foo"); @@ -578,50 +474,50 @@ unittest.expect(o[1], unittest.equals('foo')); } +core.int buildCounterGceClusterConfig = 0; +buildGceClusterConfig() { + var o = new api.GceClusterConfig(); + buildCounterGceClusterConfig++; + if (buildCounterGceClusterConfig < 3) { + o.internalIpOnly = true; + o.metadata = buildUnnamed464(); + o.networkUri = "foo"; + o.serviceAccount = "foo"; + o.serviceAccountScopes = buildUnnamed465(); + o.subnetworkUri = "foo"; + o.tags = buildUnnamed466(); + o.zoneUri = "foo"; + } + buildCounterGceClusterConfig--; + return o; +} + +checkGceClusterConfig(api.GceClusterConfig o) { + buildCounterGceClusterConfig++; + if (buildCounterGceClusterConfig < 3) { + unittest.expect(o.internalIpOnly, unittest.isTrue); + checkUnnamed464(o.metadata); + unittest.expect(o.networkUri, unittest.equals('foo')); + unittest.expect(o.serviceAccount, unittest.equals('foo')); + checkUnnamed465(o.serviceAccountScopes); + unittest.expect(o.subnetworkUri, unittest.equals('foo')); + checkUnnamed466(o.tags); + unittest.expect(o.zoneUri, unittest.equals('foo')); + } + buildCounterGceClusterConfig--; +} + buildUnnamed467() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); return o; } -checkUnnamed467(core.Map<core.String, core.String> o) { +checkUnnamed467(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - -core.int buildCounterHadoopJob = 0; -buildHadoopJob() { - var o = new api.HadoopJob(); - buildCounterHadoopJob++; - if (buildCounterHadoopJob < 3) { - o.archiveUris = buildUnnamed463(); - o.args = buildUnnamed464(); - o.fileUris = buildUnnamed465(); - o.jarFileUris = buildUnnamed466(); - o.loggingConfig = buildLoggingConfig(); - o.mainClass = "foo"; - o.mainJarFileUri = "foo"; - o.properties = buildUnnamed467(); - } - buildCounterHadoopJob--; - return o; -} - -checkHadoopJob(api.HadoopJob o) { - buildCounterHadoopJob++; - if (buildCounterHadoopJob < 3) { - checkUnnamed463(o.archiveUris); - checkUnnamed464(o.args); - checkUnnamed465(o.fileUris); - checkUnnamed466(o.jarFileUris); - checkLoggingConfig(o.loggingConfig); - unittest.expect(o.mainClass, unittest.equals('foo')); - unittest.expect(o.mainJarFileUri, unittest.equals('foo')); - checkUnnamed467(o.properties); - } - buildCounterHadoopJob--; + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } buildUnnamed468() { @@ -638,71 +534,75 @@ } buildUnnamed469() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); return o; } -checkUnnamed469(core.Map<core.String, core.String> o) { +checkUnnamed469(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } buildUnnamed470() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed470(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed471() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed470(core.Map<core.String, core.String> o) { +checkUnnamed471(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -core.int buildCounterHiveJob = 0; -buildHiveJob() { - var o = new api.HiveJob(); - buildCounterHiveJob++; - if (buildCounterHiveJob < 3) { - o.continueOnFailure = true; - o.jarFileUris = buildUnnamed468(); - o.properties = buildUnnamed469(); - o.queryFileUri = "foo"; - o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed470(); +core.int buildCounterHadoopJob = 0; +buildHadoopJob() { + var o = new api.HadoopJob(); + buildCounterHadoopJob++; + if (buildCounterHadoopJob < 3) { + o.archiveUris = buildUnnamed467(); + o.args = buildUnnamed468(); + o.fileUris = buildUnnamed469(); + o.jarFileUris = buildUnnamed470(); + o.loggingConfig = buildLoggingConfig(); + o.mainClass = "foo"; + o.mainJarFileUri = "foo"; + o.properties = buildUnnamed471(); } - buildCounterHiveJob--; + buildCounterHadoopJob--; return o; } -checkHiveJob(api.HiveJob o) { - buildCounterHiveJob++; - if (buildCounterHiveJob < 3) { - unittest.expect(o.continueOnFailure, unittest.isTrue); - checkUnnamed468(o.jarFileUris); - checkUnnamed469(o.properties); - unittest.expect(o.queryFileUri, unittest.equals('foo')); - checkQueryList(o.queryList); - checkUnnamed470(o.scriptVariables); +checkHadoopJob(api.HadoopJob o) { + buildCounterHadoopJob++; + if (buildCounterHadoopJob < 3) { + checkUnnamed467(o.archiveUris); + checkUnnamed468(o.args); + checkUnnamed469(o.fileUris); + checkUnnamed470(o.jarFileUris); + checkLoggingConfig(o.loggingConfig); + unittest.expect(o.mainClass, unittest.equals('foo')); + unittest.expect(o.mainJarFileUri, unittest.equals('foo')); + checkUnnamed471(o.properties); } - buildCounterHiveJob--; -} - -buildUnnamed471() { - var o = new core.List<api.AcceleratorConfig>(); - o.add(buildAcceleratorConfig()); - o.add(buildAcceleratorConfig()); - return o; -} - -checkUnnamed471(core.List<api.AcceleratorConfig> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAcceleratorConfig(o[0]); - checkAcceleratorConfig(o[1]); + buildCounterHadoopJob--; } buildUnnamed472() { @@ -718,39 +618,6 @@ unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterInstanceGroupConfig = 0; -buildInstanceGroupConfig() { - var o = new api.InstanceGroupConfig(); - buildCounterInstanceGroupConfig++; - if (buildCounterInstanceGroupConfig < 3) { - o.accelerators = buildUnnamed471(); - o.diskConfig = buildDiskConfig(); - o.imageUri = "foo"; - o.instanceNames = buildUnnamed472(); - o.isPreemptible = true; - o.machineTypeUri = "foo"; - o.managedGroupConfig = buildManagedGroupConfig(); - o.numInstances = 42; - } - buildCounterInstanceGroupConfig--; - return o; -} - -checkInstanceGroupConfig(api.InstanceGroupConfig o) { - buildCounterInstanceGroupConfig++; - if (buildCounterInstanceGroupConfig < 3) { - checkUnnamed471(o.accelerators); - checkDiskConfig(o.diskConfig); - unittest.expect(o.imageUri, unittest.equals('foo')); - checkUnnamed472(o.instanceNames); - unittest.expect(o.isPreemptible, unittest.isTrue); - unittest.expect(o.machineTypeUri, unittest.equals('foo')); - checkManagedGroupConfig(o.managedGroupConfig); - unittest.expect(o.numInstances, unittest.equals(42)); - } - buildCounterInstanceGroupConfig--; -} - buildUnnamed473() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; @@ -765,26 +632,140 @@ } buildUnnamed474() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed474(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +core.int buildCounterHiveJob = 0; +buildHiveJob() { + var o = new api.HiveJob(); + buildCounterHiveJob++; + if (buildCounterHiveJob < 3) { + o.continueOnFailure = true; + o.jarFileUris = buildUnnamed472(); + o.properties = buildUnnamed473(); + o.queryFileUri = "foo"; + o.queryList = buildQueryList(); + o.scriptVariables = buildUnnamed474(); + } + buildCounterHiveJob--; + return o; +} + +checkHiveJob(api.HiveJob o) { + buildCounterHiveJob++; + if (buildCounterHiveJob < 3) { + unittest.expect(o.continueOnFailure, unittest.isTrue); + checkUnnamed472(o.jarFileUris); + checkUnnamed473(o.properties); + unittest.expect(o.queryFileUri, unittest.equals('foo')); + checkQueryList(o.queryList); + checkUnnamed474(o.scriptVariables); + } + buildCounterHiveJob--; +} + +buildUnnamed475() { + var o = new core.List<api.AcceleratorConfig>(); + o.add(buildAcceleratorConfig()); + o.add(buildAcceleratorConfig()); + return o; +} + +checkUnnamed475(core.List<api.AcceleratorConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAcceleratorConfig(o[0]); + checkAcceleratorConfig(o[1]); +} + +buildUnnamed476() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed476(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterInstanceGroupConfig = 0; +buildInstanceGroupConfig() { + var o = new api.InstanceGroupConfig(); + buildCounterInstanceGroupConfig++; + if (buildCounterInstanceGroupConfig < 3) { + o.accelerators = buildUnnamed475(); + o.diskConfig = buildDiskConfig(); + o.imageUri = "foo"; + o.instanceNames = buildUnnamed476(); + o.isPreemptible = true; + o.machineTypeUri = "foo"; + o.managedGroupConfig = buildManagedGroupConfig(); + o.numInstances = 42; + } + buildCounterInstanceGroupConfig--; + return o; +} + +checkInstanceGroupConfig(api.InstanceGroupConfig o) { + buildCounterInstanceGroupConfig++; + if (buildCounterInstanceGroupConfig < 3) { + checkUnnamed475(o.accelerators); + checkDiskConfig(o.diskConfig); + unittest.expect(o.imageUri, unittest.equals('foo')); + checkUnnamed476(o.instanceNames); + unittest.expect(o.isPreemptible, unittest.isTrue); + unittest.expect(o.machineTypeUri, unittest.equals('foo')); + checkManagedGroupConfig(o.managedGroupConfig); + unittest.expect(o.numInstances, unittest.equals(42)); + } + buildCounterInstanceGroupConfig--; +} + +buildUnnamed477() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed477(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +buildUnnamed478() { var o = new core.List<api.JobStatus>(); o.add(buildJobStatus()); o.add(buildJobStatus()); return o; } -checkUnnamed474(core.List<api.JobStatus> o) { +checkUnnamed478(core.List<api.JobStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkJobStatus(o[0]); checkJobStatus(o[1]); } -buildUnnamed475() { +buildUnnamed479() { var o = new core.List<api.YarnApplication>(); o.add(buildYarnApplication()); o.add(buildYarnApplication()); return o; } -checkUnnamed475(core.List<api.YarnApplication> o) { +checkUnnamed479(core.List<api.YarnApplication> o) { unittest.expect(o, unittest.hasLength(2)); checkYarnApplication(o[0]); checkYarnApplication(o[1]); @@ -799,7 +780,7 @@ o.driverOutputResourceUri = "foo"; o.hadoopJob = buildHadoopJob(); o.hiveJob = buildHiveJob(); - o.labels = buildUnnamed473(); + o.labels = buildUnnamed477(); o.pigJob = buildPigJob(); o.placement = buildJobPlacement(); o.pysparkJob = buildPySparkJob(); @@ -808,8 +789,8 @@ o.sparkJob = buildSparkJob(); o.sparkSqlJob = buildSparkSqlJob(); o.status = buildJobStatus(); - o.statusHistory = buildUnnamed474(); - o.yarnApplications = buildUnnamed475(); + o.statusHistory = buildUnnamed478(); + o.yarnApplications = buildUnnamed479(); } buildCounterJob--; return o; @@ -822,7 +803,7 @@ unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); checkHadoopJob(o.hadoopJob); checkHiveJob(o.hiveJob); - checkUnnamed473(o.labels); + checkUnnamed477(o.labels); checkPigJob(o.pigJob); checkJobPlacement(o.placement); checkPySparkJob(o.pysparkJob); @@ -831,8 +812,8 @@ checkSparkJob(o.sparkJob); checkSparkSqlJob(o.sparkSqlJob); checkJobStatus(o.status); - checkUnnamed474(o.statusHistory); - checkUnnamed475(o.yarnApplications); + checkUnnamed478(o.statusHistory); + checkUnnamed479(o.yarnApplications); } buildCounterJob--; } @@ -923,14 +904,14 @@ buildCounterJobStatus--; } -buildUnnamed476() { +buildUnnamed480() { var o = new core.List<api.Cluster>(); o.add(buildCluster()); o.add(buildCluster()); return o; } -checkUnnamed476(core.List<api.Cluster> o) { +checkUnnamed480(core.List<api.Cluster> o) { unittest.expect(o, unittest.hasLength(2)); checkCluster(o[0]); checkCluster(o[1]); @@ -941,7 +922,7 @@ var o = new api.ListClustersResponse(); buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - o.clusters = buildUnnamed476(); + o.clusters = buildUnnamed480(); o.nextPageToken = "foo"; } buildCounterListClustersResponse--; @@ -951,20 +932,20 @@ checkListClustersResponse(api.ListClustersResponse o) { buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - checkUnnamed476(o.clusters); + checkUnnamed480(o.clusters); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListClustersResponse--; } -buildUnnamed477() { +buildUnnamed481() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed477(core.List<api.Job> o) { +checkUnnamed481(core.List<api.Job> o) { unittest.expect(o, unittest.hasLength(2)); checkJob(o[0]); checkJob(o[1]); @@ -975,7 +956,7 @@ var o = new api.ListJobsResponse(); buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - o.jobs = buildUnnamed477(); + o.jobs = buildUnnamed481(); o.nextPageToken = "foo"; } buildCounterListJobsResponse--; @@ -985,20 +966,20 @@ checkListJobsResponse(api.ListJobsResponse o) { buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - checkUnnamed477(o.jobs); + checkUnnamed481(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListJobsResponse--; } -buildUnnamed478() { +buildUnnamed482() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed478(core.List<api.Operation> o) { +checkUnnamed482(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1010,7 +991,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed478(); + o.operations = buildUnnamed482(); } buildCounterListOperationsResponse--; return o; @@ -1020,19 +1001,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed478(o.operations); + checkUnnamed482(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed479() { +buildUnnamed483() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed479(core.Map<core.String, core.String> o) { +checkUnnamed483(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1043,7 +1024,7 @@ var o = new api.LoggingConfig(); buildCounterLoggingConfig++; if (buildCounterLoggingConfig < 3) { - o.driverLogLevels = buildUnnamed479(); + o.driverLogLevels = buildUnnamed483(); } buildCounterLoggingConfig--; return o; @@ -1052,7 +1033,7 @@ checkLoggingConfig(api.LoggingConfig o) { buildCounterLoggingConfig++; if (buildCounterLoggingConfig < 3) { - checkUnnamed479(o.driverLogLevels); + checkUnnamed483(o.driverLogLevels); } buildCounterLoggingConfig--; } @@ -1099,27 +1080,27 @@ buildCounterNodeInitializationAction--; } -buildUnnamed480() { +buildUnnamed484() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed480(core.Map<core.String, core.Object> o) { +checkUnnamed484(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed481() { +buildUnnamed485() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed481(core.Map<core.String, core.Object> o) { +checkUnnamed485(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -1132,9 +1113,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed480(); + o.metadata = buildUnnamed484(); o.name = "foo"; - o.response = buildUnnamed481(); + o.response = buildUnnamed485(); } buildCounterOperation--; return o; @@ -1145,141 +1126,47 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed480(o.metadata); + checkUnnamed484(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed481(o.response); + checkUnnamed485(o.response); } buildCounterOperation--; } -buildUnnamed482() { - var o = new core.List<api.OperationStatus>(); - o.add(buildOperationStatus()); - o.add(buildOperationStatus()); - return o; -} - -checkUnnamed482(core.List<api.OperationStatus> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOperationStatus(o[0]); - checkOperationStatus(o[1]); -} - -buildUnnamed483() { +buildUnnamed486() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed483(core.List<core.String> o) { +checkUnnamed486(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterOperationMetadata = 0; -buildOperationMetadata() { - var o = new api.OperationMetadata(); - buildCounterOperationMetadata++; - if (buildCounterOperationMetadata < 3) { - o.clusterName = "foo"; - o.clusterUuid = "foo"; - o.description = "foo"; - o.details = "foo"; - o.endTime = "foo"; - o.innerState = "foo"; - o.insertTime = "foo"; - o.operationType = "foo"; - o.startTime = "foo"; - o.state = "foo"; - o.status = buildOperationStatus(); - o.statusHistory = buildUnnamed482(); - o.warnings = buildUnnamed483(); - } - buildCounterOperationMetadata--; - return o; -} - -checkOperationMetadata(api.OperationMetadata o) { - buildCounterOperationMetadata++; - if (buildCounterOperationMetadata < 3) { - unittest.expect(o.clusterName, unittest.equals('foo')); - unittest.expect(o.clusterUuid, unittest.equals('foo')); - unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.details, unittest.equals('foo')); - unittest.expect(o.endTime, unittest.equals('foo')); - unittest.expect(o.innerState, unittest.equals('foo')); - unittest.expect(o.insertTime, unittest.equals('foo')); - unittest.expect(o.operationType, unittest.equals('foo')); - unittest.expect(o.startTime, unittest.equals('foo')); - unittest.expect(o.state, unittest.equals('foo')); - checkOperationStatus(o.status); - checkUnnamed482(o.statusHistory); - checkUnnamed483(o.warnings); - } - buildCounterOperationMetadata--; -} - -core.int buildCounterOperationStatus = 0; -buildOperationStatus() { - var o = new api.OperationStatus(); - buildCounterOperationStatus++; - if (buildCounterOperationStatus < 3) { - o.details = "foo"; - o.innerState = "foo"; - o.state = "foo"; - o.stateStartTime = "foo"; - } - buildCounterOperationStatus--; - return o; -} - -checkOperationStatus(api.OperationStatus o) { - buildCounterOperationStatus++; - if (buildCounterOperationStatus < 3) { - unittest.expect(o.details, unittest.equals('foo')); - unittest.expect(o.innerState, unittest.equals('foo')); - unittest.expect(o.state, unittest.equals('foo')); - unittest.expect(o.stateStartTime, unittest.equals('foo')); - } - buildCounterOperationStatus--; -} - -buildUnnamed484() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed484(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed485() { +buildUnnamed487() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed485(core.Map<core.String, core.String> o) { +checkUnnamed487(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed486() { +buildUnnamed488() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed486(core.Map<core.String, core.String> o) { +checkUnnamed488(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1291,12 +1178,12 @@ buildCounterPigJob++; if (buildCounterPigJob < 3) { o.continueOnFailure = true; - o.jarFileUris = buildUnnamed484(); + o.jarFileUris = buildUnnamed486(); o.loggingConfig = buildLoggingConfig(); - o.properties = buildUnnamed485(); + o.properties = buildUnnamed487(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed486(); + o.scriptVariables = buildUnnamed488(); } buildCounterPigJob--; return o; @@ -1306,42 +1193,16 @@ buildCounterPigJob++; if (buildCounterPigJob < 3) { unittest.expect(o.continueOnFailure, unittest.isTrue); - checkUnnamed484(o.jarFileUris); + checkUnnamed486(o.jarFileUris); checkLoggingConfig(o.loggingConfig); - checkUnnamed485(o.properties); + checkUnnamed487(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed486(o.scriptVariables); + checkUnnamed488(o.scriptVariables); } buildCounterPigJob--; } -buildUnnamed487() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed487(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed488() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed488(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - buildUnnamed489() { var o = new core.List<core.String>(); o.add("foo"); @@ -1369,16 +1230,16 @@ } buildUnnamed491() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); return o; } -checkUnnamed491(core.Map<core.String, core.String> o) { +checkUnnamed491(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } buildUnnamed492() { @@ -1394,19 +1255,45 @@ unittest.expect(o[1], unittest.equals('foo')); } +buildUnnamed493() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed493(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +buildUnnamed494() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed494(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterPySparkJob = 0; buildPySparkJob() { var o = new api.PySparkJob(); buildCounterPySparkJob++; if (buildCounterPySparkJob < 3) { - o.archiveUris = buildUnnamed487(); - o.args = buildUnnamed488(); - o.fileUris = buildUnnamed489(); - o.jarFileUris = buildUnnamed490(); + o.archiveUris = buildUnnamed489(); + o.args = buildUnnamed490(); + o.fileUris = buildUnnamed491(); + o.jarFileUris = buildUnnamed492(); o.loggingConfig = buildLoggingConfig(); o.mainPythonFileUri = "foo"; - o.properties = buildUnnamed491(); - o.pythonFileUris = buildUnnamed492(); + o.properties = buildUnnamed493(); + o.pythonFileUris = buildUnnamed494(); } buildCounterPySparkJob--; return o; @@ -1415,84 +1302,18 @@ checkPySparkJob(api.PySparkJob o) { buildCounterPySparkJob++; if (buildCounterPySparkJob < 3) { - checkUnnamed487(o.archiveUris); - checkUnnamed488(o.args); - checkUnnamed489(o.fileUris); - checkUnnamed490(o.jarFileUris); + checkUnnamed489(o.archiveUris); + checkUnnamed490(o.args); + checkUnnamed491(o.fileUris); + checkUnnamed492(o.jarFileUris); checkLoggingConfig(o.loggingConfig); unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); - checkUnnamed491(o.properties); - checkUnnamed492(o.pythonFileUris); + checkUnnamed493(o.properties); + checkUnnamed494(o.pythonFileUris); } buildCounterPySparkJob--; } -buildUnnamed493() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed493(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterQueryList = 0; -buildQueryList() { - var o = new api.QueryList(); - buildCounterQueryList++; - if (buildCounterQueryList < 3) { - o.queries = buildUnnamed493(); - } - buildCounterQueryList--; - return o; -} - -checkQueryList(api.QueryList o) { - buildCounterQueryList++; - if (buildCounterQueryList < 3) { - checkUnnamed493(o.queries); - } - buildCounterQueryList--; -} - -buildUnnamed494() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed494(core.Map<core.String, core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - -core.int buildCounterSoftwareConfig = 0; -buildSoftwareConfig() { - var o = new api.SoftwareConfig(); - buildCounterSoftwareConfig++; - if (buildCounterSoftwareConfig < 3) { - o.imageVersion = "foo"; - o.properties = buildUnnamed494(); - } - buildCounterSoftwareConfig--; - return o; -} - -checkSoftwareConfig(api.SoftwareConfig o) { - buildCounterSoftwareConfig++; - if (buildCounterSoftwareConfig < 3) { - unittest.expect(o.imageVersion, unittest.equals('foo')); - checkUnnamed494(o.properties); - } - buildCounterSoftwareConfig--; -} - buildUnnamed495() { var o = new core.List<core.String>(); o.add("foo"); @@ -1506,17 +1327,57 @@ unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed496() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); +core.int buildCounterQueryList = 0; +buildQueryList() { + var o = new api.QueryList(); + buildCounterQueryList++; + if (buildCounterQueryList < 3) { + o.queries = buildUnnamed495(); + } + buildCounterQueryList--; return o; } -checkUnnamed496(core.List<core.String> o) { +checkQueryList(api.QueryList o) { + buildCounterQueryList++; + if (buildCounterQueryList < 3) { + checkUnnamed495(o.queries); + } + buildCounterQueryList--; +} + +buildUnnamed496() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed496(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +core.int buildCounterSoftwareConfig = 0; +buildSoftwareConfig() { + var o = new api.SoftwareConfig(); + buildCounterSoftwareConfig++; + if (buildCounterSoftwareConfig < 3) { + o.imageVersion = "foo"; + o.properties = buildUnnamed496(); + } + buildCounterSoftwareConfig--; + return o; +} + +checkSoftwareConfig(api.SoftwareConfig o) { + buildCounterSoftwareConfig++; + if (buildCounterSoftwareConfig < 3) { + unittest.expect(o.imageVersion, unittest.equals('foo')); + checkUnnamed496(o.properties); + } + buildCounterSoftwareConfig--; } buildUnnamed497() { @@ -1546,49 +1407,16 @@ } buildUnnamed499() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); return o; } -checkUnnamed499(core.Map<core.String, core.String> o) { +checkUnnamed499(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - -core.int buildCounterSparkJob = 0; -buildSparkJob() { - var o = new api.SparkJob(); - buildCounterSparkJob++; - if (buildCounterSparkJob < 3) { - o.archiveUris = buildUnnamed495(); - o.args = buildUnnamed496(); - o.fileUris = buildUnnamed497(); - o.jarFileUris = buildUnnamed498(); - o.loggingConfig = buildLoggingConfig(); - o.mainClass = "foo"; - o.mainJarFileUri = "foo"; - o.properties = buildUnnamed499(); - } - buildCounterSparkJob--; - return o; -} - -checkSparkJob(api.SparkJob o) { - buildCounterSparkJob++; - if (buildCounterSparkJob < 3) { - checkUnnamed495(o.archiveUris); - checkUnnamed496(o.args); - checkUnnamed497(o.fileUris); - checkUnnamed498(o.jarFileUris); - checkLoggingConfig(o.loggingConfig); - unittest.expect(o.mainClass, unittest.equals('foo')); - unittest.expect(o.mainJarFileUri, unittest.equals('foo')); - checkUnnamed499(o.properties); - } - buildCounterSparkJob--; + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } buildUnnamed500() { @@ -1617,14 +1445,73 @@ unittest.expect(o["y"], unittest.equals('foo')); } +core.int buildCounterSparkJob = 0; +buildSparkJob() { + var o = new api.SparkJob(); + buildCounterSparkJob++; + if (buildCounterSparkJob < 3) { + o.archiveUris = buildUnnamed497(); + o.args = buildUnnamed498(); + o.fileUris = buildUnnamed499(); + o.jarFileUris = buildUnnamed500(); + o.loggingConfig = buildLoggingConfig(); + o.mainClass = "foo"; + o.mainJarFileUri = "foo"; + o.properties = buildUnnamed501(); + } + buildCounterSparkJob--; + return o; +} + +checkSparkJob(api.SparkJob o) { + buildCounterSparkJob++; + if (buildCounterSparkJob < 3) { + checkUnnamed497(o.archiveUris); + checkUnnamed498(o.args); + checkUnnamed499(o.fileUris); + checkUnnamed500(o.jarFileUris); + checkLoggingConfig(o.loggingConfig); + unittest.expect(o.mainClass, unittest.equals('foo')); + unittest.expect(o.mainJarFileUri, unittest.equals('foo')); + checkUnnamed501(o.properties); + } + buildCounterSparkJob--; +} + buildUnnamed502() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed502(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed503() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed502(core.Map<core.String, core.String> o) { +checkUnnamed503(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +buildUnnamed504() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed504(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1635,12 +1522,12 @@ var o = new api.SparkSqlJob(); buildCounterSparkSqlJob++; if (buildCounterSparkSqlJob < 3) { - o.jarFileUris = buildUnnamed500(); + o.jarFileUris = buildUnnamed502(); o.loggingConfig = buildLoggingConfig(); - o.properties = buildUnnamed501(); + o.properties = buildUnnamed503(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed502(); + o.scriptVariables = buildUnnamed504(); } buildCounterSparkSqlJob--; return o; @@ -1649,40 +1536,40 @@ checkSparkSqlJob(api.SparkSqlJob o) { buildCounterSparkSqlJob++; if (buildCounterSparkSqlJob < 3) { - checkUnnamed500(o.jarFileUris); + checkUnnamed502(o.jarFileUris); checkLoggingConfig(o.loggingConfig); - checkUnnamed501(o.properties); + checkUnnamed503(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed502(o.scriptVariables); + checkUnnamed504(o.scriptVariables); } buildCounterSparkSqlJob--; } -buildUnnamed503() { +buildUnnamed505() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed503(core.Map<core.String, core.Object> o) { +checkUnnamed505(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed504() { +buildUnnamed506() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed503()); - o.add(buildUnnamed503()); + o.add(buildUnnamed505()); + o.add(buildUnnamed505()); return o; } -checkUnnamed504(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed506(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed503(o[0]); - checkUnnamed503(o[1]); + checkUnnamed505(o[0]); + checkUnnamed505(o[1]); } core.int buildCounterStatus = 0; @@ -1691,7 +1578,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed504(); + o.details = buildUnnamed506(); o.message = "foo"; } buildCounterStatus--; @@ -1702,7 +1589,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed504(o.details); + checkUnnamed506(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1826,15 +1713,6 @@ }); - unittest.group("obj-schema-DiagnoseClusterOutputLocation", () { - unittest.test("to-json--from-json", () { - var o = buildDiagnoseClusterOutputLocation(); - var od = new api.DiagnoseClusterOutputLocation.fromJson(o.toJson()); - checkDiagnoseClusterOutputLocation(od); - }); - }); - - unittest.group("obj-schema-DiagnoseClusterRequest", () { unittest.test("to-json--from-json", () { var o = buildDiagnoseClusterRequest(); @@ -2015,24 +1893,6 @@ }); - unittest.group("obj-schema-OperationMetadata", () { - unittest.test("to-json--from-json", () { - var o = buildOperationMetadata(); - var od = new api.OperationMetadata.fromJson(o.toJson()); - checkOperationMetadata(od); - }); - }); - - - unittest.group("obj-schema-OperationStatus", () { - unittest.test("to-json--from-json", () { - var o = buildOperationStatus(); - var od = new api.OperationStatus.fromJson(o.toJson()); - checkOperationStatus(od); - }); - }); - - unittest.group("obj-schema-PigJob", () { unittest.test("to-json--from-json", () { var o = buildPigJob(); @@ -2122,7 +1982,7 @@ var arg_request = buildCluster(); var arg_projectId = "foo"; var arg_region = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Cluster.fromJson(json); checkCluster(obj); @@ -2173,7 +2033,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_projectId, arg_region).then(unittest.expectAsync(((api.Operation response) { + res.create(arg_request, arg_projectId, arg_region).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2185,7 +2045,7 @@ var arg_projectId = "foo"; var arg_region = "foo"; var arg_clusterName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2236,7 +2096,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_projectId, arg_region, arg_clusterName).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_projectId, arg_region, arg_clusterName).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2249,7 +2109,7 @@ var arg_projectId = "foo"; var arg_region = "foo"; var arg_clusterName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DiagnoseClusterRequest.fromJson(json); checkDiagnoseClusterRequest(obj); @@ -2307,7 +2167,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.diagnose(arg_request, arg_projectId, arg_region, arg_clusterName).then(unittest.expectAsync(((api.Operation response) { + res.diagnose(arg_request, arg_projectId, arg_region, arg_clusterName).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2319,7 +2179,7 @@ var arg_projectId = "foo"; var arg_region = "foo"; var arg_clusterName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2370,7 +2230,7 @@ var resp = convert.JSON.encode(buildCluster()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_projectId, arg_region, arg_clusterName).then(unittest.expectAsync(((api.Cluster response) { + res.get(arg_projectId, arg_region, arg_clusterName).then(unittest.expectAsync1(((api.Cluster response) { checkCluster(response); }))); }); @@ -2381,10 +2241,10 @@ api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).projects.regions.clusters; var arg_projectId = "foo"; var arg_region = "foo"; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2424,9 +2284,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); var h = { @@ -2435,7 +2295,7 @@ var resp = convert.JSON.encode(buildListClustersResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, arg_region, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListClustersResponse response) { + res.list(arg_projectId, arg_region, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListClustersResponse response) { checkListClustersResponse(response); }))); }); @@ -2449,7 +2309,7 @@ var arg_region = "foo"; var arg_clusterName = "foo"; var arg_updateMask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Cluster.fromJson(json); checkCluster(obj); @@ -2504,7 +2364,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_projectId, arg_region, arg_clusterName, updateMask: arg_updateMask).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_projectId, arg_region, arg_clusterName, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2521,7 +2381,7 @@ var arg_projectId = "foo"; var arg_region = "foo"; var arg_jobId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CancelJobRequest.fromJson(json); checkCancelJobRequest(obj); @@ -2579,7 +2439,7 @@ var resp = convert.JSON.encode(buildJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.cancel(arg_request, arg_projectId, arg_region, arg_jobId).then(unittest.expectAsync(((api.Job response) { + res.cancel(arg_request, arg_projectId, arg_region, arg_jobId).then(unittest.expectAsync1(((api.Job response) { checkJob(response); }))); }); @@ -2591,7 +2451,7 @@ var arg_projectId = "foo"; var arg_region = "foo"; var arg_jobId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2642,7 +2502,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_projectId, arg_region, arg_jobId).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_projectId, arg_region, arg_jobId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -2654,7 +2514,7 @@ var arg_projectId = "foo"; var arg_region = "foo"; var arg_jobId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2705,7 +2565,7 @@ var resp = convert.JSON.encode(buildJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_projectId, arg_region, arg_jobId).then(unittest.expectAsync(((api.Job response) { + res.get(arg_projectId, arg_region, arg_jobId).then(unittest.expectAsync1(((api.Job response) { checkJob(response); }))); }); @@ -2721,7 +2581,7 @@ var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_clusterName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2774,7 +2634,7 @@ var resp = convert.JSON.encode(buildListJobsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, arg_region, filter: arg_filter, jobStateMatcher: arg_jobStateMatcher, pageToken: arg_pageToken, pageSize: arg_pageSize, clusterName: arg_clusterName).then(unittest.expectAsync(((api.ListJobsResponse response) { + res.list(arg_projectId, arg_region, filter: arg_filter, jobStateMatcher: arg_jobStateMatcher, pageToken: arg_pageToken, pageSize: arg_pageSize, clusterName: arg_clusterName).then(unittest.expectAsync1(((api.ListJobsResponse response) { checkListJobsResponse(response); }))); }); @@ -2788,7 +2648,7 @@ var arg_region = "foo"; var arg_jobId = "foo"; var arg_updateMask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Job.fromJson(json); checkJob(obj); @@ -2843,7 +2703,7 @@ var resp = convert.JSON.encode(buildJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_projectId, arg_region, arg_jobId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.Job response) { + res.patch(arg_request, arg_projectId, arg_region, arg_jobId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Job response) { checkJob(response); }))); }); @@ -2855,7 +2715,7 @@ var arg_request = buildSubmitJobRequest(); var arg_projectId = "foo"; var arg_region = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SubmitJobRequest.fromJson(json); checkSubmitJobRequest(obj); @@ -2906,7 +2766,7 @@ var resp = convert.JSON.encode(buildJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.submit(arg_request, arg_projectId, arg_region).then(unittest.expectAsync(((api.Job response) { + res.submit(arg_request, arg_projectId, arg_region).then(unittest.expectAsync1(((api.Job response) { checkJob(response); }))); }); @@ -2920,7 +2780,7 @@ var mock = new HttpServerMock(); api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).projects.regions.operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2955,7 +2815,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.cancel(arg_name).then(unittest.expectAsync(((api.Empty response) { + res.cancel(arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -2965,7 +2825,7 @@ var mock = new HttpServerMock(); api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).projects.regions.operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3000,7 +2860,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -3010,7 +2870,7 @@ var mock = new HttpServerMock(); api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).projects.regions.operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3045,7 +2905,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3055,10 +2915,10 @@ var mock = new HttpServerMock(); api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).projects.regions.operations; var arg_name = "foo"; + var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_filter = "foo"; - var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3085,9 +2945,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -3096,7 +2956,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response) { + res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); });
diff --git a/generated/googleapis/test/datastore/v1_test.dart b/generated/googleapis/test/datastore/v1_test.dart index 7750291..211ca7d 100644 --- a/generated/googleapis/test/datastore/v1_test.dart +++ b/generated/googleapis/test/datastore/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/datastore/v1.dart' as api; @@ -46,19 +46,19 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed573() { +buildUnnamed575() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed573(core.List<api.Key> o) { +checkUnnamed575(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); @@ -69,7 +69,7 @@ var o = new api.AllocateIdsRequest(); buildCounterAllocateIdsRequest++; if (buildCounterAllocateIdsRequest < 3) { - o.keys = buildUnnamed573(); + o.keys = buildUnnamed575(); } buildCounterAllocateIdsRequest--; return o; @@ -78,19 +78,19 @@ checkAllocateIdsRequest(api.AllocateIdsRequest o) { buildCounterAllocateIdsRequest++; if (buildCounterAllocateIdsRequest < 3) { - checkUnnamed573(o.keys); + checkUnnamed575(o.keys); } buildCounterAllocateIdsRequest--; } -buildUnnamed574() { +buildUnnamed576() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed574(core.List<api.Key> o) { +checkUnnamed576(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); @@ -101,7 +101,7 @@ var o = new api.AllocateIdsResponse(); buildCounterAllocateIdsResponse++; if (buildCounterAllocateIdsResponse < 3) { - o.keys = buildUnnamed574(); + o.keys = buildUnnamed576(); } buildCounterAllocateIdsResponse--; return o; @@ -110,19 +110,19 @@ checkAllocateIdsResponse(api.AllocateIdsResponse o) { buildCounterAllocateIdsResponse++; if (buildCounterAllocateIdsResponse < 3) { - checkUnnamed574(o.keys); + checkUnnamed576(o.keys); } buildCounterAllocateIdsResponse--; } -buildUnnamed575() { +buildUnnamed577() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed575(core.List<api.Value> o) { +checkUnnamed577(core.List<api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o[0]); checkValue(o[1]); @@ -133,7 +133,7 @@ var o = new api.ArrayValue(); buildCounterArrayValue++; if (buildCounterArrayValue < 3) { - o.values = buildUnnamed575(); + o.values = buildUnnamed577(); } buildCounterArrayValue--; return o; @@ -142,7 +142,7 @@ checkArrayValue(api.ArrayValue o) { buildCounterArrayValue++; if (buildCounterArrayValue < 3) { - checkUnnamed575(o.values); + checkUnnamed577(o.values); } buildCounterArrayValue--; } @@ -183,14 +183,14 @@ buildCounterBeginTransactionResponse--; } -buildUnnamed576() { +buildUnnamed578() { var o = new core.List<api.Mutation>(); o.add(buildMutation()); o.add(buildMutation()); return o; } -checkUnnamed576(core.List<api.Mutation> o) { +checkUnnamed578(core.List<api.Mutation> o) { unittest.expect(o, unittest.hasLength(2)); checkMutation(o[0]); checkMutation(o[1]); @@ -202,7 +202,7 @@ buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { o.mode = "foo"; - o.mutations = buildUnnamed576(); + o.mutations = buildUnnamed578(); o.transaction = "foo"; } buildCounterCommitRequest--; @@ -213,20 +213,20 @@ buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { unittest.expect(o.mode, unittest.equals('foo')); - checkUnnamed576(o.mutations); + checkUnnamed578(o.mutations); unittest.expect(o.transaction, unittest.equals('foo')); } buildCounterCommitRequest--; } -buildUnnamed577() { +buildUnnamed579() { var o = new core.List<api.MutationResult>(); o.add(buildMutationResult()); o.add(buildMutationResult()); return o; } -checkUnnamed577(core.List<api.MutationResult> o) { +checkUnnamed579(core.List<api.MutationResult> o) { unittest.expect(o, unittest.hasLength(2)); checkMutationResult(o[0]); checkMutationResult(o[1]); @@ -238,7 +238,7 @@ buildCounterCommitResponse++; if (buildCounterCommitResponse < 3) { o.indexUpdates = 42; - o.mutationResults = buildUnnamed577(); + o.mutationResults = buildUnnamed579(); } buildCounterCommitResponse--; return o; @@ -248,19 +248,19 @@ buildCounterCommitResponse++; if (buildCounterCommitResponse < 3) { unittest.expect(o.indexUpdates, unittest.equals(42)); - checkUnnamed577(o.mutationResults); + checkUnnamed579(o.mutationResults); } buildCounterCommitResponse--; } -buildUnnamed578() { +buildUnnamed580() { var o = new core.List<api.Filter>(); o.add(buildFilter()); o.add(buildFilter()); return o; } -checkUnnamed578(core.List<api.Filter> o) { +checkUnnamed580(core.List<api.Filter> o) { unittest.expect(o, unittest.hasLength(2)); checkFilter(o[0]); checkFilter(o[1]); @@ -271,7 +271,7 @@ var o = new api.CompositeFilter(); buildCounterCompositeFilter++; if (buildCounterCompositeFilter < 3) { - o.filters = buildUnnamed578(); + o.filters = buildUnnamed580(); o.op = "foo"; } buildCounterCompositeFilter--; @@ -281,20 +281,20 @@ checkCompositeFilter(api.CompositeFilter o) { buildCounterCompositeFilter++; if (buildCounterCompositeFilter < 3) { - checkUnnamed578(o.filters); + checkUnnamed580(o.filters); unittest.expect(o.op, unittest.equals('foo')); } buildCounterCompositeFilter--; } -buildUnnamed579() { +buildUnnamed581() { var o = new core.Map<core.String, api.Value>(); o["x"] = buildValue(); o["y"] = buildValue(); return o; } -checkUnnamed579(core.Map<core.String, api.Value> o) { +checkUnnamed581(core.Map<core.String, api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o["x"]); checkValue(o["y"]); @@ -306,7 +306,7 @@ buildCounterEntity++; if (buildCounterEntity < 3) { o.key = buildKey(); - o.properties = buildUnnamed579(); + o.properties = buildUnnamed581(); } buildCounterEntity--; return o; @@ -316,7 +316,7 @@ buildCounterEntity++; if (buildCounterEntity < 3) { checkKey(o.key); - checkUnnamed579(o.properties); + checkUnnamed581(o.properties); } buildCounterEntity--; } @@ -365,27 +365,27 @@ buildCounterFilter--; } -buildUnnamed580() { +buildUnnamed582() { var o = new core.Map<core.String, api.GqlQueryParameter>(); o["x"] = buildGqlQueryParameter(); o["y"] = buildGqlQueryParameter(); return o; } -checkUnnamed580(core.Map<core.String, api.GqlQueryParameter> o) { +checkUnnamed582(core.Map<core.String, api.GqlQueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkGqlQueryParameter(o["x"]); checkGqlQueryParameter(o["y"]); } -buildUnnamed581() { +buildUnnamed583() { var o = new core.List<api.GqlQueryParameter>(); o.add(buildGqlQueryParameter()); o.add(buildGqlQueryParameter()); return o; } -checkUnnamed581(core.List<api.GqlQueryParameter> o) { +checkUnnamed583(core.List<api.GqlQueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkGqlQueryParameter(o[0]); checkGqlQueryParameter(o[1]); @@ -397,8 +397,8 @@ buildCounterGqlQuery++; if (buildCounterGqlQuery < 3) { o.allowLiterals = true; - o.namedBindings = buildUnnamed580(); - o.positionalBindings = buildUnnamed581(); + o.namedBindings = buildUnnamed582(); + o.positionalBindings = buildUnnamed583(); o.queryString = "foo"; } buildCounterGqlQuery--; @@ -409,8 +409,8 @@ buildCounterGqlQuery++; if (buildCounterGqlQuery < 3) { unittest.expect(o.allowLiterals, unittest.isTrue); - checkUnnamed580(o.namedBindings); - checkUnnamed581(o.positionalBindings); + checkUnnamed582(o.namedBindings); + checkUnnamed583(o.positionalBindings); unittest.expect(o.queryString, unittest.equals('foo')); } buildCounterGqlQuery--; @@ -437,14 +437,14 @@ buildCounterGqlQueryParameter--; } -buildUnnamed582() { +buildUnnamed584() { var o = new core.List<api.PathElement>(); o.add(buildPathElement()); o.add(buildPathElement()); return o; } -checkUnnamed582(core.List<api.PathElement> o) { +checkUnnamed584(core.List<api.PathElement> o) { unittest.expect(o, unittest.hasLength(2)); checkPathElement(o[0]); checkPathElement(o[1]); @@ -456,7 +456,7 @@ buildCounterKey++; if (buildCounterKey < 3) { o.partitionId = buildPartitionId(); - o.path = buildUnnamed582(); + o.path = buildUnnamed584(); } buildCounterKey--; return o; @@ -466,7 +466,7 @@ buildCounterKey++; if (buildCounterKey < 3) { checkPartitionId(o.partitionId); - checkUnnamed582(o.path); + checkUnnamed584(o.path); } buildCounterKey--; } @@ -511,14 +511,14 @@ buildCounterLatLng--; } -buildUnnamed583() { +buildUnnamed585() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed583(core.List<api.Key> o) { +checkUnnamed585(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); @@ -529,7 +529,7 @@ var o = new api.LookupRequest(); buildCounterLookupRequest++; if (buildCounterLookupRequest < 3) { - o.keys = buildUnnamed583(); + o.keys = buildUnnamed585(); o.readOptions = buildReadOptions(); } buildCounterLookupRequest--; @@ -539,46 +539,46 @@ checkLookupRequest(api.LookupRequest o) { buildCounterLookupRequest++; if (buildCounterLookupRequest < 3) { - checkUnnamed583(o.keys); + checkUnnamed585(o.keys); checkReadOptions(o.readOptions); } buildCounterLookupRequest--; } -buildUnnamed584() { +buildUnnamed586() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed584(core.List<api.Key> o) { +checkUnnamed586(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); } -buildUnnamed585() { +buildUnnamed587() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed585(core.List<api.EntityResult> o) { +checkUnnamed587(core.List<api.EntityResult> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityResult(o[0]); checkEntityResult(o[1]); } -buildUnnamed586() { +buildUnnamed588() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed586(core.List<api.EntityResult> o) { +checkUnnamed588(core.List<api.EntityResult> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityResult(o[0]); checkEntityResult(o[1]); @@ -589,9 +589,9 @@ var o = new api.LookupResponse(); buildCounterLookupResponse++; if (buildCounterLookupResponse < 3) { - o.deferred = buildUnnamed584(); - o.found = buildUnnamed585(); - o.missing = buildUnnamed586(); + o.deferred = buildUnnamed586(); + o.found = buildUnnamed587(); + o.missing = buildUnnamed588(); } buildCounterLookupResponse--; return o; @@ -600,9 +600,9 @@ checkLookupResponse(api.LookupResponse o) { buildCounterLookupResponse++; if (buildCounterLookupResponse < 3) { - checkUnnamed584(o.deferred); - checkUnnamed585(o.found); - checkUnnamed586(o.missing); + checkUnnamed586(o.deferred); + checkUnnamed587(o.found); + checkUnnamed588(o.missing); } buildCounterLookupResponse--; } @@ -783,53 +783,53 @@ buildCounterPropertyReference--; } -buildUnnamed587() { +buildUnnamed589() { var o = new core.List<api.PropertyReference>(); o.add(buildPropertyReference()); o.add(buildPropertyReference()); return o; } -checkUnnamed587(core.List<api.PropertyReference> o) { +checkUnnamed589(core.List<api.PropertyReference> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyReference(o[0]); checkPropertyReference(o[1]); } -buildUnnamed588() { +buildUnnamed590() { var o = new core.List<api.KindExpression>(); o.add(buildKindExpression()); o.add(buildKindExpression()); return o; } -checkUnnamed588(core.List<api.KindExpression> o) { +checkUnnamed590(core.List<api.KindExpression> o) { unittest.expect(o, unittest.hasLength(2)); checkKindExpression(o[0]); checkKindExpression(o[1]); } -buildUnnamed589() { +buildUnnamed591() { var o = new core.List<api.PropertyOrder>(); o.add(buildPropertyOrder()); o.add(buildPropertyOrder()); return o; } -checkUnnamed589(core.List<api.PropertyOrder> o) { +checkUnnamed591(core.List<api.PropertyOrder> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyOrder(o[0]); checkPropertyOrder(o[1]); } -buildUnnamed590() { +buildUnnamed592() { var o = new core.List<api.Projection>(); o.add(buildProjection()); o.add(buildProjection()); return o; } -checkUnnamed590(core.List<api.Projection> o) { +checkUnnamed592(core.List<api.Projection> o) { unittest.expect(o, unittest.hasLength(2)); checkProjection(o[0]); checkProjection(o[1]); @@ -840,14 +840,14 @@ var o = new api.Query(); buildCounterQuery++; if (buildCounterQuery < 3) { - o.distinctOn = buildUnnamed587(); + o.distinctOn = buildUnnamed589(); o.endCursor = "foo"; o.filter = buildFilter(); - o.kind = buildUnnamed588(); + o.kind = buildUnnamed590(); o.limit = 42; o.offset = 42; - o.order = buildUnnamed589(); - o.projection = buildUnnamed590(); + o.order = buildUnnamed591(); + o.projection = buildUnnamed592(); o.startCursor = "foo"; } buildCounterQuery--; @@ -857,27 +857,27 @@ checkQuery(api.Query o) { buildCounterQuery++; if (buildCounterQuery < 3) { - checkUnnamed587(o.distinctOn); + checkUnnamed589(o.distinctOn); unittest.expect(o.endCursor, unittest.equals('foo')); checkFilter(o.filter); - checkUnnamed588(o.kind); + checkUnnamed590(o.kind); unittest.expect(o.limit, unittest.equals(42)); unittest.expect(o.offset, unittest.equals(42)); - checkUnnamed589(o.order); - checkUnnamed590(o.projection); + checkUnnamed591(o.order); + checkUnnamed592(o.projection); unittest.expect(o.startCursor, unittest.equals('foo')); } buildCounterQuery--; } -buildUnnamed591() { +buildUnnamed593() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed591(core.List<api.EntityResult> o) { +checkUnnamed593(core.List<api.EntityResult> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityResult(o[0]); checkEntityResult(o[1]); @@ -890,7 +890,7 @@ if (buildCounterQueryResultBatch < 3) { o.endCursor = "foo"; o.entityResultType = "foo"; - o.entityResults = buildUnnamed591(); + o.entityResults = buildUnnamed593(); o.moreResults = "foo"; o.skippedCursor = "foo"; o.skippedResults = 42; @@ -905,7 +905,7 @@ if (buildCounterQueryResultBatch < 3) { unittest.expect(o.endCursor, unittest.equals('foo')); unittest.expect(o.entityResultType, unittest.equals('foo')); - checkUnnamed591(o.entityResults); + checkUnnamed593(o.entityResults); unittest.expect(o.moreResults, unittest.equals('foo')); unittest.expect(o.skippedCursor, unittest.equals('foo')); unittest.expect(o.skippedResults, unittest.equals(42)); @@ -1375,7 +1375,7 @@ api.ProjectsResourceApi res = new api.DatastoreApi(mock).projects; var arg_request = buildAllocateIdsRequest(); var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AllocateIdsRequest.fromJson(json); checkAllocateIdsRequest(obj); @@ -1419,7 +1419,7 @@ var resp = convert.JSON.encode(buildAllocateIdsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.allocateIds(arg_request, arg_projectId).then(unittest.expectAsync(((api.AllocateIdsResponse response) { + res.allocateIds(arg_request, arg_projectId).then(unittest.expectAsync1(((api.AllocateIdsResponse response) { checkAllocateIdsResponse(response); }))); }); @@ -1430,7 +1430,7 @@ api.ProjectsResourceApi res = new api.DatastoreApi(mock).projects; var arg_request = buildBeginTransactionRequest(); var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.BeginTransactionRequest.fromJson(json); checkBeginTransactionRequest(obj); @@ -1474,7 +1474,7 @@ var resp = convert.JSON.encode(buildBeginTransactionResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.beginTransaction(arg_request, arg_projectId).then(unittest.expectAsync(((api.BeginTransactionResponse response) { + res.beginTransaction(arg_request, arg_projectId).then(unittest.expectAsync1(((api.BeginTransactionResponse response) { checkBeginTransactionResponse(response); }))); }); @@ -1485,7 +1485,7 @@ api.ProjectsResourceApi res = new api.DatastoreApi(mock).projects; var arg_request = buildCommitRequest(); var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CommitRequest.fromJson(json); checkCommitRequest(obj); @@ -1529,7 +1529,7 @@ var resp = convert.JSON.encode(buildCommitResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.commit(arg_request, arg_projectId).then(unittest.expectAsync(((api.CommitResponse response) { + res.commit(arg_request, arg_projectId).then(unittest.expectAsync1(((api.CommitResponse response) { checkCommitResponse(response); }))); }); @@ -1540,7 +1540,7 @@ api.ProjectsResourceApi res = new api.DatastoreApi(mock).projects; var arg_request = buildLookupRequest(); var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LookupRequest.fromJson(json); checkLookupRequest(obj); @@ -1584,7 +1584,7 @@ var resp = convert.JSON.encode(buildLookupResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.lookup(arg_request, arg_projectId).then(unittest.expectAsync(((api.LookupResponse response) { + res.lookup(arg_request, arg_projectId).then(unittest.expectAsync1(((api.LookupResponse response) { checkLookupResponse(response); }))); }); @@ -1595,7 +1595,7 @@ api.ProjectsResourceApi res = new api.DatastoreApi(mock).projects; var arg_request = buildRollbackRequest(); var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RollbackRequest.fromJson(json); checkRollbackRequest(obj); @@ -1639,7 +1639,7 @@ var resp = convert.JSON.encode(buildRollbackResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.rollback(arg_request, arg_projectId).then(unittest.expectAsync(((api.RollbackResponse response) { + res.rollback(arg_request, arg_projectId).then(unittest.expectAsync1(((api.RollbackResponse response) { checkRollbackResponse(response); }))); }); @@ -1650,7 +1650,7 @@ api.ProjectsResourceApi res = new api.DatastoreApi(mock).projects; var arg_request = buildRunQueryRequest(); var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RunQueryRequest.fromJson(json); checkRunQueryRequest(obj); @@ -1694,7 +1694,7 @@ var resp = convert.JSON.encode(buildRunQueryResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.runQuery(arg_request, arg_projectId).then(unittest.expectAsync(((api.RunQueryResponse response) { + res.runQuery(arg_request, arg_projectId).then(unittest.expectAsync1(((api.RunQueryResponse response) { checkRunQueryResponse(response); }))); });
diff --git a/generated/googleapis/test/deploymentmanager/v2_test.dart b/generated/googleapis/test/deploymentmanager/v2_test.dart index 57ecf8d..c14c8d7 100644 --- a/generated/googleapis/test/deploymentmanager/v2_test.dart +++ b/generated/googleapis/test/deploymentmanager/v2_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/deploymentmanager/v2.dart' as api; @@ -46,32 +46,32 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2045() { +buildUnnamed2056() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed2045(core.List<api.AuditLogConfig> o) { +checkUnnamed2056(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); } -buildUnnamed2046() { +buildUnnamed2057() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2046(core.List<core.String> o) { +checkUnnamed2057(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -82,8 +82,8 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed2045(); - o.exemptedMembers = buildUnnamed2046(); + o.auditLogConfigs = buildUnnamed2056(); + o.exemptedMembers = buildUnnamed2057(); o.service = "foo"; } buildCounterAuditConfig--; @@ -93,21 +93,21 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed2045(o.auditLogConfigs); - checkUnnamed2046(o.exemptedMembers); + checkUnnamed2056(o.auditLogConfigs); + checkUnnamed2057(o.exemptedMembers); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed2047() { +buildUnnamed2058() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2047(core.List<core.String> o) { +checkUnnamed2058(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -118,7 +118,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed2047(); + o.exemptedMembers = buildUnnamed2058(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -128,20 +128,20 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed2047(o.exemptedMembers); + checkUnnamed2058(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed2048() { +buildUnnamed2059() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2048(core.List<core.String> o) { +checkUnnamed2059(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -152,7 +152,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed2048(); + o.members = buildUnnamed2059(); o.role = "foo"; } buildCounterBinding--; @@ -162,20 +162,20 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed2048(o.members); + checkUnnamed2059(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -buildUnnamed2049() { +buildUnnamed2060() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2049(core.List<core.String> o) { +checkUnnamed2060(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -191,7 +191,7 @@ o.svc = "foo"; o.sys = "foo"; o.value = "foo"; - o.values = buildUnnamed2049(); + o.values = buildUnnamed2060(); } buildCounterCondition--; return o; @@ -205,7 +205,7 @@ unittest.expect(o.svc, unittest.equals('foo')); unittest.expect(o.sys, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); - checkUnnamed2049(o.values); + checkUnnamed2060(o.values); } buildCounterCondition--; } @@ -229,14 +229,14 @@ buildCounterConfigFile--; } -buildUnnamed2050() { +buildUnnamed2061() { var o = new core.List<api.DeploymentLabelEntry>(); o.add(buildDeploymentLabelEntry()); o.add(buildDeploymentLabelEntry()); return o; } -checkUnnamed2050(core.List<api.DeploymentLabelEntry> o) { +checkUnnamed2061(core.List<api.DeploymentLabelEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDeploymentLabelEntry(o[0]); checkDeploymentLabelEntry(o[1]); @@ -251,7 +251,7 @@ o.fingerprint = "foo"; o.id = "foo"; o.insertTime = "foo"; - o.labels = buildUnnamed2050(); + o.labels = buildUnnamed2061(); o.manifest = "foo"; o.name = "foo"; o.operation = buildOperation(); @@ -270,7 +270,7 @@ unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.insertTime, unittest.equals('foo')); - checkUnnamed2050(o.labels); + checkUnnamed2061(o.labels); unittest.expect(o.manifest, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkOperation(o.operation); @@ -302,14 +302,14 @@ buildCounterDeploymentLabelEntry--; } -buildUnnamed2051() { +buildUnnamed2062() { var o = new core.List<api.DeploymentUpdateLabelEntry>(); o.add(buildDeploymentUpdateLabelEntry()); o.add(buildDeploymentUpdateLabelEntry()); return o; } -checkUnnamed2051(core.List<api.DeploymentUpdateLabelEntry> o) { +checkUnnamed2062(core.List<api.DeploymentUpdateLabelEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDeploymentUpdateLabelEntry(o[0]); checkDeploymentUpdateLabelEntry(o[1]); @@ -321,7 +321,7 @@ buildCounterDeploymentUpdate++; if (buildCounterDeploymentUpdate < 3) { o.description = "foo"; - o.labels = buildUnnamed2051(); + o.labels = buildUnnamed2062(); o.manifest = "foo"; } buildCounterDeploymentUpdate--; @@ -332,7 +332,7 @@ buildCounterDeploymentUpdate++; if (buildCounterDeploymentUpdate < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2051(o.labels); + checkUnnamed2062(o.labels); unittest.expect(o.manifest, unittest.equals('foo')); } buildCounterDeploymentUpdate--; @@ -378,14 +378,14 @@ buildCounterDeploymentsCancelPreviewRequest--; } -buildUnnamed2052() { +buildUnnamed2063() { var o = new core.List<api.Deployment>(); o.add(buildDeployment()); o.add(buildDeployment()); return o; } -checkUnnamed2052(core.List<api.Deployment> o) { +checkUnnamed2063(core.List<api.Deployment> o) { unittest.expect(o, unittest.hasLength(2)); checkDeployment(o[0]); checkDeployment(o[1]); @@ -396,7 +396,7 @@ var o = new api.DeploymentsListResponse(); buildCounterDeploymentsListResponse++; if (buildCounterDeploymentsListResponse < 3) { - o.deployments = buildUnnamed2052(); + o.deployments = buildUnnamed2063(); o.nextPageToken = "foo"; } buildCounterDeploymentsListResponse--; @@ -406,7 +406,7 @@ checkDeploymentsListResponse(api.DeploymentsListResponse o) { buildCounterDeploymentsListResponse++; if (buildCounterDeploymentsListResponse < 3) { - checkUnnamed2052(o.deployments); + checkUnnamed2063(o.deployments); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDeploymentsListResponse--; @@ -492,14 +492,14 @@ buildCounterLogConfigCounterOptions--; } -buildUnnamed2053() { +buildUnnamed2064() { var o = new core.List<api.ImportFile>(); o.add(buildImportFile()); o.add(buildImportFile()); return o; } -checkUnnamed2053(core.List<api.ImportFile> o) { +checkUnnamed2064(core.List<api.ImportFile> o) { unittest.expect(o, unittest.hasLength(2)); checkImportFile(o[0]); checkImportFile(o[1]); @@ -513,7 +513,7 @@ o.config = buildConfigFile(); o.expandedConfig = "foo"; o.id = "foo"; - o.imports = buildUnnamed2053(); + o.imports = buildUnnamed2064(); o.insertTime = "foo"; o.layout = "foo"; o.name = "foo"; @@ -529,7 +529,7 @@ checkConfigFile(o.config); unittest.expect(o.expandedConfig, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2053(o.imports); + checkUnnamed2064(o.imports); unittest.expect(o.insertTime, unittest.equals('foo')); unittest.expect(o.layout, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -538,14 +538,14 @@ buildCounterManifest--; } -buildUnnamed2054() { +buildUnnamed2065() { var o = new core.List<api.Manifest>(); o.add(buildManifest()); o.add(buildManifest()); return o; } -checkUnnamed2054(core.List<api.Manifest> o) { +checkUnnamed2065(core.List<api.Manifest> o) { unittest.expect(o, unittest.hasLength(2)); checkManifest(o[0]); checkManifest(o[1]); @@ -556,7 +556,7 @@ var o = new api.ManifestsListResponse(); buildCounterManifestsListResponse++; if (buildCounterManifestsListResponse < 3) { - o.manifests = buildUnnamed2054(); + o.manifests = buildUnnamed2065(); o.nextPageToken = "foo"; } buildCounterManifestsListResponse--; @@ -566,7 +566,7 @@ checkManifestsListResponse(api.ManifestsListResponse o) { buildCounterManifestsListResponse++; if (buildCounterManifestsListResponse < 3) { - checkUnnamed2054(o.manifests); + checkUnnamed2065(o.manifests); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterManifestsListResponse--; @@ -595,14 +595,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed2055() { +buildUnnamed2066() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed2055(core.List<api.OperationErrorErrors> o) { +checkUnnamed2066(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -613,7 +613,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed2055(); + o.errors = buildUnnamed2066(); } buildCounterOperationError--; return o; @@ -622,7 +622,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed2055(o.errors); + checkUnnamed2066(o.errors); } buildCounterOperationError--; } @@ -648,14 +648,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed2056() { +buildUnnamed2067() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed2056(core.List<api.OperationWarningsData> o) { +checkUnnamed2067(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -667,7 +667,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2056(); + o.data = buildUnnamed2067(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -678,20 +678,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2056(o.data); + checkUnnamed2067(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed2057() { +buildUnnamed2068() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed2057(core.List<api.OperationWarnings> o) { +checkUnnamed2068(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -723,7 +723,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed2057(); + o.warnings = buildUnnamed2068(); o.zone = "foo"; } buildCounterOperation--; @@ -754,20 +754,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed2057(o.warnings); + checkUnnamed2068(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed2058() { +buildUnnamed2069() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2058(core.List<api.Operation> o) { +checkUnnamed2069(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -779,7 +779,7 @@ buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed2058(); + o.operations = buildUnnamed2069(); } buildCounterOperationsListResponse--; return o; @@ -789,45 +789,45 @@ buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2058(o.operations); + checkUnnamed2069(o.operations); } buildCounterOperationsListResponse--; } -buildUnnamed2059() { +buildUnnamed2070() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed2059(core.List<api.AuditConfig> o) { +checkUnnamed2070(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed2060() { +buildUnnamed2071() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed2060(core.List<api.Binding> o) { +checkUnnamed2071(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); } -buildUnnamed2061() { +buildUnnamed2072() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed2061(core.List<api.Rule> o) { +checkUnnamed2072(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); @@ -838,11 +838,11 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed2059(); - o.bindings = buildUnnamed2060(); + o.auditConfigs = buildUnnamed2070(); + o.bindings = buildUnnamed2071(); o.etag = "foo"; o.iamOwned = true; - o.rules = buildUnnamed2061(); + o.rules = buildUnnamed2072(); o.version = 42; } buildCounterPolicy--; @@ -852,11 +852,11 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed2059(o.auditConfigs); - checkUnnamed2060(o.bindings); + checkUnnamed2070(o.auditConfigs); + checkUnnamed2071(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.iamOwned, unittest.isTrue); - checkUnnamed2061(o.rules); + checkUnnamed2072(o.rules); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; @@ -883,14 +883,14 @@ buildCounterResourceWarningsData--; } -buildUnnamed2062() { +buildUnnamed2073() { var o = new core.List<api.ResourceWarningsData>(); o.add(buildResourceWarningsData()); o.add(buildResourceWarningsData()); return o; } -checkUnnamed2062(core.List<api.ResourceWarningsData> o) { +checkUnnamed2073(core.List<api.ResourceWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceWarningsData(o[0]); checkResourceWarningsData(o[1]); @@ -902,7 +902,7 @@ buildCounterResourceWarnings++; if (buildCounterResourceWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2062(); + o.data = buildUnnamed2073(); o.message = "foo"; } buildCounterResourceWarnings--; @@ -913,20 +913,20 @@ buildCounterResourceWarnings++; if (buildCounterResourceWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2062(o.data); + checkUnnamed2073(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterResourceWarnings--; } -buildUnnamed2063() { +buildUnnamed2074() { var o = new core.List<api.ResourceWarnings>(); o.add(buildResourceWarnings()); o.add(buildResourceWarnings()); return o; } -checkUnnamed2063(core.List<api.ResourceWarnings> o) { +checkUnnamed2074(core.List<api.ResourceWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceWarnings(o[0]); checkResourceWarnings(o[1]); @@ -948,7 +948,7 @@ o.update = buildResourceUpdate(); o.updateTime = "foo"; o.url = "foo"; - o.warnings = buildUnnamed2063(); + o.warnings = buildUnnamed2074(); } buildCounterResource--; return o; @@ -968,7 +968,7 @@ checkResourceUpdate(o.update); unittest.expect(o.updateTime, unittest.equals('foo')); unittest.expect(o.url, unittest.equals('foo')); - checkUnnamed2063(o.warnings); + checkUnnamed2074(o.warnings); } buildCounterResource--; } @@ -1015,14 +1015,14 @@ buildCounterResourceUpdateErrorErrors--; } -buildUnnamed2064() { +buildUnnamed2075() { var o = new core.List<api.ResourceUpdateErrorErrors>(); o.add(buildResourceUpdateErrorErrors()); o.add(buildResourceUpdateErrorErrors()); return o; } -checkUnnamed2064(core.List<api.ResourceUpdateErrorErrors> o) { +checkUnnamed2075(core.List<api.ResourceUpdateErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceUpdateErrorErrors(o[0]); checkResourceUpdateErrorErrors(o[1]); @@ -1033,7 +1033,7 @@ var o = new api.ResourceUpdateError(); buildCounterResourceUpdateError++; if (buildCounterResourceUpdateError < 3) { - o.errors = buildUnnamed2064(); + o.errors = buildUnnamed2075(); } buildCounterResourceUpdateError--; return o; @@ -1042,7 +1042,7 @@ checkResourceUpdateError(api.ResourceUpdateError o) { buildCounterResourceUpdateError++; if (buildCounterResourceUpdateError < 3) { - checkUnnamed2064(o.errors); + checkUnnamed2075(o.errors); } buildCounterResourceUpdateError--; } @@ -1068,14 +1068,14 @@ buildCounterResourceUpdateWarningsData--; } -buildUnnamed2065() { +buildUnnamed2076() { var o = new core.List<api.ResourceUpdateWarningsData>(); o.add(buildResourceUpdateWarningsData()); o.add(buildResourceUpdateWarningsData()); return o; } -checkUnnamed2065(core.List<api.ResourceUpdateWarningsData> o) { +checkUnnamed2076(core.List<api.ResourceUpdateWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceUpdateWarningsData(o[0]); checkResourceUpdateWarningsData(o[1]); @@ -1087,7 +1087,7 @@ buildCounterResourceUpdateWarnings++; if (buildCounterResourceUpdateWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2065(); + o.data = buildUnnamed2076(); o.message = "foo"; } buildCounterResourceUpdateWarnings--; @@ -1098,20 +1098,20 @@ buildCounterResourceUpdateWarnings++; if (buildCounterResourceUpdateWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2065(o.data); + checkUnnamed2076(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterResourceUpdateWarnings--; } -buildUnnamed2066() { +buildUnnamed2077() { var o = new core.List<api.ResourceUpdateWarnings>(); o.add(buildResourceUpdateWarnings()); o.add(buildResourceUpdateWarnings()); return o; } -checkUnnamed2066(core.List<api.ResourceUpdateWarnings> o) { +checkUnnamed2077(core.List<api.ResourceUpdateWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceUpdateWarnings(o[0]); checkResourceUpdateWarnings(o[1]); @@ -1129,7 +1129,7 @@ o.manifest = "foo"; o.properties = "foo"; o.state = "foo"; - o.warnings = buildUnnamed2066(); + o.warnings = buildUnnamed2077(); } buildCounterResourceUpdate--; return o; @@ -1145,19 +1145,19 @@ unittest.expect(o.manifest, unittest.equals('foo')); unittest.expect(o.properties, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); - checkUnnamed2066(o.warnings); + checkUnnamed2077(o.warnings); } buildCounterResourceUpdate--; } -buildUnnamed2067() { +buildUnnamed2078() { var o = new core.List<api.Resource>(); o.add(buildResource()); o.add(buildResource()); return o; } -checkUnnamed2067(core.List<api.Resource> o) { +checkUnnamed2078(core.List<api.Resource> o) { unittest.expect(o, unittest.hasLength(2)); checkResource(o[0]); checkResource(o[1]); @@ -1169,7 +1169,7 @@ buildCounterResourcesListResponse++; if (buildCounterResourcesListResponse < 3) { o.nextPageToken = "foo"; - o.resources = buildUnnamed2067(); + o.resources = buildUnnamed2078(); } buildCounterResourcesListResponse--; return o; @@ -1179,71 +1179,71 @@ buildCounterResourcesListResponse++; if (buildCounterResourcesListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2067(o.resources); + checkUnnamed2078(o.resources); } buildCounterResourcesListResponse--; } -buildUnnamed2068() { +buildUnnamed2079() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed2068(core.List<api.Condition> o) { +checkUnnamed2079(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed2069() { +buildUnnamed2080() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2069(core.List<core.String> o) { +checkUnnamed2080(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2070() { +buildUnnamed2081() { var o = new core.List<api.LogConfig>(); o.add(buildLogConfig()); o.add(buildLogConfig()); return o; } -checkUnnamed2070(core.List<api.LogConfig> o) { +checkUnnamed2081(core.List<api.LogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkLogConfig(o[0]); checkLogConfig(o[1]); } -buildUnnamed2071() { +buildUnnamed2082() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2071(core.List<core.String> o) { +checkUnnamed2082(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2072() { +buildUnnamed2083() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2072(core.List<core.String> o) { +checkUnnamed2083(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1255,12 +1255,12 @@ buildCounterRule++; if (buildCounterRule < 3) { o.action = "foo"; - o.conditions = buildUnnamed2068(); + o.conditions = buildUnnamed2079(); o.description = "foo"; - o.ins = buildUnnamed2069(); - o.logConfigs = buildUnnamed2070(); - o.notIns = buildUnnamed2071(); - o.permissions = buildUnnamed2072(); + o.ins = buildUnnamed2080(); + o.logConfigs = buildUnnamed2081(); + o.notIns = buildUnnamed2082(); + o.permissions = buildUnnamed2083(); } buildCounterRule--; return o; @@ -1270,24 +1270,24 @@ buildCounterRule++; if (buildCounterRule < 3) { unittest.expect(o.action, unittest.equals('foo')); - checkUnnamed2068(o.conditions); + checkUnnamed2079(o.conditions); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2069(o.ins); - checkUnnamed2070(o.logConfigs); - checkUnnamed2071(o.notIns); - checkUnnamed2072(o.permissions); + checkUnnamed2080(o.ins); + checkUnnamed2081(o.logConfigs); + checkUnnamed2082(o.notIns); + checkUnnamed2083(o.permissions); } buildCounterRule--; } -buildUnnamed2073() { +buildUnnamed2084() { var o = new core.List<api.ImportFile>(); o.add(buildImportFile()); o.add(buildImportFile()); return o; } -checkUnnamed2073(core.List<api.ImportFile> o) { +checkUnnamed2084(core.List<api.ImportFile> o) { unittest.expect(o, unittest.hasLength(2)); checkImportFile(o[0]); checkImportFile(o[1]); @@ -1299,7 +1299,7 @@ buildCounterTargetConfiguration++; if (buildCounterTargetConfiguration < 3) { o.config = buildConfigFile(); - o.imports = buildUnnamed2073(); + o.imports = buildUnnamed2084(); } buildCounterTargetConfiguration--; return o; @@ -1309,19 +1309,19 @@ buildCounterTargetConfiguration++; if (buildCounterTargetConfiguration < 3) { checkConfigFile(o.config); - checkUnnamed2073(o.imports); + checkUnnamed2084(o.imports); } buildCounterTargetConfiguration--; } -buildUnnamed2074() { +buildUnnamed2085() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2074(core.List<core.String> o) { +checkUnnamed2085(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1332,7 +1332,7 @@ var o = new api.TestPermissionsRequest(); buildCounterTestPermissionsRequest++; if (buildCounterTestPermissionsRequest < 3) { - o.permissions = buildUnnamed2074(); + o.permissions = buildUnnamed2085(); } buildCounterTestPermissionsRequest--; return o; @@ -1341,19 +1341,19 @@ checkTestPermissionsRequest(api.TestPermissionsRequest o) { buildCounterTestPermissionsRequest++; if (buildCounterTestPermissionsRequest < 3) { - checkUnnamed2074(o.permissions); + checkUnnamed2085(o.permissions); } buildCounterTestPermissionsRequest--; } -buildUnnamed2075() { +buildUnnamed2086() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2075(core.List<core.String> o) { +checkUnnamed2086(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1364,7 +1364,7 @@ var o = new api.TestPermissionsResponse(); buildCounterTestPermissionsResponse++; if (buildCounterTestPermissionsResponse < 3) { - o.permissions = buildUnnamed2075(); + o.permissions = buildUnnamed2086(); } buildCounterTestPermissionsResponse--; return o; @@ -1373,7 +1373,7 @@ checkTestPermissionsResponse(api.TestPermissionsResponse o) { buildCounterTestPermissionsResponse++; if (buildCounterTestPermissionsResponse < 3) { - checkUnnamed2075(o.permissions); + checkUnnamed2086(o.permissions); } buildCounterTestPermissionsResponse--; } @@ -1405,14 +1405,14 @@ buildCounterType--; } -buildUnnamed2076() { +buildUnnamed2087() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed2076(core.List<api.Type> o) { +checkUnnamed2087(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); @@ -1424,7 +1424,7 @@ buildCounterTypesListResponse++; if (buildCounterTypesListResponse < 3) { o.nextPageToken = "foo"; - o.types = buildUnnamed2076(); + o.types = buildUnnamed2087(); } buildCounterTypesListResponse--; return o; @@ -1434,7 +1434,7 @@ buildCounterTypesListResponse++; if (buildCounterTypesListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2076(o.types); + checkUnnamed2087(o.types); } buildCounterTypesListResponse--; } @@ -1809,7 +1809,7 @@ var arg_request = buildDeploymentsCancelPreviewRequest(); var arg_project = "foo"; var arg_deployment = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DeploymentsCancelPreviewRequest.fromJson(json); checkDeploymentsCancelPreviewRequest(obj); @@ -1844,7 +1844,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.cancelPreview(arg_request, arg_project, arg_deployment).then(unittest.expectAsync(((api.Operation response) { + res.cancelPreview(arg_request, arg_project, arg_deployment).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1856,7 +1856,7 @@ var arg_project = "foo"; var arg_deployment = "foo"; var arg_deletePolicy = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1889,7 +1889,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_deployment, deletePolicy: arg_deletePolicy).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_deployment, deletePolicy: arg_deletePolicy).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1900,7 +1900,7 @@ api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deployments; var arg_project = "foo"; var arg_deployment = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1932,7 +1932,7 @@ var resp = convert.JSON.encode(buildDeployment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_deployment).then(unittest.expectAsync(((api.Deployment response) { + res.get(arg_project, arg_deployment).then(unittest.expectAsync1(((api.Deployment response) { checkDeployment(response); }))); }); @@ -1943,7 +1943,7 @@ api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deployments; var arg_project = "foo"; var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1975,7 +1975,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getIamPolicy(arg_project, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.getIamPolicy(arg_project, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -1987,7 +1987,7 @@ var arg_request = buildDeployment(); var arg_project = "foo"; var arg_preview = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Deployment.fromJson(json); checkDeployment(obj); @@ -2023,7 +2023,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, preview: arg_preview).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project, preview: arg_preview).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2037,7 +2037,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2073,7 +2073,7 @@ var resp = convert.JSON.encode(buildDeploymentsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DeploymentsListResponse response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.DeploymentsListResponse response) { checkDeploymentsListResponse(response); }))); }); @@ -2088,7 +2088,7 @@ var arg_createPolicy = "foo"; var arg_deletePolicy = "foo"; var arg_preview = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Deployment.fromJson(json); checkDeployment(obj); @@ -2126,7 +2126,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_project, arg_deployment, createPolicy: arg_createPolicy, deletePolicy: arg_deletePolicy, preview: arg_preview).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_project, arg_deployment, createPolicy: arg_createPolicy, deletePolicy: arg_deletePolicy, preview: arg_preview).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2138,7 +2138,7 @@ var arg_request = buildPolicy(); var arg_project = "foo"; var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Policy.fromJson(json); checkPolicy(obj); @@ -2173,7 +2173,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setIamPolicy(arg_request, arg_project, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.setIamPolicy(arg_request, arg_project, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -2185,7 +2185,7 @@ var arg_request = buildDeploymentsStopRequest(); var arg_project = "foo"; var arg_deployment = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DeploymentsStopRequest.fromJson(json); checkDeploymentsStopRequest(obj); @@ -2220,7 +2220,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.stop(arg_request, arg_project, arg_deployment).then(unittest.expectAsync(((api.Operation response) { + res.stop(arg_request, arg_project, arg_deployment).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2232,7 +2232,7 @@ var arg_request = buildTestPermissionsRequest(); var arg_project = "foo"; var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TestPermissionsRequest.fromJson(json); checkTestPermissionsRequest(obj); @@ -2267,7 +2267,7 @@ var resp = convert.JSON.encode(buildTestPermissionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.testIamPermissions(arg_request, arg_project, arg_resource).then(unittest.expectAsync(((api.TestPermissionsResponse response) { + res.testIamPermissions(arg_request, arg_project, arg_resource).then(unittest.expectAsync1(((api.TestPermissionsResponse response) { checkTestPermissionsResponse(response); }))); }); @@ -2282,7 +2282,7 @@ var arg_createPolicy = "foo"; var arg_deletePolicy = "foo"; var arg_preview = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Deployment.fromJson(json); checkDeployment(obj); @@ -2320,7 +2320,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_project, arg_deployment, createPolicy: arg_createPolicy, deletePolicy: arg_deletePolicy, preview: arg_preview).then(unittest.expectAsync(((api.Operation response) { + res.update(arg_request, arg_project, arg_deployment, createPolicy: arg_createPolicy, deletePolicy: arg_deletePolicy, preview: arg_preview).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2336,7 +2336,7 @@ var arg_project = "foo"; var arg_deployment = "foo"; var arg_manifest = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2368,7 +2368,7 @@ var resp = convert.JSON.encode(buildManifest()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_deployment, arg_manifest).then(unittest.expectAsync(((api.Manifest response) { + res.get(arg_project, arg_deployment, arg_manifest).then(unittest.expectAsync1(((api.Manifest response) { checkManifest(response); }))); }); @@ -2383,7 +2383,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2419,7 +2419,7 @@ var resp = convert.JSON.encode(buildManifestsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_deployment, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ManifestsListResponse response) { + res.list(arg_project, arg_deployment, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ManifestsListResponse response) { checkManifestsListResponse(response); }))); }); @@ -2434,7 +2434,7 @@ api.OperationsResourceApi res = new api.DeploymentmanagerApi(mock).operations; var arg_project = "foo"; var arg_operation = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2466,7 +2466,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_operation).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_project, arg_operation).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2480,7 +2480,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2516,7 +2516,7 @@ var resp = convert.JSON.encode(buildOperationsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationsListResponse response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.OperationsListResponse response) { checkOperationsListResponse(response); }))); }); @@ -2532,7 +2532,7 @@ var arg_project = "foo"; var arg_deployment = "foo"; var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2564,7 +2564,7 @@ var resp = convert.JSON.encode(buildResource()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_deployment, arg_resource).then(unittest.expectAsync(((api.Resource response) { + res.get(arg_project, arg_deployment, arg_resource).then(unittest.expectAsync1(((api.Resource response) { checkResource(response); }))); }); @@ -2579,7 +2579,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2615,7 +2615,7 @@ var resp = convert.JSON.encode(buildResourcesListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_deployment, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ResourcesListResponse response) { + res.list(arg_project, arg_deployment, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ResourcesListResponse response) { checkResourcesListResponse(response); }))); }); @@ -2633,7 +2633,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2669,7 +2669,7 @@ var resp = convert.JSON.encode(buildTypesListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TypesListResponse response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.TypesListResponse response) { checkTypesListResponse(response); }))); });
diff --git a/generated/googleapis/test/discovery/v1_test.dart b/generated/googleapis/test/discovery/v1_test.dart index b6dcc86..f0ba505 100644 --- a/generated/googleapis/test/discovery/v1_test.dart +++ b/generated/googleapis/test/discovery/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/discovery/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -72,14 +72,14 @@ buildCounterDirectoryListItemsIcons--; } -buildUnnamed253() { +buildUnnamed255() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed253(core.List<core.String> o) { +checkUnnamed255(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -97,7 +97,7 @@ o.icons = buildDirectoryListItemsIcons(); o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed253(); + o.labels = buildUnnamed255(); o.name = "foo"; o.preferred = true; o.title = "foo"; @@ -117,7 +117,7 @@ checkDirectoryListItemsIcons(o.icons); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed253(o.labels); + checkUnnamed255(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.preferred, unittest.isTrue); unittest.expect(o.title, unittest.equals('foo')); @@ -126,14 +126,14 @@ buildCounterDirectoryListItems--; } -buildUnnamed254() { +buildUnnamed256() { var o = new core.List<api.DirectoryListItems>(); o.add(buildDirectoryListItems()); o.add(buildDirectoryListItems()); return o; } -checkUnnamed254(core.List<api.DirectoryListItems> o) { +checkUnnamed256(core.List<api.DirectoryListItems> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectoryListItems(o[0]); checkDirectoryListItems(o[1]); @@ -145,7 +145,7 @@ buildCounterDirectoryList++; if (buildCounterDirectoryList < 3) { o.discoveryVersion = "foo"; - o.items = buildUnnamed254(); + o.items = buildUnnamed256(); o.kind = "foo"; } buildCounterDirectoryList--; @@ -156,57 +156,12 @@ buildCounterDirectoryList++; if (buildCounterDirectoryList < 3) { unittest.expect(o.discoveryVersion, unittest.equals('foo')); - checkUnnamed254(o.items); + checkUnnamed256(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDirectoryList--; } -buildUnnamed255() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed255(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterJsonSchemaAnnotations = 0; -buildJsonSchemaAnnotations() { - var o = new api.JsonSchemaAnnotations(); - buildCounterJsonSchemaAnnotations++; - if (buildCounterJsonSchemaAnnotations < 3) { - o.required = buildUnnamed255(); - } - buildCounterJsonSchemaAnnotations--; - return o; -} - -checkJsonSchemaAnnotations(api.JsonSchemaAnnotations o) { - buildCounterJsonSchemaAnnotations++; - if (buildCounterJsonSchemaAnnotations < 3) { - checkUnnamed255(o.required); - } - buildCounterJsonSchemaAnnotations--; -} - -buildUnnamed256() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed256(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - buildUnnamed257() { var o = new core.List<core.String>(); o.add("foo"); @@ -220,14 +175,59 @@ unittest.expect(o[1], unittest.equals('foo')); } +core.int buildCounterJsonSchemaAnnotations = 0; +buildJsonSchemaAnnotations() { + var o = new api.JsonSchemaAnnotations(); + buildCounterJsonSchemaAnnotations++; + if (buildCounterJsonSchemaAnnotations < 3) { + o.required = buildUnnamed257(); + } + buildCounterJsonSchemaAnnotations--; + return o; +} + +checkJsonSchemaAnnotations(api.JsonSchemaAnnotations o) { + buildCounterJsonSchemaAnnotations++; + if (buildCounterJsonSchemaAnnotations < 3) { + checkUnnamed257(o.required); + } + buildCounterJsonSchemaAnnotations--; +} + buildUnnamed258() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed258(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed259() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed259(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed260() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed258(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed260(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); @@ -254,14 +254,14 @@ buildCounterJsonSchemaVariantMap--; } -buildUnnamed259() { +buildUnnamed261() { var o = new core.List<api.JsonSchemaVariantMap>(); o.add(buildJsonSchemaVariantMap()); o.add(buildJsonSchemaVariantMap()); return o; } -checkUnnamed259(core.List<api.JsonSchemaVariantMap> o) { +checkUnnamed261(core.List<api.JsonSchemaVariantMap> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchemaVariantMap(o[0]); checkJsonSchemaVariantMap(o[1]); @@ -273,7 +273,7 @@ buildCounterJsonSchemaVariant++; if (buildCounterJsonSchemaVariant < 3) { o.discriminant = "foo"; - o.map = buildUnnamed259(); + o.map = buildUnnamed261(); } buildCounterJsonSchemaVariant--; return o; @@ -283,7 +283,7 @@ buildCounterJsonSchemaVariant++; if (buildCounterJsonSchemaVariant < 3) { unittest.expect(o.discriminant, unittest.equals('foo')); - checkUnnamed259(o.map); + checkUnnamed261(o.map); } buildCounterJsonSchemaVariant--; } @@ -298,8 +298,8 @@ o.annotations = buildJsonSchemaAnnotations(); o.default_ = "foo"; o.description = "foo"; - o.enum_ = buildUnnamed256(); - o.enumDescriptions = buildUnnamed257(); + o.enum_ = buildUnnamed258(); + o.enumDescriptions = buildUnnamed259(); o.format = "foo"; o.id = "foo"; o.items = buildJsonSchema(); @@ -307,7 +307,7 @@ o.maximum = "foo"; o.minimum = "foo"; o.pattern = "foo"; - o.properties = buildUnnamed258(); + o.properties = buildUnnamed260(); o.readOnly = true; o.repeated = true; o.required = true; @@ -326,8 +326,8 @@ checkJsonSchemaAnnotations(o.annotations); unittest.expect(o.default_, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed256(o.enum_); - checkUnnamed257(o.enumDescriptions); + checkUnnamed258(o.enum_); + checkUnnamed259(o.enumDescriptions); unittest.expect(o.format, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkJsonSchema(o.items); @@ -335,7 +335,7 @@ unittest.expect(o.maximum, unittest.equals('foo')); unittest.expect(o.minimum, unittest.equals('foo')); unittest.expect(o.pattern, unittest.equals('foo')); - checkUnnamed258(o.properties); + checkUnnamed260(o.properties); unittest.expect(o.readOnly, unittest.isTrue); unittest.expect(o.repeated, unittest.isTrue); unittest.expect(o.required, unittest.isTrue); @@ -364,14 +364,14 @@ buildCounterRestDescriptionAuthOauth2ScopesValue--; } -buildUnnamed260() { +buildUnnamed262() { var o = new core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue>(); o["x"] = buildRestDescriptionAuthOauth2ScopesValue(); o["y"] = buildRestDescriptionAuthOauth2ScopesValue(); return o; } -checkUnnamed260(core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue> o) { +checkUnnamed262(core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue> o) { unittest.expect(o, unittest.hasLength(2)); checkRestDescriptionAuthOauth2ScopesValue(o["x"]); checkRestDescriptionAuthOauth2ScopesValue(o["y"]); @@ -382,7 +382,7 @@ var o = new api.RestDescriptionAuthOauth2(); buildCounterRestDescriptionAuthOauth2++; if (buildCounterRestDescriptionAuthOauth2 < 3) { - o.scopes = buildUnnamed260(); + o.scopes = buildUnnamed262(); } buildCounterRestDescriptionAuthOauth2--; return o; @@ -391,7 +391,7 @@ checkRestDescriptionAuthOauth2(api.RestDescriptionAuthOauth2 o) { buildCounterRestDescriptionAuthOauth2++; if (buildCounterRestDescriptionAuthOauth2 < 3) { - checkUnnamed260(o.scopes); + checkUnnamed262(o.scopes); } buildCounterRestDescriptionAuthOauth2--; } @@ -415,14 +415,14 @@ buildCounterRestDescriptionAuth--; } -buildUnnamed261() { +buildUnnamed263() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed261(core.List<core.String> o) { +checkUnnamed263(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -449,58 +449,32 @@ buildCounterRestDescriptionIcons--; } -buildUnnamed262() { +buildUnnamed264() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed262(core.List<core.String> o) { +checkUnnamed264(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed263() { +buildUnnamed265() { var o = new core.Map<core.String, api.RestMethod>(); o["x"] = buildRestMethod(); o["y"] = buildRestMethod(); return o; } -checkUnnamed263(core.Map<core.String, api.RestMethod> o) { +checkUnnamed265(core.Map<core.String, api.RestMethod> o) { unittest.expect(o, unittest.hasLength(2)); checkRestMethod(o["x"]); checkRestMethod(o["y"]); } -buildUnnamed264() { - var o = new core.Map<core.String, api.JsonSchema>(); - o["x"] = buildJsonSchema(); - o["y"] = buildJsonSchema(); - return o; -} - -checkUnnamed264(core.Map<core.String, api.JsonSchema> o) { - unittest.expect(o, unittest.hasLength(2)); - checkJsonSchema(o["x"]); - checkJsonSchema(o["y"]); -} - -buildUnnamed265() { - var o = new core.Map<core.String, api.RestResource>(); - o["x"] = buildRestResource(); - o["y"] = buildRestResource(); - return o; -} - -checkUnnamed265(core.Map<core.String, api.RestResource> o) { - unittest.expect(o, unittest.hasLength(2)); - checkRestResource(o["x"]); - checkRestResource(o["y"]); -} - buildUnnamed266() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); @@ -514,6 +488,32 @@ checkJsonSchema(o["y"]); } +buildUnnamed267() { + var o = new core.Map<core.String, api.RestResource>(); + o["x"] = buildRestResource(); + o["y"] = buildRestResource(); + return o; +} + +checkUnnamed267(core.Map<core.String, api.RestResource> o) { + unittest.expect(o, unittest.hasLength(2)); + checkRestResource(o["x"]); + checkRestResource(o["y"]); +} + +buildUnnamed268() { + var o = new core.Map<core.String, api.JsonSchema>(); + o["x"] = buildJsonSchema(); + o["y"] = buildJsonSchema(); + return o; +} + +checkUnnamed268(core.Map<core.String, api.JsonSchema> o) { + unittest.expect(o, unittest.hasLength(2)); + checkJsonSchema(o["x"]); + checkJsonSchema(o["y"]); +} + core.int buildCounterRestDescription = 0; buildRestDescription() { var o = new api.RestDescription(); @@ -529,22 +529,22 @@ o.documentationLink = "foo"; o.etag = "foo"; o.exponentialBackoffDefault = true; - o.features = buildUnnamed261(); + o.features = buildUnnamed263(); o.icons = buildRestDescriptionIcons(); o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed262(); - o.methods = buildUnnamed263(); + o.labels = buildUnnamed264(); + o.methods = buildUnnamed265(); o.name = "foo"; o.ownerDomain = "foo"; o.ownerName = "foo"; o.packagePath = "foo"; - o.parameters = buildUnnamed264(); + o.parameters = buildUnnamed266(); o.protocol = "foo"; - o.resources = buildUnnamed265(); + o.resources = buildUnnamed267(); o.revision = "foo"; o.rootUrl = "foo"; - o.schemas = buildUnnamed266(); + o.schemas = buildUnnamed268(); o.servicePath = "foo"; o.title = "foo"; o.version = "foo"; @@ -567,22 +567,22 @@ unittest.expect(o.documentationLink, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.exponentialBackoffDefault, unittest.isTrue); - checkUnnamed261(o.features); + checkUnnamed263(o.features); checkRestDescriptionIcons(o.icons); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed262(o.labels); - checkUnnamed263(o.methods); + checkUnnamed264(o.labels); + checkUnnamed265(o.methods); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.ownerDomain, unittest.equals('foo')); unittest.expect(o.ownerName, unittest.equals('foo')); unittest.expect(o.packagePath, unittest.equals('foo')); - checkUnnamed264(o.parameters); + checkUnnamed266(o.parameters); unittest.expect(o.protocol, unittest.equals('foo')); - checkUnnamed265(o.resources); + checkUnnamed267(o.resources); unittest.expect(o.revision, unittest.equals('foo')); unittest.expect(o.rootUrl, unittest.equals('foo')); - checkUnnamed266(o.schemas); + checkUnnamed268(o.schemas); unittest.expect(o.servicePath, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -591,14 +591,14 @@ buildCounterRestDescription--; } -buildUnnamed267() { +buildUnnamed269() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed267(core.List<core.String> o) { +checkUnnamed269(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -672,7 +672,7 @@ var o = new api.RestMethodMediaUpload(); buildCounterRestMethodMediaUpload++; if (buildCounterRestMethodMediaUpload < 3) { - o.accept = buildUnnamed267(); + o.accept = buildUnnamed269(); o.maxSize = "foo"; o.protocols = buildRestMethodMediaUploadProtocols(); } @@ -683,34 +683,34 @@ checkRestMethodMediaUpload(api.RestMethodMediaUpload o) { buildCounterRestMethodMediaUpload++; if (buildCounterRestMethodMediaUpload < 3) { - checkUnnamed267(o.accept); + checkUnnamed269(o.accept); unittest.expect(o.maxSize, unittest.equals('foo')); checkRestMethodMediaUploadProtocols(o.protocols); } buildCounterRestMethodMediaUpload--; } -buildUnnamed268() { +buildUnnamed270() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed268(core.List<core.String> o) { +checkUnnamed270(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed269() { +buildUnnamed271() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed269(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed271(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); @@ -756,14 +756,14 @@ buildCounterRestMethodResponse--; } -buildUnnamed270() { +buildUnnamed272() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed270(core.List<core.String> o) { +checkUnnamed272(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -779,12 +779,12 @@ o.httpMethod = "foo"; o.id = "foo"; o.mediaUpload = buildRestMethodMediaUpload(); - o.parameterOrder = buildUnnamed268(); - o.parameters = buildUnnamed269(); + o.parameterOrder = buildUnnamed270(); + o.parameters = buildUnnamed271(); o.path = "foo"; o.request = buildRestMethodRequest(); o.response = buildRestMethodResponse(); - o.scopes = buildUnnamed270(); + o.scopes = buildUnnamed272(); o.supportsMediaDownload = true; o.supportsMediaUpload = true; o.supportsSubscription = true; @@ -802,12 +802,12 @@ unittest.expect(o.httpMethod, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkRestMethodMediaUpload(o.mediaUpload); - checkUnnamed268(o.parameterOrder); - checkUnnamed269(o.parameters); + checkUnnamed270(o.parameterOrder); + checkUnnamed271(o.parameters); unittest.expect(o.path, unittest.equals('foo')); checkRestMethodRequest(o.request); checkRestMethodResponse(o.response); - checkUnnamed270(o.scopes); + checkUnnamed272(o.scopes); unittest.expect(o.supportsMediaDownload, unittest.isTrue); unittest.expect(o.supportsMediaUpload, unittest.isTrue); unittest.expect(o.supportsSubscription, unittest.isTrue); @@ -816,27 +816,27 @@ buildCounterRestMethod--; } -buildUnnamed271() { +buildUnnamed273() { var o = new core.Map<core.String, api.RestMethod>(); o["x"] = buildRestMethod(); o["y"] = buildRestMethod(); return o; } -checkUnnamed271(core.Map<core.String, api.RestMethod> o) { +checkUnnamed273(core.Map<core.String, api.RestMethod> o) { unittest.expect(o, unittest.hasLength(2)); checkRestMethod(o["x"]); checkRestMethod(o["y"]); } -buildUnnamed272() { +buildUnnamed274() { var o = new core.Map<core.String, api.RestResource>(); o["x"] = buildRestResource(); o["y"] = buildRestResource(); return o; } -checkUnnamed272(core.Map<core.String, api.RestResource> o) { +checkUnnamed274(core.Map<core.String, api.RestResource> o) { unittest.expect(o, unittest.hasLength(2)); checkRestResource(o["x"]); checkRestResource(o["y"]); @@ -847,8 +847,8 @@ var o = new api.RestResource(); buildCounterRestResource++; if (buildCounterRestResource < 3) { - o.methods = buildUnnamed271(); - o.resources = buildUnnamed272(); + o.methods = buildUnnamed273(); + o.resources = buildUnnamed274(); } buildCounterRestResource--; return o; @@ -857,8 +857,8 @@ checkRestResource(api.RestResource o) { buildCounterRestResource++; if (buildCounterRestResource < 3) { - checkUnnamed271(o.methods); - checkUnnamed272(o.resources); + checkUnnamed273(o.methods); + checkUnnamed274(o.resources); } buildCounterRestResource--; } @@ -1052,7 +1052,7 @@ api.ApisResourceApi res = new api.DiscoveryApi(mock).apis; var arg_api = "foo"; var arg_version = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1102,7 +1102,7 @@ var resp = convert.JSON.encode(buildRestDescription()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getRest(arg_api, arg_version).then(unittest.expectAsync(((api.RestDescription response) { + res.getRest(arg_api, arg_version).then(unittest.expectAsync1(((api.RestDescription response) { checkRestDescription(response); }))); }); @@ -1113,7 +1113,7 @@ api.ApisResourceApi res = new api.DiscoveryApi(mock).apis; var arg_name = "foo"; var arg_preferred = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1151,7 +1151,7 @@ var resp = convert.JSON.encode(buildDirectoryList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(name: arg_name, preferred: arg_preferred).then(unittest.expectAsync(((api.DirectoryList response) { + res.list(name: arg_name, preferred: arg_preferred).then(unittest.expectAsync1(((api.DirectoryList response) { checkDirectoryList(response); }))); });
diff --git a/generated/googleapis/test/dns/v1_test.dart b/generated/googleapis/test/dns/v1_test.dart index b325be0..35bdb06 100644 --- a/generated/googleapis/test/dns/v1_test.dart +++ b/generated/googleapis/test/dns/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/dns/v1.dart' as api; @@ -46,32 +46,32 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed717() { +buildUnnamed724() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed717(core.List<api.ResourceRecordSet> o) { +checkUnnamed724(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); } -buildUnnamed718() { +buildUnnamed725() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed718(core.List<api.ResourceRecordSet> o) { +checkUnnamed725(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); @@ -82,8 +82,8 @@ var o = new api.Change(); buildCounterChange++; if (buildCounterChange < 3) { - o.additions = buildUnnamed717(); - o.deletions = buildUnnamed718(); + o.additions = buildUnnamed724(); + o.deletions = buildUnnamed725(); o.id = "foo"; o.kind = "foo"; o.startTime = "foo"; @@ -96,8 +96,8 @@ checkChange(api.Change o) { buildCounterChange++; if (buildCounterChange < 3) { - checkUnnamed717(o.additions); - checkUnnamed718(o.deletions); + checkUnnamed724(o.additions); + checkUnnamed725(o.deletions); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.startTime, unittest.equals('foo')); @@ -106,14 +106,14 @@ buildCounterChange--; } -buildUnnamed719() { +buildUnnamed726() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed719(core.List<api.Change> o) { +checkUnnamed726(core.List<api.Change> o) { unittest.expect(o, unittest.hasLength(2)); checkChange(o[0]); checkChange(o[1]); @@ -124,7 +124,7 @@ var o = new api.ChangesListResponse(); buildCounterChangesListResponse++; if (buildCounterChangesListResponse < 3) { - o.changes = buildUnnamed719(); + o.changes = buildUnnamed726(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -135,21 +135,21 @@ checkChangesListResponse(api.ChangesListResponse o) { buildCounterChangesListResponse++; if (buildCounterChangesListResponse < 3) { - checkUnnamed719(o.changes); + checkUnnamed726(o.changes); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterChangesListResponse--; } -buildUnnamed720() { +buildUnnamed727() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed720(core.List<core.String> o) { +checkUnnamed727(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -167,7 +167,7 @@ o.kind = "foo"; o.name = "foo"; o.nameServerSet = "foo"; - o.nameServers = buildUnnamed720(); + o.nameServers = buildUnnamed727(); } buildCounterManagedZone--; return o; @@ -183,19 +183,19 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.nameServerSet, unittest.equals('foo')); - checkUnnamed720(o.nameServers); + checkUnnamed727(o.nameServers); } buildCounterManagedZone--; } -buildUnnamed721() { +buildUnnamed728() { var o = new core.List<api.ManagedZone>(); o.add(buildManagedZone()); o.add(buildManagedZone()); return o; } -checkUnnamed721(core.List<api.ManagedZone> o) { +checkUnnamed728(core.List<api.ManagedZone> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedZone(o[0]); checkManagedZone(o[1]); @@ -207,7 +207,7 @@ buildCounterManagedZonesListResponse++; if (buildCounterManagedZonesListResponse < 3) { o.kind = "foo"; - o.managedZones = buildUnnamed721(); + o.managedZones = buildUnnamed728(); o.nextPageToken = "foo"; } buildCounterManagedZonesListResponse--; @@ -218,7 +218,7 @@ buildCounterManagedZonesListResponse++; if (buildCounterManagedZonesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed721(o.managedZones); + checkUnnamed728(o.managedZones); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterManagedZonesListResponse--; @@ -280,14 +280,14 @@ buildCounterQuota--; } -buildUnnamed722() { +buildUnnamed729() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed722(core.List<core.String> o) { +checkUnnamed729(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -300,7 +300,7 @@ if (buildCounterResourceRecordSet < 3) { o.kind = "foo"; o.name = "foo"; - o.rrdatas = buildUnnamed722(); + o.rrdatas = buildUnnamed729(); o.ttl = 42; o.type = "foo"; } @@ -313,21 +313,21 @@ if (buildCounterResourceRecordSet < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed722(o.rrdatas); + checkUnnamed729(o.rrdatas); unittest.expect(o.ttl, unittest.equals(42)); unittest.expect(o.type, unittest.equals('foo')); } buildCounterResourceRecordSet--; } -buildUnnamed723() { +buildUnnamed730() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed723(core.List<api.ResourceRecordSet> o) { +checkUnnamed730(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); @@ -340,7 +340,7 @@ if (buildCounterResourceRecordSetsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.rrsets = buildUnnamed723(); + o.rrsets = buildUnnamed730(); } buildCounterResourceRecordSetsListResponse--; return o; @@ -351,7 +351,7 @@ if (buildCounterResourceRecordSetsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed723(o.rrsets); + checkUnnamed730(o.rrsets); } buildCounterResourceRecordSetsListResponse--; } @@ -438,7 +438,7 @@ var arg_request = buildChange(); var arg_project = "foo"; var arg_managedZone = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Change.fromJson(json); checkChange(obj); @@ -473,7 +473,7 @@ var resp = convert.JSON.encode(buildChange()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_project, arg_managedZone).then(unittest.expectAsync(((api.Change response) { + res.create(arg_request, arg_project, arg_managedZone).then(unittest.expectAsync1(((api.Change response) { checkChange(response); }))); }); @@ -485,7 +485,7 @@ var arg_project = "foo"; var arg_managedZone = "foo"; var arg_changeId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -517,7 +517,7 @@ var resp = convert.JSON.encode(buildChange()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_managedZone, arg_changeId).then(unittest.expectAsync(((api.Change response) { + res.get(arg_project, arg_managedZone, arg_changeId).then(unittest.expectAsync1(((api.Change response) { checkChange(response); }))); }); @@ -532,7 +532,7 @@ var arg_pageToken = "foo"; var arg_sortBy = "foo"; var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -568,7 +568,7 @@ var resp = convert.JSON.encode(buildChangesListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, pageToken: arg_pageToken, sortBy: arg_sortBy, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.ChangesListResponse response) { + res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, pageToken: arg_pageToken, sortBy: arg_sortBy, sortOrder: arg_sortOrder).then(unittest.expectAsync1(((api.ChangesListResponse response) { checkChangesListResponse(response); }))); }); @@ -583,7 +583,7 @@ api.ManagedZonesResourceApi res = new api.DnsApi(mock).managedZones; var arg_request = buildManagedZone(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ManagedZone.fromJson(json); checkManagedZone(obj); @@ -618,7 +618,7 @@ var resp = convert.JSON.encode(buildManagedZone()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_project).then(unittest.expectAsync(((api.ManagedZone response) { + res.create(arg_request, arg_project).then(unittest.expectAsync1(((api.ManagedZone response) { checkManagedZone(response); }))); }); @@ -629,7 +629,7 @@ api.ManagedZonesResourceApi res = new api.DnsApi(mock).managedZones; var arg_project = "foo"; var arg_managedZone = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -661,7 +661,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_managedZone).then(unittest.expectAsync((_) {})); + res.delete(arg_project, arg_managedZone).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -670,7 +670,7 @@ api.ManagedZonesResourceApi res = new api.DnsApi(mock).managedZones; var arg_project = "foo"; var arg_managedZone = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -702,7 +702,7 @@ var resp = convert.JSON.encode(buildManagedZone()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_managedZone).then(unittest.expectAsync(((api.ManagedZone response) { + res.get(arg_project, arg_managedZone).then(unittest.expectAsync1(((api.ManagedZone response) { checkManagedZone(response); }))); }); @@ -715,7 +715,7 @@ var arg_dnsName = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -750,7 +750,7 @@ var resp = convert.JSON.encode(buildManagedZonesListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, dnsName: arg_dnsName, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ManagedZonesListResponse response) { + res.list(arg_project, dnsName: arg_dnsName, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ManagedZonesListResponse response) { checkManagedZonesListResponse(response); }))); }); @@ -764,7 +764,7 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.DnsApi(mock).projects; var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -796,7 +796,7 @@ var resp = convert.JSON.encode(buildProject()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project).then(unittest.expectAsync(((api.Project response) { + res.get(arg_project).then(unittest.expectAsync1(((api.Project response) { checkProject(response); }))); }); @@ -815,7 +815,7 @@ var arg_name = "foo"; var arg_pageToken = "foo"; var arg_type = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -851,7 +851,7 @@ var resp = convert.JSON.encode(buildResourceRecordSetsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, name: arg_name, pageToken: arg_pageToken, type: arg_type).then(unittest.expectAsync(((api.ResourceRecordSetsListResponse response) { + res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, name: arg_name, pageToken: arg_pageToken, type: arg_type).then(unittest.expectAsync1(((api.ResourceRecordSetsListResponse response) { checkResourceRecordSetsListResponse(response); }))); });
diff --git a/generated/googleapis/test/doubleclickbidmanager/v1_test.dart b/generated/googleapis/test/doubleclickbidmanager/v1_test.dart index 568cb2d..6585d74 100644 --- a/generated/googleapis/test/doubleclickbidmanager/v1_test.dart +++ b/generated/googleapis/test/doubleclickbidmanager/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/doubleclickbidmanager/v1.dart' as api; @@ -46,19 +46,19 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1175() { +buildUnnamed1182() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1175(core.List<core.String> o) { +checkUnnamed1182(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -70,7 +70,7 @@ buildCounterDownloadLineItemsRequest++; if (buildCounterDownloadLineItemsRequest < 3) { o.fileSpec = "foo"; - o.filterIds = buildUnnamed1175(); + o.filterIds = buildUnnamed1182(); o.filterType = "foo"; o.format = "foo"; } @@ -82,7 +82,7 @@ buildCounterDownloadLineItemsRequest++; if (buildCounterDownloadLineItemsRequest < 3) { unittest.expect(o.fileSpec, unittest.equals('foo')); - checkUnnamed1175(o.filterIds); + checkUnnamed1182(o.filterIds); unittest.expect(o.filterType, unittest.equals('foo')); unittest.expect(o.format, unittest.equals('foo')); } @@ -108,27 +108,27 @@ buildCounterDownloadLineItemsResponse--; } -buildUnnamed1176() { +buildUnnamed1183() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1176(core.List<core.String> o) { +checkUnnamed1183(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1177() { +buildUnnamed1184() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1177(core.List<core.String> o) { +checkUnnamed1184(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -139,8 +139,8 @@ var o = new api.DownloadRequest(); buildCounterDownloadRequest++; if (buildCounterDownloadRequest < 3) { - o.fileTypes = buildUnnamed1176(); - o.filterIds = buildUnnamed1177(); + o.fileTypes = buildUnnamed1183(); + o.filterIds = buildUnnamed1184(); o.filterType = "foo"; o.version = "foo"; } @@ -151,8 +151,8 @@ checkDownloadRequest(api.DownloadRequest o) { buildCounterDownloadRequest++; if (buildCounterDownloadRequest < 3) { - checkUnnamed1176(o.fileTypes); - checkUnnamed1177(o.filterIds); + checkUnnamed1183(o.fileTypes); + checkUnnamed1184(o.filterIds); unittest.expect(o.filterType, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); } @@ -205,14 +205,14 @@ buildCounterFilterPair--; } -buildUnnamed1178() { +buildUnnamed1185() { var o = new core.List<api.Query>(); o.add(buildQuery()); o.add(buildQuery()); return o; } -checkUnnamed1178(core.List<api.Query> o) { +checkUnnamed1185(core.List<api.Query> o) { unittest.expect(o, unittest.hasLength(2)); checkQuery(o[0]); checkQuery(o[1]); @@ -224,7 +224,7 @@ buildCounterListQueriesResponse++; if (buildCounterListQueriesResponse < 3) { o.kind = "foo"; - o.queries = buildUnnamed1178(); + o.queries = buildUnnamed1185(); } buildCounterListQueriesResponse--; return o; @@ -234,19 +234,19 @@ buildCounterListQueriesResponse++; if (buildCounterListQueriesResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1178(o.queries); + checkUnnamed1185(o.queries); } buildCounterListQueriesResponse--; } -buildUnnamed1179() { +buildUnnamed1186() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed1179(core.List<api.Report> o) { +checkUnnamed1186(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -258,7 +258,7 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { o.kind = "foo"; - o.reports = buildUnnamed1179(); + o.reports = buildUnnamed1186(); } buildCounterListReportsResponse--; return o; @@ -268,45 +268,45 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1179(o.reports); + checkUnnamed1186(o.reports); } buildCounterListReportsResponse--; } -buildUnnamed1180() { +buildUnnamed1187() { var o = new core.List<api.FilterPair>(); o.add(buildFilterPair()); o.add(buildFilterPair()); return o; } -checkUnnamed1180(core.List<api.FilterPair> o) { +checkUnnamed1187(core.List<api.FilterPair> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterPair(o[0]); checkFilterPair(o[1]); } -buildUnnamed1181() { +buildUnnamed1188() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1181(core.List<core.String> o) { +checkUnnamed1188(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1182() { +buildUnnamed1189() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1182(core.List<core.String> o) { +checkUnnamed1189(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -317,10 +317,10 @@ var o = new api.Parameters(); buildCounterParameters++; if (buildCounterParameters < 3) { - o.filters = buildUnnamed1180(); - o.groupBys = buildUnnamed1181(); + o.filters = buildUnnamed1187(); + o.groupBys = buildUnnamed1188(); o.includeInviteData = true; - o.metrics = buildUnnamed1182(); + o.metrics = buildUnnamed1189(); o.type = "foo"; } buildCounterParameters--; @@ -330,10 +330,10 @@ checkParameters(api.Parameters o) { buildCounterParameters++; if (buildCounterParameters < 3) { - checkUnnamed1180(o.filters); - checkUnnamed1181(o.groupBys); + checkUnnamed1187(o.filters); + checkUnnamed1188(o.groupBys); unittest.expect(o.includeInviteData, unittest.isTrue); - checkUnnamed1182(o.metrics); + checkUnnamed1189(o.metrics); unittest.expect(o.type, unittest.equals('foo')); } buildCounterParameters--; @@ -372,14 +372,14 @@ buildCounterQuery--; } -buildUnnamed1183() { +buildUnnamed1190() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1183(core.List<core.String> o) { +checkUnnamed1190(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -399,7 +399,7 @@ o.reportCount = 42; o.running = true; o.sendNotification = true; - o.shareEmailAddress = buildUnnamed1183(); + o.shareEmailAddress = buildUnnamed1190(); o.title = "foo"; } buildCounterQueryMetadata--; @@ -418,7 +418,7 @@ unittest.expect(o.reportCount, unittest.equals(42)); unittest.expect(o.running, unittest.isTrue); unittest.expect(o.sendNotification, unittest.isTrue); - checkUnnamed1183(o.shareEmailAddress); + checkUnnamed1190(o.shareEmailAddress); unittest.expect(o.title, unittest.equals('foo')); } buildCounterQueryMetadata--; @@ -562,14 +562,14 @@ buildCounterReportStatus--; } -buildUnnamed1184() { +buildUnnamed1191() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1184(core.List<core.String> o) { +checkUnnamed1191(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -583,7 +583,7 @@ o.changed = true; o.entityId = "foo"; o.entityName = "foo"; - o.errors = buildUnnamed1184(); + o.errors = buildUnnamed1191(); o.persisted = true; o.rowNumber = 42; } @@ -597,7 +597,7 @@ unittest.expect(o.changed, unittest.isTrue); unittest.expect(o.entityId, unittest.equals('foo')); unittest.expect(o.entityName, unittest.equals('foo')); - checkUnnamed1184(o.errors); + checkUnnamed1191(o.errors); unittest.expect(o.persisted, unittest.isTrue); unittest.expect(o.rowNumber, unittest.equals(42)); } @@ -671,27 +671,27 @@ buildCounterUploadLineItemsResponse--; } -buildUnnamed1185() { +buildUnnamed1192() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1185(core.List<core.String> o) { +checkUnnamed1192(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1186() { +buildUnnamed1193() { var o = new core.List<api.RowStatus>(); o.add(buildRowStatus()); o.add(buildRowStatus()); return o; } -checkUnnamed1186(core.List<api.RowStatus> o) { +checkUnnamed1193(core.List<api.RowStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkRowStatus(o[0]); checkRowStatus(o[1]); @@ -702,8 +702,8 @@ var o = new api.UploadStatus(); buildCounterUploadStatus++; if (buildCounterUploadStatus < 3) { - o.errors = buildUnnamed1185(); - o.rowStatus = buildUnnamed1186(); + o.errors = buildUnnamed1192(); + o.rowStatus = buildUnnamed1193(); } buildCounterUploadStatus--; return o; @@ -712,8 +712,8 @@ checkUploadStatus(api.UploadStatus o) { buildCounterUploadStatus++; if (buildCounterUploadStatus < 3) { - checkUnnamed1185(o.errors); - checkUnnamed1186(o.rowStatus); + checkUnnamed1192(o.errors); + checkUnnamed1193(o.rowStatus); } buildCounterUploadStatus--; } @@ -915,7 +915,7 @@ var mock = new HttpServerMock(); api.LineitemsResourceApi res = new api.DoubleclickbidmanagerApi(mock).lineitems; var arg_request = buildDownloadLineItemsRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DownloadLineItemsRequest.fromJson(json); checkDownloadLineItemsRequest(obj); @@ -954,7 +954,7 @@ var resp = convert.JSON.encode(buildDownloadLineItemsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.downloadlineitems(arg_request).then(unittest.expectAsync(((api.DownloadLineItemsResponse response) { + res.downloadlineitems(arg_request).then(unittest.expectAsync1(((api.DownloadLineItemsResponse response) { checkDownloadLineItemsResponse(response); }))); }); @@ -964,7 +964,7 @@ var mock = new HttpServerMock(); api.LineitemsResourceApi res = new api.DoubleclickbidmanagerApi(mock).lineitems; var arg_request = buildUploadLineItemsRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UploadLineItemsRequest.fromJson(json); checkUploadLineItemsRequest(obj); @@ -1003,7 +1003,7 @@ var resp = convert.JSON.encode(buildUploadLineItemsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.uploadlineitems(arg_request).then(unittest.expectAsync(((api.UploadLineItemsResponse response) { + res.uploadlineitems(arg_request).then(unittest.expectAsync1(((api.UploadLineItemsResponse response) { checkUploadLineItemsResponse(response); }))); }); @@ -1017,7 +1017,7 @@ var mock = new HttpServerMock(); api.QueriesResourceApi res = new api.DoubleclickbidmanagerApi(mock).queries; var arg_request = buildQuery(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Query.fromJson(json); checkQuery(obj); @@ -1056,7 +1056,7 @@ var resp = convert.JSON.encode(buildQuery()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.createquery(arg_request).then(unittest.expectAsync(((api.Query response) { + res.createquery(arg_request).then(unittest.expectAsync1(((api.Query response) { checkQuery(response); }))); }); @@ -1066,7 +1066,7 @@ var mock = new HttpServerMock(); api.QueriesResourceApi res = new api.DoubleclickbidmanagerApi(mock).queries; var arg_queryId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1105,7 +1105,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.deletequery(arg_queryId).then(unittest.expectAsync((_) {})); + res.deletequery(arg_queryId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--getquery", () { @@ -1113,7 +1113,7 @@ var mock = new HttpServerMock(); api.QueriesResourceApi res = new api.DoubleclickbidmanagerApi(mock).queries; var arg_queryId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1152,7 +1152,7 @@ var resp = convert.JSON.encode(buildQuery()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getquery(arg_queryId).then(unittest.expectAsync(((api.Query response) { + res.getquery(arg_queryId).then(unittest.expectAsync1(((api.Query response) { checkQuery(response); }))); }); @@ -1161,7 +1161,7 @@ var mock = new HttpServerMock(); api.QueriesResourceApi res = new api.DoubleclickbidmanagerApi(mock).queries; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1197,7 +1197,7 @@ var resp = convert.JSON.encode(buildListQueriesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listqueries().then(unittest.expectAsync(((api.ListQueriesResponse response) { + res.listqueries().then(unittest.expectAsync1(((api.ListQueriesResponse response) { checkListQueriesResponse(response); }))); }); @@ -1208,7 +1208,7 @@ api.QueriesResourceApi res = new api.DoubleclickbidmanagerApi(mock).queries; var arg_request = buildRunQueryRequest(); var arg_queryId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RunQueryRequest.fromJson(json); checkRunQueryRequest(obj); @@ -1250,7 +1250,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.runquery(arg_request, arg_queryId).then(unittest.expectAsync((_) {})); + res.runquery(arg_request, arg_queryId).then(unittest.expectAsync1((_) {})); }); }); @@ -1262,7 +1262,7 @@ var mock = new HttpServerMock(); api.ReportsResourceApi res = new api.DoubleclickbidmanagerApi(mock).reports; var arg_queryId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1305,7 +1305,7 @@ var resp = convert.JSON.encode(buildListReportsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listreports(arg_queryId).then(unittest.expectAsync(((api.ListReportsResponse response) { + res.listreports(arg_queryId).then(unittest.expectAsync1(((api.ListReportsResponse response) { checkListReportsResponse(response); }))); }); @@ -1319,7 +1319,7 @@ var mock = new HttpServerMock(); api.SdfResourceApi res = new api.DoubleclickbidmanagerApi(mock).sdf; var arg_request = buildDownloadRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DownloadRequest.fromJson(json); checkDownloadRequest(obj); @@ -1358,7 +1358,7 @@ var resp = convert.JSON.encode(buildDownloadResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.download(arg_request).then(unittest.expectAsync(((api.DownloadResponse response) { + res.download(arg_request).then(unittest.expectAsync1(((api.DownloadResponse response) { checkDownloadResponse(response); }))); });
diff --git a/generated/googleapis/test/doubleclicksearch/v2_test.dart b/generated/googleapis/test/doubleclicksearch/v2_test.dart index e4c7bb8..c49bbf5 100644 --- a/generated/googleapis/test/doubleclicksearch/v2_test.dart +++ b/generated/googleapis/test/doubleclicksearch/v2_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/doubleclicksearch/v2.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -80,27 +80,27 @@ buildCounterAvailability--; } -buildUnnamed1353() { +buildUnnamed1360() { var o = new core.List<api.CustomDimension>(); o.add(buildCustomDimension()); o.add(buildCustomDimension()); return o; } -checkUnnamed1353(core.List<api.CustomDimension> o) { +checkUnnamed1360(core.List<api.CustomDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomDimension(o[0]); checkCustomDimension(o[1]); } -buildUnnamed1354() { +buildUnnamed1361() { var o = new core.List<api.CustomMetric>(); o.add(buildCustomMetric()); o.add(buildCustomMetric()); return o; } -checkUnnamed1354(core.List<api.CustomMetric> o) { +checkUnnamed1361(core.List<api.CustomMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomMetric(o[0]); checkCustomMetric(o[1]); @@ -125,8 +125,8 @@ o.countMillis = "foo"; o.criterionId = "foo"; o.currencyCode = "foo"; - o.customDimension = buildUnnamed1353(); - o.customMetric = buildUnnamed1354(); + o.customDimension = buildUnnamed1360(); + o.customMetric = buildUnnamed1361(); o.deviceType = "foo"; o.dsConversionId = "foo"; o.engineAccountId = "foo"; @@ -166,8 +166,8 @@ unittest.expect(o.countMillis, unittest.equals('foo')); unittest.expect(o.criterionId, unittest.equals('foo')); unittest.expect(o.currencyCode, unittest.equals('foo')); - checkUnnamed1353(o.customDimension); - checkUnnamed1354(o.customMetric); + checkUnnamed1360(o.customDimension); + checkUnnamed1361(o.customMetric); unittest.expect(o.deviceType, unittest.equals('foo')); unittest.expect(o.dsConversionId, unittest.equals('foo')); unittest.expect(o.engineAccountId, unittest.equals('foo')); @@ -189,14 +189,14 @@ buildCounterConversion--; } -buildUnnamed1355() { +buildUnnamed1362() { var o = new core.List<api.Conversion>(); o.add(buildConversion()); o.add(buildConversion()); return o; } -checkUnnamed1355(core.List<api.Conversion> o) { +checkUnnamed1362(core.List<api.Conversion> o) { unittest.expect(o, unittest.hasLength(2)); checkConversion(o[0]); checkConversion(o[1]); @@ -207,7 +207,7 @@ var o = new api.ConversionList(); buildCounterConversionList++; if (buildCounterConversionList < 3) { - o.conversion = buildUnnamed1355(); + o.conversion = buildUnnamed1362(); o.kind = "foo"; } buildCounterConversionList--; @@ -217,7 +217,7 @@ checkConversionList(api.ConversionList o) { buildCounterConversionList++; if (buildCounterConversionList < 3) { - checkUnnamed1355(o.conversion); + checkUnnamed1362(o.conversion); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionList--; @@ -286,27 +286,27 @@ buildCounterReportFiles--; } -buildUnnamed1356() { +buildUnnamed1363() { var o = new core.List<api.ReportFiles>(); o.add(buildReportFiles()); o.add(buildReportFiles()); return o; } -checkUnnamed1356(core.List<api.ReportFiles> o) { +checkUnnamed1363(core.List<api.ReportFiles> o) { unittest.expect(o, unittest.hasLength(2)); checkReportFiles(o[0]); checkReportFiles(o[1]); } -buildUnnamed1357() { +buildUnnamed1364() { var o = new core.List<api.ReportRow>(); o.add(buildReportRow()); o.add(buildReportRow()); return o; } -checkUnnamed1357(core.List<api.ReportRow> o) { +checkUnnamed1364(core.List<api.ReportRow> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRow(o[0]); checkReportRow(o[1]); @@ -317,13 +317,13 @@ var o = new api.Report(); buildCounterReport++; if (buildCounterReport < 3) { - o.files = buildUnnamed1356(); + o.files = buildUnnamed1363(); o.id = "foo"; o.isReportReady = true; o.kind = "foo"; o.request = buildReportRequest(); o.rowCount = 42; - o.rows = buildUnnamed1357(); + o.rows = buildUnnamed1364(); o.statisticsCurrencyCode = "foo"; o.statisticsTimeZone = "foo"; } @@ -334,13 +334,13 @@ checkReport(api.Report o) { buildCounterReport++; if (buildCounterReport < 3) { - checkUnnamed1356(o.files); + checkUnnamed1363(o.files); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isReportReady, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); checkReportRequest(o.request); unittest.expect(o.rowCount, unittest.equals(42)); - checkUnnamed1357(o.rows); + checkUnnamed1364(o.rows); unittest.expect(o.statisticsCurrencyCode, unittest.equals('foo')); unittest.expect(o.statisticsTimeZone, unittest.equals('foo')); } @@ -384,27 +384,27 @@ buildCounterReportApiColumnSpec--; } -buildUnnamed1358() { +buildUnnamed1365() { var o = new core.List<api.ReportApiColumnSpec>(); o.add(buildReportApiColumnSpec()); o.add(buildReportApiColumnSpec()); return o; } -checkUnnamed1358(core.List<api.ReportApiColumnSpec> o) { +checkUnnamed1365(core.List<api.ReportApiColumnSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkReportApiColumnSpec(o[0]); checkReportApiColumnSpec(o[1]); } -buildUnnamed1359() { +buildUnnamed1366() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1359(core.List<core.Object> o) { +checkUnnamed1366(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -417,7 +417,7 @@ if (buildCounterReportRequestFilters < 3) { o.column = buildReportApiColumnSpec(); o.operator = "foo"; - o.values = buildUnnamed1359(); + o.values = buildUnnamed1366(); } buildCounterReportRequestFilters--; return o; @@ -428,19 +428,19 @@ if (buildCounterReportRequestFilters < 3) { checkReportApiColumnSpec(o.column); unittest.expect(o.operator, unittest.equals('foo')); - checkUnnamed1359(o.values); + checkUnnamed1366(o.values); } buildCounterReportRequestFilters--; } -buildUnnamed1360() { +buildUnnamed1367() { var o = new core.List<api.ReportRequestFilters>(); o.add(buildReportRequestFilters()); o.add(buildReportRequestFilters()); return o; } -checkUnnamed1360(core.List<api.ReportRequestFilters> o) { +checkUnnamed1367(core.List<api.ReportRequestFilters> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRequestFilters(o[0]); checkReportRequestFilters(o[1]); @@ -467,14 +467,14 @@ buildCounterReportRequestOrderBy--; } -buildUnnamed1361() { +buildUnnamed1368() { var o = new core.List<api.ReportRequestOrderBy>(); o.add(buildReportRequestOrderBy()); o.add(buildReportRequestOrderBy()); return o; } -checkUnnamed1361(core.List<api.ReportRequestOrderBy> o) { +checkUnnamed1368(core.List<api.ReportRequestOrderBy> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRequestOrderBy(o[0]); checkReportRequestOrderBy(o[1]); @@ -541,13 +541,13 @@ var o = new api.ReportRequest(); buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - o.columns = buildUnnamed1358(); + o.columns = buildUnnamed1365(); o.downloadFormat = "foo"; - o.filters = buildUnnamed1360(); + o.filters = buildUnnamed1367(); o.includeDeletedEntities = true; o.includeRemovedEntities = true; o.maxRowsPerFile = 42; - o.orderBy = buildUnnamed1361(); + o.orderBy = buildUnnamed1368(); o.reportScope = buildReportRequestReportScope(); o.reportType = "foo"; o.rowCount = 42; @@ -563,13 +563,13 @@ checkReportRequest(api.ReportRequest o) { buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - checkUnnamed1358(o.columns); + checkUnnamed1365(o.columns); unittest.expect(o.downloadFormat, unittest.equals('foo')); - checkUnnamed1360(o.filters); + checkUnnamed1367(o.filters); unittest.expect(o.includeDeletedEntities, unittest.isTrue); unittest.expect(o.includeRemovedEntities, unittest.isTrue); unittest.expect(o.maxRowsPerFile, unittest.equals(42)); - checkUnnamed1361(o.orderBy); + checkUnnamed1368(o.orderBy); checkReportRequestReportScope(o.reportScope); unittest.expect(o.reportType, unittest.equals('foo')); unittest.expect(o.rowCount, unittest.equals(42)); @@ -617,14 +617,14 @@ buildCounterSavedColumn--; } -buildUnnamed1362() { +buildUnnamed1369() { var o = new core.List<api.SavedColumn>(); o.add(buildSavedColumn()); o.add(buildSavedColumn()); return o; } -checkUnnamed1362(core.List<api.SavedColumn> o) { +checkUnnamed1369(core.List<api.SavedColumn> o) { unittest.expect(o, unittest.hasLength(2)); checkSavedColumn(o[0]); checkSavedColumn(o[1]); @@ -635,7 +635,7 @@ var o = new api.SavedColumnList(); buildCounterSavedColumnList++; if (buildCounterSavedColumnList < 3) { - o.items = buildUnnamed1362(); + o.items = buildUnnamed1369(); o.kind = "foo"; } buildCounterSavedColumnList--; @@ -645,20 +645,20 @@ checkSavedColumnList(api.SavedColumnList o) { buildCounterSavedColumnList++; if (buildCounterSavedColumnList < 3) { - checkUnnamed1362(o.items); + checkUnnamed1369(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterSavedColumnList--; } -buildUnnamed1363() { +buildUnnamed1370() { var o = new core.List<api.Availability>(); o.add(buildAvailability()); o.add(buildAvailability()); return o; } -checkUnnamed1363(core.List<api.Availability> o) { +checkUnnamed1370(core.List<api.Availability> o) { unittest.expect(o, unittest.hasLength(2)); checkAvailability(o[0]); checkAvailability(o[1]); @@ -669,7 +669,7 @@ var o = new api.UpdateAvailabilityRequest(); buildCounterUpdateAvailabilityRequest++; if (buildCounterUpdateAvailabilityRequest < 3) { - o.availabilities = buildUnnamed1363(); + o.availabilities = buildUnnamed1370(); } buildCounterUpdateAvailabilityRequest--; return o; @@ -678,19 +678,19 @@ checkUpdateAvailabilityRequest(api.UpdateAvailabilityRequest o) { buildCounterUpdateAvailabilityRequest++; if (buildCounterUpdateAvailabilityRequest < 3) { - checkUnnamed1363(o.availabilities); + checkUnnamed1370(o.availabilities); } buildCounterUpdateAvailabilityRequest--; } -buildUnnamed1364() { +buildUnnamed1371() { var o = new core.List<api.Availability>(); o.add(buildAvailability()); o.add(buildAvailability()); return o; } -checkUnnamed1364(core.List<api.Availability> o) { +checkUnnamed1371(core.List<api.Availability> o) { unittest.expect(o, unittest.hasLength(2)); checkAvailability(o[0]); checkAvailability(o[1]); @@ -701,7 +701,7 @@ var o = new api.UpdateAvailabilityResponse(); buildCounterUpdateAvailabilityResponse++; if (buildCounterUpdateAvailabilityResponse < 3) { - o.availabilities = buildUnnamed1364(); + o.availabilities = buildUnnamed1371(); } buildCounterUpdateAvailabilityResponse--; return o; @@ -710,7 +710,7 @@ checkUpdateAvailabilityResponse(api.UpdateAvailabilityResponse o) { buildCounterUpdateAvailabilityResponse++; if (buildCounterUpdateAvailabilityResponse < 3) { - checkUnnamed1364(o.availabilities); + checkUnnamed1371(o.availabilities); } buildCounterUpdateAvailabilityResponse--; } @@ -895,7 +895,7 @@ var arg_adId = "foo"; var arg_campaignId = "foo"; var arg_criterionId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -960,7 +960,7 @@ var resp = convert.JSON.encode(buildConversionList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_agencyId, arg_advertiserId, arg_engineAccountId, arg_endDate, arg_rowCount, arg_startDate, arg_startRow, adGroupId: arg_adGroupId, adId: arg_adId, campaignId: arg_campaignId, criterionId: arg_criterionId).then(unittest.expectAsync(((api.ConversionList response) { + res.get(arg_agencyId, arg_advertiserId, arg_engineAccountId, arg_endDate, arg_rowCount, arg_startDate, arg_startRow, adGroupId: arg_adGroupId, adId: arg_adId, campaignId: arg_campaignId, criterionId: arg_criterionId).then(unittest.expectAsync1(((api.ConversionList response) { checkConversionList(response); }))); }); @@ -970,7 +970,7 @@ var mock = new HttpServerMock(); api.ConversionResourceApi res = new api.DoubleclicksearchApi(mock).conversion; var arg_request = buildConversionList(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ConversionList.fromJson(json); checkConversionList(obj); @@ -1009,7 +1009,7 @@ var resp = convert.JSON.encode(buildConversionList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request).then(unittest.expectAsync(((api.ConversionList response) { + res.insert(arg_request).then(unittest.expectAsync1(((api.ConversionList response) { checkConversionList(response); }))); }); @@ -1026,7 +1026,7 @@ var arg_rowCount = 42; var arg_startDate = 42; var arg_startRow = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ConversionList.fromJson(json); checkConversionList(obj); @@ -1072,7 +1072,7 @@ var resp = convert.JSON.encode(buildConversionList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_advertiserId, arg_agencyId, arg_endDate, arg_engineAccountId, arg_rowCount, arg_startDate, arg_startRow).then(unittest.expectAsync(((api.ConversionList response) { + res.patch(arg_request, arg_advertiserId, arg_agencyId, arg_endDate, arg_engineAccountId, arg_rowCount, arg_startDate, arg_startRow).then(unittest.expectAsync1(((api.ConversionList response) { checkConversionList(response); }))); }); @@ -1082,7 +1082,7 @@ var mock = new HttpServerMock(); api.ConversionResourceApi res = new api.DoubleclicksearchApi(mock).conversion; var arg_request = buildConversionList(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ConversionList.fromJson(json); checkConversionList(obj); @@ -1121,7 +1121,7 @@ var resp = convert.JSON.encode(buildConversionList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request).then(unittest.expectAsync(((api.ConversionList response) { + res.update(arg_request).then(unittest.expectAsync1(((api.ConversionList response) { checkConversionList(response); }))); }); @@ -1131,7 +1131,7 @@ var mock = new HttpServerMock(); api.ConversionResourceApi res = new api.DoubleclicksearchApi(mock).conversion; var arg_request = buildUpdateAvailabilityRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UpdateAvailabilityRequest.fromJson(json); checkUpdateAvailabilityRequest(obj); @@ -1170,7 +1170,7 @@ var resp = convert.JSON.encode(buildUpdateAvailabilityResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.updateAvailability(arg_request).then(unittest.expectAsync(((api.UpdateAvailabilityResponse response) { + res.updateAvailability(arg_request).then(unittest.expectAsync1(((api.UpdateAvailabilityResponse response) { checkUpdateAvailabilityResponse(response); }))); }); @@ -1184,7 +1184,7 @@ var mock = new HttpServerMock(); api.ReportsResourceApi res = new api.DoubleclicksearchApi(mock).reports; var arg_request_1 = buildReportRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ReportRequest.fromJson(json); checkReportRequest(obj); @@ -1223,7 +1223,7 @@ var resp = convert.JSON.encode(buildReport()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.generate(arg_request_1).then(unittest.expectAsync(((api.Report response) { + res.generate(arg_request_1).then(unittest.expectAsync1(((api.Report response) { checkReport(response); }))); }); @@ -1233,7 +1233,7 @@ var mock = new HttpServerMock(); api.ReportsResourceApi res = new api.DoubleclicksearchApi(mock).reports; var arg_reportId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1272,7 +1272,7 @@ var resp = convert.JSON.encode(buildReport()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_reportId).then(unittest.expectAsync(((api.Report response) { + res.get(arg_reportId).then(unittest.expectAsync1(((api.Report response) { checkReport(response); }))); }); @@ -1285,7 +1285,7 @@ api.ReportsResourceApi res = new api.DoubleclicksearchApi(mock).reports; var arg_reportId = "foo"; var arg_reportFragment = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1331,7 +1331,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getFile(arg_reportId, arg_reportFragment).then(unittest.expectAsync((_) {})); + res.getFile(arg_reportId, arg_reportFragment).then(unittest.expectAsync1((_) {})); }); unittest.test("method--request", () { @@ -1339,7 +1339,7 @@ var mock = new HttpServerMock(); api.ReportsResourceApi res = new api.DoubleclicksearchApi(mock).reports; var arg_request_1 = buildReportRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ReportRequest.fromJson(json); checkReportRequest(obj); @@ -1378,7 +1378,7 @@ var resp = convert.JSON.encode(buildReport()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.request(arg_request_1).then(unittest.expectAsync(((api.Report response) { + res.request(arg_request_1).then(unittest.expectAsync1(((api.Report response) { checkReport(response); }))); }); @@ -1393,7 +1393,7 @@ api.SavedColumnsResourceApi res = new api.DoubleclicksearchApi(mock).savedColumns; var arg_agencyId = "foo"; var arg_advertiserId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1443,7 +1443,7 @@ var resp = convert.JSON.encode(buildSavedColumnList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_agencyId, arg_advertiserId).then(unittest.expectAsync(((api.SavedColumnList response) { + res.list(arg_agencyId, arg_advertiserId).then(unittest.expectAsync1(((api.SavedColumnList response) { checkSavedColumnList(response); }))); });
diff --git a/generated/googleapis/test/drive/v2_test.dart b/generated/googleapis/test/drive/v2_test.dart index fad261e..036a3a7 100644 --- a/generated/googleapis/test/drive/v2_test.dart +++ b/generated/googleapis/test/drive/v2_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/drive/v2.dart' as api; @@ -46,19 +46,19 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed631() { +buildUnnamed636() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed631(core.List<core.String> o) { +checkUnnamed636(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -69,7 +69,7 @@ var o = new api.AboutAdditionalRoleInfoRoleSets(); buildCounterAboutAdditionalRoleInfoRoleSets++; if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { - o.additionalRoles = buildUnnamed631(); + o.additionalRoles = buildUnnamed636(); o.primaryRole = "foo"; } buildCounterAboutAdditionalRoleInfoRoleSets--; @@ -79,20 +79,20 @@ checkAboutAdditionalRoleInfoRoleSets(api.AboutAdditionalRoleInfoRoleSets o) { buildCounterAboutAdditionalRoleInfoRoleSets++; if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { - checkUnnamed631(o.additionalRoles); + checkUnnamed636(o.additionalRoles); unittest.expect(o.primaryRole, unittest.equals('foo')); } buildCounterAboutAdditionalRoleInfoRoleSets--; } -buildUnnamed632() { +buildUnnamed637() { var o = new core.List<api.AboutAdditionalRoleInfoRoleSets>(); o.add(buildAboutAdditionalRoleInfoRoleSets()); o.add(buildAboutAdditionalRoleInfoRoleSets()); return o; } -checkUnnamed632(core.List<api.AboutAdditionalRoleInfoRoleSets> o) { +checkUnnamed637(core.List<api.AboutAdditionalRoleInfoRoleSets> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutAdditionalRoleInfoRoleSets(o[0]); checkAboutAdditionalRoleInfoRoleSets(o[1]); @@ -103,7 +103,7 @@ var o = new api.AboutAdditionalRoleInfo(); buildCounterAboutAdditionalRoleInfo++; if (buildCounterAboutAdditionalRoleInfo < 3) { - o.roleSets = buildUnnamed632(); + o.roleSets = buildUnnamed637(); o.type = "foo"; } buildCounterAboutAdditionalRoleInfo--; @@ -113,33 +113,33 @@ checkAboutAdditionalRoleInfo(api.AboutAdditionalRoleInfo o) { buildCounterAboutAdditionalRoleInfo++; if (buildCounterAboutAdditionalRoleInfo < 3) { - checkUnnamed632(o.roleSets); + checkUnnamed637(o.roleSets); unittest.expect(o.type, unittest.equals('foo')); } buildCounterAboutAdditionalRoleInfo--; } -buildUnnamed633() { +buildUnnamed638() { var o = new core.List<api.AboutAdditionalRoleInfo>(); o.add(buildAboutAdditionalRoleInfo()); o.add(buildAboutAdditionalRoleInfo()); return o; } -checkUnnamed633(core.List<api.AboutAdditionalRoleInfo> o) { +checkUnnamed638(core.List<api.AboutAdditionalRoleInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutAdditionalRoleInfo(o[0]); checkAboutAdditionalRoleInfo(o[1]); } -buildUnnamed634() { +buildUnnamed639() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed634(core.List<core.String> o) { +checkUnnamed639(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -151,7 +151,7 @@ buildCounterAboutExportFormats++; if (buildCounterAboutExportFormats < 3) { o.source = "foo"; - o.targets = buildUnnamed634(); + o.targets = buildUnnamed639(); } buildCounterAboutExportFormats--; return o; @@ -161,19 +161,19 @@ buildCounterAboutExportFormats++; if (buildCounterAboutExportFormats < 3) { unittest.expect(o.source, unittest.equals('foo')); - checkUnnamed634(o.targets); + checkUnnamed639(o.targets); } buildCounterAboutExportFormats--; } -buildUnnamed635() { +buildUnnamed640() { var o = new core.List<api.AboutExportFormats>(); o.add(buildAboutExportFormats()); o.add(buildAboutExportFormats()); return o; } -checkUnnamed635(core.List<api.AboutExportFormats> o) { +checkUnnamed640(core.List<api.AboutExportFormats> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutExportFormats(o[0]); checkAboutExportFormats(o[1]); @@ -200,40 +200,40 @@ buildCounterAboutFeatures--; } -buildUnnamed636() { +buildUnnamed641() { var o = new core.List<api.AboutFeatures>(); o.add(buildAboutFeatures()); o.add(buildAboutFeatures()); return o; } -checkUnnamed636(core.List<api.AboutFeatures> o) { +checkUnnamed641(core.List<api.AboutFeatures> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutFeatures(o[0]); checkAboutFeatures(o[1]); } -buildUnnamed637() { +buildUnnamed642() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed637(core.List<core.String> o) { +checkUnnamed642(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed638() { +buildUnnamed643() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed638(core.List<core.String> o) { +checkUnnamed643(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -245,7 +245,7 @@ buildCounterAboutImportFormats++; if (buildCounterAboutImportFormats < 3) { o.source = "foo"; - o.targets = buildUnnamed638(); + o.targets = buildUnnamed643(); } buildCounterAboutImportFormats--; return o; @@ -255,19 +255,19 @@ buildCounterAboutImportFormats++; if (buildCounterAboutImportFormats < 3) { unittest.expect(o.source, unittest.equals('foo')); - checkUnnamed638(o.targets); + checkUnnamed643(o.targets); } buildCounterAboutImportFormats--; } -buildUnnamed639() { +buildUnnamed644() { var o = new core.List<api.AboutImportFormats>(); o.add(buildAboutImportFormats()); o.add(buildAboutImportFormats()); return o; } -checkUnnamed639(core.List<api.AboutImportFormats> o) { +checkUnnamed644(core.List<api.AboutImportFormats> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutImportFormats(o[0]); checkAboutImportFormats(o[1]); @@ -294,14 +294,14 @@ buildCounterAboutMaxUploadSizes--; } -buildUnnamed640() { +buildUnnamed645() { var o = new core.List<api.AboutMaxUploadSizes>(); o.add(buildAboutMaxUploadSizes()); o.add(buildAboutMaxUploadSizes()); return o; } -checkUnnamed640(core.List<api.AboutMaxUploadSizes> o) { +checkUnnamed645(core.List<api.AboutMaxUploadSizes> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutMaxUploadSizes(o[0]); checkAboutMaxUploadSizes(o[1]); @@ -328,14 +328,14 @@ buildCounterAboutQuotaBytesByService--; } -buildUnnamed641() { +buildUnnamed646() { var o = new core.List<api.AboutQuotaBytesByService>(); o.add(buildAboutQuotaBytesByService()); o.add(buildAboutQuotaBytesByService()); return o; } -checkUnnamed641(core.List<api.AboutQuotaBytesByService> o) { +checkUnnamed646(core.List<api.AboutQuotaBytesByService> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutQuotaBytesByService(o[0]); checkAboutQuotaBytesByService(o[1]); @@ -364,14 +364,14 @@ buildCounterAboutTeamDriveThemes--; } -buildUnnamed642() { +buildUnnamed647() { var o = new core.List<api.AboutTeamDriveThemes>(); o.add(buildAboutTeamDriveThemes()); o.add(buildAboutTeamDriveThemes()); return o; } -checkUnnamed642(core.List<api.AboutTeamDriveThemes> o) { +checkUnnamed647(core.List<api.AboutTeamDriveThemes> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutTeamDriveThemes(o[0]); checkAboutTeamDriveThemes(o[1]); @@ -382,21 +382,21 @@ var o = new api.About(); buildCounterAbout++; if (buildCounterAbout < 3) { - o.additionalRoleInfo = buildUnnamed633(); + o.additionalRoleInfo = buildUnnamed638(); o.domainSharingPolicy = "foo"; o.etag = "foo"; - o.exportFormats = buildUnnamed635(); - o.features = buildUnnamed636(); - o.folderColorPalette = buildUnnamed637(); - o.importFormats = buildUnnamed639(); + o.exportFormats = buildUnnamed640(); + o.features = buildUnnamed641(); + o.folderColorPalette = buildUnnamed642(); + o.importFormats = buildUnnamed644(); o.isCurrentAppInstalled = true; o.kind = "foo"; o.languageCode = "foo"; o.largestChangeId = "foo"; - o.maxUploadSizes = buildUnnamed640(); + o.maxUploadSizes = buildUnnamed645(); o.name = "foo"; o.permissionId = "foo"; - o.quotaBytesByService = buildUnnamed641(); + o.quotaBytesByService = buildUnnamed646(); o.quotaBytesTotal = "foo"; o.quotaBytesUsed = "foo"; o.quotaBytesUsedAggregate = "foo"; @@ -405,7 +405,7 @@ o.remainingChangeIds = "foo"; o.rootFolderId = "foo"; o.selfLink = "foo"; - o.teamDriveThemes = buildUnnamed642(); + o.teamDriveThemes = buildUnnamed647(); o.user = buildUser(); } buildCounterAbout--; @@ -415,21 +415,21 @@ checkAbout(api.About o) { buildCounterAbout++; if (buildCounterAbout < 3) { - checkUnnamed633(o.additionalRoleInfo); + checkUnnamed638(o.additionalRoleInfo); unittest.expect(o.domainSharingPolicy, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed635(o.exportFormats); - checkUnnamed636(o.features); - checkUnnamed637(o.folderColorPalette); - checkUnnamed639(o.importFormats); + checkUnnamed640(o.exportFormats); + checkUnnamed641(o.features); + checkUnnamed642(o.folderColorPalette); + checkUnnamed644(o.importFormats); unittest.expect(o.isCurrentAppInstalled, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.languageCode, unittest.equals('foo')); unittest.expect(o.largestChangeId, unittest.equals('foo')); - checkUnnamed640(o.maxUploadSizes); + checkUnnamed645(o.maxUploadSizes); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.permissionId, unittest.equals('foo')); - checkUnnamed641(o.quotaBytesByService); + checkUnnamed646(o.quotaBytesByService); unittest.expect(o.quotaBytesTotal, unittest.equals('foo')); unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); unittest.expect(o.quotaBytesUsedAggregate, unittest.equals('foo')); @@ -438,7 +438,7 @@ unittest.expect(o.remainingChangeIds, unittest.equals('foo')); unittest.expect(o.rootFolderId, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed642(o.teamDriveThemes); + checkUnnamed647(o.teamDriveThemes); checkUser(o.user); } buildCounterAbout--; @@ -467,66 +467,66 @@ buildCounterAppIcons--; } -buildUnnamed643() { +buildUnnamed648() { var o = new core.List<api.AppIcons>(); o.add(buildAppIcons()); o.add(buildAppIcons()); return o; } -checkUnnamed643(core.List<api.AppIcons> o) { +checkUnnamed648(core.List<api.AppIcons> o) { unittest.expect(o, unittest.hasLength(2)); checkAppIcons(o[0]); checkAppIcons(o[1]); } -buildUnnamed644() { +buildUnnamed649() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed644(core.List<core.String> o) { +checkUnnamed649(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed645() { +buildUnnamed650() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed645(core.List<core.String> o) { +checkUnnamed650(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed646() { +buildUnnamed651() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed646(core.List<core.String> o) { +checkUnnamed651(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed647() { +buildUnnamed652() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed647(core.List<core.String> o) { +checkUnnamed652(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -541,7 +541,7 @@ o.createInFolderTemplate = "foo"; o.createUrl = "foo"; o.hasDriveWideScope = true; - o.icons = buildUnnamed643(); + o.icons = buildUnnamed648(); o.id = "foo"; o.installed = true; o.kind = "foo"; @@ -549,12 +549,12 @@ o.name = "foo"; o.objectType = "foo"; o.openUrlTemplate = "foo"; - o.primaryFileExtensions = buildUnnamed644(); - o.primaryMimeTypes = buildUnnamed645(); + o.primaryFileExtensions = buildUnnamed649(); + o.primaryMimeTypes = buildUnnamed650(); o.productId = "foo"; o.productUrl = "foo"; - o.secondaryFileExtensions = buildUnnamed646(); - o.secondaryMimeTypes = buildUnnamed647(); + o.secondaryFileExtensions = buildUnnamed651(); + o.secondaryMimeTypes = buildUnnamed652(); o.shortDescription = "foo"; o.supportsCreate = true; o.supportsImport = true; @@ -573,7 +573,7 @@ unittest.expect(o.createInFolderTemplate, unittest.equals('foo')); unittest.expect(o.createUrl, unittest.equals('foo')); unittest.expect(o.hasDriveWideScope, unittest.isTrue); - checkUnnamed643(o.icons); + checkUnnamed648(o.icons); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.installed, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -581,12 +581,12 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.objectType, unittest.equals('foo')); unittest.expect(o.openUrlTemplate, unittest.equals('foo')); - checkUnnamed644(o.primaryFileExtensions); - checkUnnamed645(o.primaryMimeTypes); + checkUnnamed649(o.primaryFileExtensions); + checkUnnamed650(o.primaryMimeTypes); unittest.expect(o.productId, unittest.equals('foo')); unittest.expect(o.productUrl, unittest.equals('foo')); - checkUnnamed646(o.secondaryFileExtensions); - checkUnnamed647(o.secondaryMimeTypes); + checkUnnamed651(o.secondaryFileExtensions); + checkUnnamed652(o.secondaryMimeTypes); unittest.expect(o.shortDescription, unittest.equals('foo')); unittest.expect(o.supportsCreate, unittest.isTrue); unittest.expect(o.supportsImport, unittest.isTrue); @@ -597,27 +597,27 @@ buildCounterApp--; } -buildUnnamed648() { +buildUnnamed653() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed648(core.List<core.String> o) { +checkUnnamed653(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed649() { +buildUnnamed654() { var o = new core.List<api.App>(); o.add(buildApp()); o.add(buildApp()); return o; } -checkUnnamed649(core.List<api.App> o) { +checkUnnamed654(core.List<api.App> o) { unittest.expect(o, unittest.hasLength(2)); checkApp(o[0]); checkApp(o[1]); @@ -628,9 +628,9 @@ var o = new api.AppList(); buildCounterAppList++; if (buildCounterAppList < 3) { - o.defaultAppIds = buildUnnamed648(); + o.defaultAppIds = buildUnnamed653(); o.etag = "foo"; - o.items = buildUnnamed649(); + o.items = buildUnnamed654(); o.kind = "foo"; o.selfLink = "foo"; } @@ -641,9 +641,9 @@ checkAppList(api.AppList o) { buildCounterAppList++; if (buildCounterAppList < 3) { - checkUnnamed648(o.defaultAppIds); + checkUnnamed653(o.defaultAppIds); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed649(o.items); + checkUnnamed654(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } @@ -687,14 +687,14 @@ buildCounterChange--; } -buildUnnamed650() { +buildUnnamed655() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed650(core.List<api.Change> o) { +checkUnnamed655(core.List<api.Change> o) { unittest.expect(o, unittest.hasLength(2)); checkChange(o[0]); checkChange(o[1]); @@ -706,7 +706,7 @@ buildCounterChangeList++; if (buildCounterChangeList < 3) { o.etag = "foo"; - o.items = buildUnnamed650(); + o.items = buildUnnamed655(); o.kind = "foo"; o.largestChangeId = "foo"; o.newStartPageToken = "foo"; @@ -722,7 +722,7 @@ buildCounterChangeList++; if (buildCounterChangeList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed650(o.items); + checkUnnamed655(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.largestChangeId, unittest.equals('foo')); unittest.expect(o.newStartPageToken, unittest.equals('foo')); @@ -733,14 +733,14 @@ buildCounterChangeList--; } -buildUnnamed651() { +buildUnnamed656() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed651(core.Map<core.String, core.String> o) { +checkUnnamed656(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -755,7 +755,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed651(); + o.params = buildUnnamed656(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -773,7 +773,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed651(o.params); + checkUnnamed656(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -783,14 +783,14 @@ buildCounterChannel--; } -buildUnnamed652() { +buildUnnamed657() { var o = new core.List<api.ChildReference>(); o.add(buildChildReference()); o.add(buildChildReference()); return o; } -checkUnnamed652(core.List<api.ChildReference> o) { +checkUnnamed657(core.List<api.ChildReference> o) { unittest.expect(o, unittest.hasLength(2)); checkChildReference(o[0]); checkChildReference(o[1]); @@ -802,7 +802,7 @@ buildCounterChildList++; if (buildCounterChildList < 3) { o.etag = "foo"; - o.items = buildUnnamed652(); + o.items = buildUnnamed657(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -816,7 +816,7 @@ buildCounterChildList++; if (buildCounterChildList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed652(o.items); + checkUnnamed657(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -871,14 +871,14 @@ buildCounterCommentContext--; } -buildUnnamed653() { +buildUnnamed658() { var o = new core.List<api.CommentReply>(); o.add(buildCommentReply()); o.add(buildCommentReply()); return o; } -checkUnnamed653(core.List<api.CommentReply> o) { +checkUnnamed658(core.List<api.CommentReply> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentReply(o[0]); checkCommentReply(o[1]); @@ -901,7 +901,7 @@ o.htmlContent = "foo"; o.kind = "foo"; o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); - o.replies = buildUnnamed653(); + o.replies = buildUnnamed658(); o.selfLink = "foo"; o.status = "foo"; } @@ -924,21 +924,21 @@ unittest.expect(o.htmlContent, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed653(o.replies); + checkUnnamed658(o.replies); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); } buildCounterComment--; } -buildUnnamed654() { +buildUnnamed659() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed654(core.List<api.Comment> o) { +checkUnnamed659(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -949,7 +949,7 @@ var o = new api.CommentList(); buildCounterCommentList++; if (buildCounterCommentList < 3) { - o.items = buildUnnamed654(); + o.items = buildUnnamed659(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -962,7 +962,7 @@ checkCommentList(api.CommentList o) { buildCounterCommentList++; if (buildCounterCommentList < 3) { - checkUnnamed654(o.items); + checkUnnamed659(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1006,14 +1006,14 @@ buildCounterCommentReply--; } -buildUnnamed655() { +buildUnnamed660() { var o = new core.List<api.CommentReply>(); o.add(buildCommentReply()); o.add(buildCommentReply()); return o; } -checkUnnamed655(core.List<api.CommentReply> o) { +checkUnnamed660(core.List<api.CommentReply> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentReply(o[0]); checkCommentReply(o[1]); @@ -1024,7 +1024,7 @@ var o = new api.CommentReplyList(); buildCounterCommentReplyList++; if (buildCounterCommentReplyList < 3) { - o.items = buildUnnamed655(); + o.items = buildUnnamed660(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -1037,7 +1037,7 @@ checkCommentReplyList(api.CommentReplyList o) { buildCounterCommentReplyList++; if (buildCounterCommentReplyList < 3) { - checkUnnamed655(o.items); + checkUnnamed660(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1097,14 +1097,14 @@ buildCounterFileCapabilities--; } -buildUnnamed656() { +buildUnnamed661() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed656(core.Map<core.String, core.String> o) { +checkUnnamed661(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1240,84 +1240,19 @@ buildCounterFileLabels--; } -buildUnnamed657() { +buildUnnamed662() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed657(core.Map<core.String, core.String> o) { +checkUnnamed662(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed658() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed658(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed659() { - var o = new core.List<api.User>(); - o.add(buildUser()); - o.add(buildUser()); - return o; -} - -checkUnnamed659(core.List<api.User> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUser(o[0]); - checkUser(o[1]); -} - -buildUnnamed660() { - var o = new core.List<api.ParentReference>(); - o.add(buildParentReference()); - o.add(buildParentReference()); - return o; -} - -checkUnnamed660(core.List<api.ParentReference> o) { - unittest.expect(o, unittest.hasLength(2)); - checkParentReference(o[0]); - checkParentReference(o[1]); -} - -buildUnnamed661() { - var o = new core.List<api.Permission>(); - o.add(buildPermission()); - o.add(buildPermission()); - return o; -} - -checkUnnamed661(core.List<api.Permission> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPermission(o[0]); - checkPermission(o[1]); -} - -buildUnnamed662() { - var o = new core.List<api.Property>(); - o.add(buildProperty()); - o.add(buildProperty()); - return o; -} - -checkUnnamed662(core.List<api.Property> o) { - unittest.expect(o, unittest.hasLength(2)); - checkProperty(o[0]); - checkProperty(o[1]); -} - buildUnnamed663() { var o = new core.List<core.String>(); o.add("foo"); @@ -1331,6 +1266,71 @@ unittest.expect(o[1], unittest.equals('foo')); } +buildUnnamed664() { + var o = new core.List<api.User>(); + o.add(buildUser()); + o.add(buildUser()); + return o; +} + +checkUnnamed664(core.List<api.User> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUser(o[0]); + checkUser(o[1]); +} + +buildUnnamed665() { + var o = new core.List<api.ParentReference>(); + o.add(buildParentReference()); + o.add(buildParentReference()); + return o; +} + +checkUnnamed665(core.List<api.ParentReference> o) { + unittest.expect(o, unittest.hasLength(2)); + checkParentReference(o[0]); + checkParentReference(o[1]); +} + +buildUnnamed666() { + var o = new core.List<api.Permission>(); + o.add(buildPermission()); + o.add(buildPermission()); + return o; +} + +checkUnnamed666(core.List<api.Permission> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPermission(o[0]); + checkPermission(o[1]); +} + +buildUnnamed667() { + var o = new core.List<api.Property>(); + o.add(buildProperty()); + o.add(buildProperty()); + return o; +} + +checkUnnamed667(core.List<api.Property> o) { + unittest.expect(o, unittest.hasLength(2)); + checkProperty(o[0]); + checkProperty(o[1]); +} + +buildUnnamed668() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed668(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterFileThumbnail = 0; buildFileThumbnail() { var o = new api.FileThumbnail(); @@ -1394,7 +1394,7 @@ o.embedLink = "foo"; o.etag = "foo"; o.explicitlyTrashed = true; - o.exportLinks = buildUnnamed656(); + o.exportLinks = buildUnnamed661(); o.fileExtension = "foo"; o.fileSize = "foo"; o.folderColorRgb = "foo"; @@ -1417,21 +1417,21 @@ o.mimeType = "foo"; o.modifiedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); - o.openWithLinks = buildUnnamed657(); + o.openWithLinks = buildUnnamed662(); o.originalFilename = "foo"; o.ownedByMe = true; - o.ownerNames = buildUnnamed658(); - o.owners = buildUnnamed659(); - o.parents = buildUnnamed660(); - o.permissions = buildUnnamed661(); - o.properties = buildUnnamed662(); + o.ownerNames = buildUnnamed663(); + o.owners = buildUnnamed664(); + o.parents = buildUnnamed665(); + o.permissions = buildUnnamed666(); + o.properties = buildUnnamed667(); o.quotaBytesUsed = "foo"; o.selfLink = "foo"; o.shareable = true; o.shared = true; o.sharedWithMeDate = core.DateTime.parse("2002-02-27T14:01:02"); o.sharingUser = buildUser(); - o.spaces = buildUnnamed663(); + o.spaces = buildUnnamed668(); o.teamDriveId = "foo"; o.thumbnail = buildFileThumbnail(); o.thumbnailLink = "foo"; @@ -1467,7 +1467,7 @@ unittest.expect(o.embedLink, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.explicitlyTrashed, unittest.isTrue); - checkUnnamed656(o.exportLinks); + checkUnnamed661(o.exportLinks); unittest.expect(o.fileExtension, unittest.equals('foo')); unittest.expect(o.fileSize, unittest.equals('foo')); unittest.expect(o.folderColorRgb, unittest.equals('foo')); @@ -1490,21 +1490,21 @@ unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.modifiedByMeDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed657(o.openWithLinks); + checkUnnamed662(o.openWithLinks); unittest.expect(o.originalFilename, unittest.equals('foo')); unittest.expect(o.ownedByMe, unittest.isTrue); - checkUnnamed658(o.ownerNames); - checkUnnamed659(o.owners); - checkUnnamed660(o.parents); - checkUnnamed661(o.permissions); - checkUnnamed662(o.properties); + checkUnnamed663(o.ownerNames); + checkUnnamed664(o.owners); + checkUnnamed665(o.parents); + checkUnnamed666(o.permissions); + checkUnnamed667(o.properties); unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.shareable, unittest.isTrue); unittest.expect(o.shared, unittest.isTrue); unittest.expect(o.sharedWithMeDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); checkUser(o.sharingUser); - checkUnnamed663(o.spaces); + checkUnnamed668(o.spaces); unittest.expect(o.teamDriveId, unittest.equals('foo')); checkFileThumbnail(o.thumbnail); unittest.expect(o.thumbnailLink, unittest.equals('foo')); @@ -1522,14 +1522,14 @@ buildCounterFile--; } -buildUnnamed664() { +buildUnnamed669() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed664(core.List<api.File> o) { +checkUnnamed669(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -1542,7 +1542,7 @@ if (buildCounterFileList < 3) { o.etag = "foo"; o.incompleteSearch = true; - o.items = buildUnnamed664(); + o.items = buildUnnamed669(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -1557,7 +1557,7 @@ if (buildCounterFileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.incompleteSearch, unittest.isTrue); - checkUnnamed664(o.items); + checkUnnamed669(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1566,14 +1566,14 @@ buildCounterFileList--; } -buildUnnamed665() { +buildUnnamed670() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed665(core.List<core.String> o) { +checkUnnamed670(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1584,7 +1584,7 @@ var o = new api.GeneratedIds(); buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - o.ids = buildUnnamed665(); + o.ids = buildUnnamed670(); o.kind = "foo"; o.space = "foo"; } @@ -1595,21 +1595,21 @@ checkGeneratedIds(api.GeneratedIds o) { buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - checkUnnamed665(o.ids); + checkUnnamed670(o.ids); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.space, unittest.equals('foo')); } buildCounterGeneratedIds--; } -buildUnnamed666() { +buildUnnamed671() { var o = new core.List<api.ParentReference>(); o.add(buildParentReference()); o.add(buildParentReference()); return o; } -checkUnnamed666(core.List<api.ParentReference> o) { +checkUnnamed671(core.List<api.ParentReference> o) { unittest.expect(o, unittest.hasLength(2)); checkParentReference(o[0]); checkParentReference(o[1]); @@ -1621,7 +1621,7 @@ buildCounterParentList++; if (buildCounterParentList < 3) { o.etag = "foo"; - o.items = buildUnnamed666(); + o.items = buildUnnamed671(); o.kind = "foo"; o.selfLink = "foo"; } @@ -1633,7 +1633,7 @@ buildCounterParentList++; if (buildCounterParentList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed666(o.items); + checkUnnamed671(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } @@ -1667,27 +1667,27 @@ buildCounterParentReference--; } -buildUnnamed667() { +buildUnnamed672() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed667(core.List<core.String> o) { +checkUnnamed672(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed668() { +buildUnnamed673() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed668(core.List<core.String> o) { +checkUnnamed673(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1698,7 +1698,7 @@ var o = new api.PermissionTeamDrivePermissionDetails(); buildCounterPermissionTeamDrivePermissionDetails++; if (buildCounterPermissionTeamDrivePermissionDetails < 3) { - o.additionalRoles = buildUnnamed668(); + o.additionalRoles = buildUnnamed673(); o.inherited = true; o.inheritedFrom = "foo"; o.role = "foo"; @@ -1711,7 +1711,7 @@ checkPermissionTeamDrivePermissionDetails(api.PermissionTeamDrivePermissionDetails o) { buildCounterPermissionTeamDrivePermissionDetails++; if (buildCounterPermissionTeamDrivePermissionDetails < 3) { - checkUnnamed668(o.additionalRoles); + checkUnnamed673(o.additionalRoles); unittest.expect(o.inherited, unittest.isTrue); unittest.expect(o.inheritedFrom, unittest.equals('foo')); unittest.expect(o.role, unittest.equals('foo')); @@ -1720,14 +1720,14 @@ buildCounterPermissionTeamDrivePermissionDetails--; } -buildUnnamed669() { +buildUnnamed674() { var o = new core.List<api.PermissionTeamDrivePermissionDetails>(); o.add(buildPermissionTeamDrivePermissionDetails()); o.add(buildPermissionTeamDrivePermissionDetails()); return o; } -checkUnnamed669(core.List<api.PermissionTeamDrivePermissionDetails> o) { +checkUnnamed674(core.List<api.PermissionTeamDrivePermissionDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkPermissionTeamDrivePermissionDetails(o[0]); checkPermissionTeamDrivePermissionDetails(o[1]); @@ -1738,7 +1738,7 @@ var o = new api.Permission(); buildCounterPermission++; if (buildCounterPermission < 3) { - o.additionalRoles = buildUnnamed667(); + o.additionalRoles = buildUnnamed672(); o.authKey = "foo"; o.deleted = true; o.domain = "foo"; @@ -1751,7 +1751,7 @@ o.photoLink = "foo"; o.role = "foo"; o.selfLink = "foo"; - o.teamDrivePermissionDetails = buildUnnamed669(); + o.teamDrivePermissionDetails = buildUnnamed674(); o.type = "foo"; o.value = "foo"; o.withLink = true; @@ -1763,7 +1763,7 @@ checkPermission(api.Permission o) { buildCounterPermission++; if (buildCounterPermission < 3) { - checkUnnamed667(o.additionalRoles); + checkUnnamed672(o.additionalRoles); unittest.expect(o.authKey, unittest.equals('foo')); unittest.expect(o.deleted, unittest.isTrue); unittest.expect(o.domain, unittest.equals('foo')); @@ -1776,7 +1776,7 @@ unittest.expect(o.photoLink, unittest.equals('foo')); unittest.expect(o.role, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed669(o.teamDrivePermissionDetails); + checkUnnamed674(o.teamDrivePermissionDetails); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); unittest.expect(o.withLink, unittest.isTrue); @@ -1805,14 +1805,14 @@ buildCounterPermissionId--; } -buildUnnamed670() { +buildUnnamed675() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed670(core.List<api.Permission> o) { +checkUnnamed675(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); @@ -1824,7 +1824,7 @@ buildCounterPermissionList++; if (buildCounterPermissionList < 3) { o.etag = "foo"; - o.items = buildUnnamed670(); + o.items = buildUnnamed675(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1837,7 +1837,7 @@ buildCounterPermissionList++; if (buildCounterPermissionList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed670(o.items); + checkUnnamed675(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1874,14 +1874,14 @@ buildCounterProperty--; } -buildUnnamed671() { +buildUnnamed676() { var o = new core.List<api.Property>(); o.add(buildProperty()); o.add(buildProperty()); return o; } -checkUnnamed671(core.List<api.Property> o) { +checkUnnamed676(core.List<api.Property> o) { unittest.expect(o, unittest.hasLength(2)); checkProperty(o[0]); checkProperty(o[1]); @@ -1893,7 +1893,7 @@ buildCounterPropertyList++; if (buildCounterPropertyList < 3) { o.etag = "foo"; - o.items = buildUnnamed671(); + o.items = buildUnnamed676(); o.kind = "foo"; o.selfLink = "foo"; } @@ -1905,21 +1905,21 @@ buildCounterPropertyList++; if (buildCounterPropertyList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed671(o.items); + checkUnnamed676(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterPropertyList--; } -buildUnnamed672() { +buildUnnamed677() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed672(core.Map<core.String, core.String> o) { +checkUnnamed677(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1932,7 +1932,7 @@ if (buildCounterRevision < 3) { o.downloadUrl = "foo"; o.etag = "foo"; - o.exportLinks = buildUnnamed672(); + o.exportLinks = buildUnnamed677(); o.fileSize = "foo"; o.id = "foo"; o.kind = "foo"; @@ -1958,7 +1958,7 @@ if (buildCounterRevision < 3) { unittest.expect(o.downloadUrl, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed672(o.exportLinks); + checkUnnamed677(o.exportLinks); unittest.expect(o.fileSize, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -1978,14 +1978,14 @@ buildCounterRevision--; } -buildUnnamed673() { +buildUnnamed678() { var o = new core.List<api.Revision>(); o.add(buildRevision()); o.add(buildRevision()); return o; } -checkUnnamed673(core.List<api.Revision> o) { +checkUnnamed678(core.List<api.Revision> o) { unittest.expect(o, unittest.hasLength(2)); checkRevision(o[0]); checkRevision(o[1]); @@ -1997,7 +1997,7 @@ buildCounterRevisionList++; if (buildCounterRevisionList < 3) { o.etag = "foo"; - o.items = buildUnnamed673(); + o.items = buildUnnamed678(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2010,7 +2010,7 @@ buildCounterRevisionList++; if (buildCounterRevisionList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed673(o.items); + checkUnnamed678(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2142,14 +2142,14 @@ buildCounterTeamDrive--; } -buildUnnamed674() { +buildUnnamed679() { var o = new core.List<api.TeamDrive>(); o.add(buildTeamDrive()); o.add(buildTeamDrive()); return o; } -checkUnnamed674(core.List<api.TeamDrive> o) { +checkUnnamed679(core.List<api.TeamDrive> o) { unittest.expect(o, unittest.hasLength(2)); checkTeamDrive(o[0]); checkTeamDrive(o[1]); @@ -2160,7 +2160,7 @@ var o = new api.TeamDriveList(); buildCounterTeamDriveList++; if (buildCounterTeamDriveList < 3) { - o.items = buildUnnamed674(); + o.items = buildUnnamed679(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2171,7 +2171,7 @@ checkTeamDriveList(api.TeamDriveList o) { buildCounterTeamDriveList++; if (buildCounterTeamDriveList < 3) { - checkUnnamed674(o.items); + checkUnnamed679(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2677,7 +2677,7 @@ var arg_includeSubscribed = true; var arg_maxChangeIdCount = "foo"; var arg_startChangeId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2716,7 +2716,7 @@ var resp = convert.JSON.encode(buildAbout()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(includeSubscribed: arg_includeSubscribed, maxChangeIdCount: arg_maxChangeIdCount, startChangeId: arg_startChangeId).then(unittest.expectAsync(((api.About response) { + res.get(includeSubscribed: arg_includeSubscribed, maxChangeIdCount: arg_maxChangeIdCount, startChangeId: arg_startChangeId).then(unittest.expectAsync1(((api.About response) { checkAbout(response); }))); }); @@ -2730,7 +2730,7 @@ var mock = new HttpServerMock(); api.AppsResourceApi res = new api.DriveApi(mock).apps; var arg_appId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2769,7 +2769,7 @@ var resp = convert.JSON.encode(buildApp()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appId).then(unittest.expectAsync(((api.App response) { + res.get(arg_appId).then(unittest.expectAsync1(((api.App response) { checkApp(response); }))); }); @@ -2781,7 +2781,7 @@ var arg_appFilterExtensions = "foo"; var arg_appFilterMimeTypes = "foo"; var arg_languageCode = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2820,7 +2820,7 @@ var resp = convert.JSON.encode(buildAppList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(appFilterExtensions: arg_appFilterExtensions, appFilterMimeTypes: arg_appFilterMimeTypes, languageCode: arg_languageCode).then(unittest.expectAsync(((api.AppList response) { + res.list(appFilterExtensions: arg_appFilterExtensions, appFilterMimeTypes: arg_appFilterMimeTypes, languageCode: arg_languageCode).then(unittest.expectAsync1(((api.AppList response) { checkAppList(response); }))); }); @@ -2836,7 +2836,7 @@ var arg_changeId = "foo"; var arg_supportsTeamDrives = true; var arg_teamDriveId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2877,7 +2877,7 @@ var resp = convert.JSON.encode(buildChange()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_changeId, supportsTeamDrives: arg_supportsTeamDrives, teamDriveId: arg_teamDriveId).then(unittest.expectAsync(((api.Change response) { + res.get(arg_changeId, supportsTeamDrives: arg_supportsTeamDrives, teamDriveId: arg_teamDriveId).then(unittest.expectAsync1(((api.Change response) { checkChange(response); }))); }); @@ -2888,7 +2888,7 @@ api.ChangesResourceApi res = new api.DriveApi(mock).changes; var arg_supportsTeamDrives = true; var arg_teamDriveId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2926,7 +2926,7 @@ var resp = convert.JSON.encode(buildStartPageToken()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getStartPageToken(supportsTeamDrives: arg_supportsTeamDrives, teamDriveId: arg_teamDriveId).then(unittest.expectAsync(((api.StartPageToken response) { + res.getStartPageToken(supportsTeamDrives: arg_supportsTeamDrives, teamDriveId: arg_teamDriveId).then(unittest.expectAsync1(((api.StartPageToken response) { checkStartPageToken(response); }))); }); @@ -2945,7 +2945,7 @@ var arg_startChangeId = "foo"; var arg_supportsTeamDrives = true; var arg_teamDriveId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2991,7 +2991,7 @@ var resp = convert.JSON.encode(buildChangeList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(includeCorpusRemovals: arg_includeCorpusRemovals, includeDeleted: arg_includeDeleted, includeSubscribed: arg_includeSubscribed, includeTeamDriveItems: arg_includeTeamDriveItems, maxResults: arg_maxResults, pageToken: arg_pageToken, spaces: arg_spaces, startChangeId: arg_startChangeId, supportsTeamDrives: arg_supportsTeamDrives, teamDriveId: arg_teamDriveId).then(unittest.expectAsync(((api.ChangeList response) { + res.list(includeCorpusRemovals: arg_includeCorpusRemovals, includeDeleted: arg_includeDeleted, includeSubscribed: arg_includeSubscribed, includeTeamDriveItems: arg_includeTeamDriveItems, maxResults: arg_maxResults, pageToken: arg_pageToken, spaces: arg_spaces, startChangeId: arg_startChangeId, supportsTeamDrives: arg_supportsTeamDrives, teamDriveId: arg_teamDriveId).then(unittest.expectAsync1(((api.ChangeList response) { checkChangeList(response); }))); }); @@ -3011,7 +3011,7 @@ var arg_startChangeId = "foo"; var arg_supportsTeamDrives = true; var arg_teamDriveId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Channel.fromJson(json); checkChannel(obj); @@ -3060,7 +3060,7 @@ var resp = convert.JSON.encode(buildChannel()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.watch(arg_request, includeCorpusRemovals: arg_includeCorpusRemovals, includeDeleted: arg_includeDeleted, includeSubscribed: arg_includeSubscribed, includeTeamDriveItems: arg_includeTeamDriveItems, maxResults: arg_maxResults, pageToken: arg_pageToken, spaces: arg_spaces, startChangeId: arg_startChangeId, supportsTeamDrives: arg_supportsTeamDrives, teamDriveId: arg_teamDriveId).then(unittest.expectAsync(((api.Channel response) { + res.watch(arg_request, includeCorpusRemovals: arg_includeCorpusRemovals, includeDeleted: arg_includeDeleted, includeSubscribed: arg_includeSubscribed, includeTeamDriveItems: arg_includeTeamDriveItems, maxResults: arg_maxResults, pageToken: arg_pageToken, spaces: arg_spaces, startChangeId: arg_startChangeId, supportsTeamDrives: arg_supportsTeamDrives, teamDriveId: arg_teamDriveId).then(unittest.expectAsync1(((api.Channel response) { checkChannel(response); }))); }); @@ -3074,7 +3074,7 @@ var mock = new HttpServerMock(); api.ChannelsResourceApi res = new api.DriveApi(mock).channels; var arg_request = buildChannel(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Channel.fromJson(json); checkChannel(obj); @@ -3113,7 +3113,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.stop(arg_request).then(unittest.expectAsync((_) {})); + res.stop(arg_request).then(unittest.expectAsync1((_) {})); }); }); @@ -3126,7 +3126,7 @@ api.ChildrenResourceApi res = new api.DriveApi(mock).children; var arg_folderId = "foo"; var arg_childId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3172,7 +3172,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_folderId, arg_childId).then(unittest.expectAsync((_) {})); + res.delete(arg_folderId, arg_childId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -3181,7 +3181,7 @@ api.ChildrenResourceApi res = new api.DriveApi(mock).children; var arg_folderId = "foo"; var arg_childId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3227,7 +3227,7 @@ var resp = convert.JSON.encode(buildChildReference()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_folderId, arg_childId).then(unittest.expectAsync(((api.ChildReference response) { + res.get(arg_folderId, arg_childId).then(unittest.expectAsync1(((api.ChildReference response) { checkChildReference(response); }))); }); @@ -3239,7 +3239,7 @@ var arg_request = buildChildReference(); var arg_folderId = "foo"; var arg_supportsTeamDrives = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ChildReference.fromJson(json); checkChildReference(obj); @@ -3286,7 +3286,7 @@ var resp = convert.JSON.encode(buildChildReference()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_folderId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync(((api.ChildReference response) { + res.insert(arg_request, arg_folderId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync1(((api.ChildReference response) { checkChildReference(response); }))); }); @@ -3300,7 +3300,7 @@ var arg_orderBy = "foo"; var arg_pageToken = "foo"; var arg_q = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3347,7 +3347,7 @@ var resp = convert.JSON.encode(buildChildList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_folderId, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, q: arg_q).then(unittest.expectAsync(((api.ChildList response) { + res.list(arg_folderId, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, q: arg_q).then(unittest.expectAsync1(((api.ChildList response) { checkChildList(response); }))); }); @@ -3362,7 +3362,7 @@ api.CommentsResourceApi res = new api.DriveApi(mock).comments; var arg_fileId = "foo"; var arg_commentId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3408,7 +3408,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_fileId, arg_commentId).then(unittest.expectAsync((_) {})); + res.delete(arg_fileId, arg_commentId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -3418,7 +3418,7 @@ var arg_fileId = "foo"; var arg_commentId = "foo"; var arg_includeDeleted = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3465,7 +3465,7 @@ var resp = convert.JSON.encode(buildComment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_fileId, arg_commentId, includeDeleted: arg_includeDeleted).then(unittest.expectAsync(((api.Comment response) { + res.get(arg_fileId, arg_commentId, includeDeleted: arg_includeDeleted).then(unittest.expectAsync1(((api.Comment response) { checkComment(response); }))); }); @@ -3476,7 +3476,7 @@ api.CommentsResourceApi res = new api.DriveApi(mock).comments; var arg_request = buildComment(); var arg_fileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Comment.fromJson(json); checkComment(obj); @@ -3522,7 +3522,7 @@ var resp = convert.JSON.encode(buildComment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_fileId).then(unittest.expectAsync(((api.Comment response) { + res.insert(arg_request, arg_fileId).then(unittest.expectAsync1(((api.Comment response) { checkComment(response); }))); }); @@ -3536,7 +3536,7 @@ var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_updatedMin = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3583,7 +3583,7 @@ var resp = convert.JSON.encode(buildCommentList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_fileId, includeDeleted: arg_includeDeleted, maxResults: arg_maxResults, pageToken: arg_pageToken, updatedMin: arg_updatedMin).then(unittest.expectAsync(((api.CommentList response) { + res.list(arg_fileId, includeDeleted: arg_includeDeleted, maxResults: arg_maxResults, pageToken: arg_pageToken, updatedMin: arg_updatedMin).then(unittest.expectAsync1(((api.CommentList response) { checkCommentList(response); }))); }); @@ -3595,7 +3595,7 @@ var arg_request = buildComment(); var arg_fileId = "foo"; var arg_commentId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Comment.fromJson(json); checkComment(obj); @@ -3644,7 +3644,7 @@ var resp = convert.JSON.encode(buildComment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_fileId, arg_commentId).then(unittest.expectAsync(((api.Comment response) { + res.patch(arg_request, arg_fileId, arg_commentId).then(unittest.expectAsync1(((api.Comment response) { checkComment(response); }))); }); @@ -3656,7 +3656,7 @@ var arg_request = buildComment(); var arg_fileId = "foo"; var arg_commentId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Comment.fromJson(json); checkComment(obj); @@ -3705,7 +3705,7 @@ var resp = convert.JSON.encode(buildComment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_fileId, arg_commentId).then(unittest.expectAsync(((api.Comment response) { + res.update(arg_request, arg_fileId, arg_commentId).then(unittest.expectAsync1(((api.Comment response) { checkComment(response); }))); }); @@ -3728,7 +3728,7 @@ var arg_timedTextLanguage = "foo"; var arg_timedTextTrackName = "foo"; var arg_visibility = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.File.fromJson(json); checkFile(obj); @@ -3782,7 +3782,7 @@ var resp = convert.JSON.encode(buildFile()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.copy(arg_request, arg_fileId, convert: arg_convert, ocr: arg_ocr, ocrLanguage: arg_ocrLanguage, pinned: arg_pinned, supportsTeamDrives: arg_supportsTeamDrives, timedTextLanguage: arg_timedTextLanguage, timedTextTrackName: arg_timedTextTrackName, visibility: arg_visibility).then(unittest.expectAsync(((api.File response) { + res.copy(arg_request, arg_fileId, convert: arg_convert, ocr: arg_ocr, ocrLanguage: arg_ocrLanguage, pinned: arg_pinned, supportsTeamDrives: arg_supportsTeamDrives, timedTextLanguage: arg_timedTextLanguage, timedTextTrackName: arg_timedTextTrackName, visibility: arg_visibility).then(unittest.expectAsync1(((api.File response) { checkFile(response); }))); }); @@ -3793,7 +3793,7 @@ api.FilesResourceApi res = new api.DriveApi(mock).files; var arg_fileId = "foo"; var arg_supportsTeamDrives = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3833,14 +3833,14 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_fileId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync((_) {})); + res.delete(arg_fileId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync1((_) {})); }); unittest.test("method--emptyTrash", () { var mock = new HttpServerMock(); api.FilesResourceApi res = new api.DriveApi(mock).files; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3876,7 +3876,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.emptyTrash().then(unittest.expectAsync((_) {})); + res.emptyTrash().then(unittest.expectAsync1((_) {})); }); unittest.test("method--export", () { @@ -3887,7 +3887,7 @@ api.FilesResourceApi res = new api.DriveApi(mock).files; var arg_fileId = "foo"; var arg_mimeType = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3931,7 +3931,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.export(arg_fileId, arg_mimeType).then(unittest.expectAsync((_) {})); + res.export(arg_fileId, arg_mimeType).then(unittest.expectAsync1((_) {})); }); unittest.test("method--generateIds", () { @@ -3940,7 +3940,7 @@ api.FilesResourceApi res = new api.DriveApi(mock).files; var arg_maxResults = 42; var arg_space = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3978,7 +3978,7 @@ var resp = convert.JSON.encode(buildGeneratedIds()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.generateIds(maxResults: arg_maxResults, space: arg_space).then(unittest.expectAsync(((api.GeneratedIds response) { + res.generateIds(maxResults: arg_maxResults, space: arg_space).then(unittest.expectAsync1(((api.GeneratedIds response) { checkGeneratedIds(response); }))); }); @@ -3995,7 +3995,7 @@ var arg_revisionId = "foo"; var arg_supportsTeamDrives = true; var arg_updateViewedDate = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4039,7 +4039,7 @@ var resp = convert.JSON.encode(buildFile()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_fileId, acknowledgeAbuse: arg_acknowledgeAbuse, projection: arg_projection, revisionId: arg_revisionId, supportsTeamDrives: arg_supportsTeamDrives, updateViewedDate: arg_updateViewedDate).then(unittest.expectAsync(((api.File response) { + res.get(arg_fileId, acknowledgeAbuse: arg_acknowledgeAbuse, projection: arg_projection, revisionId: arg_revisionId, supportsTeamDrives: arg_supportsTeamDrives, updateViewedDate: arg_updateViewedDate).then(unittest.expectAsync1(((api.File response) { checkFile(response); }))); }); @@ -4060,7 +4060,7 @@ var arg_timedTextTrackName = "foo"; var arg_useContentAsIndexableText = true; var arg_visibility = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.File.fromJson(json); checkFile(obj); @@ -4108,7 +4108,7 @@ var resp = convert.JSON.encode(buildFile()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, convert: arg_convert, ocr: arg_ocr, ocrLanguage: arg_ocrLanguage, pinned: arg_pinned, supportsTeamDrives: arg_supportsTeamDrives, timedTextLanguage: arg_timedTextLanguage, timedTextTrackName: arg_timedTextTrackName, useContentAsIndexableText: arg_useContentAsIndexableText, visibility: arg_visibility).then(unittest.expectAsync(((api.File response) { + res.insert(arg_request, convert: arg_convert, ocr: arg_ocr, ocrLanguage: arg_ocrLanguage, pinned: arg_pinned, supportsTeamDrives: arg_supportsTeamDrives, timedTextLanguage: arg_timedTextLanguage, timedTextTrackName: arg_timedTextTrackName, useContentAsIndexableText: arg_useContentAsIndexableText, visibility: arg_visibility).then(unittest.expectAsync1(((api.File response) { checkFile(response); }))); }); @@ -4128,7 +4128,7 @@ var arg_spaces = "foo"; var arg_supportsTeamDrives = true; var arg_teamDriveId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4175,7 +4175,7 @@ var resp = convert.JSON.encode(buildFileList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(corpora: arg_corpora, corpus: arg_corpus, includeTeamDriveItems: arg_includeTeamDriveItems, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, projection: arg_projection, q: arg_q, spaces: arg_spaces, supportsTeamDrives: arg_supportsTeamDrives, teamDriveId: arg_teamDriveId).then(unittest.expectAsync(((api.FileList response) { + res.list(corpora: arg_corpora, corpus: arg_corpus, includeTeamDriveItems: arg_includeTeamDriveItems, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, projection: arg_projection, q: arg_q, spaces: arg_spaces, supportsTeamDrives: arg_supportsTeamDrives, teamDriveId: arg_teamDriveId).then(unittest.expectAsync1(((api.FileList response) { checkFileList(response); }))); }); @@ -4200,7 +4200,7 @@ var arg_timedTextTrackName = "foo"; var arg_updateViewedDate = true; var arg_useContentAsIndexableText = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.File.fromJson(json); checkFile(obj); @@ -4256,7 +4256,7 @@ var resp = convert.JSON.encode(buildFile()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_fileId, addParents: arg_addParents, convert: arg_convert, modifiedDateBehavior: arg_modifiedDateBehavior, newRevision: arg_newRevision, ocr: arg_ocr, ocrLanguage: arg_ocrLanguage, pinned: arg_pinned, removeParents: arg_removeParents, setModifiedDate: arg_setModifiedDate, supportsTeamDrives: arg_supportsTeamDrives, timedTextLanguage: arg_timedTextLanguage, timedTextTrackName: arg_timedTextTrackName, updateViewedDate: arg_updateViewedDate, useContentAsIndexableText: arg_useContentAsIndexableText).then(unittest.expectAsync(((api.File response) { + res.patch(arg_request, arg_fileId, addParents: arg_addParents, convert: arg_convert, modifiedDateBehavior: arg_modifiedDateBehavior, newRevision: arg_newRevision, ocr: arg_ocr, ocrLanguage: arg_ocrLanguage, pinned: arg_pinned, removeParents: arg_removeParents, setModifiedDate: arg_setModifiedDate, supportsTeamDrives: arg_supportsTeamDrives, timedTextLanguage: arg_timedTextLanguage, timedTextTrackName: arg_timedTextTrackName, updateViewedDate: arg_updateViewedDate, useContentAsIndexableText: arg_useContentAsIndexableText).then(unittest.expectAsync1(((api.File response) { checkFile(response); }))); }); @@ -4267,7 +4267,7 @@ api.FilesResourceApi res = new api.DriveApi(mock).files; var arg_fileId = "foo"; var arg_supportsTeamDrives = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4311,7 +4311,7 @@ var resp = convert.JSON.encode(buildFile()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.touch(arg_fileId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync(((api.File response) { + res.touch(arg_fileId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync1(((api.File response) { checkFile(response); }))); }); @@ -4322,7 +4322,7 @@ api.FilesResourceApi res = new api.DriveApi(mock).files; var arg_fileId = "foo"; var arg_supportsTeamDrives = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4366,7 +4366,7 @@ var resp = convert.JSON.encode(buildFile()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.trash(arg_fileId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync(((api.File response) { + res.trash(arg_fileId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync1(((api.File response) { checkFile(response); }))); }); @@ -4377,7 +4377,7 @@ api.FilesResourceApi res = new api.DriveApi(mock).files; var arg_fileId = "foo"; var arg_supportsTeamDrives = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4421,7 +4421,7 @@ var resp = convert.JSON.encode(buildFile()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.untrash(arg_fileId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync(((api.File response) { + res.untrash(arg_fileId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync1(((api.File response) { checkFile(response); }))); }); @@ -4448,7 +4448,7 @@ var arg_timedTextTrackName = "foo"; var arg_updateViewedDate = true; var arg_useContentAsIndexableText = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.File.fromJson(json); checkFile(obj); @@ -4504,7 +4504,7 @@ var resp = convert.JSON.encode(buildFile()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_fileId, addParents: arg_addParents, convert: arg_convert, modifiedDateBehavior: arg_modifiedDateBehavior, newRevision: arg_newRevision, ocr: arg_ocr, ocrLanguage: arg_ocrLanguage, pinned: arg_pinned, removeParents: arg_removeParents, setModifiedDate: arg_setModifiedDate, supportsTeamDrives: arg_supportsTeamDrives, timedTextLanguage: arg_timedTextLanguage, timedTextTrackName: arg_timedTextTrackName, updateViewedDate: arg_updateViewedDate, useContentAsIndexableText: arg_useContentAsIndexableText).then(unittest.expectAsync(((api.File response) { + res.update(arg_request, arg_fileId, addParents: arg_addParents, convert: arg_convert, modifiedDateBehavior: arg_modifiedDateBehavior, newRevision: arg_newRevision, ocr: arg_ocr, ocrLanguage: arg_ocrLanguage, pinned: arg_pinned, removeParents: arg_removeParents, setModifiedDate: arg_setModifiedDate, supportsTeamDrives: arg_supportsTeamDrives, timedTextLanguage: arg_timedTextLanguage, timedTextTrackName: arg_timedTextTrackName, updateViewedDate: arg_updateViewedDate, useContentAsIndexableText: arg_useContentAsIndexableText).then(unittest.expectAsync1(((api.File response) { checkFile(response); }))); }); @@ -4522,7 +4522,7 @@ var arg_revisionId = "foo"; var arg_supportsTeamDrives = true; var arg_updateViewedDate = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Channel.fromJson(json); checkChannel(obj); @@ -4573,7 +4573,7 @@ var resp = convert.JSON.encode(buildChannel()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.watch(arg_request, arg_fileId, acknowledgeAbuse: arg_acknowledgeAbuse, projection: arg_projection, revisionId: arg_revisionId, supportsTeamDrives: arg_supportsTeamDrives, updateViewedDate: arg_updateViewedDate).then(unittest.expectAsync(((api.Channel response) { + res.watch(arg_request, arg_fileId, acknowledgeAbuse: arg_acknowledgeAbuse, projection: arg_projection, revisionId: arg_revisionId, supportsTeamDrives: arg_supportsTeamDrives, updateViewedDate: arg_updateViewedDate).then(unittest.expectAsync1(((api.Channel response) { checkChannel(response); }))); }); @@ -4588,7 +4588,7 @@ api.ParentsResourceApi res = new api.DriveApi(mock).parents; var arg_fileId = "foo"; var arg_parentId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4634,7 +4634,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_fileId, arg_parentId).then(unittest.expectAsync((_) {})); + res.delete(arg_fileId, arg_parentId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -4643,7 +4643,7 @@ api.ParentsResourceApi res = new api.DriveApi(mock).parents; var arg_fileId = "foo"; var arg_parentId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4689,7 +4689,7 @@ var resp = convert.JSON.encode(buildParentReference()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_fileId, arg_parentId).then(unittest.expectAsync(((api.ParentReference response) { + res.get(arg_fileId, arg_parentId).then(unittest.expectAsync1(((api.ParentReference response) { checkParentReference(response); }))); }); @@ -4701,7 +4701,7 @@ var arg_request = buildParentReference(); var arg_fileId = "foo"; var arg_supportsTeamDrives = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ParentReference.fromJson(json); checkParentReference(obj); @@ -4748,7 +4748,7 @@ var resp = convert.JSON.encode(buildParentReference()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_fileId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync(((api.ParentReference response) { + res.insert(arg_request, arg_fileId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync1(((api.ParentReference response) { checkParentReference(response); }))); }); @@ -4758,7 +4758,7 @@ var mock = new HttpServerMock(); api.ParentsResourceApi res = new api.DriveApi(mock).parents; var arg_fileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4801,7 +4801,7 @@ var resp = convert.JSON.encode(buildParentList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_fileId).then(unittest.expectAsync(((api.ParentList response) { + res.list(arg_fileId).then(unittest.expectAsync1(((api.ParentList response) { checkParentList(response); }))); }); @@ -4817,7 +4817,7 @@ var arg_fileId = "foo"; var arg_permissionId = "foo"; var arg_supportsTeamDrives = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4864,7 +4864,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_fileId, arg_permissionId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync((_) {})); + res.delete(arg_fileId, arg_permissionId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -4874,7 +4874,7 @@ var arg_fileId = "foo"; var arg_permissionId = "foo"; var arg_supportsTeamDrives = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4921,7 +4921,7 @@ var resp = convert.JSON.encode(buildPermission()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_fileId, arg_permissionId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync(((api.Permission response) { + res.get(arg_fileId, arg_permissionId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync1(((api.Permission response) { checkPermission(response); }))); }); @@ -4931,7 +4931,7 @@ var mock = new HttpServerMock(); api.PermissionsResourceApi res = new api.DriveApi(mock).permissions; var arg_email = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4970,7 +4970,7 @@ var resp = convert.JSON.encode(buildPermissionId()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getIdForEmail(arg_email).then(unittest.expectAsync(((api.PermissionId response) { + res.getIdForEmail(arg_email).then(unittest.expectAsync1(((api.PermissionId response) { checkPermissionId(response); }))); }); @@ -4984,7 +4984,7 @@ var arg_emailMessage = "foo"; var arg_sendNotificationEmails = true; var arg_supportsTeamDrives = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Permission.fromJson(json); checkPermission(obj); @@ -5033,7 +5033,7 @@ var resp = convert.JSON.encode(buildPermission()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_fileId, emailMessage: arg_emailMessage, sendNotificationEmails: arg_sendNotificationEmails, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync(((api.Permission response) { + res.insert(arg_request, arg_fileId, emailMessage: arg_emailMessage, sendNotificationEmails: arg_sendNotificationEmails, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync1(((api.Permission response) { checkPermission(response); }))); }); @@ -5046,7 +5046,7 @@ var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_supportsTeamDrives = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5092,7 +5092,7 @@ var resp = convert.JSON.encode(buildPermissionList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_fileId, maxResults: arg_maxResults, pageToken: arg_pageToken, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync(((api.PermissionList response) { + res.list(arg_fileId, maxResults: arg_maxResults, pageToken: arg_pageToken, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync1(((api.PermissionList response) { checkPermissionList(response); }))); }); @@ -5107,7 +5107,7 @@ var arg_removeExpiration = true; var arg_supportsTeamDrives = true; var arg_transferOwnership = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Permission.fromJson(json); checkPermission(obj); @@ -5159,7 +5159,7 @@ var resp = convert.JSON.encode(buildPermission()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_fileId, arg_permissionId, removeExpiration: arg_removeExpiration, supportsTeamDrives: arg_supportsTeamDrives, transferOwnership: arg_transferOwnership).then(unittest.expectAsync(((api.Permission response) { + res.patch(arg_request, arg_fileId, arg_permissionId, removeExpiration: arg_removeExpiration, supportsTeamDrives: arg_supportsTeamDrives, transferOwnership: arg_transferOwnership).then(unittest.expectAsync1(((api.Permission response) { checkPermission(response); }))); }); @@ -5174,7 +5174,7 @@ var arg_removeExpiration = true; var arg_supportsTeamDrives = true; var arg_transferOwnership = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Permission.fromJson(json); checkPermission(obj); @@ -5226,7 +5226,7 @@ var resp = convert.JSON.encode(buildPermission()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_fileId, arg_permissionId, removeExpiration: arg_removeExpiration, supportsTeamDrives: arg_supportsTeamDrives, transferOwnership: arg_transferOwnership).then(unittest.expectAsync(((api.Permission response) { + res.update(arg_request, arg_fileId, arg_permissionId, removeExpiration: arg_removeExpiration, supportsTeamDrives: arg_supportsTeamDrives, transferOwnership: arg_transferOwnership).then(unittest.expectAsync1(((api.Permission response) { checkPermission(response); }))); }); @@ -5242,7 +5242,7 @@ var arg_fileId = "foo"; var arg_propertyKey = "foo"; var arg_visibility = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5289,7 +5289,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_fileId, arg_propertyKey, visibility: arg_visibility).then(unittest.expectAsync((_) {})); + res.delete(arg_fileId, arg_propertyKey, visibility: arg_visibility).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -5299,7 +5299,7 @@ var arg_fileId = "foo"; var arg_propertyKey = "foo"; var arg_visibility = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5346,7 +5346,7 @@ var resp = convert.JSON.encode(buildProperty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_fileId, arg_propertyKey, visibility: arg_visibility).then(unittest.expectAsync(((api.Property response) { + res.get(arg_fileId, arg_propertyKey, visibility: arg_visibility).then(unittest.expectAsync1(((api.Property response) { checkProperty(response); }))); }); @@ -5357,7 +5357,7 @@ api.PropertiesResourceApi res = new api.DriveApi(mock).properties; var arg_request = buildProperty(); var arg_fileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Property.fromJson(json); checkProperty(obj); @@ -5403,7 +5403,7 @@ var resp = convert.JSON.encode(buildProperty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_fileId).then(unittest.expectAsync(((api.Property response) { + res.insert(arg_request, arg_fileId).then(unittest.expectAsync1(((api.Property response) { checkProperty(response); }))); }); @@ -5413,7 +5413,7 @@ var mock = new HttpServerMock(); api.PropertiesResourceApi res = new api.DriveApi(mock).properties; var arg_fileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5456,7 +5456,7 @@ var resp = convert.JSON.encode(buildPropertyList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_fileId).then(unittest.expectAsync(((api.PropertyList response) { + res.list(arg_fileId).then(unittest.expectAsync1(((api.PropertyList response) { checkPropertyList(response); }))); }); @@ -5469,7 +5469,7 @@ var arg_fileId = "foo"; var arg_propertyKey = "foo"; var arg_visibility = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Property.fromJson(json); checkProperty(obj); @@ -5519,7 +5519,7 @@ var resp = convert.JSON.encode(buildProperty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_fileId, arg_propertyKey, visibility: arg_visibility).then(unittest.expectAsync(((api.Property response) { + res.patch(arg_request, arg_fileId, arg_propertyKey, visibility: arg_visibility).then(unittest.expectAsync1(((api.Property response) { checkProperty(response); }))); }); @@ -5532,7 +5532,7 @@ var arg_fileId = "foo"; var arg_propertyKey = "foo"; var arg_visibility = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Property.fromJson(json); checkProperty(obj); @@ -5582,7 +5582,7 @@ var resp = convert.JSON.encode(buildProperty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_fileId, arg_propertyKey, visibility: arg_visibility).then(unittest.expectAsync(((api.Property response) { + res.update(arg_request, arg_fileId, arg_propertyKey, visibility: arg_visibility).then(unittest.expectAsync1(((api.Property response) { checkProperty(response); }))); }); @@ -5599,7 +5599,7 @@ api.RealtimeResourceApi res = new api.DriveApi(mock).realtime; var arg_fileId = "foo"; var arg_revision = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5643,7 +5643,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_fileId, revision: arg_revision).then(unittest.expectAsync((_) {})); + res.get(arg_fileId, revision: arg_revision).then(unittest.expectAsync1((_) {})); }); unittest.test("method--update", () { @@ -5654,7 +5654,7 @@ api.RealtimeResourceApi res = new api.DriveApi(mock).realtime; var arg_fileId = "foo"; var arg_baseRevision = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5698,7 +5698,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_fileId, baseRevision: arg_baseRevision).then(unittest.expectAsync((_) {})); + res.update(arg_fileId, baseRevision: arg_baseRevision).then(unittest.expectAsync1((_) {})); }); }); @@ -5712,7 +5712,7 @@ var arg_fileId = "foo"; var arg_commentId = "foo"; var arg_replyId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5765,7 +5765,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_fileId, arg_commentId, arg_replyId).then(unittest.expectAsync((_) {})); + res.delete(arg_fileId, arg_commentId, arg_replyId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -5776,7 +5776,7 @@ var arg_commentId = "foo"; var arg_replyId = "foo"; var arg_includeDeleted = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5830,7 +5830,7 @@ var resp = convert.JSON.encode(buildCommentReply()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_fileId, arg_commentId, arg_replyId, includeDeleted: arg_includeDeleted).then(unittest.expectAsync(((api.CommentReply response) { + res.get(arg_fileId, arg_commentId, arg_replyId, includeDeleted: arg_includeDeleted).then(unittest.expectAsync1(((api.CommentReply response) { checkCommentReply(response); }))); }); @@ -5842,7 +5842,7 @@ var arg_request = buildCommentReply(); var arg_fileId = "foo"; var arg_commentId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CommentReply.fromJson(json); checkCommentReply(obj); @@ -5895,7 +5895,7 @@ var resp = convert.JSON.encode(buildCommentReply()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_fileId, arg_commentId).then(unittest.expectAsync(((api.CommentReply response) { + res.insert(arg_request, arg_fileId, arg_commentId).then(unittest.expectAsync1(((api.CommentReply response) { checkCommentReply(response); }))); }); @@ -5909,7 +5909,7 @@ var arg_includeDeleted = true; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5962,7 +5962,7 @@ var resp = convert.JSON.encode(buildCommentReplyList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_fileId, arg_commentId, includeDeleted: arg_includeDeleted, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.CommentReplyList response) { + res.list(arg_fileId, arg_commentId, includeDeleted: arg_includeDeleted, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.CommentReplyList response) { checkCommentReplyList(response); }))); }); @@ -5975,7 +5975,7 @@ var arg_fileId = "foo"; var arg_commentId = "foo"; var arg_replyId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CommentReply.fromJson(json); checkCommentReply(obj); @@ -6031,7 +6031,7 @@ var resp = convert.JSON.encode(buildCommentReply()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_fileId, arg_commentId, arg_replyId).then(unittest.expectAsync(((api.CommentReply response) { + res.patch(arg_request, arg_fileId, arg_commentId, arg_replyId).then(unittest.expectAsync1(((api.CommentReply response) { checkCommentReply(response); }))); }); @@ -6044,7 +6044,7 @@ var arg_fileId = "foo"; var arg_commentId = "foo"; var arg_replyId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CommentReply.fromJson(json); checkCommentReply(obj); @@ -6100,7 +6100,7 @@ var resp = convert.JSON.encode(buildCommentReply()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_fileId, arg_commentId, arg_replyId).then(unittest.expectAsync(((api.CommentReply response) { + res.update(arg_request, arg_fileId, arg_commentId, arg_replyId).then(unittest.expectAsync1(((api.CommentReply response) { checkCommentReply(response); }))); }); @@ -6115,7 +6115,7 @@ api.RevisionsResourceApi res = new api.DriveApi(mock).revisions; var arg_fileId = "foo"; var arg_revisionId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6161,7 +6161,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_fileId, arg_revisionId).then(unittest.expectAsync((_) {})); + res.delete(arg_fileId, arg_revisionId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -6170,7 +6170,7 @@ api.RevisionsResourceApi res = new api.DriveApi(mock).revisions; var arg_fileId = "foo"; var arg_revisionId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6216,7 +6216,7 @@ var resp = convert.JSON.encode(buildRevision()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_fileId, arg_revisionId).then(unittest.expectAsync(((api.Revision response) { + res.get(arg_fileId, arg_revisionId).then(unittest.expectAsync1(((api.Revision response) { checkRevision(response); }))); }); @@ -6228,7 +6228,7 @@ var arg_fileId = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6273,7 +6273,7 @@ var resp = convert.JSON.encode(buildRevisionList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_fileId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RevisionList response) { + res.list(arg_fileId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.RevisionList response) { checkRevisionList(response); }))); }); @@ -6285,7 +6285,7 @@ var arg_request = buildRevision(); var arg_fileId = "foo"; var arg_revisionId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Revision.fromJson(json); checkRevision(obj); @@ -6334,7 +6334,7 @@ var resp = convert.JSON.encode(buildRevision()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAsync(((api.Revision response) { + res.patch(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAsync1(((api.Revision response) { checkRevision(response); }))); }); @@ -6346,7 +6346,7 @@ var arg_request = buildRevision(); var arg_fileId = "foo"; var arg_revisionId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Revision.fromJson(json); checkRevision(obj); @@ -6395,7 +6395,7 @@ var resp = convert.JSON.encode(buildRevision()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAsync(((api.Revision response) { + res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAsync1(((api.Revision response) { checkRevision(response); }))); }); @@ -6409,7 +6409,7 @@ var mock = new HttpServerMock(); api.TeamdrivesResourceApi res = new api.DriveApi(mock).teamdrives; var arg_teamDriveId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6448,7 +6448,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_teamDriveId).then(unittest.expectAsync((_) {})); + res.delete(arg_teamDriveId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -6456,7 +6456,7 @@ var mock = new HttpServerMock(); api.TeamdrivesResourceApi res = new api.DriveApi(mock).teamdrives; var arg_teamDriveId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6495,7 +6495,7 @@ var resp = convert.JSON.encode(buildTeamDrive()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_teamDriveId).then(unittest.expectAsync(((api.TeamDrive response) { + res.get(arg_teamDriveId).then(unittest.expectAsync1(((api.TeamDrive response) { checkTeamDrive(response); }))); }); @@ -6506,7 +6506,7 @@ api.TeamdrivesResourceApi res = new api.DriveApi(mock).teamdrives; var arg_request = buildTeamDrive(); var arg_requestId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TeamDrive.fromJson(json); checkTeamDrive(obj); @@ -6546,7 +6546,7 @@ var resp = convert.JSON.encode(buildTeamDrive()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_requestId).then(unittest.expectAsync(((api.TeamDrive response) { + res.insert(arg_request, arg_requestId).then(unittest.expectAsync1(((api.TeamDrive response) { checkTeamDrive(response); }))); }); @@ -6557,7 +6557,7 @@ api.TeamdrivesResourceApi res = new api.DriveApi(mock).teamdrives; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6595,7 +6595,7 @@ var resp = convert.JSON.encode(buildTeamDriveList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TeamDriveList response) { + res.list(maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.TeamDriveList response) { checkTeamDriveList(response); }))); }); @@ -6606,7 +6606,7 @@ api.TeamdrivesResourceApi res = new api.DriveApi(mock).teamdrives; var arg_request = buildTeamDrive(); var arg_teamDriveId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TeamDrive.fromJson(json); checkTeamDrive(obj); @@ -6648,7 +6648,7 @@ var resp = convert.JSON.encode(buildTeamDrive()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_teamDriveId).then(unittest.expectAsync(((api.TeamDrive response) { + res.update(arg_request, arg_teamDriveId).then(unittest.expectAsync1(((api.TeamDrive response) { checkTeamDrive(response); }))); });
diff --git a/generated/googleapis/test/drive/v3_test.dart b/generated/googleapis/test/drive/v3_test.dart index 57d66d3..173c93a 100644 --- a/generated/googleapis/test/drive/v3_test.dart +++ b/generated/googleapis/test/drive/v3_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/drive/v3.dart' as api; @@ -46,84 +46,84 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1470() { +buildUnnamed1477() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1470(core.List<core.String> o) { +checkUnnamed1477(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1471() { +buildUnnamed1478() { var o = new core.Map<core.String, core.List<core.String>>(); - o["x"] = buildUnnamed1470(); - o["y"] = buildUnnamed1470(); + o["x"] = buildUnnamed1477(); + o["y"] = buildUnnamed1477(); return o; } -checkUnnamed1471(core.Map<core.String, core.List<core.String>> o) { +checkUnnamed1478(core.Map<core.String, core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1470(o["x"]); - checkUnnamed1470(o["y"]); + checkUnnamed1477(o["x"]); + checkUnnamed1477(o["y"]); } -buildUnnamed1472() { +buildUnnamed1479() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1472(core.List<core.String> o) { +checkUnnamed1479(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1473() { +buildUnnamed1480() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1473(core.List<core.String> o) { +checkUnnamed1480(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1474() { +buildUnnamed1481() { var o = new core.Map<core.String, core.List<core.String>>(); - o["x"] = buildUnnamed1473(); - o["y"] = buildUnnamed1473(); + o["x"] = buildUnnamed1480(); + o["y"] = buildUnnamed1480(); return o; } -checkUnnamed1474(core.Map<core.String, core.List<core.String>> o) { +checkUnnamed1481(core.Map<core.String, core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1473(o["x"]); - checkUnnamed1473(o["y"]); + checkUnnamed1480(o["x"]); + checkUnnamed1480(o["y"]); } -buildUnnamed1475() { +buildUnnamed1482() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1475(core.Map<core.String, core.String> o) { +checkUnnamed1482(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -177,14 +177,14 @@ buildCounterAboutTeamDriveThemes--; } -buildUnnamed1476() { +buildUnnamed1483() { var o = new core.List<api.AboutTeamDriveThemes>(); o.add(buildAboutTeamDriveThemes()); o.add(buildAboutTeamDriveThemes()); return o; } -checkUnnamed1476(core.List<api.AboutTeamDriveThemes> o) { +checkUnnamed1483(core.List<api.AboutTeamDriveThemes> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutTeamDriveThemes(o[0]); checkAboutTeamDriveThemes(o[1]); @@ -196,14 +196,14 @@ buildCounterAbout++; if (buildCounterAbout < 3) { o.appInstalled = true; - o.exportFormats = buildUnnamed1471(); - o.folderColorPalette = buildUnnamed1472(); - o.importFormats = buildUnnamed1474(); + o.exportFormats = buildUnnamed1478(); + o.folderColorPalette = buildUnnamed1479(); + o.importFormats = buildUnnamed1481(); o.kind = "foo"; - o.maxImportSizes = buildUnnamed1475(); + o.maxImportSizes = buildUnnamed1482(); o.maxUploadSize = "foo"; o.storageQuota = buildAboutStorageQuota(); - o.teamDriveThemes = buildUnnamed1476(); + o.teamDriveThemes = buildUnnamed1483(); o.user = buildUser(); } buildCounterAbout--; @@ -214,14 +214,14 @@ buildCounterAbout++; if (buildCounterAbout < 3) { unittest.expect(o.appInstalled, unittest.isTrue); - checkUnnamed1471(o.exportFormats); - checkUnnamed1472(o.folderColorPalette); - checkUnnamed1474(o.importFormats); + checkUnnamed1478(o.exportFormats); + checkUnnamed1479(o.folderColorPalette); + checkUnnamed1481(o.importFormats); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1475(o.maxImportSizes); + checkUnnamed1482(o.maxImportSizes); unittest.expect(o.maxUploadSize, unittest.equals('foo')); checkAboutStorageQuota(o.storageQuota); - checkUnnamed1476(o.teamDriveThemes); + checkUnnamed1483(o.teamDriveThemes); checkUser(o.user); } buildCounterAbout--; @@ -260,14 +260,14 @@ buildCounterChange--; } -buildUnnamed1477() { +buildUnnamed1484() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed1477(core.List<api.Change> o) { +checkUnnamed1484(core.List<api.Change> o) { unittest.expect(o, unittest.hasLength(2)); checkChange(o[0]); checkChange(o[1]); @@ -278,7 +278,7 @@ var o = new api.ChangeList(); buildCounterChangeList++; if (buildCounterChangeList < 3) { - o.changes = buildUnnamed1477(); + o.changes = buildUnnamed1484(); o.kind = "foo"; o.newStartPageToken = "foo"; o.nextPageToken = "foo"; @@ -290,7 +290,7 @@ checkChangeList(api.ChangeList o) { buildCounterChangeList++; if (buildCounterChangeList < 3) { - checkUnnamed1477(o.changes); + checkUnnamed1484(o.changes); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.newStartPageToken, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -298,14 +298,14 @@ buildCounterChangeList--; } -buildUnnamed1478() { +buildUnnamed1485() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1478(core.Map<core.String, core.String> o) { +checkUnnamed1485(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -320,7 +320,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed1478(); + o.params = buildUnnamed1485(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -338,7 +338,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1478(o.params); + checkUnnamed1485(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -369,14 +369,14 @@ buildCounterCommentQuotedFileContent--; } -buildUnnamed1479() { +buildUnnamed1486() { var o = new core.List<api.Reply>(); o.add(buildReply()); o.add(buildReply()); return o; } -checkUnnamed1479(core.List<api.Reply> o) { +checkUnnamed1486(core.List<api.Reply> o) { unittest.expect(o, unittest.hasLength(2)); checkReply(o[0]); checkReply(o[1]); @@ -397,7 +397,7 @@ o.kind = "foo"; o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); o.quotedFileContent = buildCommentQuotedFileContent(); - o.replies = buildUnnamed1479(); + o.replies = buildUnnamed1486(); o.resolved = true; } buildCounterComment--; @@ -417,20 +417,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); checkCommentQuotedFileContent(o.quotedFileContent); - checkUnnamed1479(o.replies); + checkUnnamed1486(o.replies); unittest.expect(o.resolved, unittest.isTrue); } buildCounterComment--; } -buildUnnamed1480() { +buildUnnamed1487() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed1480(core.List<api.Comment> o) { +checkUnnamed1487(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -441,7 +441,7 @@ var o = new api.CommentList(); buildCounterCommentList++; if (buildCounterCommentList < 3) { - o.comments = buildUnnamed1480(); + o.comments = buildUnnamed1487(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -452,21 +452,21 @@ checkCommentList(api.CommentList o) { buildCounterCommentList++; if (buildCounterCommentList < 3) { - checkUnnamed1480(o.comments); + checkUnnamed1487(o.comments); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCommentList--; } -buildUnnamed1481() { +buildUnnamed1488() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1481(core.Map<core.String, core.String> o) { +checkUnnamed1488(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -647,66 +647,66 @@ buildCounterFileImageMediaMetadata--; } -buildUnnamed1482() { +buildUnnamed1489() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed1482(core.List<api.User> o) { +checkUnnamed1489(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); } -buildUnnamed1483() { +buildUnnamed1490() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1483(core.List<core.String> o) { +checkUnnamed1490(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1484() { +buildUnnamed1491() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1484(core.List<api.Permission> o) { +checkUnnamed1491(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); } -buildUnnamed1485() { +buildUnnamed1492() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1485(core.Map<core.String, core.String> o) { +checkUnnamed1492(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1486() { +buildUnnamed1493() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1486(core.List<core.String> o) { +checkUnnamed1493(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -740,7 +740,7 @@ var o = new api.File(); buildCounterFile++; if (buildCounterFile < 3) { - o.appProperties = buildUnnamed1481(); + o.appProperties = buildUnnamed1488(); o.capabilities = buildFileCapabilities(); o.contentHints = buildFileContentHints(); o.createdTime = core.DateTime.parse("2002-02-27T14:01:02"); @@ -766,16 +766,16 @@ o.name = "foo"; o.originalFilename = "foo"; o.ownedByMe = true; - o.owners = buildUnnamed1482(); - o.parents = buildUnnamed1483(); - o.permissions = buildUnnamed1484(); - o.properties = buildUnnamed1485(); + o.owners = buildUnnamed1489(); + o.parents = buildUnnamed1490(); + o.permissions = buildUnnamed1491(); + o.properties = buildUnnamed1492(); o.quotaBytesUsed = "foo"; o.shared = true; o.sharedWithMeTime = core.DateTime.parse("2002-02-27T14:01:02"); o.sharingUser = buildUser(); o.size = "foo"; - o.spaces = buildUnnamed1486(); + o.spaces = buildUnnamed1493(); o.starred = true; o.teamDriveId = "foo"; o.thumbnailLink = "foo"; @@ -799,7 +799,7 @@ checkFile(api.File o) { buildCounterFile++; if (buildCounterFile < 3) { - checkUnnamed1481(o.appProperties); + checkUnnamed1488(o.appProperties); checkFileCapabilities(o.capabilities); checkFileContentHints(o.contentHints); unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -825,16 +825,16 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.originalFilename, unittest.equals('foo')); unittest.expect(o.ownedByMe, unittest.isTrue); - checkUnnamed1482(o.owners); - checkUnnamed1483(o.parents); - checkUnnamed1484(o.permissions); - checkUnnamed1485(o.properties); + checkUnnamed1489(o.owners); + checkUnnamed1490(o.parents); + checkUnnamed1491(o.permissions); + checkUnnamed1492(o.properties); unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); unittest.expect(o.shared, unittest.isTrue); unittest.expect(o.sharedWithMeTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); checkUser(o.sharingUser); unittest.expect(o.size, unittest.equals('foo')); - checkUnnamed1486(o.spaces); + checkUnnamed1493(o.spaces); unittest.expect(o.starred, unittest.isTrue); unittest.expect(o.teamDriveId, unittest.equals('foo')); unittest.expect(o.thumbnailLink, unittest.equals('foo')); @@ -854,14 +854,14 @@ buildCounterFile--; } -buildUnnamed1487() { +buildUnnamed1494() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed1487(core.List<api.File> o) { +checkUnnamed1494(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -872,7 +872,7 @@ var o = new api.FileList(); buildCounterFileList++; if (buildCounterFileList < 3) { - o.files = buildUnnamed1487(); + o.files = buildUnnamed1494(); o.incompleteSearch = true; o.kind = "foo"; o.nextPageToken = "foo"; @@ -884,7 +884,7 @@ checkFileList(api.FileList o) { buildCounterFileList++; if (buildCounterFileList < 3) { - checkUnnamed1487(o.files); + checkUnnamed1494(o.files); unittest.expect(o.incompleteSearch, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -892,14 +892,14 @@ buildCounterFileList--; } -buildUnnamed1488() { +buildUnnamed1495() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1488(core.List<core.String> o) { +checkUnnamed1495(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -910,7 +910,7 @@ var o = new api.GeneratedIds(); buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - o.ids = buildUnnamed1488(); + o.ids = buildUnnamed1495(); o.kind = "foo"; o.space = "foo"; } @@ -921,7 +921,7 @@ checkGeneratedIds(api.GeneratedIds o) { buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - checkUnnamed1488(o.ids); + checkUnnamed1495(o.ids); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.space, unittest.equals('foo')); } @@ -953,14 +953,14 @@ buildCounterPermissionTeamDrivePermissionDetails--; } -buildUnnamed1489() { +buildUnnamed1496() { var o = new core.List<api.PermissionTeamDrivePermissionDetails>(); o.add(buildPermissionTeamDrivePermissionDetails()); o.add(buildPermissionTeamDrivePermissionDetails()); return o; } -checkUnnamed1489(core.List<api.PermissionTeamDrivePermissionDetails> o) { +checkUnnamed1496(core.List<api.PermissionTeamDrivePermissionDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkPermissionTeamDrivePermissionDetails(o[0]); checkPermissionTeamDrivePermissionDetails(o[1]); @@ -981,7 +981,7 @@ o.kind = "foo"; o.photoLink = "foo"; o.role = "foo"; - o.teamDrivePermissionDetails = buildUnnamed1489(); + o.teamDrivePermissionDetails = buildUnnamed1496(); o.type = "foo"; } buildCounterPermission--; @@ -1001,20 +1001,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.photoLink, unittest.equals('foo')); unittest.expect(o.role, unittest.equals('foo')); - checkUnnamed1489(o.teamDrivePermissionDetails); + checkUnnamed1496(o.teamDrivePermissionDetails); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPermission--; } -buildUnnamed1490() { +buildUnnamed1497() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1490(core.List<api.Permission> o) { +checkUnnamed1497(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); @@ -1027,7 +1027,7 @@ if (buildCounterPermissionList < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.permissions = buildUnnamed1490(); + o.permissions = buildUnnamed1497(); } buildCounterPermissionList--; return o; @@ -1038,7 +1038,7 @@ if (buildCounterPermissionList < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1490(o.permissions); + checkUnnamed1497(o.permissions); } buildCounterPermissionList--; } @@ -1078,14 +1078,14 @@ buildCounterReply--; } -buildUnnamed1491() { +buildUnnamed1498() { var o = new core.List<api.Reply>(); o.add(buildReply()); o.add(buildReply()); return o; } -checkUnnamed1491(core.List<api.Reply> o) { +checkUnnamed1498(core.List<api.Reply> o) { unittest.expect(o, unittest.hasLength(2)); checkReply(o[0]); checkReply(o[1]); @@ -1098,7 +1098,7 @@ if (buildCounterReplyList < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.replies = buildUnnamed1491(); + o.replies = buildUnnamed1498(); } buildCounterReplyList--; return o; @@ -1109,7 +1109,7 @@ if (buildCounterReplyList < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1491(o.replies); + checkUnnamed1498(o.replies); } buildCounterReplyList--; } @@ -1155,14 +1155,14 @@ buildCounterRevision--; } -buildUnnamed1492() { +buildUnnamed1499() { var o = new core.List<api.Revision>(); o.add(buildRevision()); o.add(buildRevision()); return o; } -checkUnnamed1492(core.List<api.Revision> o) { +checkUnnamed1499(core.List<api.Revision> o) { unittest.expect(o, unittest.hasLength(2)); checkRevision(o[0]); checkRevision(o[1]); @@ -1175,7 +1175,7 @@ if (buildCounterRevisionList < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.revisions = buildUnnamed1492(); + o.revisions = buildUnnamed1499(); } buildCounterRevisionList--; return o; @@ -1186,7 +1186,7 @@ if (buildCounterRevisionList < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1492(o.revisions); + checkUnnamed1499(o.revisions); } buildCounterRevisionList--; } @@ -1315,14 +1315,14 @@ buildCounterTeamDrive--; } -buildUnnamed1493() { +buildUnnamed1500() { var o = new core.List<api.TeamDrive>(); o.add(buildTeamDrive()); o.add(buildTeamDrive()); return o; } -checkUnnamed1493(core.List<api.TeamDrive> o) { +checkUnnamed1500(core.List<api.TeamDrive> o) { unittest.expect(o, unittest.hasLength(2)); checkTeamDrive(o[0]); checkTeamDrive(o[1]); @@ -1335,7 +1335,7 @@ if (buildCounterTeamDriveList < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.teamDrives = buildUnnamed1493(); + o.teamDrives = buildUnnamed1500(); } buildCounterTeamDriveList--; return o; @@ -1346,7 +1346,7 @@ if (buildCounterTeamDriveList < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1493(o.teamDrives); + checkUnnamed1500(o.teamDrives); } buildCounterTeamDriveList--; } @@ -1666,7 +1666,7 @@ var mock = new HttpServerMock(); api.AboutResourceApi res = new api.DriveApi(mock).about; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1702,7 +1702,7 @@ var resp = convert.JSON.encode(buildAbout()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get().then(unittest.expectAsync(((api.About response) { + res.get().then(unittest.expectAsync1(((api.About response) { checkAbout(response); }))); }); @@ -1717,7 +1717,7 @@ api.ChangesResourceApi res = new api.DriveApi(mock).changes; var arg_supportsTeamDrives = true; var arg_teamDriveId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1755,7 +1755,7 @@ var resp = convert.JSON.encode(buildStartPageToken()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getStartPageToken(supportsTeamDrives: arg_supportsTeamDrives, teamDriveId: arg_teamDriveId).then(unittest.expectAsync(((api.StartPageToken response) { + res.getStartPageToken(supportsTeamDrives: arg_supportsTeamDrives, teamDriveId: arg_teamDriveId).then(unittest.expectAsync1(((api.StartPageToken response) { checkStartPageToken(response); }))); }); @@ -1773,7 +1773,7 @@ var arg_spaces = "foo"; var arg_supportsTeamDrives = true; var arg_teamDriveId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1818,7 +1818,7 @@ var resp = convert.JSON.encode(buildChangeList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_pageToken, includeCorpusRemovals: arg_includeCorpusRemovals, includeRemoved: arg_includeRemoved, includeTeamDriveItems: arg_includeTeamDriveItems, pageSize: arg_pageSize, restrictToMyDrive: arg_restrictToMyDrive, spaces: arg_spaces, supportsTeamDrives: arg_supportsTeamDrives, teamDriveId: arg_teamDriveId).then(unittest.expectAsync(((api.ChangeList response) { + res.list(arg_pageToken, includeCorpusRemovals: arg_includeCorpusRemovals, includeRemoved: arg_includeRemoved, includeTeamDriveItems: arg_includeTeamDriveItems, pageSize: arg_pageSize, restrictToMyDrive: arg_restrictToMyDrive, spaces: arg_spaces, supportsTeamDrives: arg_supportsTeamDrives, teamDriveId: arg_teamDriveId).then(unittest.expectAsync1(((api.ChangeList response) { checkChangeList(response); }))); }); @@ -1837,7 +1837,7 @@ var arg_spaces = "foo"; var arg_supportsTeamDrives = true; var arg_teamDriveId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Channel.fromJson(json); checkChannel(obj); @@ -1885,7 +1885,7 @@ var resp = convert.JSON.encode(buildChannel()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.watch(arg_request, arg_pageToken, includeCorpusRemovals: arg_includeCorpusRemovals, includeRemoved: arg_includeRemoved, includeTeamDriveItems: arg_includeTeamDriveItems, pageSize: arg_pageSize, restrictToMyDrive: arg_restrictToMyDrive, spaces: arg_spaces, supportsTeamDrives: arg_supportsTeamDrives, teamDriveId: arg_teamDriveId).then(unittest.expectAsync(((api.Channel response) { + res.watch(arg_request, arg_pageToken, includeCorpusRemovals: arg_includeCorpusRemovals, includeRemoved: arg_includeRemoved, includeTeamDriveItems: arg_includeTeamDriveItems, pageSize: arg_pageSize, restrictToMyDrive: arg_restrictToMyDrive, spaces: arg_spaces, supportsTeamDrives: arg_supportsTeamDrives, teamDriveId: arg_teamDriveId).then(unittest.expectAsync1(((api.Channel response) { checkChannel(response); }))); }); @@ -1899,7 +1899,7 @@ var mock = new HttpServerMock(); api.ChannelsResourceApi res = new api.DriveApi(mock).channels; var arg_request = buildChannel(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Channel.fromJson(json); checkChannel(obj); @@ -1938,7 +1938,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.stop(arg_request).then(unittest.expectAsync((_) {})); + res.stop(arg_request).then(unittest.expectAsync1((_) {})); }); }); @@ -1951,7 +1951,7 @@ api.CommentsResourceApi res = new api.DriveApi(mock).comments; var arg_request = buildComment(); var arg_fileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Comment.fromJson(json); checkComment(obj); @@ -1997,7 +1997,7 @@ var resp = convert.JSON.encode(buildComment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_fileId).then(unittest.expectAsync(((api.Comment response) { + res.create(arg_request, arg_fileId).then(unittest.expectAsync1(((api.Comment response) { checkComment(response); }))); }); @@ -2008,7 +2008,7 @@ api.CommentsResourceApi res = new api.DriveApi(mock).comments; var arg_fileId = "foo"; var arg_commentId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2054,7 +2054,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_fileId, arg_commentId).then(unittest.expectAsync((_) {})); + res.delete(arg_fileId, arg_commentId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -2064,7 +2064,7 @@ var arg_fileId = "foo"; var arg_commentId = "foo"; var arg_includeDeleted = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2111,7 +2111,7 @@ var resp = convert.JSON.encode(buildComment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_fileId, arg_commentId, includeDeleted: arg_includeDeleted).then(unittest.expectAsync(((api.Comment response) { + res.get(arg_fileId, arg_commentId, includeDeleted: arg_includeDeleted).then(unittest.expectAsync1(((api.Comment response) { checkComment(response); }))); }); @@ -2125,7 +2125,7 @@ var arg_pageSize = 42; var arg_pageToken = "foo"; var arg_startModifiedTime = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2172,7 +2172,7 @@ var resp = convert.JSON.encode(buildCommentList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_fileId, includeDeleted: arg_includeDeleted, pageSize: arg_pageSize, pageToken: arg_pageToken, startModifiedTime: arg_startModifiedTime).then(unittest.expectAsync(((api.CommentList response) { + res.list(arg_fileId, includeDeleted: arg_includeDeleted, pageSize: arg_pageSize, pageToken: arg_pageToken, startModifiedTime: arg_startModifiedTime).then(unittest.expectAsync1(((api.CommentList response) { checkCommentList(response); }))); }); @@ -2184,7 +2184,7 @@ var arg_request = buildComment(); var arg_fileId = "foo"; var arg_commentId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Comment.fromJson(json); checkComment(obj); @@ -2233,7 +2233,7 @@ var resp = convert.JSON.encode(buildComment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_fileId, arg_commentId).then(unittest.expectAsync(((api.Comment response) { + res.update(arg_request, arg_fileId, arg_commentId).then(unittest.expectAsync1(((api.Comment response) { checkComment(response); }))); }); @@ -2252,7 +2252,7 @@ var arg_keepRevisionForever = true; var arg_ocrLanguage = "foo"; var arg_supportsTeamDrives = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.File.fromJson(json); checkFile(obj); @@ -2302,7 +2302,7 @@ var resp = convert.JSON.encode(buildFile()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.copy(arg_request, arg_fileId, ignoreDefaultVisibility: arg_ignoreDefaultVisibility, keepRevisionForever: arg_keepRevisionForever, ocrLanguage: arg_ocrLanguage, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync(((api.File response) { + res.copy(arg_request, arg_fileId, ignoreDefaultVisibility: arg_ignoreDefaultVisibility, keepRevisionForever: arg_keepRevisionForever, ocrLanguage: arg_ocrLanguage, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync1(((api.File response) { checkFile(response); }))); }); @@ -2319,7 +2319,7 @@ var arg_ocrLanguage = "foo"; var arg_supportsTeamDrives = true; var arg_useContentAsIndexableText = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.File.fromJson(json); checkFile(obj); @@ -2363,7 +2363,7 @@ var resp = convert.JSON.encode(buildFile()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, ignoreDefaultVisibility: arg_ignoreDefaultVisibility, keepRevisionForever: arg_keepRevisionForever, ocrLanguage: arg_ocrLanguage, supportsTeamDrives: arg_supportsTeamDrives, useContentAsIndexableText: arg_useContentAsIndexableText).then(unittest.expectAsync(((api.File response) { + res.create(arg_request, ignoreDefaultVisibility: arg_ignoreDefaultVisibility, keepRevisionForever: arg_keepRevisionForever, ocrLanguage: arg_ocrLanguage, supportsTeamDrives: arg_supportsTeamDrives, useContentAsIndexableText: arg_useContentAsIndexableText).then(unittest.expectAsync1(((api.File response) { checkFile(response); }))); }); @@ -2374,7 +2374,7 @@ api.FilesResourceApi res = new api.DriveApi(mock).files; var arg_fileId = "foo"; var arg_supportsTeamDrives = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2414,14 +2414,14 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_fileId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync((_) {})); + res.delete(arg_fileId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync1((_) {})); }); unittest.test("method--emptyTrash", () { var mock = new HttpServerMock(); api.FilesResourceApi res = new api.DriveApi(mock).files; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2457,7 +2457,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.emptyTrash().then(unittest.expectAsync((_) {})); + res.emptyTrash().then(unittest.expectAsync1((_) {})); }); unittest.test("method--export", () { @@ -2468,7 +2468,7 @@ api.FilesResourceApi res = new api.DriveApi(mock).files; var arg_fileId = "foo"; var arg_mimeType = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2512,7 +2512,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.export(arg_fileId, arg_mimeType).then(unittest.expectAsync((_) {})); + res.export(arg_fileId, arg_mimeType).then(unittest.expectAsync1((_) {})); }); unittest.test("method--generateIds", () { @@ -2521,7 +2521,7 @@ api.FilesResourceApi res = new api.DriveApi(mock).files; var arg_count = 42; var arg_space = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2559,7 +2559,7 @@ var resp = convert.JSON.encode(buildGeneratedIds()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.generateIds(count: arg_count, space: arg_space).then(unittest.expectAsync(((api.GeneratedIds response) { + res.generateIds(count: arg_count, space: arg_space).then(unittest.expectAsync1(((api.GeneratedIds response) { checkGeneratedIds(response); }))); }); @@ -2573,7 +2573,7 @@ var arg_fileId = "foo"; var arg_acknowledgeAbuse = true; var arg_supportsTeamDrives = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2614,7 +2614,7 @@ var resp = convert.JSON.encode(buildFile()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_fileId, acknowledgeAbuse: arg_acknowledgeAbuse, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync(((api.File response) { + res.get(arg_fileId, acknowledgeAbuse: arg_acknowledgeAbuse, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync1(((api.File response) { checkFile(response); }))); }); @@ -2633,7 +2633,7 @@ var arg_spaces = "foo"; var arg_supportsTeamDrives = true; var arg_teamDriveId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2679,7 +2679,7 @@ var resp = convert.JSON.encode(buildFileList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(corpora: arg_corpora, corpus: arg_corpus, includeTeamDriveItems: arg_includeTeamDriveItems, orderBy: arg_orderBy, pageSize: arg_pageSize, pageToken: arg_pageToken, q: arg_q, spaces: arg_spaces, supportsTeamDrives: arg_supportsTeamDrives, teamDriveId: arg_teamDriveId).then(unittest.expectAsync(((api.FileList response) { + res.list(corpora: arg_corpora, corpus: arg_corpus, includeTeamDriveItems: arg_includeTeamDriveItems, orderBy: arg_orderBy, pageSize: arg_pageSize, pageToken: arg_pageToken, q: arg_q, spaces: arg_spaces, supportsTeamDrives: arg_supportsTeamDrives, teamDriveId: arg_teamDriveId).then(unittest.expectAsync1(((api.FileList response) { checkFileList(response); }))); }); @@ -2698,7 +2698,7 @@ var arg_removeParents = "foo"; var arg_supportsTeamDrives = true; var arg_useContentAsIndexableText = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.File.fromJson(json); checkFile(obj); @@ -2746,7 +2746,7 @@ var resp = convert.JSON.encode(buildFile()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_fileId, addParents: arg_addParents, keepRevisionForever: arg_keepRevisionForever, ocrLanguage: arg_ocrLanguage, removeParents: arg_removeParents, supportsTeamDrives: arg_supportsTeamDrives, useContentAsIndexableText: arg_useContentAsIndexableText).then(unittest.expectAsync(((api.File response) { + res.update(arg_request, arg_fileId, addParents: arg_addParents, keepRevisionForever: arg_keepRevisionForever, ocrLanguage: arg_ocrLanguage, removeParents: arg_removeParents, supportsTeamDrives: arg_supportsTeamDrives, useContentAsIndexableText: arg_useContentAsIndexableText).then(unittest.expectAsync1(((api.File response) { checkFile(response); }))); }); @@ -2761,7 +2761,7 @@ var arg_fileId = "foo"; var arg_acknowledgeAbuse = true; var arg_supportsTeamDrives = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Channel.fromJson(json); checkChannel(obj); @@ -2809,7 +2809,7 @@ var resp = convert.JSON.encode(buildChannel()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.watch(arg_request, arg_fileId, acknowledgeAbuse: arg_acknowledgeAbuse, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync(((api.Channel response) { + res.watch(arg_request, arg_fileId, acknowledgeAbuse: arg_acknowledgeAbuse, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync1(((api.Channel response) { checkChannel(response); }))); }); @@ -2828,7 +2828,7 @@ var arg_sendNotificationEmail = true; var arg_supportsTeamDrives = true; var arg_transferOwnership = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Permission.fromJson(json); checkPermission(obj); @@ -2878,7 +2878,7 @@ var resp = convert.JSON.encode(buildPermission()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_fileId, emailMessage: arg_emailMessage, sendNotificationEmail: arg_sendNotificationEmail, supportsTeamDrives: arg_supportsTeamDrives, transferOwnership: arg_transferOwnership).then(unittest.expectAsync(((api.Permission response) { + res.create(arg_request, arg_fileId, emailMessage: arg_emailMessage, sendNotificationEmail: arg_sendNotificationEmail, supportsTeamDrives: arg_supportsTeamDrives, transferOwnership: arg_transferOwnership).then(unittest.expectAsync1(((api.Permission response) { checkPermission(response); }))); }); @@ -2890,7 +2890,7 @@ var arg_fileId = "foo"; var arg_permissionId = "foo"; var arg_supportsTeamDrives = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2937,7 +2937,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_fileId, arg_permissionId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync((_) {})); + res.delete(arg_fileId, arg_permissionId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -2947,7 +2947,7 @@ var arg_fileId = "foo"; var arg_permissionId = "foo"; var arg_supportsTeamDrives = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2994,7 +2994,7 @@ var resp = convert.JSON.encode(buildPermission()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_fileId, arg_permissionId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync(((api.Permission response) { + res.get(arg_fileId, arg_permissionId, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync1(((api.Permission response) { checkPermission(response); }))); }); @@ -3007,7 +3007,7 @@ var arg_pageSize = 42; var arg_pageToken = "foo"; var arg_supportsTeamDrives = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3053,7 +3053,7 @@ var resp = convert.JSON.encode(buildPermissionList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_fileId, pageSize: arg_pageSize, pageToken: arg_pageToken, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync(((api.PermissionList response) { + res.list(arg_fileId, pageSize: arg_pageSize, pageToken: arg_pageToken, supportsTeamDrives: arg_supportsTeamDrives).then(unittest.expectAsync1(((api.PermissionList response) { checkPermissionList(response); }))); }); @@ -3068,7 +3068,7 @@ var arg_removeExpiration = true; var arg_supportsTeamDrives = true; var arg_transferOwnership = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Permission.fromJson(json); checkPermission(obj); @@ -3120,7 +3120,7 @@ var resp = convert.JSON.encode(buildPermission()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_fileId, arg_permissionId, removeExpiration: arg_removeExpiration, supportsTeamDrives: arg_supportsTeamDrives, transferOwnership: arg_transferOwnership).then(unittest.expectAsync(((api.Permission response) { + res.update(arg_request, arg_fileId, arg_permissionId, removeExpiration: arg_removeExpiration, supportsTeamDrives: arg_supportsTeamDrives, transferOwnership: arg_transferOwnership).then(unittest.expectAsync1(((api.Permission response) { checkPermission(response); }))); }); @@ -3136,7 +3136,7 @@ var arg_request = buildReply(); var arg_fileId = "foo"; var arg_commentId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Reply.fromJson(json); checkReply(obj); @@ -3189,7 +3189,7 @@ var resp = convert.JSON.encode(buildReply()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_fileId, arg_commentId).then(unittest.expectAsync(((api.Reply response) { + res.create(arg_request, arg_fileId, arg_commentId).then(unittest.expectAsync1(((api.Reply response) { checkReply(response); }))); }); @@ -3201,7 +3201,7 @@ var arg_fileId = "foo"; var arg_commentId = "foo"; var arg_replyId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3254,7 +3254,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_fileId, arg_commentId, arg_replyId).then(unittest.expectAsync((_) {})); + res.delete(arg_fileId, arg_commentId, arg_replyId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -3265,7 +3265,7 @@ var arg_commentId = "foo"; var arg_replyId = "foo"; var arg_includeDeleted = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3319,7 +3319,7 @@ var resp = convert.JSON.encode(buildReply()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_fileId, arg_commentId, arg_replyId, includeDeleted: arg_includeDeleted).then(unittest.expectAsync(((api.Reply response) { + res.get(arg_fileId, arg_commentId, arg_replyId, includeDeleted: arg_includeDeleted).then(unittest.expectAsync1(((api.Reply response) { checkReply(response); }))); }); @@ -3333,7 +3333,7 @@ var arg_includeDeleted = true; var arg_pageSize = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3386,7 +3386,7 @@ var resp = convert.JSON.encode(buildReplyList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_fileId, arg_commentId, includeDeleted: arg_includeDeleted, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ReplyList response) { + res.list(arg_fileId, arg_commentId, includeDeleted: arg_includeDeleted, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ReplyList response) { checkReplyList(response); }))); }); @@ -3399,7 +3399,7 @@ var arg_fileId = "foo"; var arg_commentId = "foo"; var arg_replyId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Reply.fromJson(json); checkReply(obj); @@ -3455,7 +3455,7 @@ var resp = convert.JSON.encode(buildReply()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_fileId, arg_commentId, arg_replyId).then(unittest.expectAsync(((api.Reply response) { + res.update(arg_request, arg_fileId, arg_commentId, arg_replyId).then(unittest.expectAsync1(((api.Reply response) { checkReply(response); }))); }); @@ -3470,7 +3470,7 @@ api.RevisionsResourceApi res = new api.DriveApi(mock).revisions; var arg_fileId = "foo"; var arg_revisionId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3516,7 +3516,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_fileId, arg_revisionId).then(unittest.expectAsync((_) {})); + res.delete(arg_fileId, arg_revisionId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -3528,7 +3528,7 @@ var arg_fileId = "foo"; var arg_revisionId = "foo"; var arg_acknowledgeAbuse = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3575,7 +3575,7 @@ var resp = convert.JSON.encode(buildRevision()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_fileId, arg_revisionId, acknowledgeAbuse: arg_acknowledgeAbuse).then(unittest.expectAsync(((api.Revision response) { + res.get(arg_fileId, arg_revisionId, acknowledgeAbuse: arg_acknowledgeAbuse).then(unittest.expectAsync1(((api.Revision response) { checkRevision(response); }))); }); @@ -3587,7 +3587,7 @@ var arg_fileId = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3632,7 +3632,7 @@ var resp = convert.JSON.encode(buildRevisionList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_fileId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RevisionList response) { + res.list(arg_fileId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.RevisionList response) { checkRevisionList(response); }))); }); @@ -3644,7 +3644,7 @@ var arg_request = buildRevision(); var arg_fileId = "foo"; var arg_revisionId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Revision.fromJson(json); checkRevision(obj); @@ -3693,7 +3693,7 @@ var resp = convert.JSON.encode(buildRevision()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAsync(((api.Revision response) { + res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAsync1(((api.Revision response) { checkRevision(response); }))); }); @@ -3708,7 +3708,7 @@ api.TeamdrivesResourceApi res = new api.DriveApi(mock).teamdrives; var arg_request = buildTeamDrive(); var arg_requestId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TeamDrive.fromJson(json); checkTeamDrive(obj); @@ -3748,7 +3748,7 @@ var resp = convert.JSON.encode(buildTeamDrive()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_requestId).then(unittest.expectAsync(((api.TeamDrive response) { + res.create(arg_request, arg_requestId).then(unittest.expectAsync1(((api.TeamDrive response) { checkTeamDrive(response); }))); }); @@ -3758,7 +3758,7 @@ var mock = new HttpServerMock(); api.TeamdrivesResourceApi res = new api.DriveApi(mock).teamdrives; var arg_teamDriveId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3797,7 +3797,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_teamDriveId).then(unittest.expectAsync((_) {})); + res.delete(arg_teamDriveId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -3805,7 +3805,7 @@ var mock = new HttpServerMock(); api.TeamdrivesResourceApi res = new api.DriveApi(mock).teamdrives; var arg_teamDriveId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3844,7 +3844,7 @@ var resp = convert.JSON.encode(buildTeamDrive()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_teamDriveId).then(unittest.expectAsync(((api.TeamDrive response) { + res.get(arg_teamDriveId).then(unittest.expectAsync1(((api.TeamDrive response) { checkTeamDrive(response); }))); }); @@ -3855,7 +3855,7 @@ api.TeamdrivesResourceApi res = new api.DriveApi(mock).teamdrives; var arg_pageSize = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3893,7 +3893,7 @@ var resp = convert.JSON.encode(buildTeamDriveList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TeamDriveList response) { + res.list(pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.TeamDriveList response) { checkTeamDriveList(response); }))); }); @@ -3904,7 +3904,7 @@ api.TeamdrivesResourceApi res = new api.DriveApi(mock).teamdrives; var arg_request = buildTeamDrive(); var arg_teamDriveId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TeamDrive.fromJson(json); checkTeamDrive(obj); @@ -3946,7 +3946,7 @@ var resp = convert.JSON.encode(buildTeamDrive()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_teamDriveId).then(unittest.expectAsync(((api.TeamDrive response) { + res.update(arg_request, arg_teamDriveId).then(unittest.expectAsync1(((api.TeamDrive response) { checkTeamDrive(response); }))); });
diff --git a/generated/googleapis/test/firebasedynamiclinks/v1_test.dart b/generated/googleapis/test/firebasedynamiclinks/v1_test.dart index b4ea336..916d488 100644 --- a/generated/googleapis/test/firebasedynamiclinks/v1_test.dart +++ b/generated/googleapis/test/firebasedynamiclinks/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/firebasedynamiclinks/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -120,14 +120,14 @@ buildCounterCreateShortDynamicLinkRequest--; } -buildUnnamed2044() { +buildUnnamed2054() { var o = new core.List<api.DynamicLinkWarning>(); o.add(buildDynamicLinkWarning()); o.add(buildDynamicLinkWarning()); return o; } -checkUnnamed2044(core.List<api.DynamicLinkWarning> o) { +checkUnnamed2054(core.List<api.DynamicLinkWarning> o) { unittest.expect(o, unittest.hasLength(2)); checkDynamicLinkWarning(o[0]); checkDynamicLinkWarning(o[1]); @@ -140,7 +140,7 @@ if (buildCounterCreateShortDynamicLinkResponse < 3) { o.previewLink = "foo"; o.shortLink = "foo"; - o.warning = buildUnnamed2044(); + o.warning = buildUnnamed2054(); } buildCounterCreateShortDynamicLinkResponse--; return o; @@ -151,11 +151,34 @@ if (buildCounterCreateShortDynamicLinkResponse < 3) { unittest.expect(o.previewLink, unittest.equals('foo')); unittest.expect(o.shortLink, unittest.equals('foo')); - checkUnnamed2044(o.warning); + checkUnnamed2054(o.warning); } buildCounterCreateShortDynamicLinkResponse--; } +core.int buildCounterDynamicLinkEventStat = 0; +buildDynamicLinkEventStat() { + var o = new api.DynamicLinkEventStat(); + buildCounterDynamicLinkEventStat++; + if (buildCounterDynamicLinkEventStat < 3) { + o.count = "foo"; + o.event = "foo"; + o.platform = "foo"; + } + buildCounterDynamicLinkEventStat--; + return o; +} + +checkDynamicLinkEventStat(api.DynamicLinkEventStat o) { + buildCounterDynamicLinkEventStat++; + if (buildCounterDynamicLinkEventStat < 3) { + unittest.expect(o.count, unittest.equals('foo')); + unittest.expect(o.event, unittest.equals('foo')); + unittest.expect(o.platform, unittest.equals('foo')); + } + buildCounterDynamicLinkEventStat--; +} + core.int buildCounterDynamicLinkInfo = 0; buildDynamicLinkInfo() { var o = new api.DynamicLinkInfo(); @@ -187,6 +210,38 @@ buildCounterDynamicLinkInfo--; } +buildUnnamed2055() { + var o = new core.List<api.DynamicLinkEventStat>(); + o.add(buildDynamicLinkEventStat()); + o.add(buildDynamicLinkEventStat()); + return o; +} + +checkUnnamed2055(core.List<api.DynamicLinkEventStat> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDynamicLinkEventStat(o[0]); + checkDynamicLinkEventStat(o[1]); +} + +core.int buildCounterDynamicLinkStats = 0; +buildDynamicLinkStats() { + var o = new api.DynamicLinkStats(); + buildCounterDynamicLinkStats++; + if (buildCounterDynamicLinkStats < 3) { + o.linkEventStats = buildUnnamed2055(); + } + buildCounterDynamicLinkStats--; + return o; +} + +checkDynamicLinkStats(api.DynamicLinkStats o) { + buildCounterDynamicLinkStats++; + if (buildCounterDynamicLinkStats < 3) { + checkUnnamed2055(o.linkEventStats); + } + buildCounterDynamicLinkStats--; +} + core.int buildCounterDynamicLinkWarning = 0; buildDynamicLinkWarning() { var o = new api.DynamicLinkWarning(); @@ -390,6 +445,15 @@ }); + unittest.group("obj-schema-DynamicLinkEventStat", () { + unittest.test("to-json--from-json", () { + var o = buildDynamicLinkEventStat(); + var od = new api.DynamicLinkEventStat.fromJson(o.toJson()); + checkDynamicLinkEventStat(od); + }); + }); + + unittest.group("obj-schema-DynamicLinkInfo", () { unittest.test("to-json--from-json", () { var o = buildDynamicLinkInfo(); @@ -399,6 +463,15 @@ }); + unittest.group("obj-schema-DynamicLinkStats", () { + unittest.test("to-json--from-json", () { + var o = buildDynamicLinkStats(); + var od = new api.DynamicLinkStats.fromJson(o.toJson()); + checkDynamicLinkStats(od); + }); + }); + + unittest.group("obj-schema-DynamicLinkWarning", () { unittest.test("to-json--from-json", () { var o = buildDynamicLinkWarning(); @@ -468,7 +541,7 @@ var mock = new HttpServerMock(); api.ShortLinksResourceApi res = new api.FirebasedynamiclinksApi(mock).shortLinks; var arg_request = buildCreateShortDynamicLinkRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CreateShortDynamicLinkRequest.fromJson(json); checkCreateShortDynamicLinkRequest(obj); @@ -505,7 +578,7 @@ var resp = convert.JSON.encode(buildCreateShortDynamicLinkResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request).then(unittest.expectAsync(((api.CreateShortDynamicLinkResponse response) { + res.create(arg_request).then(unittest.expectAsync1(((api.CreateShortDynamicLinkResponse response) { checkCreateShortDynamicLinkResponse(response); }))); }); @@ -513,5 +586,62 @@ }); + unittest.group("resource-V1ResourceApi", () { + unittest.test("method--getLinkStats", () { + + var mock = new HttpServerMock(); + api.V1ResourceApi res = new api.FirebasedynamiclinksApi(mock).v1; + var arg_dynamicLink = "foo"; + var arg_durationDays = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + index = path.indexOf("/linkStats", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_dynamicLink")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/linkStats")); + pathOffset += 10; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["durationDays"].first, unittest.equals(arg_durationDays)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildDynamicLinkStats()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.getLinkStats(arg_dynamicLink, durationDays: arg_durationDays).then(unittest.expectAsync1(((api.DynamicLinkStats response) { + checkDynamicLinkStats(response); + }))); + }); + + }); + + }
diff --git a/generated/googleapis/test/firebaserules/v1_test.dart b/generated/googleapis/test/firebaserules/v1_test.dart index 05c98b6..1f28ff3 100644 --- a/generated/googleapis/test/firebaserules/v1_test.dart +++ b/generated/googleapis/test/firebaserules/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/firebaserules/v1.dart' as api; @@ -46,11 +46,32 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } +core.int buildCounterArg = 0; +buildArg() { + var o = new api.Arg(); + buildCounterArg++; + if (buildCounterArg < 3) { + o.anyValue = buildEmpty(); + o.exactValue = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + } + buildCounterArg--; + return o; +} + +checkArg(api.Arg o) { + buildCounterArg++; + if (buildCounterArg < 3) { + checkEmpty(o.anyValue); + var casted1 = (o.exactValue) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); + } + buildCounterArg--; +} + core.int buildCounterEmpty = 0; buildEmpty() { var o = new api.Empty(); @@ -91,17 +112,17 @@ buildCounterFile--; } -buildUnnamed3439() { +buildUnnamed2910() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed3439(core.List<core.Object> o) { +checkUnnamed2910(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); - var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); + var casted2 = (o[0]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); + var casted3 = (o[1]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); } core.int buildCounterFunctionCall = 0; @@ -109,7 +130,7 @@ var o = new api.FunctionCall(); buildCounterFunctionCall++; if (buildCounterFunctionCall < 3) { - o.args = buildUnnamed3439(); + o.args = buildUnnamed2910(); o.function = "foo"; } buildCounterFunctionCall--; @@ -119,12 +140,48 @@ checkFunctionCall(api.FunctionCall o) { buildCounterFunctionCall++; if (buildCounterFunctionCall < 3) { - checkUnnamed3439(o.args); + checkUnnamed2910(o.args); unittest.expect(o.function, unittest.equals('foo')); } buildCounterFunctionCall--; } +buildUnnamed2911() { + var o = new core.List<api.Arg>(); + o.add(buildArg()); + o.add(buildArg()); + return o; +} + +checkUnnamed2911(core.List<api.Arg> o) { + unittest.expect(o, unittest.hasLength(2)); + checkArg(o[0]); + checkArg(o[1]); +} + +core.int buildCounterFunctionMock = 0; +buildFunctionMock() { + var o = new api.FunctionMock(); + buildCounterFunctionMock++; + if (buildCounterFunctionMock < 3) { + o.args = buildUnnamed2911(); + o.function = "foo"; + o.result = buildResult(); + } + buildCounterFunctionMock--; + return o; +} + +checkFunctionMock(api.FunctionMock o) { + buildCounterFunctionMock++; + if (buildCounterFunctionMock < 3) { + checkUnnamed2911(o.args); + unittest.expect(o.function, unittest.equals('foo')); + checkResult(o.result); + } + buildCounterFunctionMock--; +} + core.int buildCounterIssue = 0; buildIssue() { var o = new api.Issue(); @@ -148,14 +205,14 @@ buildCounterIssue--; } -buildUnnamed3440() { +buildUnnamed2912() { var o = new core.List<api.Release>(); o.add(buildRelease()); o.add(buildRelease()); return o; } -checkUnnamed3440(core.List<api.Release> o) { +checkUnnamed2912(core.List<api.Release> o) { unittest.expect(o, unittest.hasLength(2)); checkRelease(o[0]); checkRelease(o[1]); @@ -167,7 +224,7 @@ buildCounterListReleasesResponse++; if (buildCounterListReleasesResponse < 3) { o.nextPageToken = "foo"; - o.releases = buildUnnamed3440(); + o.releases = buildUnnamed2912(); } buildCounterListReleasesResponse--; return o; @@ -177,19 +234,19 @@ buildCounterListReleasesResponse++; if (buildCounterListReleasesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3440(o.releases); + checkUnnamed2912(o.releases); } buildCounterListReleasesResponse--; } -buildUnnamed3441() { +buildUnnamed2913() { var o = new core.List<api.Ruleset>(); o.add(buildRuleset()); o.add(buildRuleset()); return o; } -checkUnnamed3441(core.List<api.Ruleset> o) { +checkUnnamed2913(core.List<api.Ruleset> o) { unittest.expect(o, unittest.hasLength(2)); checkRuleset(o[0]); checkRuleset(o[1]); @@ -201,7 +258,7 @@ buildCounterListRulesetsResponse++; if (buildCounterListRulesetsResponse < 3) { o.nextPageToken = "foo"; - o.rulesets = buildUnnamed3441(); + o.rulesets = buildUnnamed2913(); } buildCounterListRulesetsResponse--; return o; @@ -211,7 +268,7 @@ buildCounterListRulesetsResponse++; if (buildCounterListRulesetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3441(o.rulesets); + checkUnnamed2913(o.rulesets); } buildCounterListRulesetsResponse--; } @@ -241,6 +298,27 @@ buildCounterRelease--; } +core.int buildCounterResult = 0; +buildResult() { + var o = new api.Result(); + buildCounterResult++; + if (buildCounterResult < 3) { + o.undefined = buildEmpty(); + o.value = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + } + buildCounterResult--; + return o; +} + +checkResult(api.Result o) { + buildCounterResult++; + if (buildCounterResult < 3) { + checkEmpty(o.undefined); + var casted4 = (o.value) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); + } + buildCounterResult--; +} + core.int buildCounterRuleset = 0; buildRuleset() { var o = new api.Ruleset(); @@ -264,14 +342,14 @@ buildCounterRuleset--; } -buildUnnamed3442() { +buildUnnamed2914() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed3442(core.List<api.File> o) { +checkUnnamed2914(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -282,7 +360,7 @@ var o = new api.Source(); buildCounterSource++; if (buildCounterSource < 3) { - o.files = buildUnnamed3442(); + o.files = buildUnnamed2914(); } buildCounterSource--; return o; @@ -291,7 +369,7 @@ checkSource(api.Source o) { buildCounterSource++; if (buildCounterSource < 3) { - checkUnnamed3442(o.files); + checkUnnamed2914(o.files); } buildCounterSource--; } @@ -319,27 +397,65 @@ buildCounterSourcePosition--; } -buildUnnamed3443() { +buildUnnamed2915() { + var o = new core.List<api.FunctionMock>(); + o.add(buildFunctionMock()); + o.add(buildFunctionMock()); + return o; +} + +checkUnnamed2915(core.List<api.FunctionMock> o) { + unittest.expect(o, unittest.hasLength(2)); + checkFunctionMock(o[0]); + checkFunctionMock(o[1]); +} + +core.int buildCounterTestCase = 0; +buildTestCase() { + var o = new api.TestCase(); + buildCounterTestCase++; + if (buildCounterTestCase < 3) { + o.expectation = "foo"; + o.functionMocks = buildUnnamed2915(); + o.request = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + o.resource = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + } + buildCounterTestCase--; + return o; +} + +checkTestCase(api.TestCase o) { + buildCounterTestCase++; + if (buildCounterTestCase < 3) { + unittest.expect(o.expectation, unittest.equals('foo')); + checkUnnamed2915(o.functionMocks); + var casted5 = (o.request) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); + var casted6 = (o.resource) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); + } + buildCounterTestCase--; +} + +buildUnnamed2916() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3443(core.List<core.String> o) { +checkUnnamed2916(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3444() { +buildUnnamed2917() { var o = new core.List<api.FunctionCall>(); o.add(buildFunctionCall()); o.add(buildFunctionCall()); return o; } -checkUnnamed3444(core.List<api.FunctionCall> o) { +checkUnnamed2917(core.List<api.FunctionCall> o) { unittest.expect(o, unittest.hasLength(2)); checkFunctionCall(o[0]); checkFunctionCall(o[1]); @@ -350,9 +466,9 @@ var o = new api.TestResult(); buildCounterTestResult++; if (buildCounterTestResult < 3) { - o.debugMessages = buildUnnamed3443(); + o.debugMessages = buildUnnamed2916(); o.errorPosition = buildSourcePosition(); - o.functionCalls = buildUnnamed3444(); + o.functionCalls = buildUnnamed2917(); o.state = "foo"; } buildCounterTestResult--; @@ -362,9 +478,9 @@ checkTestResult(api.TestResult o) { buildCounterTestResult++; if (buildCounterTestResult < 3) { - checkUnnamed3443(o.debugMessages); + checkUnnamed2916(o.debugMessages); checkSourcePosition(o.errorPosition); - checkUnnamed3444(o.functionCalls); + checkUnnamed2917(o.functionCalls); unittest.expect(o.state, unittest.equals('foo')); } buildCounterTestResult--; @@ -376,6 +492,7 @@ buildCounterTestRulesetRequest++; if (buildCounterTestRulesetRequest < 3) { o.source = buildSource(); + o.testSuite = buildTestSuite(); } buildCounterTestRulesetRequest--; return o; @@ -385,31 +502,32 @@ buildCounterTestRulesetRequest++; if (buildCounterTestRulesetRequest < 3) { checkSource(o.source); + checkTestSuite(o.testSuite); } buildCounterTestRulesetRequest--; } -buildUnnamed3445() { +buildUnnamed2918() { var o = new core.List<api.Issue>(); o.add(buildIssue()); o.add(buildIssue()); return o; } -checkUnnamed3445(core.List<api.Issue> o) { +checkUnnamed2918(core.List<api.Issue> o) { unittest.expect(o, unittest.hasLength(2)); checkIssue(o[0]); checkIssue(o[1]); } -buildUnnamed3446() { +buildUnnamed2919() { var o = new core.List<api.TestResult>(); o.add(buildTestResult()); o.add(buildTestResult()); return o; } -checkUnnamed3446(core.List<api.TestResult> o) { +checkUnnamed2919(core.List<api.TestResult> o) { unittest.expect(o, unittest.hasLength(2)); checkTestResult(o[0]); checkTestResult(o[1]); @@ -420,8 +538,8 @@ var o = new api.TestRulesetResponse(); buildCounterTestRulesetResponse++; if (buildCounterTestRulesetResponse < 3) { - o.issues = buildUnnamed3445(); - o.testResults = buildUnnamed3446(); + o.issues = buildUnnamed2918(); + o.testResults = buildUnnamed2919(); } buildCounterTestRulesetResponse--; return o; @@ -430,14 +548,55 @@ checkTestRulesetResponse(api.TestRulesetResponse o) { buildCounterTestRulesetResponse++; if (buildCounterTestRulesetResponse < 3) { - checkUnnamed3445(o.issues); - checkUnnamed3446(o.testResults); + checkUnnamed2918(o.issues); + checkUnnamed2919(o.testResults); } buildCounterTestRulesetResponse--; } +buildUnnamed2920() { + var o = new core.List<api.TestCase>(); + o.add(buildTestCase()); + o.add(buildTestCase()); + return o; +} + +checkUnnamed2920(core.List<api.TestCase> o) { + unittest.expect(o, unittest.hasLength(2)); + checkTestCase(o[0]); + checkTestCase(o[1]); +} + +core.int buildCounterTestSuite = 0; +buildTestSuite() { + var o = new api.TestSuite(); + buildCounterTestSuite++; + if (buildCounterTestSuite < 3) { + o.testCases = buildUnnamed2920(); + } + buildCounterTestSuite--; + return o; +} + +checkTestSuite(api.TestSuite o) { + buildCounterTestSuite++; + if (buildCounterTestSuite < 3) { + checkUnnamed2920(o.testCases); + } + buildCounterTestSuite--; +} + main() { + unittest.group("obj-schema-Arg", () { + unittest.test("to-json--from-json", () { + var o = buildArg(); + var od = new api.Arg.fromJson(o.toJson()); + checkArg(od); + }); + }); + + unittest.group("obj-schema-Empty", () { unittest.test("to-json--from-json", () { var o = buildEmpty(); @@ -465,6 +624,15 @@ }); + unittest.group("obj-schema-FunctionMock", () { + unittest.test("to-json--from-json", () { + var o = buildFunctionMock(); + var od = new api.FunctionMock.fromJson(o.toJson()); + checkFunctionMock(od); + }); + }); + + unittest.group("obj-schema-Issue", () { unittest.test("to-json--from-json", () { var o = buildIssue(); @@ -501,6 +669,15 @@ }); + unittest.group("obj-schema-Result", () { + unittest.test("to-json--from-json", () { + var o = buildResult(); + var od = new api.Result.fromJson(o.toJson()); + checkResult(od); + }); + }); + + unittest.group("obj-schema-Ruleset", () { unittest.test("to-json--from-json", () { var o = buildRuleset(); @@ -528,6 +705,15 @@ }); + unittest.group("obj-schema-TestCase", () { + unittest.test("to-json--from-json", () { + var o = buildTestCase(); + var od = new api.TestCase.fromJson(o.toJson()); + checkTestCase(od); + }); + }); + + unittest.group("obj-schema-TestResult", () { unittest.test("to-json--from-json", () { var o = buildTestResult(); @@ -555,6 +741,15 @@ }); + unittest.group("obj-schema-TestSuite", () { + unittest.test("to-json--from-json", () { + var o = buildTestSuite(); + var od = new api.TestSuite.fromJson(o.toJson()); + checkTestSuite(od); + }); + }); + + unittest.group("resource-ProjectsResourceApi", () { unittest.test("method--test", () { @@ -562,7 +757,7 @@ api.ProjectsResourceApi res = new api.FirebaserulesApi(mock).projects; var arg_request = buildTestRulesetRequest(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TestRulesetRequest.fromJson(json); checkTestRulesetRequest(obj); @@ -600,7 +795,7 @@ var resp = convert.JSON.encode(buildTestRulesetResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.test(arg_request, arg_name).then(unittest.expectAsync(((api.TestRulesetResponse response) { + res.test(arg_request, arg_name).then(unittest.expectAsync1(((api.TestRulesetResponse response) { checkTestRulesetResponse(response); }))); }); @@ -615,7 +810,7 @@ api.ProjectsReleasesResourceApi res = new api.FirebaserulesApi(mock).projects.releases; var arg_request = buildRelease(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Release.fromJson(json); checkRelease(obj); @@ -653,7 +848,7 @@ var resp = convert.JSON.encode(buildRelease()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_name).then(unittest.expectAsync(((api.Release response) { + res.create(arg_request, arg_name).then(unittest.expectAsync1(((api.Release response) { checkRelease(response); }))); }); @@ -663,7 +858,7 @@ var mock = new HttpServerMock(); api.ProjectsReleasesResourceApi res = new api.FirebaserulesApi(mock).projects.releases; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -698,7 +893,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -708,7 +903,7 @@ var mock = new HttpServerMock(); api.ProjectsReleasesResourceApi res = new api.FirebaserulesApi(mock).projects.releases; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -743,7 +938,7 @@ var resp = convert.JSON.encode(buildRelease()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.Release response) { + res.get(arg_name).then(unittest.expectAsync1(((api.Release response) { checkRelease(response); }))); }); @@ -753,10 +948,10 @@ var mock = new HttpServerMock(); api.ProjectsReleasesResourceApi res = new api.FirebaserulesApi(mock).projects.releases; var arg_name = "foo"; - var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_filter = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -783,9 +978,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); var h = { @@ -794,7 +989,7 @@ var resp = convert.JSON.encode(buildListReleasesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListReleasesResponse response) { + res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListReleasesResponse response) { checkListReleasesResponse(response); }))); }); @@ -805,7 +1000,7 @@ api.ProjectsReleasesResourceApi res = new api.FirebaserulesApi(mock).projects.releases; var arg_request = buildRelease(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Release.fromJson(json); checkRelease(obj); @@ -843,7 +1038,7 @@ var resp = convert.JSON.encode(buildRelease()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_name).then(unittest.expectAsync(((api.Release response) { + res.update(arg_request, arg_name).then(unittest.expectAsync1(((api.Release response) { checkRelease(response); }))); }); @@ -858,7 +1053,7 @@ api.ProjectsRulesetsResourceApi res = new api.FirebaserulesApi(mock).projects.rulesets; var arg_request = buildRuleset(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Ruleset.fromJson(json); checkRuleset(obj); @@ -896,7 +1091,7 @@ var resp = convert.JSON.encode(buildRuleset()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_name).then(unittest.expectAsync(((api.Ruleset response) { + res.create(arg_request, arg_name).then(unittest.expectAsync1(((api.Ruleset response) { checkRuleset(response); }))); }); @@ -906,7 +1101,7 @@ var mock = new HttpServerMock(); api.ProjectsRulesetsResourceApi res = new api.FirebaserulesApi(mock).projects.rulesets; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -941,7 +1136,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -951,7 +1146,7 @@ var mock = new HttpServerMock(); api.ProjectsRulesetsResourceApi res = new api.FirebaserulesApi(mock).projects.rulesets; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -986,7 +1181,7 @@ var resp = convert.JSON.encode(buildRuleset()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.Ruleset response) { + res.get(arg_name).then(unittest.expectAsync1(((api.Ruleset response) { checkRuleset(response); }))); }); @@ -999,7 +1194,7 @@ var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_filter = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1037,7 +1232,7 @@ var resp = convert.JSON.encode(buildListRulesetsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListRulesetsResponse response) { + res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListRulesetsResponse response) { checkListRulesetsResponse(response); }))); });
diff --git a/generated/googleapis/test/fusiontables/v1_test.dart b/generated/googleapis/test/fusiontables/v1_test.dart index 0a55d9e..bb841c9 100644 --- a/generated/googleapis/test/fusiontables/v1_test.dart +++ b/generated/googleapis/test/fusiontables/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/fusiontables/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -132,14 +132,14 @@ buildCounterColumn--; } -buildUnnamed3034() { +buildUnnamed2504() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed3034(core.List<api.Column> o) { +checkUnnamed2504(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -150,7 +150,7 @@ var o = new api.ColumnList(); buildCounterColumnList++; if (buildCounterColumnList < 3) { - o.items = buildUnnamed3034(); + o.items = buildUnnamed2504(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -162,7 +162,7 @@ checkColumnList(api.ColumnList o) { buildCounterColumnList++; if (buildCounterColumnList < 3) { - checkUnnamed3034(o.items); + checkUnnamed2504(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -170,14 +170,14 @@ buildCounterColumnList--; } -buildUnnamed3035() { +buildUnnamed2505() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed3035(core.List<core.Object> o) { +checkUnnamed2505(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -188,7 +188,7 @@ var o = new api.Geometry(); buildCounterGeometry++; if (buildCounterGeometry < 3) { - o.geometries = buildUnnamed3035(); + o.geometries = buildUnnamed2505(); o.geometry = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.type = "foo"; } @@ -199,7 +199,7 @@ checkGeometry(api.Geometry o) { buildCounterGeometry++; if (buildCounterGeometry < 3) { - checkUnnamed3035(o.geometries); + checkUnnamed2505(o.geometries); var casted3 = (o.geometry) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } @@ -227,30 +227,30 @@ buildCounterImport--; } -buildUnnamed3036() { +buildUnnamed2506() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3036(core.List<core.double> o) { +checkUnnamed2506(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -buildUnnamed3037() { +buildUnnamed2507() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed3036()); - o.add(buildUnnamed3036()); + o.add(buildUnnamed2506()); + o.add(buildUnnamed2506()); return o; } -checkUnnamed3037(core.List<core.List<core.double>> o) { +checkUnnamed2507(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3036(o[0]); - checkUnnamed3036(o[1]); + checkUnnamed2506(o[0]); + checkUnnamed2506(o[1]); } core.int buildCounterLine = 0; @@ -258,7 +258,7 @@ var o = new api.Line(); buildCounterLine++; if (buildCounterLine < 3) { - o.coordinates = buildUnnamed3037(); + o.coordinates = buildUnnamed2507(); o.type = "foo"; } buildCounterLine--; @@ -268,7 +268,7 @@ checkLine(api.Line o) { buildCounterLine++; if (buildCounterLine < 3) { - checkUnnamed3037(o.coordinates); + checkUnnamed2507(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterLine--; @@ -301,14 +301,14 @@ buildCounterLineStyle--; } -buildUnnamed3038() { +buildUnnamed2508() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3038(core.List<core.double> o) { +checkUnnamed2508(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); @@ -319,7 +319,7 @@ var o = new api.Point(); buildCounterPoint++; if (buildCounterPoint < 3) { - o.coordinates = buildUnnamed3038(); + o.coordinates = buildUnnamed2508(); o.type = "foo"; } buildCounterPoint--; @@ -329,7 +329,7 @@ checkPoint(api.Point o) { buildCounterPoint++; if (buildCounterPoint < 3) { - checkUnnamed3038(o.coordinates); + checkUnnamed2508(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPoint--; @@ -356,43 +356,43 @@ buildCounterPointStyle--; } -buildUnnamed3039() { +buildUnnamed2509() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3039(core.List<core.double> o) { +checkUnnamed2509(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -buildUnnamed3040() { +buildUnnamed2510() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed3039()); - o.add(buildUnnamed3039()); + o.add(buildUnnamed2509()); + o.add(buildUnnamed2509()); return o; } -checkUnnamed3040(core.List<core.List<core.double>> o) { +checkUnnamed2510(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3039(o[0]); - checkUnnamed3039(o[1]); + checkUnnamed2509(o[0]); + checkUnnamed2509(o[1]); } -buildUnnamed3041() { +buildUnnamed2511() { var o = new core.List<core.List<core.List<core.double>>>(); - o.add(buildUnnamed3040()); - o.add(buildUnnamed3040()); + o.add(buildUnnamed2510()); + o.add(buildUnnamed2510()); return o; } -checkUnnamed3041(core.List<core.List<core.List<core.double>>> o) { +checkUnnamed2511(core.List<core.List<core.List<core.double>>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3040(o[0]); - checkUnnamed3040(o[1]); + checkUnnamed2510(o[0]); + checkUnnamed2510(o[1]); } core.int buildCounterPolygon = 0; @@ -400,7 +400,7 @@ var o = new api.Polygon(); buildCounterPolygon++; if (buildCounterPolygon < 3) { - o.coordinates = buildUnnamed3041(); + o.coordinates = buildUnnamed2511(); o.type = "foo"; } buildCounterPolygon--; @@ -410,7 +410,7 @@ checkPolygon(api.Polygon o) { buildCounterPolygon++; if (buildCounterPolygon < 3) { - checkUnnamed3041(o.coordinates); + checkUnnamed2511(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPolygon--; @@ -449,43 +449,43 @@ buildCounterPolygonStyle--; } -buildUnnamed3042() { +buildUnnamed2512() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3042(core.List<core.String> o) { +checkUnnamed2512(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3043() { +buildUnnamed2513() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed3043(core.List<core.Object> o) { +checkUnnamed2513(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted4 = (o[0]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); var casted5 = (o[1]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); } -buildUnnamed3044() { +buildUnnamed2514() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed3043()); - o.add(buildUnnamed3043()); + o.add(buildUnnamed2513()); + o.add(buildUnnamed2513()); return o; } -checkUnnamed3044(core.List<core.List<core.Object>> o) { +checkUnnamed2514(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3043(o[0]); - checkUnnamed3043(o[1]); + checkUnnamed2513(o[0]); + checkUnnamed2513(o[1]); } core.int buildCounterSqlresponse = 0; @@ -493,9 +493,9 @@ var o = new api.Sqlresponse(); buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - o.columns = buildUnnamed3042(); + o.columns = buildUnnamed2512(); o.kind = "foo"; - o.rows = buildUnnamed3044(); + o.rows = buildUnnamed2514(); } buildCounterSqlresponse--; return o; @@ -504,21 +504,21 @@ checkSqlresponse(api.Sqlresponse o) { buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - checkUnnamed3042(o.columns); + checkUnnamed2512(o.columns); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3044(o.rows); + checkUnnamed2514(o.rows); } buildCounterSqlresponse--; } -buildUnnamed3045() { +buildUnnamed2515() { var o = new core.List<api.Bucket>(); o.add(buildBucket()); o.add(buildBucket()); return o; } -checkUnnamed3045(core.List<api.Bucket> o) { +checkUnnamed2515(core.List<api.Bucket> o) { unittest.expect(o, unittest.hasLength(2)); checkBucket(o[0]); checkBucket(o[1]); @@ -545,14 +545,14 @@ buildCounterStyleFunctionGradientColors--; } -buildUnnamed3046() { +buildUnnamed2516() { var o = new core.List<api.StyleFunctionGradientColors>(); o.add(buildStyleFunctionGradientColors()); o.add(buildStyleFunctionGradientColors()); return o; } -checkUnnamed3046(core.List<api.StyleFunctionGradientColors> o) { +checkUnnamed2516(core.List<api.StyleFunctionGradientColors> o) { unittest.expect(o, unittest.hasLength(2)); checkStyleFunctionGradientColors(o[0]); checkStyleFunctionGradientColors(o[1]); @@ -563,7 +563,7 @@ var o = new api.StyleFunctionGradient(); buildCounterStyleFunctionGradient++; if (buildCounterStyleFunctionGradient < 3) { - o.colors = buildUnnamed3046(); + o.colors = buildUnnamed2516(); o.max = 42.0; o.min = 42.0; } @@ -574,7 +574,7 @@ checkStyleFunctionGradient(api.StyleFunctionGradient o) { buildCounterStyleFunctionGradient++; if (buildCounterStyleFunctionGradient < 3) { - checkUnnamed3046(o.colors); + checkUnnamed2516(o.colors); unittest.expect(o.max, unittest.equals(42.0)); unittest.expect(o.min, unittest.equals(42.0)); } @@ -586,7 +586,7 @@ var o = new api.StyleFunction(); buildCounterStyleFunction++; if (buildCounterStyleFunction < 3) { - o.buckets = buildUnnamed3045(); + o.buckets = buildUnnamed2515(); o.columnName = "foo"; o.gradient = buildStyleFunctionGradient(); o.kind = "foo"; @@ -598,7 +598,7 @@ checkStyleFunction(api.StyleFunction o) { buildCounterStyleFunction++; if (buildCounterStyleFunction < 3) { - checkUnnamed3045(o.buckets); + checkUnnamed2515(o.buckets); unittest.expect(o.columnName, unittest.equals('foo')); checkStyleFunctionGradient(o.gradient); unittest.expect(o.kind, unittest.equals('foo')); @@ -637,14 +637,14 @@ buildCounterStyleSetting--; } -buildUnnamed3047() { +buildUnnamed2517() { var o = new core.List<api.StyleSetting>(); o.add(buildStyleSetting()); o.add(buildStyleSetting()); return o; } -checkUnnamed3047(core.List<api.StyleSetting> o) { +checkUnnamed2517(core.List<api.StyleSetting> o) { unittest.expect(o, unittest.hasLength(2)); checkStyleSetting(o[0]); checkStyleSetting(o[1]); @@ -655,7 +655,7 @@ var o = new api.StyleSettingList(); buildCounterStyleSettingList++; if (buildCounterStyleSettingList < 3) { - o.items = buildUnnamed3047(); + o.items = buildUnnamed2517(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -667,7 +667,7 @@ checkStyleSettingList(api.StyleSettingList o) { buildCounterStyleSettingList++; if (buildCounterStyleSettingList < 3) { - checkUnnamed3047(o.items); + checkUnnamed2517(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -675,27 +675,27 @@ buildCounterStyleSettingList--; } -buildUnnamed3048() { +buildUnnamed2518() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3048(core.List<core.String> o) { +checkUnnamed2518(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3049() { +buildUnnamed2519() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed3049(core.List<api.Column> o) { +checkUnnamed2519(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -708,8 +708,8 @@ if (buildCounterTable < 3) { o.attribution = "foo"; o.attributionLink = "foo"; - o.baseTableIds = buildUnnamed3048(); - o.columns = buildUnnamed3049(); + o.baseTableIds = buildUnnamed2518(); + o.columns = buildUnnamed2519(); o.description = "foo"; o.isExportable = true; o.kind = "foo"; @@ -726,8 +726,8 @@ if (buildCounterTable < 3) { unittest.expect(o.attribution, unittest.equals('foo')); unittest.expect(o.attributionLink, unittest.equals('foo')); - checkUnnamed3048(o.baseTableIds); - checkUnnamed3049(o.columns); + checkUnnamed2518(o.baseTableIds); + checkUnnamed2519(o.columns); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.isExportable, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -738,14 +738,14 @@ buildCounterTable--; } -buildUnnamed3050() { +buildUnnamed2520() { var o = new core.List<api.Table>(); o.add(buildTable()); o.add(buildTable()); return o; } -checkUnnamed3050(core.List<api.Table> o) { +checkUnnamed2520(core.List<api.Table> o) { unittest.expect(o, unittest.hasLength(2)); checkTable(o[0]); checkTable(o[1]); @@ -756,7 +756,7 @@ var o = new api.TableList(); buildCounterTableList++; if (buildCounterTableList < 3) { - o.items = buildUnnamed3050(); + o.items = buildUnnamed2520(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -767,7 +767,7 @@ checkTableList(api.TableList o) { buildCounterTableList++; if (buildCounterTableList < 3) { - checkUnnamed3050(o.items); + checkUnnamed2520(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -801,14 +801,14 @@ buildCounterTask--; } -buildUnnamed3051() { +buildUnnamed2521() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed3051(core.List<api.Task> o) { +checkUnnamed2521(core.List<api.Task> o) { unittest.expect(o, unittest.hasLength(2)); checkTask(o[0]); checkTask(o[1]); @@ -819,7 +819,7 @@ var o = new api.TaskList(); buildCounterTaskList++; if (buildCounterTaskList < 3) { - o.items = buildUnnamed3051(); + o.items = buildUnnamed2521(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -831,7 +831,7 @@ checkTaskList(api.TaskList o) { buildCounterTaskList++; if (buildCounterTaskList < 3) { - checkUnnamed3051(o.items); + checkUnnamed2521(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -839,14 +839,14 @@ buildCounterTaskList--; } -buildUnnamed3052() { +buildUnnamed2522() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3052(core.List<core.String> o) { +checkUnnamed2522(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -857,7 +857,7 @@ var o = new api.Template(); buildCounterTemplate++; if (buildCounterTemplate < 3) { - o.automaticColumnNames = buildUnnamed3052(); + o.automaticColumnNames = buildUnnamed2522(); o.body = "foo"; o.kind = "foo"; o.name = "foo"; @@ -871,7 +871,7 @@ checkTemplate(api.Template o) { buildCounterTemplate++; if (buildCounterTemplate < 3) { - checkUnnamed3052(o.automaticColumnNames); + checkUnnamed2522(o.automaticColumnNames); unittest.expect(o.body, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -881,14 +881,14 @@ buildCounterTemplate--; } -buildUnnamed3053() { +buildUnnamed2523() { var o = new core.List<api.Template>(); o.add(buildTemplate()); o.add(buildTemplate()); return o; } -checkUnnamed3053(core.List<api.Template> o) { +checkUnnamed2523(core.List<api.Template> o) { unittest.expect(o, unittest.hasLength(2)); checkTemplate(o[0]); checkTemplate(o[1]); @@ -899,7 +899,7 @@ var o = new api.TemplateList(); buildCounterTemplateList++; if (buildCounterTemplateList < 3) { - o.items = buildUnnamed3053(); + o.items = buildUnnamed2523(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -911,7 +911,7 @@ checkTemplateList(api.TemplateList o) { buildCounterTemplateList++; if (buildCounterTemplateList < 3) { - checkUnnamed3053(o.items); + checkUnnamed2523(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -1144,7 +1144,7 @@ api.ColumnResourceApi res = new api.FusiontablesApi(mock).column; var arg_tableId = "foo"; var arg_columnId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1190,7 +1190,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_tableId, arg_columnId).then(unittest.expectAsync((_) {})); + res.delete(arg_tableId, arg_columnId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -1199,7 +1199,7 @@ api.ColumnResourceApi res = new api.FusiontablesApi(mock).column; var arg_tableId = "foo"; var arg_columnId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1245,7 +1245,7 @@ var resp = convert.JSON.encode(buildColumn()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_tableId, arg_columnId).then(unittest.expectAsync(((api.Column response) { + res.get(arg_tableId, arg_columnId).then(unittest.expectAsync1(((api.Column response) { checkColumn(response); }))); }); @@ -1256,7 +1256,7 @@ api.ColumnResourceApi res = new api.FusiontablesApi(mock).column; var arg_request = buildColumn(); var arg_tableId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Column.fromJson(json); checkColumn(obj); @@ -1302,7 +1302,7 @@ var resp = convert.JSON.encode(buildColumn()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_tableId).then(unittest.expectAsync(((api.Column response) { + res.insert(arg_request, arg_tableId).then(unittest.expectAsync1(((api.Column response) { checkColumn(response); }))); }); @@ -1314,7 +1314,7 @@ var arg_tableId = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1359,7 +1359,7 @@ var resp = convert.JSON.encode(buildColumnList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_tableId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ColumnList response) { + res.list(arg_tableId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ColumnList response) { checkColumnList(response); }))); }); @@ -1371,7 +1371,7 @@ var arg_request = buildColumn(); var arg_tableId = "foo"; var arg_columnId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Column.fromJson(json); checkColumn(obj); @@ -1420,7 +1420,7 @@ var resp = convert.JSON.encode(buildColumn()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_tableId, arg_columnId).then(unittest.expectAsync(((api.Column response) { + res.patch(arg_request, arg_tableId, arg_columnId).then(unittest.expectAsync1(((api.Column response) { checkColumn(response); }))); }); @@ -1432,7 +1432,7 @@ var arg_request = buildColumn(); var arg_tableId = "foo"; var arg_columnId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Column.fromJson(json); checkColumn(obj); @@ -1481,7 +1481,7 @@ var resp = convert.JSON.encode(buildColumn()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_tableId, arg_columnId).then(unittest.expectAsync(((api.Column response) { + res.update(arg_request, arg_tableId, arg_columnId).then(unittest.expectAsync1(((api.Column response) { checkColumn(response); }))); }); @@ -1499,7 +1499,7 @@ var arg_sql_1 = "foo"; var arg_hdrs = true; var arg_typed = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1538,7 +1538,7 @@ var resp = convert.JSON.encode(buildSqlresponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.sql(arg_sql_1, hdrs: arg_hdrs, typed: arg_typed).then(unittest.expectAsync(((api.Sqlresponse response) { + res.sql(arg_sql_1, hdrs: arg_hdrs, typed: arg_typed).then(unittest.expectAsync1(((api.Sqlresponse response) { checkSqlresponse(response); }))); }); @@ -1552,7 +1552,7 @@ var arg_sql_1 = "foo"; var arg_hdrs = true; var arg_typed = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1591,7 +1591,7 @@ var resp = convert.JSON.encode(buildSqlresponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.sqlGet(arg_sql_1, hdrs: arg_hdrs, typed: arg_typed).then(unittest.expectAsync(((api.Sqlresponse response) { + res.sqlGet(arg_sql_1, hdrs: arg_hdrs, typed: arg_typed).then(unittest.expectAsync1(((api.Sqlresponse response) { checkSqlresponse(response); }))); }); @@ -1606,7 +1606,7 @@ api.StyleResourceApi res = new api.FusiontablesApi(mock).style; var arg_tableId = "foo"; var arg_styleId = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1652,7 +1652,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_tableId, arg_styleId).then(unittest.expectAsync((_) {})); + res.delete(arg_tableId, arg_styleId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -1661,7 +1661,7 @@ api.StyleResourceApi res = new api.FusiontablesApi(mock).style; var arg_tableId = "foo"; var arg_styleId = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1707,7 +1707,7 @@ var resp = convert.JSON.encode(buildStyleSetting()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_tableId, arg_styleId).then(unittest.expectAsync(((api.StyleSetting response) { + res.get(arg_tableId, arg_styleId).then(unittest.expectAsync1(((api.StyleSetting response) { checkStyleSetting(response); }))); }); @@ -1718,7 +1718,7 @@ api.StyleResourceApi res = new api.FusiontablesApi(mock).style; var arg_request = buildStyleSetting(); var arg_tableId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.StyleSetting.fromJson(json); checkStyleSetting(obj); @@ -1764,7 +1764,7 @@ var resp = convert.JSON.encode(buildStyleSetting()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_tableId).then(unittest.expectAsync(((api.StyleSetting response) { + res.insert(arg_request, arg_tableId).then(unittest.expectAsync1(((api.StyleSetting response) { checkStyleSetting(response); }))); }); @@ -1776,7 +1776,7 @@ var arg_tableId = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1821,7 +1821,7 @@ var resp = convert.JSON.encode(buildStyleSettingList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_tableId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.StyleSettingList response) { + res.list(arg_tableId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.StyleSettingList response) { checkStyleSettingList(response); }))); }); @@ -1833,7 +1833,7 @@ var arg_request = buildStyleSetting(); var arg_tableId = "foo"; var arg_styleId = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.StyleSetting.fromJson(json); checkStyleSetting(obj); @@ -1882,7 +1882,7 @@ var resp = convert.JSON.encode(buildStyleSetting()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_tableId, arg_styleId).then(unittest.expectAsync(((api.StyleSetting response) { + res.patch(arg_request, arg_tableId, arg_styleId).then(unittest.expectAsync1(((api.StyleSetting response) { checkStyleSetting(response); }))); }); @@ -1894,7 +1894,7 @@ var arg_request = buildStyleSetting(); var arg_tableId = "foo"; var arg_styleId = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.StyleSetting.fromJson(json); checkStyleSetting(obj); @@ -1943,7 +1943,7 @@ var resp = convert.JSON.encode(buildStyleSetting()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_tableId, arg_styleId).then(unittest.expectAsync(((api.StyleSetting response) { + res.update(arg_request, arg_tableId, arg_styleId).then(unittest.expectAsync1(((api.StyleSetting response) { checkStyleSetting(response); }))); }); @@ -1958,7 +1958,7 @@ api.TableResourceApi res = new api.FusiontablesApi(mock).table; var arg_tableId = "foo"; var arg_copyPresentation = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2002,7 +2002,7 @@ var resp = convert.JSON.encode(buildTable()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.copy(arg_tableId, copyPresentation: arg_copyPresentation).then(unittest.expectAsync(((api.Table response) { + res.copy(arg_tableId, copyPresentation: arg_copyPresentation).then(unittest.expectAsync1(((api.Table response) { checkTable(response); }))); }); @@ -2012,7 +2012,7 @@ var mock = new HttpServerMock(); api.TableResourceApi res = new api.FusiontablesApi(mock).table; var arg_tableId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2051,7 +2051,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_tableId).then(unittest.expectAsync((_) {})); + res.delete(arg_tableId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -2059,7 +2059,7 @@ var mock = new HttpServerMock(); api.TableResourceApi res = new api.FusiontablesApi(mock).table; var arg_tableId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2098,7 +2098,7 @@ var resp = convert.JSON.encode(buildTable()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_tableId).then(unittest.expectAsync(((api.Table response) { + res.get(arg_tableId).then(unittest.expectAsync1(((api.Table response) { checkTable(response); }))); }); @@ -2115,7 +2115,7 @@ var arg_endLine = 42; var arg_isStrict = true; var arg_startLine = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2163,7 +2163,7 @@ var resp = convert.JSON.encode(buildImport()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.importRows(arg_tableId, delimiter: arg_delimiter, encoding: arg_encoding, endLine: arg_endLine, isStrict: arg_isStrict, startLine: arg_startLine).then(unittest.expectAsync(((api.Import response) { + res.importRows(arg_tableId, delimiter: arg_delimiter, encoding: arg_encoding, endLine: arg_endLine, isStrict: arg_isStrict, startLine: arg_startLine).then(unittest.expectAsync1(((api.Import response) { checkImport(response); }))); }); @@ -2177,7 +2177,7 @@ var arg_name = "foo"; var arg_delimiter = "foo"; var arg_encoding = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2216,7 +2216,7 @@ var resp = convert.JSON.encode(buildTable()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.importTable(arg_name, delimiter: arg_delimiter, encoding: arg_encoding).then(unittest.expectAsync(((api.Table response) { + res.importTable(arg_name, delimiter: arg_delimiter, encoding: arg_encoding).then(unittest.expectAsync1(((api.Table response) { checkTable(response); }))); }); @@ -2226,7 +2226,7 @@ var mock = new HttpServerMock(); api.TableResourceApi res = new api.FusiontablesApi(mock).table; var arg_request = buildTable(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Table.fromJson(json); checkTable(obj); @@ -2265,7 +2265,7 @@ var resp = convert.JSON.encode(buildTable()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request).then(unittest.expectAsync(((api.Table response) { + res.insert(arg_request).then(unittest.expectAsync1(((api.Table response) { checkTable(response); }))); }); @@ -2276,7 +2276,7 @@ api.TableResourceApi res = new api.FusiontablesApi(mock).table; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2314,7 +2314,7 @@ var resp = convert.JSON.encode(buildTableList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TableList response) { + res.list(maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.TableList response) { checkTableList(response); }))); }); @@ -2326,7 +2326,7 @@ var arg_request = buildTable(); var arg_tableId = "foo"; var arg_replaceViewDefinition = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Table.fromJson(json); checkTable(obj); @@ -2369,7 +2369,7 @@ var resp = convert.JSON.encode(buildTable()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_tableId, replaceViewDefinition: arg_replaceViewDefinition).then(unittest.expectAsync(((api.Table response) { + res.patch(arg_request, arg_tableId, replaceViewDefinition: arg_replaceViewDefinition).then(unittest.expectAsync1(((api.Table response) { checkTable(response); }))); }); @@ -2381,7 +2381,7 @@ var arg_request = buildTable(); var arg_tableId = "foo"; var arg_replaceViewDefinition = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Table.fromJson(json); checkTable(obj); @@ -2424,7 +2424,7 @@ var resp = convert.JSON.encode(buildTable()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_tableId, replaceViewDefinition: arg_replaceViewDefinition).then(unittest.expectAsync(((api.Table response) { + res.update(arg_request, arg_tableId, replaceViewDefinition: arg_replaceViewDefinition).then(unittest.expectAsync1(((api.Table response) { checkTable(response); }))); }); @@ -2439,7 +2439,7 @@ api.TaskResourceApi res = new api.FusiontablesApi(mock).task; var arg_tableId = "foo"; var arg_taskId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2485,7 +2485,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_tableId, arg_taskId).then(unittest.expectAsync((_) {})); + res.delete(arg_tableId, arg_taskId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -2494,7 +2494,7 @@ api.TaskResourceApi res = new api.FusiontablesApi(mock).task; var arg_tableId = "foo"; var arg_taskId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2540,7 +2540,7 @@ var resp = convert.JSON.encode(buildTask()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_tableId, arg_taskId).then(unittest.expectAsync(((api.Task response) { + res.get(arg_tableId, arg_taskId).then(unittest.expectAsync1(((api.Task response) { checkTask(response); }))); }); @@ -2553,7 +2553,7 @@ var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_startIndex = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2599,7 +2599,7 @@ var resp = convert.JSON.encode(buildTaskList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_tableId, maxResults: arg_maxResults, pageToken: arg_pageToken, startIndex: arg_startIndex).then(unittest.expectAsync(((api.TaskList response) { + res.list(arg_tableId, maxResults: arg_maxResults, pageToken: arg_pageToken, startIndex: arg_startIndex).then(unittest.expectAsync1(((api.TaskList response) { checkTaskList(response); }))); }); @@ -2614,7 +2614,7 @@ api.TemplateResourceApi res = new api.FusiontablesApi(mock).template; var arg_tableId = "foo"; var arg_templateId = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2660,7 +2660,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_tableId, arg_templateId).then(unittest.expectAsync((_) {})); + res.delete(arg_tableId, arg_templateId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -2669,7 +2669,7 @@ api.TemplateResourceApi res = new api.FusiontablesApi(mock).template; var arg_tableId = "foo"; var arg_templateId = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2715,7 +2715,7 @@ var resp = convert.JSON.encode(buildTemplate()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_tableId, arg_templateId).then(unittest.expectAsync(((api.Template response) { + res.get(arg_tableId, arg_templateId).then(unittest.expectAsync1(((api.Template response) { checkTemplate(response); }))); }); @@ -2726,7 +2726,7 @@ api.TemplateResourceApi res = new api.FusiontablesApi(mock).template; var arg_request = buildTemplate(); var arg_tableId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Template.fromJson(json); checkTemplate(obj); @@ -2772,7 +2772,7 @@ var resp = convert.JSON.encode(buildTemplate()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_tableId).then(unittest.expectAsync(((api.Template response) { + res.insert(arg_request, arg_tableId).then(unittest.expectAsync1(((api.Template response) { checkTemplate(response); }))); }); @@ -2784,7 +2784,7 @@ var arg_tableId = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2829,7 +2829,7 @@ var resp = convert.JSON.encode(buildTemplateList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_tableId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TemplateList response) { + res.list(arg_tableId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.TemplateList response) { checkTemplateList(response); }))); }); @@ -2841,7 +2841,7 @@ var arg_request = buildTemplate(); var arg_tableId = "foo"; var arg_templateId = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Template.fromJson(json); checkTemplate(obj); @@ -2890,7 +2890,7 @@ var resp = convert.JSON.encode(buildTemplate()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_tableId, arg_templateId).then(unittest.expectAsync(((api.Template response) { + res.patch(arg_request, arg_tableId, arg_templateId).then(unittest.expectAsync1(((api.Template response) { checkTemplate(response); }))); }); @@ -2902,7 +2902,7 @@ var arg_request = buildTemplate(); var arg_tableId = "foo"; var arg_templateId = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Template.fromJson(json); checkTemplate(obj); @@ -2951,7 +2951,7 @@ var resp = convert.JSON.encode(buildTemplate()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_tableId, arg_templateId).then(unittest.expectAsync(((api.Template response) { + res.update(arg_request, arg_tableId, arg_templateId).then(unittest.expectAsync1(((api.Template response) { checkTemplate(response); }))); });
diff --git a/generated/googleapis/test/fusiontables/v2_test.dart b/generated/googleapis/test/fusiontables/v2_test.dart index 57f53c1..833a0d9 100644 --- a/generated/googleapis/test/fusiontables/v2_test.dart +++ b/generated/googleapis/test/fusiontables/v2_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/fusiontables/v2.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -101,14 +101,14 @@ buildCounterColumnBaseColumn--; } -buildUnnamed415() { +buildUnnamed419() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed415(core.List<core.String> o) { +checkUnnamed419(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -129,7 +129,7 @@ o.kind = "foo"; o.name = "foo"; o.type = "foo"; - o.validValues = buildUnnamed415(); + o.validValues = buildUnnamed419(); o.validateData = true; } buildCounterColumn--; @@ -149,20 +149,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); - checkUnnamed415(o.validValues); + checkUnnamed419(o.validValues); unittest.expect(o.validateData, unittest.isTrue); } buildCounterColumn--; } -buildUnnamed416() { +buildUnnamed420() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed416(core.List<api.Column> o) { +checkUnnamed420(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -173,7 +173,7 @@ var o = new api.ColumnList(); buildCounterColumnList++; if (buildCounterColumnList < 3) { - o.items = buildUnnamed416(); + o.items = buildUnnamed420(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -185,7 +185,7 @@ checkColumnList(api.ColumnList o) { buildCounterColumnList++; if (buildCounterColumnList < 3) { - checkUnnamed416(o.items); + checkUnnamed420(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -193,14 +193,14 @@ buildCounterColumnList--; } -buildUnnamed417() { +buildUnnamed421() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed417(core.List<core.Object> o) { +checkUnnamed421(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -211,7 +211,7 @@ var o = new api.Geometry(); buildCounterGeometry++; if (buildCounterGeometry < 3) { - o.geometries = buildUnnamed417(); + o.geometries = buildUnnamed421(); o.geometry = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.type = "foo"; } @@ -222,7 +222,7 @@ checkGeometry(api.Geometry o) { buildCounterGeometry++; if (buildCounterGeometry < 3) { - checkUnnamed417(o.geometries); + checkUnnamed421(o.geometries); var casted3 = (o.geometry) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } @@ -250,30 +250,30 @@ buildCounterImport--; } -buildUnnamed418() { +buildUnnamed422() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed418(core.List<core.double> o) { +checkUnnamed422(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -buildUnnamed419() { +buildUnnamed423() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed418()); - o.add(buildUnnamed418()); + o.add(buildUnnamed422()); + o.add(buildUnnamed422()); return o; } -checkUnnamed419(core.List<core.List<core.double>> o) { +checkUnnamed423(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed418(o[0]); - checkUnnamed418(o[1]); + checkUnnamed422(o[0]); + checkUnnamed422(o[1]); } core.int buildCounterLine = 0; @@ -281,7 +281,7 @@ var o = new api.Line(); buildCounterLine++; if (buildCounterLine < 3) { - o.coordinates = buildUnnamed419(); + o.coordinates = buildUnnamed423(); o.type = "foo"; } buildCounterLine--; @@ -291,7 +291,7 @@ checkLine(api.Line o) { buildCounterLine++; if (buildCounterLine < 3) { - checkUnnamed419(o.coordinates); + checkUnnamed423(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterLine--; @@ -324,14 +324,14 @@ buildCounterLineStyle--; } -buildUnnamed420() { +buildUnnamed424() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed420(core.List<core.double> o) { +checkUnnamed424(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); @@ -342,7 +342,7 @@ var o = new api.Point(); buildCounterPoint++; if (buildCounterPoint < 3) { - o.coordinates = buildUnnamed420(); + o.coordinates = buildUnnamed424(); o.type = "foo"; } buildCounterPoint--; @@ -352,7 +352,7 @@ checkPoint(api.Point o) { buildCounterPoint++; if (buildCounterPoint < 3) { - checkUnnamed420(o.coordinates); + checkUnnamed424(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPoint--; @@ -379,43 +379,43 @@ buildCounterPointStyle--; } -buildUnnamed421() { +buildUnnamed425() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed421(core.List<core.double> o) { +checkUnnamed425(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -buildUnnamed422() { +buildUnnamed426() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed421()); - o.add(buildUnnamed421()); + o.add(buildUnnamed425()); + o.add(buildUnnamed425()); return o; } -checkUnnamed422(core.List<core.List<core.double>> o) { +checkUnnamed426(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed421(o[0]); - checkUnnamed421(o[1]); + checkUnnamed425(o[0]); + checkUnnamed425(o[1]); } -buildUnnamed423() { +buildUnnamed427() { var o = new core.List<core.List<core.List<core.double>>>(); - o.add(buildUnnamed422()); - o.add(buildUnnamed422()); + o.add(buildUnnamed426()); + o.add(buildUnnamed426()); return o; } -checkUnnamed423(core.List<core.List<core.List<core.double>>> o) { +checkUnnamed427(core.List<core.List<core.List<core.double>>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed422(o[0]); - checkUnnamed422(o[1]); + checkUnnamed426(o[0]); + checkUnnamed426(o[1]); } core.int buildCounterPolygon = 0; @@ -423,7 +423,7 @@ var o = new api.Polygon(); buildCounterPolygon++; if (buildCounterPolygon < 3) { - o.coordinates = buildUnnamed423(); + o.coordinates = buildUnnamed427(); o.type = "foo"; } buildCounterPolygon--; @@ -433,7 +433,7 @@ checkPolygon(api.Polygon o) { buildCounterPolygon++; if (buildCounterPolygon < 3) { - checkUnnamed423(o.coordinates); + checkUnnamed427(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPolygon--; @@ -472,43 +472,43 @@ buildCounterPolygonStyle--; } -buildUnnamed424() { +buildUnnamed428() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed424(core.List<core.String> o) { +checkUnnamed428(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed425() { +buildUnnamed429() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed425(core.List<core.Object> o) { +checkUnnamed429(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted4 = (o[0]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); var casted5 = (o[1]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); } -buildUnnamed426() { +buildUnnamed430() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed425()); - o.add(buildUnnamed425()); + o.add(buildUnnamed429()); + o.add(buildUnnamed429()); return o; } -checkUnnamed426(core.List<core.List<core.Object>> o) { +checkUnnamed430(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed425(o[0]); - checkUnnamed425(o[1]); + checkUnnamed429(o[0]); + checkUnnamed429(o[1]); } core.int buildCounterSqlresponse = 0; @@ -516,9 +516,9 @@ var o = new api.Sqlresponse(); buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - o.columns = buildUnnamed424(); + o.columns = buildUnnamed428(); o.kind = "foo"; - o.rows = buildUnnamed426(); + o.rows = buildUnnamed430(); } buildCounterSqlresponse--; return o; @@ -527,21 +527,21 @@ checkSqlresponse(api.Sqlresponse o) { buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - checkUnnamed424(o.columns); + checkUnnamed428(o.columns); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed426(o.rows); + checkUnnamed430(o.rows); } buildCounterSqlresponse--; } -buildUnnamed427() { +buildUnnamed431() { var o = new core.List<api.Bucket>(); o.add(buildBucket()); o.add(buildBucket()); return o; } -checkUnnamed427(core.List<api.Bucket> o) { +checkUnnamed431(core.List<api.Bucket> o) { unittest.expect(o, unittest.hasLength(2)); checkBucket(o[0]); checkBucket(o[1]); @@ -568,14 +568,14 @@ buildCounterStyleFunctionGradientColors--; } -buildUnnamed428() { +buildUnnamed432() { var o = new core.List<api.StyleFunctionGradientColors>(); o.add(buildStyleFunctionGradientColors()); o.add(buildStyleFunctionGradientColors()); return o; } -checkUnnamed428(core.List<api.StyleFunctionGradientColors> o) { +checkUnnamed432(core.List<api.StyleFunctionGradientColors> o) { unittest.expect(o, unittest.hasLength(2)); checkStyleFunctionGradientColors(o[0]); checkStyleFunctionGradientColors(o[1]); @@ -586,7 +586,7 @@ var o = new api.StyleFunctionGradient(); buildCounterStyleFunctionGradient++; if (buildCounterStyleFunctionGradient < 3) { - o.colors = buildUnnamed428(); + o.colors = buildUnnamed432(); o.max = 42.0; o.min = 42.0; } @@ -597,7 +597,7 @@ checkStyleFunctionGradient(api.StyleFunctionGradient o) { buildCounterStyleFunctionGradient++; if (buildCounterStyleFunctionGradient < 3) { - checkUnnamed428(o.colors); + checkUnnamed432(o.colors); unittest.expect(o.max, unittest.equals(42.0)); unittest.expect(o.min, unittest.equals(42.0)); } @@ -609,7 +609,7 @@ var o = new api.StyleFunction(); buildCounterStyleFunction++; if (buildCounterStyleFunction < 3) { - o.buckets = buildUnnamed427(); + o.buckets = buildUnnamed431(); o.columnName = "foo"; o.gradient = buildStyleFunctionGradient(); o.kind = "foo"; @@ -621,7 +621,7 @@ checkStyleFunction(api.StyleFunction o) { buildCounterStyleFunction++; if (buildCounterStyleFunction < 3) { - checkUnnamed427(o.buckets); + checkUnnamed431(o.buckets); unittest.expect(o.columnName, unittest.equals('foo')); checkStyleFunctionGradient(o.gradient); unittest.expect(o.kind, unittest.equals('foo')); @@ -660,14 +660,14 @@ buildCounterStyleSetting--; } -buildUnnamed429() { +buildUnnamed433() { var o = new core.List<api.StyleSetting>(); o.add(buildStyleSetting()); o.add(buildStyleSetting()); return o; } -checkUnnamed429(core.List<api.StyleSetting> o) { +checkUnnamed433(core.List<api.StyleSetting> o) { unittest.expect(o, unittest.hasLength(2)); checkStyleSetting(o[0]); checkStyleSetting(o[1]); @@ -678,7 +678,7 @@ var o = new api.StyleSettingList(); buildCounterStyleSettingList++; if (buildCounterStyleSettingList < 3) { - o.items = buildUnnamed429(); + o.items = buildUnnamed433(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -690,7 +690,7 @@ checkStyleSettingList(api.StyleSettingList o) { buildCounterStyleSettingList++; if (buildCounterStyleSettingList < 3) { - checkUnnamed429(o.items); + checkUnnamed433(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -698,27 +698,27 @@ buildCounterStyleSettingList--; } -buildUnnamed430() { +buildUnnamed434() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed430(core.List<core.String> o) { +checkUnnamed434(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed431() { +buildUnnamed435() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed431(core.List<api.Column> o) { +checkUnnamed435(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -731,9 +731,9 @@ if (buildCounterTable < 3) { o.attribution = "foo"; o.attributionLink = "foo"; - o.baseTableIds = buildUnnamed430(); + o.baseTableIds = buildUnnamed434(); o.columnPropertiesJsonSchema = "foo"; - o.columns = buildUnnamed431(); + o.columns = buildUnnamed435(); o.description = "foo"; o.isExportable = true; o.kind = "foo"; @@ -752,9 +752,9 @@ if (buildCounterTable < 3) { unittest.expect(o.attribution, unittest.equals('foo')); unittest.expect(o.attributionLink, unittest.equals('foo')); - checkUnnamed430(o.baseTableIds); + checkUnnamed434(o.baseTableIds); unittest.expect(o.columnPropertiesJsonSchema, unittest.equals('foo')); - checkUnnamed431(o.columns); + checkUnnamed435(o.columns); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.isExportable, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -767,14 +767,14 @@ buildCounterTable--; } -buildUnnamed432() { +buildUnnamed436() { var o = new core.List<api.Table>(); o.add(buildTable()); o.add(buildTable()); return o; } -checkUnnamed432(core.List<api.Table> o) { +checkUnnamed436(core.List<api.Table> o) { unittest.expect(o, unittest.hasLength(2)); checkTable(o[0]); checkTable(o[1]); @@ -785,7 +785,7 @@ var o = new api.TableList(); buildCounterTableList++; if (buildCounterTableList < 3) { - o.items = buildUnnamed432(); + o.items = buildUnnamed436(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -796,7 +796,7 @@ checkTableList(api.TableList o) { buildCounterTableList++; if (buildCounterTableList < 3) { - checkUnnamed432(o.items); + checkUnnamed436(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -830,14 +830,14 @@ buildCounterTask--; } -buildUnnamed433() { +buildUnnamed437() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed433(core.List<api.Task> o) { +checkUnnamed437(core.List<api.Task> o) { unittest.expect(o, unittest.hasLength(2)); checkTask(o[0]); checkTask(o[1]); @@ -848,7 +848,7 @@ var o = new api.TaskList(); buildCounterTaskList++; if (buildCounterTaskList < 3) { - o.items = buildUnnamed433(); + o.items = buildUnnamed437(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -860,7 +860,7 @@ checkTaskList(api.TaskList o) { buildCounterTaskList++; if (buildCounterTaskList < 3) { - checkUnnamed433(o.items); + checkUnnamed437(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -868,14 +868,14 @@ buildCounterTaskList--; } -buildUnnamed434() { +buildUnnamed438() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed434(core.List<core.String> o) { +checkUnnamed438(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -886,7 +886,7 @@ var o = new api.Template(); buildCounterTemplate++; if (buildCounterTemplate < 3) { - o.automaticColumnNames = buildUnnamed434(); + o.automaticColumnNames = buildUnnamed438(); o.body = "foo"; o.kind = "foo"; o.name = "foo"; @@ -900,7 +900,7 @@ checkTemplate(api.Template o) { buildCounterTemplate++; if (buildCounterTemplate < 3) { - checkUnnamed434(o.automaticColumnNames); + checkUnnamed438(o.automaticColumnNames); unittest.expect(o.body, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -910,14 +910,14 @@ buildCounterTemplate--; } -buildUnnamed435() { +buildUnnamed439() { var o = new core.List<api.Template>(); o.add(buildTemplate()); o.add(buildTemplate()); return o; } -checkUnnamed435(core.List<api.Template> o) { +checkUnnamed439(core.List<api.Template> o) { unittest.expect(o, unittest.hasLength(2)); checkTemplate(o[0]); checkTemplate(o[1]); @@ -928,7 +928,7 @@ var o = new api.TemplateList(); buildCounterTemplateList++; if (buildCounterTemplateList < 3) { - o.items = buildUnnamed435(); + o.items = buildUnnamed439(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -940,7 +940,7 @@ checkTemplateList(api.TemplateList o) { buildCounterTemplateList++; if (buildCounterTemplateList < 3) { - checkUnnamed435(o.items); + checkUnnamed439(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -1173,7 +1173,7 @@ api.ColumnResourceApi res = new api.FusiontablesApi(mock).column; var arg_tableId = "foo"; var arg_columnId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1219,7 +1219,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_tableId, arg_columnId).then(unittest.expectAsync((_) {})); + res.delete(arg_tableId, arg_columnId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -1228,7 +1228,7 @@ api.ColumnResourceApi res = new api.FusiontablesApi(mock).column; var arg_tableId = "foo"; var arg_columnId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1274,7 +1274,7 @@ var resp = convert.JSON.encode(buildColumn()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_tableId, arg_columnId).then(unittest.expectAsync(((api.Column response) { + res.get(arg_tableId, arg_columnId).then(unittest.expectAsync1(((api.Column response) { checkColumn(response); }))); }); @@ -1285,7 +1285,7 @@ api.ColumnResourceApi res = new api.FusiontablesApi(mock).column; var arg_request = buildColumn(); var arg_tableId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Column.fromJson(json); checkColumn(obj); @@ -1331,7 +1331,7 @@ var resp = convert.JSON.encode(buildColumn()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_tableId).then(unittest.expectAsync(((api.Column response) { + res.insert(arg_request, arg_tableId).then(unittest.expectAsync1(((api.Column response) { checkColumn(response); }))); }); @@ -1343,7 +1343,7 @@ var arg_tableId = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1388,7 +1388,7 @@ var resp = convert.JSON.encode(buildColumnList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_tableId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ColumnList response) { + res.list(arg_tableId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ColumnList response) { checkColumnList(response); }))); }); @@ -1400,7 +1400,7 @@ var arg_request = buildColumn(); var arg_tableId = "foo"; var arg_columnId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Column.fromJson(json); checkColumn(obj); @@ -1449,7 +1449,7 @@ var resp = convert.JSON.encode(buildColumn()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_tableId, arg_columnId).then(unittest.expectAsync(((api.Column response) { + res.patch(arg_request, arg_tableId, arg_columnId).then(unittest.expectAsync1(((api.Column response) { checkColumn(response); }))); }); @@ -1461,7 +1461,7 @@ var arg_request = buildColumn(); var arg_tableId = "foo"; var arg_columnId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Column.fromJson(json); checkColumn(obj); @@ -1510,7 +1510,7 @@ var resp = convert.JSON.encode(buildColumn()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_tableId, arg_columnId).then(unittest.expectAsync(((api.Column response) { + res.update(arg_request, arg_tableId, arg_columnId).then(unittest.expectAsync1(((api.Column response) { checkColumn(response); }))); }); @@ -1528,7 +1528,7 @@ var arg_sql_1 = "foo"; var arg_hdrs = true; var arg_typed = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1567,7 +1567,7 @@ var resp = convert.JSON.encode(buildSqlresponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.sql(arg_sql_1, hdrs: arg_hdrs, typed: arg_typed).then(unittest.expectAsync(((api.Sqlresponse response) { + res.sql(arg_sql_1, hdrs: arg_hdrs, typed: arg_typed).then(unittest.expectAsync1(((api.Sqlresponse response) { checkSqlresponse(response); }))); }); @@ -1581,7 +1581,7 @@ var arg_sql_1 = "foo"; var arg_hdrs = true; var arg_typed = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1620,7 +1620,7 @@ var resp = convert.JSON.encode(buildSqlresponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.sqlGet(arg_sql_1, hdrs: arg_hdrs, typed: arg_typed).then(unittest.expectAsync(((api.Sqlresponse response) { + res.sqlGet(arg_sql_1, hdrs: arg_hdrs, typed: arg_typed).then(unittest.expectAsync1(((api.Sqlresponse response) { checkSqlresponse(response); }))); }); @@ -1635,7 +1635,7 @@ api.StyleResourceApi res = new api.FusiontablesApi(mock).style; var arg_tableId = "foo"; var arg_styleId = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1681,7 +1681,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_tableId, arg_styleId).then(unittest.expectAsync((_) {})); + res.delete(arg_tableId, arg_styleId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -1690,7 +1690,7 @@ api.StyleResourceApi res = new api.FusiontablesApi(mock).style; var arg_tableId = "foo"; var arg_styleId = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1736,7 +1736,7 @@ var resp = convert.JSON.encode(buildStyleSetting()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_tableId, arg_styleId).then(unittest.expectAsync(((api.StyleSetting response) { + res.get(arg_tableId, arg_styleId).then(unittest.expectAsync1(((api.StyleSetting response) { checkStyleSetting(response); }))); }); @@ -1747,7 +1747,7 @@ api.StyleResourceApi res = new api.FusiontablesApi(mock).style; var arg_request = buildStyleSetting(); var arg_tableId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.StyleSetting.fromJson(json); checkStyleSetting(obj); @@ -1793,7 +1793,7 @@ var resp = convert.JSON.encode(buildStyleSetting()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_tableId).then(unittest.expectAsync(((api.StyleSetting response) { + res.insert(arg_request, arg_tableId).then(unittest.expectAsync1(((api.StyleSetting response) { checkStyleSetting(response); }))); }); @@ -1805,7 +1805,7 @@ var arg_tableId = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1850,7 +1850,7 @@ var resp = convert.JSON.encode(buildStyleSettingList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_tableId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.StyleSettingList response) { + res.list(arg_tableId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.StyleSettingList response) { checkStyleSettingList(response); }))); }); @@ -1862,7 +1862,7 @@ var arg_request = buildStyleSetting(); var arg_tableId = "foo"; var arg_styleId = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.StyleSetting.fromJson(json); checkStyleSetting(obj); @@ -1911,7 +1911,7 @@ var resp = convert.JSON.encode(buildStyleSetting()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_tableId, arg_styleId).then(unittest.expectAsync(((api.StyleSetting response) { + res.patch(arg_request, arg_tableId, arg_styleId).then(unittest.expectAsync1(((api.StyleSetting response) { checkStyleSetting(response); }))); }); @@ -1923,7 +1923,7 @@ var arg_request = buildStyleSetting(); var arg_tableId = "foo"; var arg_styleId = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.StyleSetting.fromJson(json); checkStyleSetting(obj); @@ -1972,7 +1972,7 @@ var resp = convert.JSON.encode(buildStyleSetting()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_tableId, arg_styleId).then(unittest.expectAsync(((api.StyleSetting response) { + res.update(arg_request, arg_tableId, arg_styleId).then(unittest.expectAsync1(((api.StyleSetting response) { checkStyleSetting(response); }))); }); @@ -1987,7 +1987,7 @@ api.TableResourceApi res = new api.FusiontablesApi(mock).table; var arg_tableId = "foo"; var arg_copyPresentation = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2031,7 +2031,7 @@ var resp = convert.JSON.encode(buildTable()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.copy(arg_tableId, copyPresentation: arg_copyPresentation).then(unittest.expectAsync(((api.Table response) { + res.copy(arg_tableId, copyPresentation: arg_copyPresentation).then(unittest.expectAsync1(((api.Table response) { checkTable(response); }))); }); @@ -2041,7 +2041,7 @@ var mock = new HttpServerMock(); api.TableResourceApi res = new api.FusiontablesApi(mock).table; var arg_tableId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2080,7 +2080,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_tableId).then(unittest.expectAsync((_) {})); + res.delete(arg_tableId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -2088,7 +2088,7 @@ var mock = new HttpServerMock(); api.TableResourceApi res = new api.FusiontablesApi(mock).table; var arg_tableId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2127,7 +2127,7 @@ var resp = convert.JSON.encode(buildTable()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_tableId).then(unittest.expectAsync(((api.Table response) { + res.get(arg_tableId).then(unittest.expectAsync1(((api.Table response) { checkTable(response); }))); }); @@ -2144,7 +2144,7 @@ var arg_endLine = 42; var arg_isStrict = true; var arg_startLine = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2192,7 +2192,7 @@ var resp = convert.JSON.encode(buildImport()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.importRows(arg_tableId, delimiter: arg_delimiter, encoding: arg_encoding, endLine: arg_endLine, isStrict: arg_isStrict, startLine: arg_startLine).then(unittest.expectAsync(((api.Import response) { + res.importRows(arg_tableId, delimiter: arg_delimiter, encoding: arg_encoding, endLine: arg_endLine, isStrict: arg_isStrict, startLine: arg_startLine).then(unittest.expectAsync1(((api.Import response) { checkImport(response); }))); }); @@ -2206,7 +2206,7 @@ var arg_name = "foo"; var arg_delimiter = "foo"; var arg_encoding = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2245,7 +2245,7 @@ var resp = convert.JSON.encode(buildTable()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.importTable(arg_name, delimiter: arg_delimiter, encoding: arg_encoding).then(unittest.expectAsync(((api.Table response) { + res.importTable(arg_name, delimiter: arg_delimiter, encoding: arg_encoding).then(unittest.expectAsync1(((api.Table response) { checkTable(response); }))); }); @@ -2255,7 +2255,7 @@ var mock = new HttpServerMock(); api.TableResourceApi res = new api.FusiontablesApi(mock).table; var arg_request = buildTable(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Table.fromJson(json); checkTable(obj); @@ -2294,7 +2294,7 @@ var resp = convert.JSON.encode(buildTable()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request).then(unittest.expectAsync(((api.Table response) { + res.insert(arg_request).then(unittest.expectAsync1(((api.Table response) { checkTable(response); }))); }); @@ -2305,7 +2305,7 @@ api.TableResourceApi res = new api.FusiontablesApi(mock).table; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2343,7 +2343,7 @@ var resp = convert.JSON.encode(buildTableList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TableList response) { + res.list(maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.TableList response) { checkTableList(response); }))); }); @@ -2355,7 +2355,7 @@ var arg_request = buildTable(); var arg_tableId = "foo"; var arg_replaceViewDefinition = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Table.fromJson(json); checkTable(obj); @@ -2398,7 +2398,7 @@ var resp = convert.JSON.encode(buildTable()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_tableId, replaceViewDefinition: arg_replaceViewDefinition).then(unittest.expectAsync(((api.Table response) { + res.patch(arg_request, arg_tableId, replaceViewDefinition: arg_replaceViewDefinition).then(unittest.expectAsync1(((api.Table response) { checkTable(response); }))); }); @@ -2415,7 +2415,7 @@ var arg_endLine = 42; var arg_isStrict = true; var arg_startLine = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2463,7 +2463,7 @@ var resp = convert.JSON.encode(buildTask()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.replaceRows(arg_tableId, delimiter: arg_delimiter, encoding: arg_encoding, endLine: arg_endLine, isStrict: arg_isStrict, startLine: arg_startLine).then(unittest.expectAsync(((api.Task response) { + res.replaceRows(arg_tableId, delimiter: arg_delimiter, encoding: arg_encoding, endLine: arg_endLine, isStrict: arg_isStrict, startLine: arg_startLine).then(unittest.expectAsync1(((api.Task response) { checkTask(response); }))); }); @@ -2475,7 +2475,7 @@ var arg_request = buildTable(); var arg_tableId = "foo"; var arg_replaceViewDefinition = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Table.fromJson(json); checkTable(obj); @@ -2518,7 +2518,7 @@ var resp = convert.JSON.encode(buildTable()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_tableId, replaceViewDefinition: arg_replaceViewDefinition).then(unittest.expectAsync(((api.Table response) { + res.update(arg_request, arg_tableId, replaceViewDefinition: arg_replaceViewDefinition).then(unittest.expectAsync1(((api.Table response) { checkTable(response); }))); }); @@ -2533,7 +2533,7 @@ api.TaskResourceApi res = new api.FusiontablesApi(mock).task; var arg_tableId = "foo"; var arg_taskId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2579,7 +2579,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_tableId, arg_taskId).then(unittest.expectAsync((_) {})); + res.delete(arg_tableId, arg_taskId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -2588,7 +2588,7 @@ api.TaskResourceApi res = new api.FusiontablesApi(mock).task; var arg_tableId = "foo"; var arg_taskId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2634,7 +2634,7 @@ var resp = convert.JSON.encode(buildTask()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_tableId, arg_taskId).then(unittest.expectAsync(((api.Task response) { + res.get(arg_tableId, arg_taskId).then(unittest.expectAsync1(((api.Task response) { checkTask(response); }))); }); @@ -2647,7 +2647,7 @@ var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_startIndex = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2693,7 +2693,7 @@ var resp = convert.JSON.encode(buildTaskList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_tableId, maxResults: arg_maxResults, pageToken: arg_pageToken, startIndex: arg_startIndex).then(unittest.expectAsync(((api.TaskList response) { + res.list(arg_tableId, maxResults: arg_maxResults, pageToken: arg_pageToken, startIndex: arg_startIndex).then(unittest.expectAsync1(((api.TaskList response) { checkTaskList(response); }))); }); @@ -2708,7 +2708,7 @@ api.TemplateResourceApi res = new api.FusiontablesApi(mock).template; var arg_tableId = "foo"; var arg_templateId = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2754,7 +2754,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_tableId, arg_templateId).then(unittest.expectAsync((_) {})); + res.delete(arg_tableId, arg_templateId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -2763,7 +2763,7 @@ api.TemplateResourceApi res = new api.FusiontablesApi(mock).template; var arg_tableId = "foo"; var arg_templateId = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2809,7 +2809,7 @@ var resp = convert.JSON.encode(buildTemplate()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_tableId, arg_templateId).then(unittest.expectAsync(((api.Template response) { + res.get(arg_tableId, arg_templateId).then(unittest.expectAsync1(((api.Template response) { checkTemplate(response); }))); }); @@ -2820,7 +2820,7 @@ api.TemplateResourceApi res = new api.FusiontablesApi(mock).template; var arg_request = buildTemplate(); var arg_tableId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Template.fromJson(json); checkTemplate(obj); @@ -2866,7 +2866,7 @@ var resp = convert.JSON.encode(buildTemplate()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_tableId).then(unittest.expectAsync(((api.Template response) { + res.insert(arg_request, arg_tableId).then(unittest.expectAsync1(((api.Template response) { checkTemplate(response); }))); }); @@ -2878,7 +2878,7 @@ var arg_tableId = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2923,7 +2923,7 @@ var resp = convert.JSON.encode(buildTemplateList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_tableId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TemplateList response) { + res.list(arg_tableId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.TemplateList response) { checkTemplateList(response); }))); }); @@ -2935,7 +2935,7 @@ var arg_request = buildTemplate(); var arg_tableId = "foo"; var arg_templateId = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Template.fromJson(json); checkTemplate(obj); @@ -2984,7 +2984,7 @@ var resp = convert.JSON.encode(buildTemplate()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_tableId, arg_templateId).then(unittest.expectAsync(((api.Template response) { + res.patch(arg_request, arg_tableId, arg_templateId).then(unittest.expectAsync1(((api.Template response) { checkTemplate(response); }))); }); @@ -2996,7 +2996,7 @@ var arg_request = buildTemplate(); var arg_tableId = "foo"; var arg_templateId = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Template.fromJson(json); checkTemplate(obj); @@ -3045,7 +3045,7 @@ var resp = convert.JSON.encode(buildTemplate()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_tableId, arg_templateId).then(unittest.expectAsync(((api.Template response) { + res.update(arg_request, arg_tableId, arg_templateId).then(unittest.expectAsync1(((api.Template response) { checkTemplate(response); }))); });
diff --git a/generated/googleapis/test/games/v1_test.dart b/generated/googleapis/test/games/v1_test.dart index cbf1107..f9b0823 100644 --- a/generated/googleapis/test/games/v1_test.dart +++ b/generated/googleapis/test/games/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/games/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -94,14 +94,14 @@ buildCounterAchievementDefinition--; } -buildUnnamed52() { +buildUnnamed54() { var o = new core.List<api.AchievementDefinition>(); o.add(buildAchievementDefinition()); o.add(buildAchievementDefinition()); return o; } -checkUnnamed52(core.List<api.AchievementDefinition> o) { +checkUnnamed54(core.List<api.AchievementDefinition> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementDefinition(o[0]); checkAchievementDefinition(o[1]); @@ -112,7 +112,7 @@ var o = new api.AchievementDefinitionsListResponse(); buildCounterAchievementDefinitionsListResponse++; if (buildCounterAchievementDefinitionsListResponse < 3) { - o.items = buildUnnamed52(); + o.items = buildUnnamed54(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -123,7 +123,7 @@ checkAchievementDefinitionsListResponse(api.AchievementDefinitionsListResponse o) { buildCounterAchievementDefinitionsListResponse++; if (buildCounterAchievementDefinitionsListResponse < 3) { - checkUnnamed52(o.items); + checkUnnamed54(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -218,14 +218,14 @@ buildCounterAchievementUnlockResponse--; } -buildUnnamed53() { +buildUnnamed55() { var o = new core.List<api.AchievementUpdateRequest>(); o.add(buildAchievementUpdateRequest()); o.add(buildAchievementUpdateRequest()); return o; } -checkUnnamed53(core.List<api.AchievementUpdateRequest> o) { +checkUnnamed55(core.List<api.AchievementUpdateRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementUpdateRequest(o[0]); checkAchievementUpdateRequest(o[1]); @@ -237,7 +237,7 @@ buildCounterAchievementUpdateMultipleRequest++; if (buildCounterAchievementUpdateMultipleRequest < 3) { o.kind = "foo"; - o.updates = buildUnnamed53(); + o.updates = buildUnnamed55(); } buildCounterAchievementUpdateMultipleRequest--; return o; @@ -247,19 +247,19 @@ buildCounterAchievementUpdateMultipleRequest++; if (buildCounterAchievementUpdateMultipleRequest < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed53(o.updates); + checkUnnamed55(o.updates); } buildCounterAchievementUpdateMultipleRequest--; } -buildUnnamed54() { +buildUnnamed56() { var o = new core.List<api.AchievementUpdateResponse>(); o.add(buildAchievementUpdateResponse()); o.add(buildAchievementUpdateResponse()); return o; } -checkUnnamed54(core.List<api.AchievementUpdateResponse> o) { +checkUnnamed56(core.List<api.AchievementUpdateResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementUpdateResponse(o[0]); checkAchievementUpdateResponse(o[1]); @@ -271,7 +271,7 @@ buildCounterAchievementUpdateMultipleResponse++; if (buildCounterAchievementUpdateMultipleResponse < 3) { o.kind = "foo"; - o.updatedAchievements = buildUnnamed54(); + o.updatedAchievements = buildUnnamed56(); } buildCounterAchievementUpdateMultipleResponse--; return o; @@ -281,7 +281,7 @@ buildCounterAchievementUpdateMultipleResponse++; if (buildCounterAchievementUpdateMultipleResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed54(o.updatedAchievements); + checkUnnamed56(o.updatedAchievements); } buildCounterAchievementUpdateMultipleResponse--; } @@ -392,40 +392,40 @@ buildCounterAnonymousPlayer--; } -buildUnnamed55() { +buildUnnamed57() { var o = new core.List<api.ImageAsset>(); o.add(buildImageAsset()); o.add(buildImageAsset()); return o; } -checkUnnamed55(core.List<api.ImageAsset> o) { +checkUnnamed57(core.List<api.ImageAsset> o) { unittest.expect(o, unittest.hasLength(2)); checkImageAsset(o[0]); checkImageAsset(o[1]); } -buildUnnamed56() { +buildUnnamed58() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed56(core.List<core.String> o) { +checkUnnamed58(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed57() { +buildUnnamed59() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed57(core.List<api.Instance> o) { +checkUnnamed59(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -437,13 +437,13 @@ buildCounterApplication++; if (buildCounterApplication < 3) { o.achievementCount = 42; - o.assets = buildUnnamed55(); + o.assets = buildUnnamed57(); o.author = "foo"; o.category = buildApplicationCategory(); o.description = "foo"; - o.enabledFeatures = buildUnnamed56(); + o.enabledFeatures = buildUnnamed58(); o.id = "foo"; - o.instances = buildUnnamed57(); + o.instances = buildUnnamed59(); o.kind = "foo"; o.lastUpdatedTimestamp = "foo"; o.leaderboardCount = 42; @@ -458,13 +458,13 @@ buildCounterApplication++; if (buildCounterApplication < 3) { unittest.expect(o.achievementCount, unittest.equals(42)); - checkUnnamed55(o.assets); + checkUnnamed57(o.assets); unittest.expect(o.author, unittest.equals('foo')); checkApplicationCategory(o.category); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed56(o.enabledFeatures); + checkUnnamed58(o.enabledFeatures); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed57(o.instances); + checkUnnamed59(o.instances); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastUpdatedTimestamp, unittest.equals('foo')); unittest.expect(o.leaderboardCount, unittest.equals(42)); @@ -543,14 +543,14 @@ buildCounterCategory--; } -buildUnnamed58() { +buildUnnamed60() { var o = new core.List<api.Category>(); o.add(buildCategory()); o.add(buildCategory()); return o; } -checkUnnamed58(core.List<api.Category> o) { +checkUnnamed60(core.List<api.Category> o) { unittest.expect(o, unittest.hasLength(2)); checkCategory(o[0]); checkCategory(o[1]); @@ -561,7 +561,7 @@ var o = new api.CategoryListResponse(); buildCounterCategoryListResponse++; if (buildCounterCategoryListResponse < 3) { - o.items = buildUnnamed58(); + o.items = buildUnnamed60(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -572,7 +572,7 @@ checkCategoryListResponse(api.CategoryListResponse o) { buildCounterCategoryListResponse++; if (buildCounterCategoryListResponse < 3) { - checkUnnamed58(o.items); + checkUnnamed60(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -623,14 +623,14 @@ buildCounterEventChild--; } -buildUnnamed59() { +buildUnnamed61() { var o = new core.List<api.EventChild>(); o.add(buildEventChild()); o.add(buildEventChild()); return o; } -checkUnnamed59(core.List<api.EventChild> o) { +checkUnnamed61(core.List<api.EventChild> o) { unittest.expect(o, unittest.hasLength(2)); checkEventChild(o[0]); checkEventChild(o[1]); @@ -641,7 +641,7 @@ var o = new api.EventDefinition(); buildCounterEventDefinition++; if (buildCounterEventDefinition < 3) { - o.childEvents = buildUnnamed59(); + o.childEvents = buildUnnamed61(); o.description = "foo"; o.displayName = "foo"; o.id = "foo"; @@ -657,7 +657,7 @@ checkEventDefinition(api.EventDefinition o) { buildCounterEventDefinition++; if (buildCounterEventDefinition < 3) { - checkUnnamed59(o.childEvents); + checkUnnamed61(o.childEvents); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -669,14 +669,14 @@ buildCounterEventDefinition--; } -buildUnnamed60() { +buildUnnamed62() { var o = new core.List<api.EventDefinition>(); o.add(buildEventDefinition()); o.add(buildEventDefinition()); return o; } -checkUnnamed60(core.List<api.EventDefinition> o) { +checkUnnamed62(core.List<api.EventDefinition> o) { unittest.expect(o, unittest.hasLength(2)); checkEventDefinition(o[0]); checkEventDefinition(o[1]); @@ -687,7 +687,7 @@ var o = new api.EventDefinitionListResponse(); buildCounterEventDefinitionListResponse++; if (buildCounterEventDefinitionListResponse < 3) { - o.items = buildUnnamed60(); + o.items = buildUnnamed62(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -698,7 +698,7 @@ checkEventDefinitionListResponse(api.EventDefinitionListResponse o) { buildCounterEventDefinitionListResponse++; if (buildCounterEventDefinitionListResponse < 3) { - checkUnnamed60(o.items); + checkUnnamed62(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -728,14 +728,14 @@ buildCounterEventPeriodRange--; } -buildUnnamed61() { +buildUnnamed63() { var o = new core.List<api.EventUpdateRequest>(); o.add(buildEventUpdateRequest()); o.add(buildEventUpdateRequest()); return o; } -checkUnnamed61(core.List<api.EventUpdateRequest> o) { +checkUnnamed63(core.List<api.EventUpdateRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkEventUpdateRequest(o[0]); checkEventUpdateRequest(o[1]); @@ -748,7 +748,7 @@ if (buildCounterEventPeriodUpdate < 3) { o.kind = "foo"; o.timePeriod = buildEventPeriodRange(); - o.updates = buildUnnamed61(); + o.updates = buildUnnamed63(); } buildCounterEventPeriodUpdate--; return o; @@ -759,7 +759,7 @@ if (buildCounterEventPeriodUpdate < 3) { unittest.expect(o.kind, unittest.equals('foo')); checkEventPeriodRange(o.timePeriod); - checkUnnamed61(o.updates); + checkUnnamed63(o.updates); } buildCounterEventPeriodUpdate--; } @@ -787,14 +787,14 @@ buildCounterEventRecordFailure--; } -buildUnnamed62() { +buildUnnamed64() { var o = new core.List<api.EventPeriodUpdate>(); o.add(buildEventPeriodUpdate()); o.add(buildEventPeriodUpdate()); return o; } -checkUnnamed62(core.List<api.EventPeriodUpdate> o) { +checkUnnamed64(core.List<api.EventPeriodUpdate> o) { unittest.expect(o, unittest.hasLength(2)); checkEventPeriodUpdate(o[0]); checkEventPeriodUpdate(o[1]); @@ -808,7 +808,7 @@ o.currentTimeMillis = "foo"; o.kind = "foo"; o.requestId = "foo"; - o.timePeriods = buildUnnamed62(); + o.timePeriods = buildUnnamed64(); } buildCounterEventRecordRequest--; return o; @@ -820,7 +820,7 @@ unittest.expect(o.currentTimeMillis, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.requestId, unittest.equals('foo')); - checkUnnamed62(o.timePeriods); + checkUnnamed64(o.timePeriods); } buildCounterEventRecordRequest--; } @@ -848,40 +848,40 @@ buildCounterEventUpdateRequest--; } -buildUnnamed63() { +buildUnnamed65() { var o = new core.List<api.EventBatchRecordFailure>(); o.add(buildEventBatchRecordFailure()); o.add(buildEventBatchRecordFailure()); return o; } -checkUnnamed63(core.List<api.EventBatchRecordFailure> o) { +checkUnnamed65(core.List<api.EventBatchRecordFailure> o) { unittest.expect(o, unittest.hasLength(2)); checkEventBatchRecordFailure(o[0]); checkEventBatchRecordFailure(o[1]); } -buildUnnamed64() { +buildUnnamed66() { var o = new core.List<api.EventRecordFailure>(); o.add(buildEventRecordFailure()); o.add(buildEventRecordFailure()); return o; } -checkUnnamed64(core.List<api.EventRecordFailure> o) { +checkUnnamed66(core.List<api.EventRecordFailure> o) { unittest.expect(o, unittest.hasLength(2)); checkEventRecordFailure(o[0]); checkEventRecordFailure(o[1]); } -buildUnnamed65() { +buildUnnamed67() { var o = new core.List<api.PlayerEvent>(); o.add(buildPlayerEvent()); o.add(buildPlayerEvent()); return o; } -checkUnnamed65(core.List<api.PlayerEvent> o) { +checkUnnamed67(core.List<api.PlayerEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerEvent(o[0]); checkPlayerEvent(o[1]); @@ -892,10 +892,10 @@ var o = new api.EventUpdateResponse(); buildCounterEventUpdateResponse++; if (buildCounterEventUpdateResponse < 3) { - o.batchFailures = buildUnnamed63(); - o.eventFailures = buildUnnamed64(); + o.batchFailures = buildUnnamed65(); + o.eventFailures = buildUnnamed66(); o.kind = "foo"; - o.playerEvents = buildUnnamed65(); + o.playerEvents = buildUnnamed67(); } buildCounterEventUpdateResponse--; return o; @@ -904,10 +904,10 @@ checkEventUpdateResponse(api.EventUpdateResponse o) { buildCounterEventUpdateResponse++; if (buildCounterEventUpdateResponse < 3) { - checkUnnamed63(o.batchFailures); - checkUnnamed64(o.eventFailures); + checkUnnamed65(o.batchFailures); + checkUnnamed66(o.eventFailures); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed65(o.playerEvents); + checkUnnamed67(o.playerEvents); } buildCounterEventUpdateResponse--; } @@ -1161,14 +1161,14 @@ buildCounterLeaderboardEntry--; } -buildUnnamed66() { +buildUnnamed68() { var o = new core.List<api.Leaderboard>(); o.add(buildLeaderboard()); o.add(buildLeaderboard()); return o; } -checkUnnamed66(core.List<api.Leaderboard> o) { +checkUnnamed68(core.List<api.Leaderboard> o) { unittest.expect(o, unittest.hasLength(2)); checkLeaderboard(o[0]); checkLeaderboard(o[1]); @@ -1179,7 +1179,7 @@ var o = new api.LeaderboardListResponse(); buildCounterLeaderboardListResponse++; if (buildCounterLeaderboardListResponse < 3) { - o.items = buildUnnamed66(); + o.items = buildUnnamed68(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1190,7 +1190,7 @@ checkLeaderboardListResponse(api.LeaderboardListResponse o) { buildCounterLeaderboardListResponse++; if (buildCounterLeaderboardListResponse < 3) { - checkUnnamed66(o.items); + checkUnnamed68(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1224,14 +1224,14 @@ buildCounterLeaderboardScoreRank--; } -buildUnnamed67() { +buildUnnamed69() { var o = new core.List<api.LeaderboardEntry>(); o.add(buildLeaderboardEntry()); o.add(buildLeaderboardEntry()); return o; } -checkUnnamed67(core.List<api.LeaderboardEntry> o) { +checkUnnamed69(core.List<api.LeaderboardEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLeaderboardEntry(o[0]); checkLeaderboardEntry(o[1]); @@ -1242,7 +1242,7 @@ var o = new api.LeaderboardScores(); buildCounterLeaderboardScores++; if (buildCounterLeaderboardScores < 3) { - o.items = buildUnnamed67(); + o.items = buildUnnamed69(); o.kind = "foo"; o.nextPageToken = "foo"; o.numScores = "foo"; @@ -1256,7 +1256,7 @@ checkLeaderboardScores(api.LeaderboardScores o) { buildCounterLeaderboardScores++; if (buildCounterLeaderboardScores < 3) { - checkUnnamed67(o.items); + checkUnnamed69(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.numScores, unittest.equals('foo')); @@ -1266,14 +1266,14 @@ buildCounterLeaderboardScores--; } -buildUnnamed68() { +buildUnnamed70() { var o = new core.List<api.PlayerLevel>(); o.add(buildPlayerLevel()); o.add(buildPlayerLevel()); return o; } -checkUnnamed68(core.List<api.PlayerLevel> o) { +checkUnnamed70(core.List<api.PlayerLevel> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerLevel(o[0]); checkPlayerLevel(o[1]); @@ -1286,7 +1286,7 @@ if (buildCounterMetagameConfig < 3) { o.currentVersion = 42; o.kind = "foo"; - o.playerLevels = buildUnnamed68(); + o.playerLevels = buildUnnamed70(); } buildCounterMetagameConfig--; return o; @@ -1297,7 +1297,7 @@ if (buildCounterMetagameConfig < 3) { unittest.expect(o.currentVersion, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed68(o.playerLevels); + checkUnnamed70(o.playerLevels); } buildCounterMetagameConfig--; } @@ -1534,14 +1534,14 @@ buildCounterPlayerAchievement--; } -buildUnnamed69() { +buildUnnamed71() { var o = new core.List<api.PlayerAchievement>(); o.add(buildPlayerAchievement()); o.add(buildPlayerAchievement()); return o; } -checkUnnamed69(core.List<api.PlayerAchievement> o) { +checkUnnamed71(core.List<api.PlayerAchievement> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerAchievement(o[0]); checkPlayerAchievement(o[1]); @@ -1552,7 +1552,7 @@ var o = new api.PlayerAchievementListResponse(); buildCounterPlayerAchievementListResponse++; if (buildCounterPlayerAchievementListResponse < 3) { - o.items = buildUnnamed69(); + o.items = buildUnnamed71(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1563,7 +1563,7 @@ checkPlayerAchievementListResponse(api.PlayerAchievementListResponse o) { buildCounterPlayerAchievementListResponse++; if (buildCounterPlayerAchievementListResponse < 3) { - checkUnnamed69(o.items); + checkUnnamed71(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1597,14 +1597,14 @@ buildCounterPlayerEvent--; } -buildUnnamed70() { +buildUnnamed72() { var o = new core.List<api.PlayerEvent>(); o.add(buildPlayerEvent()); o.add(buildPlayerEvent()); return o; } -checkUnnamed70(core.List<api.PlayerEvent> o) { +checkUnnamed72(core.List<api.PlayerEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerEvent(o[0]); checkPlayerEvent(o[1]); @@ -1615,7 +1615,7 @@ var o = new api.PlayerEventListResponse(); buildCounterPlayerEventListResponse++; if (buildCounterPlayerEventListResponse < 3) { - o.items = buildUnnamed70(); + o.items = buildUnnamed72(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1626,7 +1626,7 @@ checkPlayerEventListResponse(api.PlayerEventListResponse o) { buildCounterPlayerEventListResponse++; if (buildCounterPlayerEventListResponse < 3) { - checkUnnamed70(o.items); + checkUnnamed72(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1695,14 +1695,14 @@ buildCounterPlayerLeaderboardScore--; } -buildUnnamed71() { +buildUnnamed73() { var o = new core.List<api.PlayerLeaderboardScore>(); o.add(buildPlayerLeaderboardScore()); o.add(buildPlayerLeaderboardScore()); return o; } -checkUnnamed71(core.List<api.PlayerLeaderboardScore> o) { +checkUnnamed73(core.List<api.PlayerLeaderboardScore> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerLeaderboardScore(o[0]); checkPlayerLeaderboardScore(o[1]); @@ -1713,7 +1713,7 @@ var o = new api.PlayerLeaderboardScoreListResponse(); buildCounterPlayerLeaderboardScoreListResponse++; if (buildCounterPlayerLeaderboardScoreListResponse < 3) { - o.items = buildUnnamed71(); + o.items = buildUnnamed73(); o.kind = "foo"; o.nextPageToken = "foo"; o.player = buildPlayer(); @@ -1725,7 +1725,7 @@ checkPlayerLeaderboardScoreListResponse(api.PlayerLeaderboardScoreListResponse o) { buildCounterPlayerLeaderboardScoreListResponse++; if (buildCounterPlayerLeaderboardScoreListResponse < 3) { - checkUnnamed71(o.items); + checkUnnamed73(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPlayer(o.player); @@ -1758,14 +1758,14 @@ buildCounterPlayerLevel--; } -buildUnnamed72() { +buildUnnamed74() { var o = new core.List<api.Player>(); o.add(buildPlayer()); o.add(buildPlayer()); return o; } -checkUnnamed72(core.List<api.Player> o) { +checkUnnamed74(core.List<api.Player> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayer(o[0]); checkPlayer(o[1]); @@ -1776,7 +1776,7 @@ var o = new api.PlayerListResponse(); buildCounterPlayerListResponse++; if (buildCounterPlayerListResponse < 3) { - o.items = buildUnnamed72(); + o.items = buildUnnamed74(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1787,7 +1787,7 @@ checkPlayerListResponse(api.PlayerListResponse o) { buildCounterPlayerListResponse++; if (buildCounterPlayerListResponse < 3) { - checkUnnamed72(o.items); + checkUnnamed74(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1821,14 +1821,14 @@ buildCounterPlayerScore--; } -buildUnnamed73() { +buildUnnamed75() { var o = new core.List<api.PlayerScoreResponse>(); o.add(buildPlayerScoreResponse()); o.add(buildPlayerScoreResponse()); return o; } -checkUnnamed73(core.List<api.PlayerScoreResponse> o) { +checkUnnamed75(core.List<api.PlayerScoreResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerScoreResponse(o[0]); checkPlayerScoreResponse(o[1]); @@ -1840,7 +1840,7 @@ buildCounterPlayerScoreListResponse++; if (buildCounterPlayerScoreListResponse < 3) { o.kind = "foo"; - o.submittedScores = buildUnnamed73(); + o.submittedScores = buildUnnamed75(); } buildCounterPlayerScoreListResponse--; return o; @@ -1850,32 +1850,32 @@ buildCounterPlayerScoreListResponse++; if (buildCounterPlayerScoreListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed73(o.submittedScores); + checkUnnamed75(o.submittedScores); } buildCounterPlayerScoreListResponse--; } -buildUnnamed74() { +buildUnnamed76() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed74(core.List<core.String> o) { +checkUnnamed76(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed75() { +buildUnnamed77() { var o = new core.List<api.PlayerScore>(); o.add(buildPlayerScore()); o.add(buildPlayerScore()); return o; } -checkUnnamed75(core.List<api.PlayerScore> o) { +checkUnnamed77(core.List<api.PlayerScore> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerScore(o[0]); checkPlayerScore(o[1]); @@ -1886,12 +1886,12 @@ var o = new api.PlayerScoreResponse(); buildCounterPlayerScoreResponse++; if (buildCounterPlayerScoreResponse < 3) { - o.beatenScoreTimeSpans = buildUnnamed74(); + o.beatenScoreTimeSpans = buildUnnamed76(); o.formattedScore = "foo"; o.kind = "foo"; o.leaderboardId = "foo"; o.scoreTag = "foo"; - o.unbeatenScores = buildUnnamed75(); + o.unbeatenScores = buildUnnamed77(); } buildCounterPlayerScoreResponse--; return o; @@ -1900,24 +1900,24 @@ checkPlayerScoreResponse(api.PlayerScoreResponse o) { buildCounterPlayerScoreResponse++; if (buildCounterPlayerScoreResponse < 3) { - checkUnnamed74(o.beatenScoreTimeSpans); + checkUnnamed76(o.beatenScoreTimeSpans); unittest.expect(o.formattedScore, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.leaderboardId, unittest.equals('foo')); unittest.expect(o.scoreTag, unittest.equals('foo')); - checkUnnamed75(o.unbeatenScores); + checkUnnamed77(o.unbeatenScores); } buildCounterPlayerScoreResponse--; } -buildUnnamed76() { +buildUnnamed78() { var o = new core.List<api.ScoreSubmission>(); o.add(buildScoreSubmission()); o.add(buildScoreSubmission()); return o; } -checkUnnamed76(core.List<api.ScoreSubmission> o) { +checkUnnamed78(core.List<api.ScoreSubmission> o) { unittest.expect(o, unittest.hasLength(2)); checkScoreSubmission(o[0]); checkScoreSubmission(o[1]); @@ -1929,7 +1929,7 @@ buildCounterPlayerScoreSubmissionList++; if (buildCounterPlayerScoreSubmissionList < 3) { o.kind = "foo"; - o.scores = buildUnnamed76(); + o.scores = buildUnnamed78(); } buildCounterPlayerScoreSubmissionList--; return o; @@ -1939,7 +1939,7 @@ buildCounterPlayerScoreSubmissionList++; if (buildCounterPlayerScoreSubmissionList < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed76(o.scores); + checkUnnamed78(o.scores); } buildCounterPlayerScoreSubmissionList--; } @@ -2032,14 +2032,14 @@ buildCounterPushTokenId--; } -buildUnnamed77() { +buildUnnamed79() { var o = new core.List<api.QuestMilestone>(); o.add(buildQuestMilestone()); o.add(buildQuestMilestone()); return o; } -checkUnnamed77(core.List<api.QuestMilestone> o) { +checkUnnamed79(core.List<api.QuestMilestone> o) { unittest.expect(o, unittest.hasLength(2)); checkQuestMilestone(o[0]); checkQuestMilestone(o[1]); @@ -2061,7 +2061,7 @@ o.isDefaultIconUrl = true; o.kind = "foo"; o.lastUpdatedTimestampMillis = "foo"; - o.milestones = buildUnnamed77(); + o.milestones = buildUnnamed79(); o.name = "foo"; o.notifyTimestampMillis = "foo"; o.startTimestampMillis = "foo"; @@ -2085,7 +2085,7 @@ unittest.expect(o.isDefaultIconUrl, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastUpdatedTimestampMillis, unittest.equals('foo')); - checkUnnamed77(o.milestones); + checkUnnamed79(o.milestones); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notifyTimestampMillis, unittest.equals('foo')); unittest.expect(o.startTimestampMillis, unittest.equals('foo')); @@ -2144,14 +2144,14 @@ buildCounterQuestCriterion--; } -buildUnnamed78() { +buildUnnamed80() { var o = new core.List<api.Quest>(); o.add(buildQuest()); o.add(buildQuest()); return o; } -checkUnnamed78(core.List<api.Quest> o) { +checkUnnamed80(core.List<api.Quest> o) { unittest.expect(o, unittest.hasLength(2)); checkQuest(o[0]); checkQuest(o[1]); @@ -2162,7 +2162,7 @@ var o = new api.QuestListResponse(); buildCounterQuestListResponse++; if (buildCounterQuestListResponse < 3) { - o.items = buildUnnamed78(); + o.items = buildUnnamed80(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2173,21 +2173,21 @@ checkQuestListResponse(api.QuestListResponse o) { buildCounterQuestListResponse++; if (buildCounterQuestListResponse < 3) { - checkUnnamed78(o.items); + checkUnnamed80(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterQuestListResponse--; } -buildUnnamed79() { +buildUnnamed81() { var o = new core.List<api.QuestCriterion>(); o.add(buildQuestCriterion()); o.add(buildQuestCriterion()); return o; } -checkUnnamed79(core.List<api.QuestCriterion> o) { +checkUnnamed81(core.List<api.QuestCriterion> o) { unittest.expect(o, unittest.hasLength(2)); checkQuestCriterion(o[0]); checkQuestCriterion(o[1]); @@ -2199,7 +2199,7 @@ buildCounterQuestMilestone++; if (buildCounterQuestMilestone < 3) { o.completionRewardData = "foo"; - o.criteria = buildUnnamed79(); + o.criteria = buildUnnamed81(); o.id = "foo"; o.kind = "foo"; o.state = "foo"; @@ -2212,7 +2212,7 @@ buildCounterQuestMilestone++; if (buildCounterQuestMilestone < 3) { unittest.expect(o.completionRewardData, unittest.equals('foo')); - checkUnnamed79(o.criteria); + checkUnnamed81(o.criteria); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); @@ -2243,14 +2243,14 @@ buildCounterRevisionCheckResponse--; } -buildUnnamed80() { +buildUnnamed82() { var o = new core.List<api.RoomParticipant>(); o.add(buildRoomParticipant()); o.add(buildRoomParticipant()); return o; } -checkUnnamed80(core.List<api.RoomParticipant> o) { +checkUnnamed82(core.List<api.RoomParticipant> o) { unittest.expect(o, unittest.hasLength(2)); checkRoomParticipant(o[0]); checkRoomParticipant(o[1]); @@ -2269,7 +2269,7 @@ o.inviterId = "foo"; o.kind = "foo"; o.lastUpdateDetails = buildRoomModification(); - o.participants = buildUnnamed80(); + o.participants = buildUnnamed82(); o.roomId = "foo"; o.roomStatusVersion = 42; o.status = "foo"; @@ -2290,7 +2290,7 @@ unittest.expect(o.inviterId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkRoomModification(o.lastUpdateDetails); - checkUnnamed80(o.participants); + checkUnnamed82(o.participants); unittest.expect(o.roomId, unittest.equals('foo')); unittest.expect(o.roomStatusVersion, unittest.equals(42)); unittest.expect(o.status, unittest.equals('foo')); @@ -2366,65 +2366,6 @@ buildCounterRoomClientAddress--; } -buildUnnamed81() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed81(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed82() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed82(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterRoomCreateRequest = 0; -buildRoomCreateRequest() { - var o = new api.RoomCreateRequest(); - buildCounterRoomCreateRequest++; - if (buildCounterRoomCreateRequest < 3) { - o.autoMatchingCriteria = buildRoomAutoMatchingCriteria(); - o.capabilities = buildUnnamed81(); - o.clientAddress = buildRoomClientAddress(); - o.invitedPlayerIds = buildUnnamed82(); - o.kind = "foo"; - o.networkDiagnostics = buildNetworkDiagnostics(); - o.requestId = "foo"; - o.variant = 42; - } - buildCounterRoomCreateRequest--; - return o; -} - -checkRoomCreateRequest(api.RoomCreateRequest o) { - buildCounterRoomCreateRequest++; - if (buildCounterRoomCreateRequest < 3) { - checkRoomAutoMatchingCriteria(o.autoMatchingCriteria); - checkUnnamed81(o.capabilities); - checkRoomClientAddress(o.clientAddress); - checkUnnamed82(o.invitedPlayerIds); - unittest.expect(o.kind, unittest.equals('foo')); - checkNetworkDiagnostics(o.networkDiagnostics); - unittest.expect(o.requestId, unittest.equals('foo')); - unittest.expect(o.variant, unittest.equals(42)); - } - buildCounterRoomCreateRequest--; -} - buildUnnamed83() { var o = new core.List<core.String>(); o.add("foo"); @@ -2438,12 +2379,71 @@ unittest.expect(o[1], unittest.equals('foo')); } +buildUnnamed84() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed84(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterRoomCreateRequest = 0; +buildRoomCreateRequest() { + var o = new api.RoomCreateRequest(); + buildCounterRoomCreateRequest++; + if (buildCounterRoomCreateRequest < 3) { + o.autoMatchingCriteria = buildRoomAutoMatchingCriteria(); + o.capabilities = buildUnnamed83(); + o.clientAddress = buildRoomClientAddress(); + o.invitedPlayerIds = buildUnnamed84(); + o.kind = "foo"; + o.networkDiagnostics = buildNetworkDiagnostics(); + o.requestId = "foo"; + o.variant = 42; + } + buildCounterRoomCreateRequest--; + return o; +} + +checkRoomCreateRequest(api.RoomCreateRequest o) { + buildCounterRoomCreateRequest++; + if (buildCounterRoomCreateRequest < 3) { + checkRoomAutoMatchingCriteria(o.autoMatchingCriteria); + checkUnnamed83(o.capabilities); + checkRoomClientAddress(o.clientAddress); + checkUnnamed84(o.invitedPlayerIds); + unittest.expect(o.kind, unittest.equals('foo')); + checkNetworkDiagnostics(o.networkDiagnostics); + unittest.expect(o.requestId, unittest.equals('foo')); + unittest.expect(o.variant, unittest.equals(42)); + } + buildCounterRoomCreateRequest--; +} + +buildUnnamed85() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed85(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterRoomJoinRequest = 0; buildRoomJoinRequest() { var o = new api.RoomJoinRequest(); buildCounterRoomJoinRequest++; if (buildCounterRoomJoinRequest < 3) { - o.capabilities = buildUnnamed83(); + o.capabilities = buildUnnamed85(); o.clientAddress = buildRoomClientAddress(); o.kind = "foo"; o.networkDiagnostics = buildNetworkDiagnostics(); @@ -2455,7 +2455,7 @@ checkRoomJoinRequest(api.RoomJoinRequest o) { buildCounterRoomJoinRequest++; if (buildCounterRoomJoinRequest < 3) { - checkUnnamed83(o.capabilities); + checkUnnamed85(o.capabilities); checkRoomClientAddress(o.clientAddress); unittest.expect(o.kind, unittest.equals('foo')); checkNetworkDiagnostics(o.networkDiagnostics); @@ -2463,14 +2463,14 @@ buildCounterRoomJoinRequest--; } -buildUnnamed84() { +buildUnnamed86() { var o = new core.List<api.PeerSessionDiagnostics>(); o.add(buildPeerSessionDiagnostics()); o.add(buildPeerSessionDiagnostics()); return o; } -checkUnnamed84(core.List<api.PeerSessionDiagnostics> o) { +checkUnnamed86(core.List<api.PeerSessionDiagnostics> o) { unittest.expect(o, unittest.hasLength(2)); checkPeerSessionDiagnostics(o[0]); checkPeerSessionDiagnostics(o[1]); @@ -2487,7 +2487,7 @@ o.kind = "foo"; o.networkOperatorCode = "foo"; o.networkOperatorName = "foo"; - o.peerSession = buildUnnamed84(); + o.peerSession = buildUnnamed86(); o.socketsUsed = true; } buildCounterRoomLeaveDiagnostics--; @@ -2503,7 +2503,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.networkOperatorCode, unittest.equals('foo')); unittest.expect(o.networkOperatorName, unittest.equals('foo')); - checkUnnamed84(o.peerSession); + checkUnnamed86(o.peerSession); unittest.expect(o.socketsUsed, unittest.isTrue); } buildCounterRoomLeaveDiagnostics--; @@ -2532,14 +2532,14 @@ buildCounterRoomLeaveRequest--; } -buildUnnamed85() { +buildUnnamed87() { var o = new core.List<api.Room>(); o.add(buildRoom()); o.add(buildRoom()); return o; } -checkUnnamed85(core.List<api.Room> o) { +checkUnnamed87(core.List<api.Room> o) { unittest.expect(o, unittest.hasLength(2)); checkRoom(o[0]); checkRoom(o[1]); @@ -2550,7 +2550,7 @@ var o = new api.RoomList(); buildCounterRoomList++; if (buildCounterRoomList < 3) { - o.items = buildUnnamed85(); + o.items = buildUnnamed87(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2561,7 +2561,7 @@ checkRoomList(api.RoomList o) { buildCounterRoomList++; if (buildCounterRoomList < 3) { - checkUnnamed85(o.items); + checkUnnamed87(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2622,14 +2622,14 @@ buildCounterRoomP2PStatus--; } -buildUnnamed86() { +buildUnnamed88() { var o = new core.List<api.RoomP2PStatus>(); o.add(buildRoomP2PStatus()); o.add(buildRoomP2PStatus()); return o; } -checkUnnamed86(core.List<api.RoomP2PStatus> o) { +checkUnnamed88(core.List<api.RoomP2PStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkRoomP2PStatus(o[0]); checkRoomP2PStatus(o[1]); @@ -2641,7 +2641,7 @@ buildCounterRoomP2PStatuses++; if (buildCounterRoomP2PStatuses < 3) { o.kind = "foo"; - o.updates = buildUnnamed86(); + o.updates = buildUnnamed88(); } buildCounterRoomP2PStatuses--; return o; @@ -2651,19 +2651,19 @@ buildCounterRoomP2PStatuses++; if (buildCounterRoomP2PStatuses < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed86(o.updates); + checkUnnamed88(o.updates); } buildCounterRoomP2PStatuses--; } -buildUnnamed87() { +buildUnnamed89() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed87(core.List<core.String> o) { +checkUnnamed89(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2676,7 +2676,7 @@ if (buildCounterRoomParticipant < 3) { o.autoMatched = true; o.autoMatchedPlayer = buildAnonymousPlayer(); - o.capabilities = buildUnnamed87(); + o.capabilities = buildUnnamed89(); o.clientAddress = buildRoomClientAddress(); o.connected = true; o.id = "foo"; @@ -2694,7 +2694,7 @@ if (buildCounterRoomParticipant < 3) { unittest.expect(o.autoMatched, unittest.isTrue); checkAnonymousPlayer(o.autoMatchedPlayer); - checkUnnamed87(o.capabilities); + checkUnnamed89(o.capabilities); checkRoomClientAddress(o.clientAddress); unittest.expect(o.connected, unittest.isTrue); unittest.expect(o.id, unittest.equals('foo')); @@ -2706,14 +2706,14 @@ buildCounterRoomParticipant--; } -buildUnnamed88() { +buildUnnamed90() { var o = new core.List<api.RoomParticipant>(); o.add(buildRoomParticipant()); o.add(buildRoomParticipant()); return o; } -checkUnnamed88(core.List<api.RoomParticipant> o) { +checkUnnamed90(core.List<api.RoomParticipant> o) { unittest.expect(o, unittest.hasLength(2)); checkRoomParticipant(o[0]); checkRoomParticipant(o[1]); @@ -2726,7 +2726,7 @@ if (buildCounterRoomStatus < 3) { o.autoMatchingStatus = buildRoomAutoMatchStatus(); o.kind = "foo"; - o.participants = buildUnnamed88(); + o.participants = buildUnnamed90(); o.roomId = "foo"; o.status = "foo"; o.statusVersion = 42; @@ -2740,7 +2740,7 @@ if (buildCounterRoomStatus < 3) { checkRoomAutoMatchStatus(o.autoMatchingStatus); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed88(o.participants); + checkUnnamed90(o.participants); unittest.expect(o.roomId, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.statusVersion, unittest.equals(42)); @@ -2841,14 +2841,14 @@ buildCounterSnapshotImage--; } -buildUnnamed89() { +buildUnnamed91() { var o = new core.List<api.Snapshot>(); o.add(buildSnapshot()); o.add(buildSnapshot()); return o; } -checkUnnamed89(core.List<api.Snapshot> o) { +checkUnnamed91(core.List<api.Snapshot> o) { unittest.expect(o, unittest.hasLength(2)); checkSnapshot(o[0]); checkSnapshot(o[1]); @@ -2859,7 +2859,7 @@ var o = new api.SnapshotListResponse(); buildCounterSnapshotListResponse++; if (buildCounterSnapshotListResponse < 3) { - o.items = buildUnnamed89(); + o.items = buildUnnamed91(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2870,7 +2870,7 @@ checkSnapshotListResponse(api.SnapshotListResponse o) { buildCounterSnapshotListResponse++; if (buildCounterSnapshotListResponse < 3) { - checkUnnamed89(o.items); + checkUnnamed91(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2902,27 +2902,27 @@ buildCounterTurnBasedAutoMatchingCriteria--; } -buildUnnamed90() { +buildUnnamed92() { var o = new core.List<api.TurnBasedMatchParticipant>(); o.add(buildTurnBasedMatchParticipant()); o.add(buildTurnBasedMatchParticipant()); return o; } -checkUnnamed90(core.List<api.TurnBasedMatchParticipant> o) { +checkUnnamed92(core.List<api.TurnBasedMatchParticipant> o) { unittest.expect(o, unittest.hasLength(2)); checkTurnBasedMatchParticipant(o[0]); checkTurnBasedMatchParticipant(o[1]); } -buildUnnamed91() { +buildUnnamed93() { var o = new core.List<api.ParticipantResult>(); o.add(buildParticipantResult()); o.add(buildParticipantResult()); return o; } -checkUnnamed91(core.List<api.ParticipantResult> o) { +checkUnnamed93(core.List<api.ParticipantResult> o) { unittest.expect(o, unittest.hasLength(2)); checkParticipantResult(o[0]); checkParticipantResult(o[1]); @@ -2944,11 +2944,11 @@ o.matchId = "foo"; o.matchNumber = 42; o.matchVersion = 42; - o.participants = buildUnnamed90(); + o.participants = buildUnnamed92(); o.pendingParticipantId = "foo"; o.previousMatchData = buildTurnBasedMatchData(); o.rematchId = "foo"; - o.results = buildUnnamed91(); + o.results = buildUnnamed93(); o.status = "foo"; o.userMatchStatus = "foo"; o.variant = 42; @@ -2972,11 +2972,11 @@ unittest.expect(o.matchId, unittest.equals('foo')); unittest.expect(o.matchNumber, unittest.equals(42)); unittest.expect(o.matchVersion, unittest.equals(42)); - checkUnnamed90(o.participants); + checkUnnamed92(o.participants); unittest.expect(o.pendingParticipantId, unittest.equals('foo')); checkTurnBasedMatchData(o.previousMatchData); unittest.expect(o.rematchId, unittest.equals('foo')); - checkUnnamed91(o.results); + checkUnnamed93(o.results); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.userMatchStatus, unittest.equals('foo')); unittest.expect(o.variant, unittest.equals(42)); @@ -2985,14 +2985,14 @@ buildCounterTurnBasedMatch--; } -buildUnnamed92() { +buildUnnamed94() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed92(core.List<core.String> o) { +checkUnnamed94(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3004,7 +3004,7 @@ buildCounterTurnBasedMatchCreateRequest++; if (buildCounterTurnBasedMatchCreateRequest < 3) { o.autoMatchingCriteria = buildTurnBasedAutoMatchingCriteria(); - o.invitedPlayerIds = buildUnnamed92(); + o.invitedPlayerIds = buildUnnamed94(); o.kind = "foo"; o.requestId = "foo"; o.variant = 42; @@ -3017,7 +3017,7 @@ buildCounterTurnBasedMatchCreateRequest++; if (buildCounterTurnBasedMatchCreateRequest < 3) { checkTurnBasedAutoMatchingCriteria(o.autoMatchingCriteria); - checkUnnamed92(o.invitedPlayerIds); + checkUnnamed94(o.invitedPlayerIds); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.requestId, unittest.equals('foo')); unittest.expect(o.variant, unittest.equals(42)); @@ -3069,14 +3069,14 @@ buildCounterTurnBasedMatchDataRequest--; } -buildUnnamed93() { +buildUnnamed95() { var o = new core.List<api.TurnBasedMatch>(); o.add(buildTurnBasedMatch()); o.add(buildTurnBasedMatch()); return o; } -checkUnnamed93(core.List<api.TurnBasedMatch> o) { +checkUnnamed95(core.List<api.TurnBasedMatch> o) { unittest.expect(o, unittest.hasLength(2)); checkTurnBasedMatch(o[0]); checkTurnBasedMatch(o[1]); @@ -3087,7 +3087,7 @@ var o = new api.TurnBasedMatchList(); buildCounterTurnBasedMatchList++; if (buildCounterTurnBasedMatchList < 3) { - o.items = buildUnnamed93(); + o.items = buildUnnamed95(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3098,7 +3098,7 @@ checkTurnBasedMatchList(api.TurnBasedMatchList o) { buildCounterTurnBasedMatchList++; if (buildCounterTurnBasedMatchList < 3) { - checkUnnamed93(o.items); + checkUnnamed95(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3180,14 +3180,14 @@ buildCounterTurnBasedMatchRematch--; } -buildUnnamed94() { +buildUnnamed96() { var o = new core.List<api.ParticipantResult>(); o.add(buildParticipantResult()); o.add(buildParticipantResult()); return o; } -checkUnnamed94(core.List<api.ParticipantResult> o) { +checkUnnamed96(core.List<api.ParticipantResult> o) { unittest.expect(o, unittest.hasLength(2)); checkParticipantResult(o[0]); checkParticipantResult(o[1]); @@ -3201,7 +3201,7 @@ o.data = buildTurnBasedMatchDataRequest(); o.kind = "foo"; o.matchVersion = 42; - o.results = buildUnnamed94(); + o.results = buildUnnamed96(); } buildCounterTurnBasedMatchResults--; return o; @@ -3213,19 +3213,19 @@ checkTurnBasedMatchDataRequest(o.data); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.matchVersion, unittest.equals(42)); - checkUnnamed94(o.results); + checkUnnamed96(o.results); } buildCounterTurnBasedMatchResults--; } -buildUnnamed95() { +buildUnnamed97() { var o = new core.List<api.TurnBasedMatch>(); o.add(buildTurnBasedMatch()); o.add(buildTurnBasedMatch()); return o; } -checkUnnamed95(core.List<api.TurnBasedMatch> o) { +checkUnnamed97(core.List<api.TurnBasedMatch> o) { unittest.expect(o, unittest.hasLength(2)); checkTurnBasedMatch(o[0]); checkTurnBasedMatch(o[1]); @@ -3236,7 +3236,7 @@ var o = new api.TurnBasedMatchSync(); buildCounterTurnBasedMatchSync++; if (buildCounterTurnBasedMatchSync < 3) { - o.items = buildUnnamed95(); + o.items = buildUnnamed97(); o.kind = "foo"; o.moreAvailable = true; o.nextPageToken = "foo"; @@ -3248,7 +3248,7 @@ checkTurnBasedMatchSync(api.TurnBasedMatchSync o) { buildCounterTurnBasedMatchSync++; if (buildCounterTurnBasedMatchSync < 3) { - checkUnnamed95(o.items); + checkUnnamed97(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.moreAvailable, unittest.isTrue); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -3256,14 +3256,14 @@ buildCounterTurnBasedMatchSync--; } -buildUnnamed96() { +buildUnnamed98() { var o = new core.List<api.ParticipantResult>(); o.add(buildParticipantResult()); o.add(buildParticipantResult()); return o; } -checkUnnamed96(core.List<api.ParticipantResult> o) { +checkUnnamed98(core.List<api.ParticipantResult> o) { unittest.expect(o, unittest.hasLength(2)); checkParticipantResult(o[0]); checkParticipantResult(o[1]); @@ -3278,7 +3278,7 @@ o.kind = "foo"; o.matchVersion = 42; o.pendingParticipantId = "foo"; - o.results = buildUnnamed96(); + o.results = buildUnnamed98(); } buildCounterTurnBasedMatchTurn--; return o; @@ -3291,7 +3291,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.matchVersion, unittest.equals(42)); unittest.expect(o.pendingParticipantId, unittest.equals('foo')); - checkUnnamed96(o.results); + checkUnnamed98(o.results); } buildCounterTurnBasedMatchTurn--; } @@ -4207,7 +4207,7 @@ var arg_language = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4247,7 +4247,7 @@ var resp = convert.JSON.encode(buildAchievementDefinitionsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AchievementDefinitionsListResponse response) { + res.list(consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.AchievementDefinitionsListResponse response) { checkAchievementDefinitionsListResponse(response); }))); }); @@ -4264,7 +4264,7 @@ var arg_stepsToIncrement = 42; var arg_consistencyToken = "foo"; var arg_requestId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4310,7 +4310,7 @@ var resp = convert.JSON.encode(buildAchievementIncrementResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.increment(arg_achievementId, arg_stepsToIncrement, consistencyToken: arg_consistencyToken, requestId: arg_requestId).then(unittest.expectAsync(((api.AchievementIncrementResponse response) { + res.increment(arg_achievementId, arg_stepsToIncrement, consistencyToken: arg_consistencyToken, requestId: arg_requestId).then(unittest.expectAsync1(((api.AchievementIncrementResponse response) { checkAchievementIncrementResponse(response); }))); }); @@ -4325,7 +4325,7 @@ var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_state = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4373,7 +4373,7 @@ var resp = convert.JSON.encode(buildPlayerAchievementListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_playerId, consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken, state: arg_state).then(unittest.expectAsync(((api.PlayerAchievementListResponse response) { + res.list(arg_playerId, consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken, state: arg_state).then(unittest.expectAsync1(((api.PlayerAchievementListResponse response) { checkPlayerAchievementListResponse(response); }))); }); @@ -4384,7 +4384,7 @@ api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; var arg_achievementId = "foo"; var arg_consistencyToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4428,7 +4428,7 @@ var resp = convert.JSON.encode(buildAchievementRevealResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.reveal(arg_achievementId, consistencyToken: arg_consistencyToken).then(unittest.expectAsync(((api.AchievementRevealResponse response) { + res.reveal(arg_achievementId, consistencyToken: arg_consistencyToken).then(unittest.expectAsync1(((api.AchievementRevealResponse response) { checkAchievementRevealResponse(response); }))); }); @@ -4440,7 +4440,7 @@ var arg_achievementId = "foo"; var arg_steps = 42; var arg_consistencyToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4485,7 +4485,7 @@ var resp = convert.JSON.encode(buildAchievementSetStepsAtLeastResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setStepsAtLeast(arg_achievementId, arg_steps, consistencyToken: arg_consistencyToken).then(unittest.expectAsync(((api.AchievementSetStepsAtLeastResponse response) { + res.setStepsAtLeast(arg_achievementId, arg_steps, consistencyToken: arg_consistencyToken).then(unittest.expectAsync1(((api.AchievementSetStepsAtLeastResponse response) { checkAchievementSetStepsAtLeastResponse(response); }))); }); @@ -4496,7 +4496,7 @@ api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; var arg_achievementId = "foo"; var arg_consistencyToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4540,7 +4540,7 @@ var resp = convert.JSON.encode(buildAchievementUnlockResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.unlock(arg_achievementId, consistencyToken: arg_consistencyToken).then(unittest.expectAsync(((api.AchievementUnlockResponse response) { + res.unlock(arg_achievementId, consistencyToken: arg_consistencyToken).then(unittest.expectAsync1(((api.AchievementUnlockResponse response) { checkAchievementUnlockResponse(response); }))); }); @@ -4551,7 +4551,7 @@ api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; var arg_request = buildAchievementUpdateMultipleRequest(); var arg_consistencyToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AchievementUpdateMultipleRequest.fromJson(json); checkAchievementUpdateMultipleRequest(obj); @@ -4591,7 +4591,7 @@ var resp = convert.JSON.encode(buildAchievementUpdateMultipleResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.updateMultiple(arg_request, consistencyToken: arg_consistencyToken).then(unittest.expectAsync(((api.AchievementUpdateMultipleResponse response) { + res.updateMultiple(arg_request, consistencyToken: arg_consistencyToken).then(unittest.expectAsync1(((api.AchievementUpdateMultipleResponse response) { checkAchievementUpdateMultipleResponse(response); }))); }); @@ -4608,7 +4608,7 @@ var arg_consistencyToken = "foo"; var arg_language = "foo"; var arg_platformType = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4650,7 +4650,7 @@ var resp = convert.JSON.encode(buildApplication()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_applicationId, consistencyToken: arg_consistencyToken, language: arg_language, platformType: arg_platformType).then(unittest.expectAsync(((api.Application response) { + res.get(arg_applicationId, consistencyToken: arg_consistencyToken, language: arg_language, platformType: arg_platformType).then(unittest.expectAsync1(((api.Application response) { checkApplication(response); }))); }); @@ -4660,7 +4660,7 @@ var mock = new HttpServerMock(); api.ApplicationsResourceApi res = new api.GamesApi(mock).applications; var arg_consistencyToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4697,7 +4697,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.played(consistencyToken: arg_consistencyToken).then(unittest.expectAsync((_) {})); + res.played(consistencyToken: arg_consistencyToken).then(unittest.expectAsync1((_) {})); }); unittest.test("method--verify", () { @@ -4706,7 +4706,7 @@ api.ApplicationsResourceApi res = new api.GamesApi(mock).applications; var arg_applicationId = "foo"; var arg_consistencyToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4750,7 +4750,7 @@ var resp = convert.JSON.encode(buildApplicationVerifyResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.verify(arg_applicationId, consistencyToken: arg_consistencyToken).then(unittest.expectAsync(((api.ApplicationVerifyResponse response) { + res.verify(arg_applicationId, consistencyToken: arg_consistencyToken).then(unittest.expectAsync1(((api.ApplicationVerifyResponse response) { checkApplicationVerifyResponse(response); }))); }); @@ -4767,7 +4767,7 @@ var arg_language = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4807,7 +4807,7 @@ var resp = convert.JSON.encode(buildPlayerEventListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listByPlayer(consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.PlayerEventListResponse response) { + res.listByPlayer(consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.PlayerEventListResponse response) { checkPlayerEventListResponse(response); }))); }); @@ -4820,7 +4820,7 @@ var arg_language = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4860,7 +4860,7 @@ var resp = convert.JSON.encode(buildEventDefinitionListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listDefinitions(consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.EventDefinitionListResponse response) { + res.listDefinitions(consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.EventDefinitionListResponse response) { checkEventDefinitionListResponse(response); }))); }); @@ -4872,7 +4872,7 @@ var arg_request = buildEventRecordRequest(); var arg_consistencyToken = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.EventRecordRequest.fromJson(json); checkEventRecordRequest(obj); @@ -4913,7 +4913,7 @@ var resp = convert.JSON.encode(buildEventUpdateResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.record(arg_request, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync(((api.EventUpdateResponse response) { + res.record(arg_request, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync1(((api.EventUpdateResponse response) { checkEventUpdateResponse(response); }))); }); @@ -4929,7 +4929,7 @@ var arg_leaderboardId = "foo"; var arg_consistencyToken = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4970,7 +4970,7 @@ var resp = convert.JSON.encode(buildLeaderboard()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_leaderboardId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync(((api.Leaderboard response) { + res.get(arg_leaderboardId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync1(((api.Leaderboard response) { checkLeaderboard(response); }))); }); @@ -4983,7 +4983,7 @@ var arg_language = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5023,7 +5023,7 @@ var resp = convert.JSON.encode(buildLeaderboardListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.LeaderboardListResponse response) { + res.list(consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.LeaderboardListResponse response) { checkLeaderboardListResponse(response); }))); }); @@ -5037,7 +5037,7 @@ var mock = new HttpServerMock(); api.MetagameResourceApi res = new api.GamesApi(mock).metagame; var arg_consistencyToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5074,7 +5074,7 @@ var resp = convert.JSON.encode(buildMetagameConfig()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getMetagameConfig(consistencyToken: arg_consistencyToken).then(unittest.expectAsync(((api.MetagameConfig response) { + res.getMetagameConfig(consistencyToken: arg_consistencyToken).then(unittest.expectAsync1(((api.MetagameConfig response) { checkMetagameConfig(response); }))); }); @@ -5089,7 +5089,7 @@ var arg_language = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5139,7 +5139,7 @@ var resp = convert.JSON.encode(buildCategoryListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listCategoriesByPlayer(arg_playerId, arg_collection, consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.CategoryListResponse response) { + res.listCategoriesByPlayer(arg_playerId, arg_collection, consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.CategoryListResponse response) { checkCategoryListResponse(response); }))); }); @@ -5155,7 +5155,7 @@ var arg_playerId = "foo"; var arg_consistencyToken = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5196,7 +5196,7 @@ var resp = convert.JSON.encode(buildPlayer()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_playerId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync(((api.Player response) { + res.get(arg_playerId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync1(((api.Player response) { checkPlayer(response); }))); }); @@ -5210,7 +5210,7 @@ var arg_language = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5253,7 +5253,7 @@ var resp = convert.JSON.encode(buildPlayerListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_collection, consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.PlayerListResponse response) { + res.list(arg_collection, consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.PlayerListResponse response) { checkPlayerListResponse(response); }))); }); @@ -5268,7 +5268,7 @@ api.PushtokensResourceApi res = new api.GamesApi(mock).pushtokens; var arg_request = buildPushTokenId(); var arg_consistencyToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.PushTokenId.fromJson(json); checkPushTokenId(obj); @@ -5308,7 +5308,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.remove(arg_request, consistencyToken: arg_consistencyToken).then(unittest.expectAsync((_) {})); + res.remove(arg_request, consistencyToken: arg_consistencyToken).then(unittest.expectAsync1((_) {})); }); unittest.test("method--update", () { @@ -5317,7 +5317,7 @@ api.PushtokensResourceApi res = new api.GamesApi(mock).pushtokens; var arg_request = buildPushToken(); var arg_consistencyToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.PushToken.fromJson(json); checkPushToken(obj); @@ -5357,7 +5357,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, consistencyToken: arg_consistencyToken).then(unittest.expectAsync((_) {})); + res.update(arg_request, consistencyToken: arg_consistencyToken).then(unittest.expectAsync1((_) {})); }); }); @@ -5372,7 +5372,7 @@ var arg_milestoneId = "foo"; var arg_requestId = "foo"; var arg_consistencyToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5424,7 +5424,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.claim(arg_questId, arg_milestoneId, arg_requestId, consistencyToken: arg_consistencyToken).then(unittest.expectAsync((_) {})); + res.claim(arg_questId, arg_milestoneId, arg_requestId, consistencyToken: arg_consistencyToken).then(unittest.expectAsync1((_) {})); }); }); @@ -5438,7 +5438,7 @@ var arg_questId = "foo"; var arg_consistencyToken = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5483,7 +5483,7 @@ var resp = convert.JSON.encode(buildQuest()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.accept(arg_questId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync(((api.Quest response) { + res.accept(arg_questId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync1(((api.Quest response) { checkQuest(response); }))); }); @@ -5497,7 +5497,7 @@ var arg_language = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5544,7 +5544,7 @@ var resp = convert.JSON.encode(buildQuestListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_playerId, consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.QuestListResponse response) { + res.list(arg_playerId, consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.QuestListResponse response) { checkQuestListResponse(response); }))); }); @@ -5559,7 +5559,7 @@ api.RevisionsResourceApi res = new api.GamesApi(mock).revisions; var arg_clientRevision = "foo"; var arg_consistencyToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5597,7 +5597,7 @@ var resp = convert.JSON.encode(buildRevisionCheckResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.check(arg_clientRevision, consistencyToken: arg_consistencyToken).then(unittest.expectAsync(((api.RevisionCheckResponse response) { + res.check(arg_clientRevision, consistencyToken: arg_consistencyToken).then(unittest.expectAsync1(((api.RevisionCheckResponse response) { checkRevisionCheckResponse(response); }))); }); @@ -5613,7 +5613,7 @@ var arg_request = buildRoomCreateRequest(); var arg_consistencyToken = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RoomCreateRequest.fromJson(json); checkRoomCreateRequest(obj); @@ -5654,7 +5654,7 @@ var resp = convert.JSON.encode(buildRoom()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync(((api.Room response) { + res.create(arg_request, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync1(((api.Room response) { checkRoom(response); }))); }); @@ -5666,7 +5666,7 @@ var arg_roomId = "foo"; var arg_consistencyToken = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5711,7 +5711,7 @@ var resp = convert.JSON.encode(buildRoom()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.decline(arg_roomId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync(((api.Room response) { + res.decline(arg_roomId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync1(((api.Room response) { checkRoom(response); }))); }); @@ -5722,7 +5722,7 @@ api.RoomsResourceApi res = new api.GamesApi(mock).rooms; var arg_roomId = "foo"; var arg_consistencyToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5766,7 +5766,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.dismiss(arg_roomId, consistencyToken: arg_consistencyToken).then(unittest.expectAsync((_) {})); + res.dismiss(arg_roomId, consistencyToken: arg_consistencyToken).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -5776,7 +5776,7 @@ var arg_roomId = "foo"; var arg_consistencyToken = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5817,7 +5817,7 @@ var resp = convert.JSON.encode(buildRoom()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_roomId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync(((api.Room response) { + res.get(arg_roomId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync1(((api.Room response) { checkRoom(response); }))); }); @@ -5830,7 +5830,7 @@ var arg_roomId = "foo"; var arg_consistencyToken = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RoomJoinRequest.fromJson(json); checkRoomJoinRequest(obj); @@ -5878,7 +5878,7 @@ var resp = convert.JSON.encode(buildRoom()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.join(arg_request, arg_roomId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync(((api.Room response) { + res.join(arg_request, arg_roomId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync1(((api.Room response) { checkRoom(response); }))); }); @@ -5891,7 +5891,7 @@ var arg_roomId = "foo"; var arg_consistencyToken = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RoomLeaveRequest.fromJson(json); checkRoomLeaveRequest(obj); @@ -5939,7 +5939,7 @@ var resp = convert.JSON.encode(buildRoom()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.leave(arg_request, arg_roomId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync(((api.Room response) { + res.leave(arg_request, arg_roomId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync1(((api.Room response) { checkRoom(response); }))); }); @@ -5952,7 +5952,7 @@ var arg_language = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5992,7 +5992,7 @@ var resp = convert.JSON.encode(buildRoomList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RoomList response) { + res.list(consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.RoomList response) { checkRoomList(response); }))); }); @@ -6005,7 +6005,7 @@ var arg_roomId = "foo"; var arg_consistencyToken = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RoomP2PStatuses.fromJson(json); checkRoomP2PStatuses(obj); @@ -6053,7 +6053,7 @@ var resp = convert.JSON.encode(buildRoomStatus()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.reportStatus(arg_request, arg_roomId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync(((api.RoomStatus response) { + res.reportStatus(arg_request, arg_roomId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync1(((api.RoomStatus response) { checkRoomStatus(response); }))); }); @@ -6074,7 +6074,7 @@ var arg_language = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6132,7 +6132,7 @@ var resp = convert.JSON.encode(buildPlayerLeaderboardScoreListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_playerId, arg_leaderboardId, arg_timeSpan, consistencyToken: arg_consistencyToken, includeRankType: arg_includeRankType, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.PlayerLeaderboardScoreListResponse response) { + res.get(arg_playerId, arg_leaderboardId, arg_timeSpan, consistencyToken: arg_consistencyToken, includeRankType: arg_includeRankType, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.PlayerLeaderboardScoreListResponse response) { checkPlayerLeaderboardScoreListResponse(response); }))); }); @@ -6148,7 +6148,7 @@ var arg_language = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6199,7 +6199,7 @@ var resp = convert.JSON.encode(buildLeaderboardScores()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_leaderboardId, arg_collection, arg_timeSpan, consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.LeaderboardScores response) { + res.list(arg_leaderboardId, arg_collection, arg_timeSpan, consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.LeaderboardScores response) { checkLeaderboardScores(response); }))); }); @@ -6217,7 +6217,7 @@ var arg_pageToken = "foo"; var arg_resultsAbove = 42; var arg_returnTopIfAbsent = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6270,7 +6270,7 @@ var resp = convert.JSON.encode(buildLeaderboardScores()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listWindow(arg_leaderboardId, arg_collection, arg_timeSpan, consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken, resultsAbove: arg_resultsAbove, returnTopIfAbsent: arg_returnTopIfAbsent).then(unittest.expectAsync(((api.LeaderboardScores response) { + res.listWindow(arg_leaderboardId, arg_collection, arg_timeSpan, consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken, resultsAbove: arg_resultsAbove, returnTopIfAbsent: arg_returnTopIfAbsent).then(unittest.expectAsync1(((api.LeaderboardScores response) { checkLeaderboardScores(response); }))); }); @@ -6284,7 +6284,7 @@ var arg_consistencyToken = "foo"; var arg_language = "foo"; var arg_scoreTag = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6331,7 +6331,7 @@ var resp = convert.JSON.encode(buildPlayerScoreResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.submit(arg_leaderboardId, arg_score, consistencyToken: arg_consistencyToken, language: arg_language, scoreTag: arg_scoreTag).then(unittest.expectAsync(((api.PlayerScoreResponse response) { + res.submit(arg_leaderboardId, arg_score, consistencyToken: arg_consistencyToken, language: arg_language, scoreTag: arg_scoreTag).then(unittest.expectAsync1(((api.PlayerScoreResponse response) { checkPlayerScoreResponse(response); }))); }); @@ -6343,7 +6343,7 @@ var arg_request = buildPlayerScoreSubmissionList(); var arg_consistencyToken = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.PlayerScoreSubmissionList.fromJson(json); checkPlayerScoreSubmissionList(obj); @@ -6384,7 +6384,7 @@ var resp = convert.JSON.encode(buildPlayerScoreListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.submitMultiple(arg_request, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync(((api.PlayerScoreListResponse response) { + res.submitMultiple(arg_request, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync1(((api.PlayerScoreListResponse response) { checkPlayerScoreListResponse(response); }))); }); @@ -6400,7 +6400,7 @@ var arg_snapshotId = "foo"; var arg_consistencyToken = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6441,7 +6441,7 @@ var resp = convert.JSON.encode(buildSnapshot()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_snapshotId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync(((api.Snapshot response) { + res.get(arg_snapshotId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync1(((api.Snapshot response) { checkSnapshot(response); }))); }); @@ -6455,7 +6455,7 @@ var arg_language = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6502,7 +6502,7 @@ var resp = convert.JSON.encode(buildSnapshotListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_playerId, consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SnapshotListResponse response) { + res.list(arg_playerId, consistencyToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.SnapshotListResponse response) { checkSnapshotListResponse(response); }))); }); @@ -6517,7 +6517,7 @@ api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatches; var arg_matchId = "foo"; var arg_consistencyToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6561,7 +6561,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.cancel(arg_matchId, consistencyToken: arg_consistencyToken).then(unittest.expectAsync((_) {})); + res.cancel(arg_matchId, consistencyToken: arg_consistencyToken).then(unittest.expectAsync1((_) {})); }); unittest.test("method--create", () { @@ -6571,7 +6571,7 @@ var arg_request = buildTurnBasedMatchCreateRequest(); var arg_consistencyToken = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TurnBasedMatchCreateRequest.fromJson(json); checkTurnBasedMatchCreateRequest(obj); @@ -6612,7 +6612,7 @@ var resp = convert.JSON.encode(buildTurnBasedMatch()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync(((api.TurnBasedMatch response) { + res.create(arg_request, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync1(((api.TurnBasedMatch response) { checkTurnBasedMatch(response); }))); }); @@ -6624,7 +6624,7 @@ var arg_matchId = "foo"; var arg_consistencyToken = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6669,7 +6669,7 @@ var resp = convert.JSON.encode(buildTurnBasedMatch()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.decline(arg_matchId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync(((api.TurnBasedMatch response) { + res.decline(arg_matchId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync1(((api.TurnBasedMatch response) { checkTurnBasedMatch(response); }))); }); @@ -6680,7 +6680,7 @@ api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatches; var arg_matchId = "foo"; var arg_consistencyToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6724,7 +6724,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.dismiss(arg_matchId, consistencyToken: arg_consistencyToken).then(unittest.expectAsync((_) {})); + res.dismiss(arg_matchId, consistencyToken: arg_consistencyToken).then(unittest.expectAsync1((_) {})); }); unittest.test("method--finish", () { @@ -6735,7 +6735,7 @@ var arg_matchId = "foo"; var arg_consistencyToken = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TurnBasedMatchResults.fromJson(json); checkTurnBasedMatchResults(obj); @@ -6783,7 +6783,7 @@ var resp = convert.JSON.encode(buildTurnBasedMatch()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.finish(arg_request, arg_matchId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync(((api.TurnBasedMatch response) { + res.finish(arg_request, arg_matchId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync1(((api.TurnBasedMatch response) { checkTurnBasedMatch(response); }))); }); @@ -6796,7 +6796,7 @@ var arg_consistencyToken = "foo"; var arg_includeMatchData = true; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6838,7 +6838,7 @@ var resp = convert.JSON.encode(buildTurnBasedMatch()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_matchId, consistencyToken: arg_consistencyToken, includeMatchData: arg_includeMatchData, language: arg_language).then(unittest.expectAsync(((api.TurnBasedMatch response) { + res.get(arg_matchId, consistencyToken: arg_consistencyToken, includeMatchData: arg_includeMatchData, language: arg_language).then(unittest.expectAsync1(((api.TurnBasedMatch response) { checkTurnBasedMatch(response); }))); }); @@ -6850,7 +6850,7 @@ var arg_matchId = "foo"; var arg_consistencyToken = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6895,7 +6895,7 @@ var resp = convert.JSON.encode(buildTurnBasedMatch()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.join(arg_matchId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync(((api.TurnBasedMatch response) { + res.join(arg_matchId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync1(((api.TurnBasedMatch response) { checkTurnBasedMatch(response); }))); }); @@ -6907,7 +6907,7 @@ var arg_matchId = "foo"; var arg_consistencyToken = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6952,7 +6952,7 @@ var resp = convert.JSON.encode(buildTurnBasedMatch()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.leave(arg_matchId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync(((api.TurnBasedMatch response) { + res.leave(arg_matchId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync1(((api.TurnBasedMatch response) { checkTurnBasedMatch(response); }))); }); @@ -6966,7 +6966,7 @@ var arg_consistencyToken = "foo"; var arg_language = "foo"; var arg_pendingParticipantId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7013,7 +7013,7 @@ var resp = convert.JSON.encode(buildTurnBasedMatch()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.leaveTurn(arg_matchId, arg_matchVersion, consistencyToken: arg_consistencyToken, language: arg_language, pendingParticipantId: arg_pendingParticipantId).then(unittest.expectAsync(((api.TurnBasedMatch response) { + res.leaveTurn(arg_matchId, arg_matchVersion, consistencyToken: arg_consistencyToken, language: arg_language, pendingParticipantId: arg_pendingParticipantId).then(unittest.expectAsync1(((api.TurnBasedMatch response) { checkTurnBasedMatch(response); }))); }); @@ -7028,7 +7028,7 @@ var arg_maxCompletedMatches = 42; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7070,7 +7070,7 @@ var resp = convert.JSON.encode(buildTurnBasedMatchList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(consistencyToken: arg_consistencyToken, includeMatchData: arg_includeMatchData, language: arg_language, maxCompletedMatches: arg_maxCompletedMatches, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TurnBasedMatchList response) { + res.list(consistencyToken: arg_consistencyToken, includeMatchData: arg_includeMatchData, language: arg_language, maxCompletedMatches: arg_maxCompletedMatches, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.TurnBasedMatchList response) { checkTurnBasedMatchList(response); }))); }); @@ -7083,7 +7083,7 @@ var arg_consistencyToken = "foo"; var arg_language = "foo"; var arg_requestId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7129,7 +7129,7 @@ var resp = convert.JSON.encode(buildTurnBasedMatchRematch()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.rematch(arg_matchId, consistencyToken: arg_consistencyToken, language: arg_language, requestId: arg_requestId).then(unittest.expectAsync(((api.TurnBasedMatchRematch response) { + res.rematch(arg_matchId, consistencyToken: arg_consistencyToken, language: arg_language, requestId: arg_requestId).then(unittest.expectAsync1(((api.TurnBasedMatchRematch response) { checkTurnBasedMatchRematch(response); }))); }); @@ -7144,7 +7144,7 @@ var arg_maxCompletedMatches = 42; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7186,7 +7186,7 @@ var resp = convert.JSON.encode(buildTurnBasedMatchSync()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.sync(consistencyToken: arg_consistencyToken, includeMatchData: arg_includeMatchData, language: arg_language, maxCompletedMatches: arg_maxCompletedMatches, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TurnBasedMatchSync response) { + res.sync(consistencyToken: arg_consistencyToken, includeMatchData: arg_includeMatchData, language: arg_language, maxCompletedMatches: arg_maxCompletedMatches, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.TurnBasedMatchSync response) { checkTurnBasedMatchSync(response); }))); }); @@ -7199,7 +7199,7 @@ var arg_matchId = "foo"; var arg_consistencyToken = "foo"; var arg_language = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TurnBasedMatchTurn.fromJson(json); checkTurnBasedMatchTurn(obj); @@ -7247,7 +7247,7 @@ var resp = convert.JSON.encode(buildTurnBasedMatch()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.takeTurn(arg_request, arg_matchId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync(((api.TurnBasedMatch response) { + res.takeTurn(arg_request, arg_matchId, consistencyToken: arg_consistencyToken, language: arg_language).then(unittest.expectAsync1(((api.TurnBasedMatch response) { checkTurnBasedMatch(response); }))); });
diff --git a/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart b/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart index 1a3c6fc..b2fbb59 100644 --- a/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart +++ b/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/gamesconfiguration/v1configuration.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -113,14 +113,14 @@ buildCounterAchievementConfigurationDetail--; } -buildUnnamed683() { +buildUnnamed688() { var o = new core.List<api.AchievementConfiguration>(); o.add(buildAchievementConfiguration()); o.add(buildAchievementConfiguration()); return o; } -checkUnnamed683(core.List<api.AchievementConfiguration> o) { +checkUnnamed688(core.List<api.AchievementConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementConfiguration(o[0]); checkAchievementConfiguration(o[1]); @@ -131,7 +131,7 @@ var o = new api.AchievementConfigurationListResponse(); buildCounterAchievementConfigurationListResponse++; if (buildCounterAchievementConfigurationListResponse < 3) { - o.items = buildUnnamed683(); + o.items = buildUnnamed688(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -142,7 +142,7 @@ checkAchievementConfigurationListResponse(api.AchievementConfigurationListResponse o) { buildCounterAchievementConfigurationListResponse++; if (buildCounterAchievementConfigurationListResponse < 3) { - checkUnnamed683(o.items); + checkUnnamed688(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -288,14 +288,14 @@ buildCounterLeaderboardConfigurationDetail--; } -buildUnnamed684() { +buildUnnamed689() { var o = new core.List<api.LeaderboardConfiguration>(); o.add(buildLeaderboardConfiguration()); o.add(buildLeaderboardConfiguration()); return o; } -checkUnnamed684(core.List<api.LeaderboardConfiguration> o) { +checkUnnamed689(core.List<api.LeaderboardConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkLeaderboardConfiguration(o[0]); checkLeaderboardConfiguration(o[1]); @@ -306,7 +306,7 @@ var o = new api.LeaderboardConfigurationListResponse(); buildCounterLeaderboardConfigurationListResponse++; if (buildCounterLeaderboardConfigurationListResponse < 3) { - o.items = buildUnnamed684(); + o.items = buildUnnamed689(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -317,7 +317,7 @@ checkLeaderboardConfigurationListResponse(api.LeaderboardConfigurationListResponse o) { buildCounterLeaderboardConfigurationListResponse++; if (buildCounterLeaderboardConfigurationListResponse < 3) { - checkUnnamed684(o.items); + checkUnnamed689(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -347,14 +347,14 @@ buildCounterLocalizedString--; } -buildUnnamed685() { +buildUnnamed690() { var o = new core.List<api.LocalizedString>(); o.add(buildLocalizedString()); o.add(buildLocalizedString()); return o; } -checkUnnamed685(core.List<api.LocalizedString> o) { +checkUnnamed690(core.List<api.LocalizedString> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedString(o[0]); checkLocalizedString(o[1]); @@ -366,7 +366,7 @@ buildCounterLocalizedStringBundle++; if (buildCounterLocalizedStringBundle < 3) { o.kind = "foo"; - o.translations = buildUnnamed685(); + o.translations = buildUnnamed690(); } buildCounterLocalizedStringBundle--; return o; @@ -376,7 +376,7 @@ buildCounterLocalizedStringBundle++; if (buildCounterLocalizedStringBundle < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed685(o.translations); + checkUnnamed690(o.translations); } buildCounterLocalizedStringBundle--; } @@ -488,7 +488,7 @@ var mock = new HttpServerMock(); api.AchievementConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).achievementConfigurations; var arg_achievementId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -527,7 +527,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_achievementId).then(unittest.expectAsync((_) {})); + res.delete(arg_achievementId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -535,7 +535,7 @@ var mock = new HttpServerMock(); api.AchievementConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).achievementConfigurations; var arg_achievementId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -574,7 +574,7 @@ var resp = convert.JSON.encode(buildAchievementConfiguration()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_achievementId).then(unittest.expectAsync(((api.AchievementConfiguration response) { + res.get(arg_achievementId).then(unittest.expectAsync1(((api.AchievementConfiguration response) { checkAchievementConfiguration(response); }))); }); @@ -585,7 +585,7 @@ api.AchievementConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).achievementConfigurations; var arg_request = buildAchievementConfiguration(); var arg_applicationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AchievementConfiguration.fromJson(json); checkAchievementConfiguration(obj); @@ -631,7 +631,7 @@ var resp = convert.JSON.encode(buildAchievementConfiguration()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_applicationId).then(unittest.expectAsync(((api.AchievementConfiguration response) { + res.insert(arg_request, arg_applicationId).then(unittest.expectAsync1(((api.AchievementConfiguration response) { checkAchievementConfiguration(response); }))); }); @@ -643,7 +643,7 @@ var arg_applicationId = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -688,7 +688,7 @@ var resp = convert.JSON.encode(buildAchievementConfigurationListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_applicationId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AchievementConfigurationListResponse response) { + res.list(arg_applicationId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.AchievementConfigurationListResponse response) { checkAchievementConfigurationListResponse(response); }))); }); @@ -699,7 +699,7 @@ api.AchievementConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).achievementConfigurations; var arg_request = buildAchievementConfiguration(); var arg_achievementId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AchievementConfiguration.fromJson(json); checkAchievementConfiguration(obj); @@ -741,7 +741,7 @@ var resp = convert.JSON.encode(buildAchievementConfiguration()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_achievementId).then(unittest.expectAsync(((api.AchievementConfiguration response) { + res.patch(arg_request, arg_achievementId).then(unittest.expectAsync1(((api.AchievementConfiguration response) { checkAchievementConfiguration(response); }))); }); @@ -752,7 +752,7 @@ api.AchievementConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).achievementConfigurations; var arg_request = buildAchievementConfiguration(); var arg_achievementId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AchievementConfiguration.fromJson(json); checkAchievementConfiguration(obj); @@ -794,7 +794,7 @@ var resp = convert.JSON.encode(buildAchievementConfiguration()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_achievementId).then(unittest.expectAsync(((api.AchievementConfiguration response) { + res.update(arg_request, arg_achievementId).then(unittest.expectAsync1(((api.AchievementConfiguration response) { checkAchievementConfiguration(response); }))); }); @@ -811,7 +811,7 @@ api.ImageConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).imageConfigurations; var arg_resourceId = "foo"; var arg_imageType = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -857,7 +857,7 @@ var resp = convert.JSON.encode(buildImageConfiguration()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.upload(arg_resourceId, arg_imageType).then(unittest.expectAsync(((api.ImageConfiguration response) { + res.upload(arg_resourceId, arg_imageType).then(unittest.expectAsync1(((api.ImageConfiguration response) { checkImageConfiguration(response); }))); }); @@ -871,7 +871,7 @@ var mock = new HttpServerMock(); api.LeaderboardConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).leaderboardConfigurations; var arg_leaderboardId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -910,7 +910,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_leaderboardId).then(unittest.expectAsync((_) {})); + res.delete(arg_leaderboardId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -918,7 +918,7 @@ var mock = new HttpServerMock(); api.LeaderboardConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).leaderboardConfigurations; var arg_leaderboardId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -957,7 +957,7 @@ var resp = convert.JSON.encode(buildLeaderboardConfiguration()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_leaderboardId).then(unittest.expectAsync(((api.LeaderboardConfiguration response) { + res.get(arg_leaderboardId).then(unittest.expectAsync1(((api.LeaderboardConfiguration response) { checkLeaderboardConfiguration(response); }))); }); @@ -968,7 +968,7 @@ api.LeaderboardConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).leaderboardConfigurations; var arg_request = buildLeaderboardConfiguration(); var arg_applicationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LeaderboardConfiguration.fromJson(json); checkLeaderboardConfiguration(obj); @@ -1014,7 +1014,7 @@ var resp = convert.JSON.encode(buildLeaderboardConfiguration()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_applicationId).then(unittest.expectAsync(((api.LeaderboardConfiguration response) { + res.insert(arg_request, arg_applicationId).then(unittest.expectAsync1(((api.LeaderboardConfiguration response) { checkLeaderboardConfiguration(response); }))); }); @@ -1026,7 +1026,7 @@ var arg_applicationId = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1071,7 +1071,7 @@ var resp = convert.JSON.encode(buildLeaderboardConfigurationListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_applicationId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.LeaderboardConfigurationListResponse response) { + res.list(arg_applicationId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.LeaderboardConfigurationListResponse response) { checkLeaderboardConfigurationListResponse(response); }))); }); @@ -1082,7 +1082,7 @@ api.LeaderboardConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).leaderboardConfigurations; var arg_request = buildLeaderboardConfiguration(); var arg_leaderboardId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LeaderboardConfiguration.fromJson(json); checkLeaderboardConfiguration(obj); @@ -1124,7 +1124,7 @@ var resp = convert.JSON.encode(buildLeaderboardConfiguration()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_leaderboardId).then(unittest.expectAsync(((api.LeaderboardConfiguration response) { + res.patch(arg_request, arg_leaderboardId).then(unittest.expectAsync1(((api.LeaderboardConfiguration response) { checkLeaderboardConfiguration(response); }))); }); @@ -1135,7 +1135,7 @@ api.LeaderboardConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).leaderboardConfigurations; var arg_request = buildLeaderboardConfiguration(); var arg_leaderboardId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LeaderboardConfiguration.fromJson(json); checkLeaderboardConfiguration(obj); @@ -1177,7 +1177,7 @@ var resp = convert.JSON.encode(buildLeaderboardConfiguration()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_leaderboardId).then(unittest.expectAsync(((api.LeaderboardConfiguration response) { + res.update(arg_request, arg_leaderboardId).then(unittest.expectAsync1(((api.LeaderboardConfiguration response) { checkLeaderboardConfiguration(response); }))); });
diff --git a/generated/googleapis/test/gamesmanagement/v1management_test.dart b/generated/googleapis/test/gamesmanagement/v1management_test.dart index 09c6e78..c0c852d 100644 --- a/generated/googleapis/test/gamesmanagement/v1management_test.dart +++ b/generated/googleapis/test/gamesmanagement/v1management_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/gamesmanagement/v1management.dart' as api; @@ -46,19 +46,19 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed675() { +buildUnnamed680() { var o = new core.List<api.AchievementResetResponse>(); o.add(buildAchievementResetResponse()); o.add(buildAchievementResetResponse()); return o; } -checkUnnamed675(core.List<api.AchievementResetResponse> o) { +checkUnnamed680(core.List<api.AchievementResetResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementResetResponse(o[0]); checkAchievementResetResponse(o[1]); @@ -70,7 +70,7 @@ buildCounterAchievementResetAllResponse++; if (buildCounterAchievementResetAllResponse < 3) { o.kind = "foo"; - o.results = buildUnnamed675(); + o.results = buildUnnamed680(); } buildCounterAchievementResetAllResponse--; return o; @@ -80,19 +80,19 @@ buildCounterAchievementResetAllResponse++; if (buildCounterAchievementResetAllResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed675(o.results); + checkUnnamed680(o.results); } buildCounterAchievementResetAllResponse--; } -buildUnnamed676() { +buildUnnamed681() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed676(core.List<core.String> o) { +checkUnnamed681(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -103,7 +103,7 @@ var o = new api.AchievementResetMultipleForAllRequest(); buildCounterAchievementResetMultipleForAllRequest++; if (buildCounterAchievementResetMultipleForAllRequest < 3) { - o.achievementIds = buildUnnamed676(); + o.achievementIds = buildUnnamed681(); o.kind = "foo"; } buildCounterAchievementResetMultipleForAllRequest--; @@ -113,7 +113,7 @@ checkAchievementResetMultipleForAllRequest(api.AchievementResetMultipleForAllRequest o) { buildCounterAchievementResetMultipleForAllRequest++; if (buildCounterAchievementResetMultipleForAllRequest < 3) { - checkUnnamed676(o.achievementIds); + checkUnnamed681(o.achievementIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAchievementResetMultipleForAllRequest--; @@ -144,14 +144,14 @@ buildCounterAchievementResetResponse--; } -buildUnnamed677() { +buildUnnamed682() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed677(core.List<core.String> o) { +checkUnnamed682(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -162,7 +162,7 @@ var o = new api.EventsResetMultipleForAllRequest(); buildCounterEventsResetMultipleForAllRequest++; if (buildCounterEventsResetMultipleForAllRequest < 3) { - o.eventIds = buildUnnamed677(); + o.eventIds = buildUnnamed682(); o.kind = "foo"; } buildCounterEventsResetMultipleForAllRequest--; @@ -172,7 +172,7 @@ checkEventsResetMultipleForAllRequest(api.EventsResetMultipleForAllRequest o) { buildCounterEventsResetMultipleForAllRequest++; if (buildCounterEventsResetMultipleForAllRequest < 3) { - checkUnnamed677(o.eventIds); + checkUnnamed682(o.eventIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEventsResetMultipleForAllRequest--; @@ -270,14 +270,14 @@ buildCounterHiddenPlayer--; } -buildUnnamed678() { +buildUnnamed683() { var o = new core.List<api.HiddenPlayer>(); o.add(buildHiddenPlayer()); o.add(buildHiddenPlayer()); return o; } -checkUnnamed678(core.List<api.HiddenPlayer> o) { +checkUnnamed683(core.List<api.HiddenPlayer> o) { unittest.expect(o, unittest.hasLength(2)); checkHiddenPlayer(o[0]); checkHiddenPlayer(o[1]); @@ -288,7 +288,7 @@ var o = new api.HiddenPlayerList(); buildCounterHiddenPlayerList++; if (buildCounterHiddenPlayerList < 3) { - o.items = buildUnnamed678(); + o.items = buildUnnamed683(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -299,7 +299,7 @@ checkHiddenPlayerList(api.HiddenPlayerList o) { buildCounterHiddenPlayerList++; if (buildCounterHiddenPlayerList < 3) { - checkUnnamed678(o.items); + checkUnnamed683(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -368,14 +368,14 @@ buildCounterPlayer--; } -buildUnnamed679() { +buildUnnamed684() { var o = new core.List<api.PlayerScoreResetResponse>(); o.add(buildPlayerScoreResetResponse()); o.add(buildPlayerScoreResetResponse()); return o; } -checkUnnamed679(core.List<api.PlayerScoreResetResponse> o) { +checkUnnamed684(core.List<api.PlayerScoreResetResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerScoreResetResponse(o[0]); checkPlayerScoreResetResponse(o[1]); @@ -387,7 +387,7 @@ buildCounterPlayerScoreResetAllResponse++; if (buildCounterPlayerScoreResetAllResponse < 3) { o.kind = "foo"; - o.results = buildUnnamed679(); + o.results = buildUnnamed684(); } buildCounterPlayerScoreResetAllResponse--; return o; @@ -397,19 +397,19 @@ buildCounterPlayerScoreResetAllResponse++; if (buildCounterPlayerScoreResetAllResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed679(o.results); + checkUnnamed684(o.results); } buildCounterPlayerScoreResetAllResponse--; } -buildUnnamed680() { +buildUnnamed685() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed680(core.List<core.String> o) { +checkUnnamed685(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -422,7 +422,7 @@ if (buildCounterPlayerScoreResetResponse < 3) { o.definitionId = "foo"; o.kind = "foo"; - o.resetScoreTimeSpans = buildUnnamed680(); + o.resetScoreTimeSpans = buildUnnamed685(); } buildCounterPlayerScoreResetResponse--; return o; @@ -433,7 +433,7 @@ if (buildCounterPlayerScoreResetResponse < 3) { unittest.expect(o.definitionId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed680(o.resetScoreTimeSpans); + checkUnnamed685(o.resetScoreTimeSpans); } buildCounterPlayerScoreResetResponse--; } @@ -459,14 +459,14 @@ buildCounterProfileSettings--; } -buildUnnamed681() { +buildUnnamed686() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed681(core.List<core.String> o) { +checkUnnamed686(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -478,7 +478,7 @@ buildCounterQuestsResetMultipleForAllRequest++; if (buildCounterQuestsResetMultipleForAllRequest < 3) { o.kind = "foo"; - o.questIds = buildUnnamed681(); + o.questIds = buildUnnamed686(); } buildCounterQuestsResetMultipleForAllRequest--; return o; @@ -488,19 +488,19 @@ buildCounterQuestsResetMultipleForAllRequest++; if (buildCounterQuestsResetMultipleForAllRequest < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed681(o.questIds); + checkUnnamed686(o.questIds); } buildCounterQuestsResetMultipleForAllRequest--; } -buildUnnamed682() { +buildUnnamed687() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed682(core.List<core.String> o) { +checkUnnamed687(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -512,7 +512,7 @@ buildCounterScoresResetMultipleForAllRequest++; if (buildCounterScoresResetMultipleForAllRequest < 3) { o.kind = "foo"; - o.leaderboardIds = buildUnnamed682(); + o.leaderboardIds = buildUnnamed687(); } buildCounterScoresResetMultipleForAllRequest--; return o; @@ -522,7 +522,7 @@ buildCounterScoresResetMultipleForAllRequest++; if (buildCounterScoresResetMultipleForAllRequest < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed682(o.leaderboardIds); + checkUnnamed687(o.leaderboardIds); } buildCounterScoresResetMultipleForAllRequest--; } @@ -679,7 +679,7 @@ var mock = new HttpServerMock(); api.AchievementsResourceApi res = new api.GamesManagementApi(mock).achievements; var arg_achievementId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -722,7 +722,7 @@ var resp = convert.JSON.encode(buildAchievementResetResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.reset(arg_achievementId).then(unittest.expectAsync(((api.AchievementResetResponse response) { + res.reset(arg_achievementId).then(unittest.expectAsync1(((api.AchievementResetResponse response) { checkAchievementResetResponse(response); }))); }); @@ -731,7 +731,7 @@ var mock = new HttpServerMock(); api.AchievementsResourceApi res = new api.GamesManagementApi(mock).achievements; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -767,7 +767,7 @@ var resp = convert.JSON.encode(buildAchievementResetAllResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resetAll().then(unittest.expectAsync(((api.AchievementResetAllResponse response) { + res.resetAll().then(unittest.expectAsync1(((api.AchievementResetAllResponse response) { checkAchievementResetAllResponse(response); }))); }); @@ -776,7 +776,7 @@ var mock = new HttpServerMock(); api.AchievementsResourceApi res = new api.GamesManagementApi(mock).achievements; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -812,7 +812,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resetAllForAllPlayers().then(unittest.expectAsync((_) {})); + res.resetAllForAllPlayers().then(unittest.expectAsync1((_) {})); }); unittest.test("method--resetForAllPlayers", () { @@ -820,7 +820,7 @@ var mock = new HttpServerMock(); api.AchievementsResourceApi res = new api.GamesManagementApi(mock).achievements; var arg_achievementId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -863,7 +863,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resetForAllPlayers(arg_achievementId).then(unittest.expectAsync((_) {})); + res.resetForAllPlayers(arg_achievementId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--resetMultipleForAllPlayers", () { @@ -871,7 +871,7 @@ var mock = new HttpServerMock(); api.AchievementsResourceApi res = new api.GamesManagementApi(mock).achievements; var arg_request = buildAchievementResetMultipleForAllRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AchievementResetMultipleForAllRequest.fromJson(json); checkAchievementResetMultipleForAllRequest(obj); @@ -910,7 +910,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resetMultipleForAllPlayers(arg_request).then(unittest.expectAsync((_) {})); + res.resetMultipleForAllPlayers(arg_request).then(unittest.expectAsync1((_) {})); }); }); @@ -924,7 +924,7 @@ var arg_applicationId = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -969,7 +969,7 @@ var resp = convert.JSON.encode(buildHiddenPlayerList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listHidden(arg_applicationId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.HiddenPlayerList response) { + res.listHidden(arg_applicationId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.HiddenPlayerList response) { checkHiddenPlayerList(response); }))); }); @@ -983,7 +983,7 @@ var mock = new HttpServerMock(); api.EventsResourceApi res = new api.GamesManagementApi(mock).events; var arg_eventId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1026,14 +1026,14 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.reset(arg_eventId).then(unittest.expectAsync((_) {})); + res.reset(arg_eventId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--resetAll", () { var mock = new HttpServerMock(); api.EventsResourceApi res = new api.GamesManagementApi(mock).events; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1069,14 +1069,14 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resetAll().then(unittest.expectAsync((_) {})); + res.resetAll().then(unittest.expectAsync1((_) {})); }); unittest.test("method--resetAllForAllPlayers", () { var mock = new HttpServerMock(); api.EventsResourceApi res = new api.GamesManagementApi(mock).events; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1112,7 +1112,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resetAllForAllPlayers().then(unittest.expectAsync((_) {})); + res.resetAllForAllPlayers().then(unittest.expectAsync1((_) {})); }); unittest.test("method--resetForAllPlayers", () { @@ -1120,7 +1120,7 @@ var mock = new HttpServerMock(); api.EventsResourceApi res = new api.GamesManagementApi(mock).events; var arg_eventId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1163,7 +1163,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resetForAllPlayers(arg_eventId).then(unittest.expectAsync((_) {})); + res.resetForAllPlayers(arg_eventId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--resetMultipleForAllPlayers", () { @@ -1171,7 +1171,7 @@ var mock = new HttpServerMock(); api.EventsResourceApi res = new api.GamesManagementApi(mock).events; var arg_request = buildEventsResetMultipleForAllRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.EventsResetMultipleForAllRequest.fromJson(json); checkEventsResetMultipleForAllRequest(obj); @@ -1210,7 +1210,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resetMultipleForAllPlayers(arg_request).then(unittest.expectAsync((_) {})); + res.resetMultipleForAllPlayers(arg_request).then(unittest.expectAsync1((_) {})); }); }); @@ -1223,7 +1223,7 @@ api.PlayersResourceApi res = new api.GamesManagementApi(mock).players; var arg_applicationId = "foo"; var arg_playerId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1269,7 +1269,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.hide(arg_applicationId, arg_playerId).then(unittest.expectAsync((_) {})); + res.hide(arg_applicationId, arg_playerId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--unhide", () { @@ -1278,7 +1278,7 @@ api.PlayersResourceApi res = new api.GamesManagementApi(mock).players; var arg_applicationId = "foo"; var arg_playerId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1324,7 +1324,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.unhide(arg_applicationId, arg_playerId).then(unittest.expectAsync((_) {})); + res.unhide(arg_applicationId, arg_playerId).then(unittest.expectAsync1((_) {})); }); }); @@ -1336,7 +1336,7 @@ var mock = new HttpServerMock(); api.QuestsResourceApi res = new api.GamesManagementApi(mock).quests; var arg_questId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1379,14 +1379,14 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.reset(arg_questId).then(unittest.expectAsync((_) {})); + res.reset(arg_questId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--resetAll", () { var mock = new HttpServerMock(); api.QuestsResourceApi res = new api.GamesManagementApi(mock).quests; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1422,14 +1422,14 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resetAll().then(unittest.expectAsync((_) {})); + res.resetAll().then(unittest.expectAsync1((_) {})); }); unittest.test("method--resetAllForAllPlayers", () { var mock = new HttpServerMock(); api.QuestsResourceApi res = new api.GamesManagementApi(mock).quests; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1465,7 +1465,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resetAllForAllPlayers().then(unittest.expectAsync((_) {})); + res.resetAllForAllPlayers().then(unittest.expectAsync1((_) {})); }); unittest.test("method--resetForAllPlayers", () { @@ -1473,7 +1473,7 @@ var mock = new HttpServerMock(); api.QuestsResourceApi res = new api.GamesManagementApi(mock).quests; var arg_questId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1516,7 +1516,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resetForAllPlayers(arg_questId).then(unittest.expectAsync((_) {})); + res.resetForAllPlayers(arg_questId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--resetMultipleForAllPlayers", () { @@ -1524,7 +1524,7 @@ var mock = new HttpServerMock(); api.QuestsResourceApi res = new api.GamesManagementApi(mock).quests; var arg_request = buildQuestsResetMultipleForAllRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.QuestsResetMultipleForAllRequest.fromJson(json); checkQuestsResetMultipleForAllRequest(obj); @@ -1563,7 +1563,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resetMultipleForAllPlayers(arg_request).then(unittest.expectAsync((_) {})); + res.resetMultipleForAllPlayers(arg_request).then(unittest.expectAsync1((_) {})); }); }); @@ -1574,7 +1574,7 @@ var mock = new HttpServerMock(); api.RoomsResourceApi res = new api.GamesManagementApi(mock).rooms; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1610,14 +1610,14 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.reset().then(unittest.expectAsync((_) {})); + res.reset().then(unittest.expectAsync1((_) {})); }); unittest.test("method--resetForAllPlayers", () { var mock = new HttpServerMock(); api.RoomsResourceApi res = new api.GamesManagementApi(mock).rooms; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1653,7 +1653,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resetForAllPlayers().then(unittest.expectAsync((_) {})); + res.resetForAllPlayers().then(unittest.expectAsync1((_) {})); }); }); @@ -1665,7 +1665,7 @@ var mock = new HttpServerMock(); api.ScoresResourceApi res = new api.GamesManagementApi(mock).scores; var arg_leaderboardId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1708,7 +1708,7 @@ var resp = convert.JSON.encode(buildPlayerScoreResetResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.reset(arg_leaderboardId).then(unittest.expectAsync(((api.PlayerScoreResetResponse response) { + res.reset(arg_leaderboardId).then(unittest.expectAsync1(((api.PlayerScoreResetResponse response) { checkPlayerScoreResetResponse(response); }))); }); @@ -1717,7 +1717,7 @@ var mock = new HttpServerMock(); api.ScoresResourceApi res = new api.GamesManagementApi(mock).scores; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1753,7 +1753,7 @@ var resp = convert.JSON.encode(buildPlayerScoreResetAllResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resetAll().then(unittest.expectAsync(((api.PlayerScoreResetAllResponse response) { + res.resetAll().then(unittest.expectAsync1(((api.PlayerScoreResetAllResponse response) { checkPlayerScoreResetAllResponse(response); }))); }); @@ -1762,7 +1762,7 @@ var mock = new HttpServerMock(); api.ScoresResourceApi res = new api.GamesManagementApi(mock).scores; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1798,7 +1798,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resetAllForAllPlayers().then(unittest.expectAsync((_) {})); + res.resetAllForAllPlayers().then(unittest.expectAsync1((_) {})); }); unittest.test("method--resetForAllPlayers", () { @@ -1806,7 +1806,7 @@ var mock = new HttpServerMock(); api.ScoresResourceApi res = new api.GamesManagementApi(mock).scores; var arg_leaderboardId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1849,7 +1849,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resetForAllPlayers(arg_leaderboardId).then(unittest.expectAsync((_) {})); + res.resetForAllPlayers(arg_leaderboardId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--resetMultipleForAllPlayers", () { @@ -1857,7 +1857,7 @@ var mock = new HttpServerMock(); api.ScoresResourceApi res = new api.GamesManagementApi(mock).scores; var arg_request = buildScoresResetMultipleForAllRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ScoresResetMultipleForAllRequest.fromJson(json); checkScoresResetMultipleForAllRequest(obj); @@ -1896,7 +1896,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resetMultipleForAllPlayers(arg_request).then(unittest.expectAsync((_) {})); + res.resetMultipleForAllPlayers(arg_request).then(unittest.expectAsync1((_) {})); }); }); @@ -1907,7 +1907,7 @@ var mock = new HttpServerMock(); api.TurnBasedMatchesResourceApi res = new api.GamesManagementApi(mock).turnBasedMatches; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1943,14 +1943,14 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.reset().then(unittest.expectAsync((_) {})); + res.reset().then(unittest.expectAsync1((_) {})); }); unittest.test("method--resetForAllPlayers", () { var mock = new HttpServerMock(); api.TurnBasedMatchesResourceApi res = new api.GamesManagementApi(mock).turnBasedMatches; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1986,7 +1986,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resetForAllPlayers().then(unittest.expectAsync((_) {})); + res.resetForAllPlayers().then(unittest.expectAsync1((_) {})); }); });
diff --git a/generated/googleapis/test/genomics/v1_test.dart b/generated/googleapis/test/genomics/v1_test.dart index 58e9ebe..1aa223d 100644 --- a/generated/googleapis/test/genomics/v1_test.dart +++ b/generated/googleapis/test/genomics/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/genomics/v1.dart' as api; @@ -46,35 +46,35 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2922() { +buildUnnamed2392() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2922(core.List<core.Object> o) { +checkUnnamed2392(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed2923() { +buildUnnamed2393() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2922(); - o["y"] = buildUnnamed2922(); + o["x"] = buildUnnamed2392(); + o["y"] = buildUnnamed2392(); return o; } -checkUnnamed2923(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2393(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2922(o["x"]); - checkUnnamed2922(o["y"]); + checkUnnamed2392(o["x"]); + checkUnnamed2392(o["y"]); } core.int buildCounterAnnotation = 0; @@ -85,7 +85,7 @@ o.annotationSetId = "foo"; o.end = "foo"; o.id = "foo"; - o.info = buildUnnamed2923(); + o.info = buildUnnamed2393(); o.name = "foo"; o.referenceId = "foo"; o.referenceName = "foo"; @@ -105,7 +105,7 @@ unittest.expect(o.annotationSetId, unittest.equals('foo')); unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2923(o.info); + checkUnnamed2393(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.referenceId, unittest.equals('foo')); unittest.expect(o.referenceName, unittest.equals('foo')); @@ -118,30 +118,30 @@ buildCounterAnnotation--; } -buildUnnamed2924() { +buildUnnamed2394() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2924(core.List<core.Object> o) { +checkUnnamed2394(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed2925() { +buildUnnamed2395() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2924(); - o["y"] = buildUnnamed2924(); + o["x"] = buildUnnamed2394(); + o["y"] = buildUnnamed2394(); return o; } -checkUnnamed2925(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2395(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2924(o["x"]); - checkUnnamed2924(o["y"]); + checkUnnamed2394(o["x"]); + checkUnnamed2394(o["y"]); } core.int buildCounterAnnotationSet = 0; @@ -151,7 +151,7 @@ if (buildCounterAnnotationSet < 3) { o.datasetId = "foo"; o.id = "foo"; - o.info = buildUnnamed2925(); + o.info = buildUnnamed2395(); o.name = "foo"; o.referenceSetId = "foo"; o.sourceUri = "foo"; @@ -166,7 +166,7 @@ if (buildCounterAnnotationSet < 3) { unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2925(o.info); + checkUnnamed2395(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.referenceSetId, unittest.equals('foo')); unittest.expect(o.sourceUri, unittest.equals('foo')); @@ -175,14 +175,14 @@ buildCounterAnnotationSet--; } -buildUnnamed2926() { +buildUnnamed2396() { var o = new core.List<api.Annotation>(); o.add(buildAnnotation()); o.add(buildAnnotation()); return o; } -checkUnnamed2926(core.List<api.Annotation> o) { +checkUnnamed2396(core.List<api.Annotation> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotation(o[0]); checkAnnotation(o[1]); @@ -193,7 +193,7 @@ var o = new api.BatchCreateAnnotationsRequest(); buildCounterBatchCreateAnnotationsRequest++; if (buildCounterBatchCreateAnnotationsRequest < 3) { - o.annotations = buildUnnamed2926(); + o.annotations = buildUnnamed2396(); o.requestId = "foo"; } buildCounterBatchCreateAnnotationsRequest--; @@ -203,20 +203,20 @@ checkBatchCreateAnnotationsRequest(api.BatchCreateAnnotationsRequest o) { buildCounterBatchCreateAnnotationsRequest++; if (buildCounterBatchCreateAnnotationsRequest < 3) { - checkUnnamed2926(o.annotations); + checkUnnamed2396(o.annotations); unittest.expect(o.requestId, unittest.equals('foo')); } buildCounterBatchCreateAnnotationsRequest--; } -buildUnnamed2927() { +buildUnnamed2397() { var o = new core.List<api.Entry>(); o.add(buildEntry()); o.add(buildEntry()); return o; } -checkUnnamed2927(core.List<api.Entry> o) { +checkUnnamed2397(core.List<api.Entry> o) { unittest.expect(o, unittest.hasLength(2)); checkEntry(o[0]); checkEntry(o[1]); @@ -227,7 +227,7 @@ var o = new api.BatchCreateAnnotationsResponse(); buildCounterBatchCreateAnnotationsResponse++; if (buildCounterBatchCreateAnnotationsResponse < 3) { - o.entries = buildUnnamed2927(); + o.entries = buildUnnamed2397(); } buildCounterBatchCreateAnnotationsResponse--; return o; @@ -236,19 +236,19 @@ checkBatchCreateAnnotationsResponse(api.BatchCreateAnnotationsResponse o) { buildCounterBatchCreateAnnotationsResponse++; if (buildCounterBatchCreateAnnotationsResponse < 3) { - checkUnnamed2927(o.entries); + checkUnnamed2397(o.entries); } buildCounterBatchCreateAnnotationsResponse--; } -buildUnnamed2928() { +buildUnnamed2398() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2928(core.List<core.String> o) { +checkUnnamed2398(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -259,7 +259,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed2928(); + o.members = buildUnnamed2398(); o.role = "foo"; } buildCounterBinding--; @@ -269,46 +269,46 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed2928(o.members); + checkUnnamed2398(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -buildUnnamed2929() { +buildUnnamed2399() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2929(core.List<core.Object> o) { +checkUnnamed2399(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed2930() { +buildUnnamed2400() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2929(); - o["y"] = buildUnnamed2929(); + o["x"] = buildUnnamed2399(); + o["y"] = buildUnnamed2399(); return o; } -checkUnnamed2930(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2400(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2929(o["x"]); - checkUnnamed2929(o["y"]); + checkUnnamed2399(o["x"]); + checkUnnamed2399(o["y"]); } -buildUnnamed2931() { +buildUnnamed2401() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2931(core.List<core.String> o) { +checkUnnamed2401(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -321,10 +321,10 @@ if (buildCounterCallSet < 3) { o.created = "foo"; o.id = "foo"; - o.info = buildUnnamed2930(); + o.info = buildUnnamed2400(); o.name = "foo"; o.sampleId = "foo"; - o.variantSetIds = buildUnnamed2931(); + o.variantSetIds = buildUnnamed2401(); } buildCounterCallSet--; return o; @@ -335,10 +335,10 @@ if (buildCounterCallSet < 3) { unittest.expect(o.created, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2930(o.info); + checkUnnamed2400(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.sampleId, unittest.equals('foo')); - checkUnnamed2931(o.variantSetIds); + checkUnnamed2401(o.variantSetIds); } buildCounterCallSet--; } @@ -383,27 +383,27 @@ buildCounterCigarUnit--; } -buildUnnamed2932() { +buildUnnamed2402() { var o = new core.List<api.ExternalId>(); o.add(buildExternalId()); o.add(buildExternalId()); return o; } -checkUnnamed2932(core.List<api.ExternalId> o) { +checkUnnamed2402(core.List<api.ExternalId> o) { unittest.expect(o, unittest.hasLength(2)); checkExternalId(o[0]); checkExternalId(o[1]); } -buildUnnamed2933() { +buildUnnamed2403() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2933(core.List<core.String> o) { +checkUnnamed2403(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -415,8 +415,8 @@ buildCounterClinicalCondition++; if (buildCounterClinicalCondition < 3) { o.conceptId = "foo"; - o.externalIds = buildUnnamed2932(); - o.names = buildUnnamed2933(); + o.externalIds = buildUnnamed2402(); + o.names = buildUnnamed2403(); o.omimId = "foo"; } buildCounterClinicalCondition--; @@ -427,8 +427,8 @@ buildCounterClinicalCondition++; if (buildCounterClinicalCondition < 3) { unittest.expect(o.conceptId, unittest.equals('foo')); - checkUnnamed2932(o.externalIds); - checkUnnamed2933(o.names); + checkUnnamed2402(o.externalIds); + checkUnnamed2403(o.names); unittest.expect(o.omimId, unittest.equals('foo')); } buildCounterClinicalCondition--; @@ -455,14 +455,14 @@ buildCounterCodingSequence--; } -buildUnnamed2934() { +buildUnnamed2404() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2934(core.List<core.String> o) { +checkUnnamed2404(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -473,7 +473,7 @@ var o = new api.ComputeEngine(); buildCounterComputeEngine++; if (buildCounterComputeEngine < 3) { - o.diskNames = buildUnnamed2934(); + o.diskNames = buildUnnamed2404(); o.instanceName = "foo"; o.machineType = "foo"; o.zone = "foo"; @@ -485,7 +485,7 @@ checkComputeEngine(api.ComputeEngine o) { buildCounterComputeEngine++; if (buildCounterComputeEngine < 3) { - checkUnnamed2934(o.diskNames); + checkUnnamed2404(o.diskNames); unittest.expect(o.instanceName, unittest.equals('foo')); unittest.expect(o.machineType, unittest.equals('foo')); unittest.expect(o.zone, unittest.equals('foo')); @@ -625,14 +625,14 @@ buildCounterExperiment--; } -buildUnnamed2935() { +buildUnnamed2405() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2935(core.List<core.String> o) { +checkUnnamed2405(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -645,7 +645,7 @@ if (buildCounterExportReadGroupSetRequest < 3) { o.exportUri = "foo"; o.projectId = "foo"; - o.referenceNames = buildUnnamed2935(); + o.referenceNames = buildUnnamed2405(); } buildCounterExportReadGroupSetRequest--; return o; @@ -656,19 +656,19 @@ if (buildCounterExportReadGroupSetRequest < 3) { unittest.expect(o.exportUri, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); - checkUnnamed2935(o.referenceNames); + checkUnnamed2405(o.referenceNames); } buildCounterExportReadGroupSetRequest--; } -buildUnnamed2936() { +buildUnnamed2406() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2936(core.List<core.String> o) { +checkUnnamed2406(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -681,7 +681,7 @@ if (buildCounterExportVariantSetRequest < 3) { o.bigqueryDataset = "foo"; o.bigqueryTable = "foo"; - o.callSetIds = buildUnnamed2936(); + o.callSetIds = buildUnnamed2406(); o.format = "foo"; o.projectId = "foo"; } @@ -694,7 +694,7 @@ if (buildCounterExportVariantSetRequest < 3) { unittest.expect(o.bigqueryDataset, unittest.equals('foo')); unittest.expect(o.bigqueryTable, unittest.equals('foo')); - checkUnnamed2936(o.callSetIds); + checkUnnamed2406(o.callSetIds); unittest.expect(o.format, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); } @@ -739,14 +739,14 @@ buildCounterGetIamPolicyRequest--; } -buildUnnamed2937() { +buildUnnamed2407() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2937(core.List<core.String> o) { +checkUnnamed2407(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -760,7 +760,7 @@ o.datasetId = "foo"; o.partitionStrategy = "foo"; o.referenceSetId = "foo"; - o.sourceUris = buildUnnamed2937(); + o.sourceUris = buildUnnamed2407(); } buildCounterImportReadGroupSetsRequest--; return o; @@ -772,19 +772,19 @@ unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.partitionStrategy, unittest.equals('foo')); unittest.expect(o.referenceSetId, unittest.equals('foo')); - checkUnnamed2937(o.sourceUris); + checkUnnamed2407(o.sourceUris); } buildCounterImportReadGroupSetsRequest--; } -buildUnnamed2938() { +buildUnnamed2408() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2938(core.List<core.String> o) { +checkUnnamed2408(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -795,7 +795,7 @@ var o = new api.ImportReadGroupSetsResponse(); buildCounterImportReadGroupSetsResponse++; if (buildCounterImportReadGroupSetsResponse < 3) { - o.readGroupSetIds = buildUnnamed2938(); + o.readGroupSetIds = buildUnnamed2408(); } buildCounterImportReadGroupSetsResponse--; return o; @@ -804,32 +804,32 @@ checkImportReadGroupSetsResponse(api.ImportReadGroupSetsResponse o) { buildCounterImportReadGroupSetsResponse++; if (buildCounterImportReadGroupSetsResponse < 3) { - checkUnnamed2938(o.readGroupSetIds); + checkUnnamed2408(o.readGroupSetIds); } buildCounterImportReadGroupSetsResponse--; } -buildUnnamed2939() { +buildUnnamed2409() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2939(core.Map<core.String, core.String> o) { +checkUnnamed2409(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed2940() { +buildUnnamed2410() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2940(core.List<core.String> o) { +checkUnnamed2410(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -841,9 +841,9 @@ buildCounterImportVariantsRequest++; if (buildCounterImportVariantsRequest < 3) { o.format = "foo"; - o.infoMergeConfig = buildUnnamed2939(); + o.infoMergeConfig = buildUnnamed2409(); o.normalizeReferenceNames = true; - o.sourceUris = buildUnnamed2940(); + o.sourceUris = buildUnnamed2410(); o.variantSetId = "foo"; } buildCounterImportVariantsRequest--; @@ -854,22 +854,22 @@ buildCounterImportVariantsRequest++; if (buildCounterImportVariantsRequest < 3) { unittest.expect(o.format, unittest.equals('foo')); - checkUnnamed2939(o.infoMergeConfig); + checkUnnamed2409(o.infoMergeConfig); unittest.expect(o.normalizeReferenceNames, unittest.isTrue); - checkUnnamed2940(o.sourceUris); + checkUnnamed2410(o.sourceUris); unittest.expect(o.variantSetId, unittest.equals('foo')); } buildCounterImportVariantsRequest--; } -buildUnnamed2941() { +buildUnnamed2411() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2941(core.List<core.String> o) { +checkUnnamed2411(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -880,7 +880,7 @@ var o = new api.ImportVariantsResponse(); buildCounterImportVariantsResponse++; if (buildCounterImportVariantsResponse < 3) { - o.callSetIds = buildUnnamed2941(); + o.callSetIds = buildUnnamed2411(); } buildCounterImportVariantsResponse--; return o; @@ -889,19 +889,19 @@ checkImportVariantsResponse(api.ImportVariantsResponse o) { buildCounterImportVariantsResponse++; if (buildCounterImportVariantsResponse < 3) { - checkUnnamed2941(o.callSetIds); + checkUnnamed2411(o.callSetIds); } buildCounterImportVariantsResponse--; } -buildUnnamed2942() { +buildUnnamed2412() { var o = new core.List<api.CigarUnit>(); o.add(buildCigarUnit()); o.add(buildCigarUnit()); return o; } -checkUnnamed2942(core.List<api.CigarUnit> o) { +checkUnnamed2412(core.List<api.CigarUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkCigarUnit(o[0]); checkCigarUnit(o[1]); @@ -912,7 +912,7 @@ var o = new api.LinearAlignment(); buildCounterLinearAlignment++; if (buildCounterLinearAlignment < 3) { - o.cigar = buildUnnamed2942(); + o.cigar = buildUnnamed2412(); o.mappingQuality = 42; o.position = buildPosition(); } @@ -923,7 +923,7 @@ checkLinearAlignment(api.LinearAlignment o) { buildCounterLinearAlignment++; if (buildCounterLinearAlignment < 3) { - checkUnnamed2942(o.cigar); + checkUnnamed2412(o.cigar); unittest.expect(o.mappingQuality, unittest.equals(42)); checkPosition(o.position); } @@ -953,14 +953,14 @@ buildCounterListBasesResponse--; } -buildUnnamed2943() { +buildUnnamed2413() { var o = new core.List<api.CoverageBucket>(); o.add(buildCoverageBucket()); o.add(buildCoverageBucket()); return o; } -checkUnnamed2943(core.List<api.CoverageBucket> o) { +checkUnnamed2413(core.List<api.CoverageBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkCoverageBucket(o[0]); checkCoverageBucket(o[1]); @@ -972,7 +972,7 @@ buildCounterListCoverageBucketsResponse++; if (buildCounterListCoverageBucketsResponse < 3) { o.bucketWidth = "foo"; - o.coverageBuckets = buildUnnamed2943(); + o.coverageBuckets = buildUnnamed2413(); o.nextPageToken = "foo"; } buildCounterListCoverageBucketsResponse--; @@ -983,20 +983,20 @@ buildCounterListCoverageBucketsResponse++; if (buildCounterListCoverageBucketsResponse < 3) { unittest.expect(o.bucketWidth, unittest.equals('foo')); - checkUnnamed2943(o.coverageBuckets); + checkUnnamed2413(o.coverageBuckets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCoverageBucketsResponse--; } -buildUnnamed2944() { +buildUnnamed2414() { var o = new core.List<api.Dataset>(); o.add(buildDataset()); o.add(buildDataset()); return o; } -checkUnnamed2944(core.List<api.Dataset> o) { +checkUnnamed2414(core.List<api.Dataset> o) { unittest.expect(o, unittest.hasLength(2)); checkDataset(o[0]); checkDataset(o[1]); @@ -1007,7 +1007,7 @@ var o = new api.ListDatasetsResponse(); buildCounterListDatasetsResponse++; if (buildCounterListDatasetsResponse < 3) { - o.datasets = buildUnnamed2944(); + o.datasets = buildUnnamed2414(); o.nextPageToken = "foo"; } buildCounterListDatasetsResponse--; @@ -1017,20 +1017,20 @@ checkListDatasetsResponse(api.ListDatasetsResponse o) { buildCounterListDatasetsResponse++; if (buildCounterListDatasetsResponse < 3) { - checkUnnamed2944(o.datasets); + checkUnnamed2414(o.datasets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDatasetsResponse--; } -buildUnnamed2945() { +buildUnnamed2415() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2945(core.List<api.Operation> o) { +checkUnnamed2415(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1042,7 +1042,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed2945(); + o.operations = buildUnnamed2415(); } buildCounterListOperationsResponse--; return o; @@ -1052,32 +1052,32 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2945(o.operations); + checkUnnamed2415(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed2946() { +buildUnnamed2416() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2946(core.Map<core.String, core.String> o) { +checkUnnamed2416(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed2947() { +buildUnnamed2417() { var o = new core.List<api.Variant>(); o.add(buildVariant()); o.add(buildVariant()); return o; } -checkUnnamed2947(core.List<api.Variant> o) { +checkUnnamed2417(core.List<api.Variant> o) { unittest.expect(o, unittest.hasLength(2)); checkVariant(o[0]); checkVariant(o[1]); @@ -1088,9 +1088,9 @@ var o = new api.MergeVariantsRequest(); buildCounterMergeVariantsRequest++; if (buildCounterMergeVariantsRequest < 3) { - o.infoMergeConfig = buildUnnamed2946(); + o.infoMergeConfig = buildUnnamed2416(); o.variantSetId = "foo"; - o.variants = buildUnnamed2947(); + o.variants = buildUnnamed2417(); } buildCounterMergeVariantsRequest--; return o; @@ -1099,34 +1099,34 @@ checkMergeVariantsRequest(api.MergeVariantsRequest o) { buildCounterMergeVariantsRequest++; if (buildCounterMergeVariantsRequest < 3) { - checkUnnamed2946(o.infoMergeConfig); + checkUnnamed2416(o.infoMergeConfig); unittest.expect(o.variantSetId, unittest.equals('foo')); - checkUnnamed2947(o.variants); + checkUnnamed2417(o.variants); } buildCounterMergeVariantsRequest--; } -buildUnnamed2948() { +buildUnnamed2418() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed2948(core.Map<core.String, core.Object> o) { +checkUnnamed2418(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed2949() { +buildUnnamed2419() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed2949(core.Map<core.String, core.Object> o) { +checkUnnamed2419(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted9 = (o["x"]) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo')); var casted10 = (o["y"]) as core.Map; unittest.expect(casted10, unittest.hasLength(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["string"], unittest.equals('foo')); @@ -1139,9 +1139,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2948(); + o.metadata = buildUnnamed2418(); o.name = "foo"; - o.response = buildUnnamed2949(); + o.response = buildUnnamed2419(); } buildCounterOperation--; return o; @@ -1152,9 +1152,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2948(o.metadata); + checkUnnamed2418(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2949(o.response); + checkUnnamed2419(o.response); } buildCounterOperation--; } @@ -1182,53 +1182,53 @@ buildCounterOperationEvent--; } -buildUnnamed2950() { +buildUnnamed2420() { var o = new core.List<api.OperationEvent>(); o.add(buildOperationEvent()); o.add(buildOperationEvent()); return o; } -checkUnnamed2950(core.List<api.OperationEvent> o) { +checkUnnamed2420(core.List<api.OperationEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationEvent(o[0]); checkOperationEvent(o[1]); } -buildUnnamed2951() { +buildUnnamed2421() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2951(core.Map<core.String, core.String> o) { +checkUnnamed2421(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed2952() { +buildUnnamed2422() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed2952(core.Map<core.String, core.Object> o) { +checkUnnamed2422(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted11 = (o["x"]) as core.Map; unittest.expect(casted11, unittest.hasLength(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["string"], unittest.equals('foo')); var casted12 = (o["y"]) as core.Map; unittest.expect(casted12, unittest.hasLength(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["string"], unittest.equals('foo')); } -buildUnnamed2953() { +buildUnnamed2423() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed2953(core.Map<core.String, core.Object> o) { +checkUnnamed2423(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted13 = (o["x"]) as core.Map; unittest.expect(casted13, unittest.hasLength(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittest.expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["string"], unittest.equals('foo')); var casted14 = (o["y"]) as core.Map; unittest.expect(casted14, unittest.hasLength(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest.expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["string"], unittest.equals('foo')); @@ -1242,11 +1242,11 @@ o.clientId = "foo"; o.createTime = "foo"; o.endTime = "foo"; - o.events = buildUnnamed2950(); - o.labels = buildUnnamed2951(); + o.events = buildUnnamed2420(); + o.labels = buildUnnamed2421(); o.projectId = "foo"; - o.request = buildUnnamed2952(); - o.runtimeMetadata = buildUnnamed2953(); + o.request = buildUnnamed2422(); + o.runtimeMetadata = buildUnnamed2423(); o.startTime = "foo"; } buildCounterOperationMetadata--; @@ -1259,24 +1259,24 @@ unittest.expect(o.clientId, unittest.equals('foo')); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.endTime, unittest.equals('foo')); - checkUnnamed2950(o.events); - checkUnnamed2951(o.labels); + checkUnnamed2420(o.events); + checkUnnamed2421(o.labels); unittest.expect(o.projectId, unittest.equals('foo')); - checkUnnamed2952(o.request); - checkUnnamed2953(o.runtimeMetadata); + checkUnnamed2422(o.request); + checkUnnamed2423(o.runtimeMetadata); unittest.expect(o.startTime, unittest.equals('foo')); } buildCounterOperationMetadata--; } -buildUnnamed2954() { +buildUnnamed2424() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed2954(core.List<api.Binding> o) { +checkUnnamed2424(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -1287,7 +1287,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed2954(); + o.bindings = buildUnnamed2424(); o.etag = "foo"; o.version = 42; } @@ -1298,7 +1298,7 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed2954(o.bindings); + checkUnnamed2424(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -1378,43 +1378,43 @@ buildCounterRange--; } -buildUnnamed2955() { +buildUnnamed2425() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2955(core.List<core.int> o) { +checkUnnamed2425(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed2956() { +buildUnnamed2426() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2956(core.List<core.Object> o) { +checkUnnamed2426(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted15 = (o[0]) as core.Map; unittest.expect(casted15, unittest.hasLength(3)); unittest.expect(casted15["list"], unittest.equals([1, 2, 3])); unittest.expect(casted15["bool"], unittest.equals(true)); unittest.expect(casted15["string"], unittest.equals('foo')); var casted16 = (o[1]) as core.Map; unittest.expect(casted16, unittest.hasLength(3)); unittest.expect(casted16["list"], unittest.equals([1, 2, 3])); unittest.expect(casted16["bool"], unittest.equals(true)); unittest.expect(casted16["string"], unittest.equals('foo')); } -buildUnnamed2957() { +buildUnnamed2427() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2956(); - o["y"] = buildUnnamed2956(); + o["x"] = buildUnnamed2426(); + o["y"] = buildUnnamed2426(); return o; } -checkUnnamed2957(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2427(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2956(o["x"]); - checkUnnamed2956(o["y"]); + checkUnnamed2426(o["x"]); + checkUnnamed2426(o["y"]); } core.int buildCounterRead = 0; @@ -1422,7 +1422,7 @@ var o = new api.Read(); buildCounterRead++; if (buildCounterRead < 3) { - o.alignedQuality = buildUnnamed2955(); + o.alignedQuality = buildUnnamed2425(); o.alignedSequence = "foo"; o.alignment = buildLinearAlignment(); o.duplicateFragment = true; @@ -1430,7 +1430,7 @@ o.fragmentLength = 42; o.fragmentName = "foo"; o.id = "foo"; - o.info = buildUnnamed2957(); + o.info = buildUnnamed2427(); o.nextMatePosition = buildPosition(); o.numberReads = 42; o.properPlacement = true; @@ -1447,7 +1447,7 @@ checkRead(api.Read o) { buildCounterRead++; if (buildCounterRead < 3) { - checkUnnamed2955(o.alignedQuality); + checkUnnamed2425(o.alignedQuality); unittest.expect(o.alignedSequence, unittest.equals('foo')); checkLinearAlignment(o.alignment); unittest.expect(o.duplicateFragment, unittest.isTrue); @@ -1455,7 +1455,7 @@ unittest.expect(o.fragmentLength, unittest.equals(42)); unittest.expect(o.fragmentName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2957(o.info); + checkUnnamed2427(o.info); checkPosition(o.nextMatePosition); unittest.expect(o.numberReads, unittest.equals(42)); unittest.expect(o.properPlacement, unittest.isTrue); @@ -1468,40 +1468,40 @@ buildCounterRead--; } -buildUnnamed2958() { +buildUnnamed2428() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2958(core.List<core.Object> o) { +checkUnnamed2428(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted17 = (o[0]) as core.Map; unittest.expect(casted17, unittest.hasLength(3)); unittest.expect(casted17["list"], unittest.equals([1, 2, 3])); unittest.expect(casted17["bool"], unittest.equals(true)); unittest.expect(casted17["string"], unittest.equals('foo')); var casted18 = (o[1]) as core.Map; unittest.expect(casted18, unittest.hasLength(3)); unittest.expect(casted18["list"], unittest.equals([1, 2, 3])); unittest.expect(casted18["bool"], unittest.equals(true)); unittest.expect(casted18["string"], unittest.equals('foo')); } -buildUnnamed2959() { +buildUnnamed2429() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2958(); - o["y"] = buildUnnamed2958(); + o["x"] = buildUnnamed2428(); + o["y"] = buildUnnamed2428(); return o; } -checkUnnamed2959(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2429(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2958(o["x"]); - checkUnnamed2958(o["y"]); + checkUnnamed2428(o["x"]); + checkUnnamed2428(o["y"]); } -buildUnnamed2960() { +buildUnnamed2430() { var o = new core.List<api.Program>(); o.add(buildProgram()); o.add(buildProgram()); return o; } -checkUnnamed2960(core.List<api.Program> o) { +checkUnnamed2430(core.List<api.Program> o) { unittest.expect(o, unittest.hasLength(2)); checkProgram(o[0]); checkProgram(o[1]); @@ -1516,10 +1516,10 @@ o.description = "foo"; o.experiment = buildExperiment(); o.id = "foo"; - o.info = buildUnnamed2959(); + o.info = buildUnnamed2429(); o.name = "foo"; o.predictedInsertSize = 42; - o.programs = buildUnnamed2960(); + o.programs = buildUnnamed2430(); o.referenceSetId = "foo"; o.sampleId = "foo"; } @@ -1534,50 +1534,50 @@ unittest.expect(o.description, unittest.equals('foo')); checkExperiment(o.experiment); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2959(o.info); + checkUnnamed2429(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.predictedInsertSize, unittest.equals(42)); - checkUnnamed2960(o.programs); + checkUnnamed2430(o.programs); unittest.expect(o.referenceSetId, unittest.equals('foo')); unittest.expect(o.sampleId, unittest.equals('foo')); } buildCounterReadGroup--; } -buildUnnamed2961() { +buildUnnamed2431() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2961(core.List<core.Object> o) { +checkUnnamed2431(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted19 = (o[0]) as core.Map; unittest.expect(casted19, unittest.hasLength(3)); unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); unittest.expect(casted19["bool"], unittest.equals(true)); unittest.expect(casted19["string"], unittest.equals('foo')); var casted20 = (o[1]) as core.Map; unittest.expect(casted20, unittest.hasLength(3)); unittest.expect(casted20["list"], unittest.equals([1, 2, 3])); unittest.expect(casted20["bool"], unittest.equals(true)); unittest.expect(casted20["string"], unittest.equals('foo')); } -buildUnnamed2962() { +buildUnnamed2432() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2961(); - o["y"] = buildUnnamed2961(); + o["x"] = buildUnnamed2431(); + o["y"] = buildUnnamed2431(); return o; } -checkUnnamed2962(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2432(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2961(o["x"]); - checkUnnamed2961(o["y"]); + checkUnnamed2431(o["x"]); + checkUnnamed2431(o["y"]); } -buildUnnamed2963() { +buildUnnamed2433() { var o = new core.List<api.ReadGroup>(); o.add(buildReadGroup()); o.add(buildReadGroup()); return o; } -checkUnnamed2963(core.List<api.ReadGroup> o) { +checkUnnamed2433(core.List<api.ReadGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkReadGroup(o[0]); checkReadGroup(o[1]); @@ -1591,9 +1591,9 @@ o.datasetId = "foo"; o.filename = "foo"; o.id = "foo"; - o.info = buildUnnamed2962(); + o.info = buildUnnamed2432(); o.name = "foo"; - o.readGroups = buildUnnamed2963(); + o.readGroups = buildUnnamed2433(); o.referenceSetId = "foo"; } buildCounterReadGroupSet--; @@ -1606,22 +1606,22 @@ unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.filename, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2962(o.info); + checkUnnamed2432(o.info); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2963(o.readGroups); + checkUnnamed2433(o.readGroups); unittest.expect(o.referenceSetId, unittest.equals('foo')); } buildCounterReadGroupSet--; } -buildUnnamed2964() { +buildUnnamed2434() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2964(core.List<core.String> o) { +checkUnnamed2434(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1637,7 +1637,7 @@ o.md5checksum = "foo"; o.name = "foo"; o.ncbiTaxonId = 42; - o.sourceAccessions = buildUnnamed2964(); + o.sourceAccessions = buildUnnamed2434(); o.sourceUri = "foo"; } buildCounterReference--; @@ -1652,7 +1652,7 @@ unittest.expect(o.md5checksum, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.ncbiTaxonId, unittest.equals(42)); - checkUnnamed2964(o.sourceAccessions); + checkUnnamed2434(o.sourceAccessions); unittest.expect(o.sourceUri, unittest.equals('foo')); } buildCounterReference--; @@ -1679,27 +1679,27 @@ buildCounterReferenceBound--; } -buildUnnamed2965() { +buildUnnamed2435() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2965(core.List<core.String> o) { +checkUnnamed2435(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2966() { +buildUnnamed2436() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2966(core.List<core.String> o) { +checkUnnamed2436(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1715,8 +1715,8 @@ o.id = "foo"; o.md5checksum = "foo"; o.ncbiTaxonId = 42; - o.referenceIds = buildUnnamed2965(); - o.sourceAccessions = buildUnnamed2966(); + o.referenceIds = buildUnnamed2435(); + o.sourceAccessions = buildUnnamed2436(); o.sourceUri = "foo"; } buildCounterReferenceSet--; @@ -1731,8 +1731,8 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.md5checksum, unittest.equals('foo')); unittest.expect(o.ncbiTaxonId, unittest.equals(42)); - checkUnnamed2965(o.referenceIds); - checkUnnamed2966(o.sourceAccessions); + checkUnnamed2435(o.referenceIds); + checkUnnamed2436(o.sourceAccessions); unittest.expect(o.sourceUri, unittest.equals('foo')); } buildCounterReferenceSet--; @@ -1757,27 +1757,27 @@ buildCounterRuntimeMetadata--; } -buildUnnamed2967() { +buildUnnamed2437() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2967(core.List<core.String> o) { +checkUnnamed2437(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2968() { +buildUnnamed2438() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2968(core.List<core.String> o) { +checkUnnamed2438(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1788,12 +1788,12 @@ var o = new api.SearchAnnotationSetsRequest(); buildCounterSearchAnnotationSetsRequest++; if (buildCounterSearchAnnotationSetsRequest < 3) { - o.datasetIds = buildUnnamed2967(); + o.datasetIds = buildUnnamed2437(); o.name = "foo"; o.pageSize = 42; o.pageToken = "foo"; o.referenceSetId = "foo"; - o.types = buildUnnamed2968(); + o.types = buildUnnamed2438(); } buildCounterSearchAnnotationSetsRequest--; return o; @@ -1802,24 +1802,24 @@ checkSearchAnnotationSetsRequest(api.SearchAnnotationSetsRequest o) { buildCounterSearchAnnotationSetsRequest++; if (buildCounterSearchAnnotationSetsRequest < 3) { - checkUnnamed2967(o.datasetIds); + checkUnnamed2437(o.datasetIds); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); unittest.expect(o.referenceSetId, unittest.equals('foo')); - checkUnnamed2968(o.types); + checkUnnamed2438(o.types); } buildCounterSearchAnnotationSetsRequest--; } -buildUnnamed2969() { +buildUnnamed2439() { var o = new core.List<api.AnnotationSet>(); o.add(buildAnnotationSet()); o.add(buildAnnotationSet()); return o; } -checkUnnamed2969(core.List<api.AnnotationSet> o) { +checkUnnamed2439(core.List<api.AnnotationSet> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotationSet(o[0]); checkAnnotationSet(o[1]); @@ -1830,7 +1830,7 @@ var o = new api.SearchAnnotationSetsResponse(); buildCounterSearchAnnotationSetsResponse++; if (buildCounterSearchAnnotationSetsResponse < 3) { - o.annotationSets = buildUnnamed2969(); + o.annotationSets = buildUnnamed2439(); o.nextPageToken = "foo"; } buildCounterSearchAnnotationSetsResponse--; @@ -1840,20 +1840,20 @@ checkSearchAnnotationSetsResponse(api.SearchAnnotationSetsResponse o) { buildCounterSearchAnnotationSetsResponse++; if (buildCounterSearchAnnotationSetsResponse < 3) { - checkUnnamed2969(o.annotationSets); + checkUnnamed2439(o.annotationSets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchAnnotationSetsResponse--; } -buildUnnamed2970() { +buildUnnamed2440() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2970(core.List<core.String> o) { +checkUnnamed2440(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1864,7 +1864,7 @@ var o = new api.SearchAnnotationsRequest(); buildCounterSearchAnnotationsRequest++; if (buildCounterSearchAnnotationsRequest < 3) { - o.annotationSetIds = buildUnnamed2970(); + o.annotationSetIds = buildUnnamed2440(); o.end = "foo"; o.pageSize = 42; o.pageToken = "foo"; @@ -1879,7 +1879,7 @@ checkSearchAnnotationsRequest(api.SearchAnnotationsRequest o) { buildCounterSearchAnnotationsRequest++; if (buildCounterSearchAnnotationsRequest < 3) { - checkUnnamed2970(o.annotationSetIds); + checkUnnamed2440(o.annotationSetIds); unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); @@ -1890,14 +1890,14 @@ buildCounterSearchAnnotationsRequest--; } -buildUnnamed2971() { +buildUnnamed2441() { var o = new core.List<api.Annotation>(); o.add(buildAnnotation()); o.add(buildAnnotation()); return o; } -checkUnnamed2971(core.List<api.Annotation> o) { +checkUnnamed2441(core.List<api.Annotation> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotation(o[0]); checkAnnotation(o[1]); @@ -1908,7 +1908,7 @@ var o = new api.SearchAnnotationsResponse(); buildCounterSearchAnnotationsResponse++; if (buildCounterSearchAnnotationsResponse < 3) { - o.annotations = buildUnnamed2971(); + o.annotations = buildUnnamed2441(); o.nextPageToken = "foo"; } buildCounterSearchAnnotationsResponse--; @@ -1918,20 +1918,20 @@ checkSearchAnnotationsResponse(api.SearchAnnotationsResponse o) { buildCounterSearchAnnotationsResponse++; if (buildCounterSearchAnnotationsResponse < 3) { - checkUnnamed2971(o.annotations); + checkUnnamed2441(o.annotations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchAnnotationsResponse--; } -buildUnnamed2972() { +buildUnnamed2442() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2972(core.List<core.String> o) { +checkUnnamed2442(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1945,7 +1945,7 @@ o.name = "foo"; o.pageSize = 42; o.pageToken = "foo"; - o.variantSetIds = buildUnnamed2972(); + o.variantSetIds = buildUnnamed2442(); } buildCounterSearchCallSetsRequest--; return o; @@ -1957,19 +1957,19 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed2972(o.variantSetIds); + checkUnnamed2442(o.variantSetIds); } buildCounterSearchCallSetsRequest--; } -buildUnnamed2973() { +buildUnnamed2443() { var o = new core.List<api.CallSet>(); o.add(buildCallSet()); o.add(buildCallSet()); return o; } -checkUnnamed2973(core.List<api.CallSet> o) { +checkUnnamed2443(core.List<api.CallSet> o) { unittest.expect(o, unittest.hasLength(2)); checkCallSet(o[0]); checkCallSet(o[1]); @@ -1980,7 +1980,7 @@ var o = new api.SearchCallSetsResponse(); buildCounterSearchCallSetsResponse++; if (buildCounterSearchCallSetsResponse < 3) { - o.callSets = buildUnnamed2973(); + o.callSets = buildUnnamed2443(); o.nextPageToken = "foo"; } buildCounterSearchCallSetsResponse--; @@ -1990,20 +1990,20 @@ checkSearchCallSetsResponse(api.SearchCallSetsResponse o) { buildCounterSearchCallSetsResponse++; if (buildCounterSearchCallSetsResponse < 3) { - checkUnnamed2973(o.callSets); + checkUnnamed2443(o.callSets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchCallSetsResponse--; } -buildUnnamed2974() { +buildUnnamed2444() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2974(core.List<core.String> o) { +checkUnnamed2444(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2014,7 +2014,7 @@ var o = new api.SearchReadGroupSetsRequest(); buildCounterSearchReadGroupSetsRequest++; if (buildCounterSearchReadGroupSetsRequest < 3) { - o.datasetIds = buildUnnamed2974(); + o.datasetIds = buildUnnamed2444(); o.name = "foo"; o.pageSize = 42; o.pageToken = "foo"; @@ -2026,7 +2026,7 @@ checkSearchReadGroupSetsRequest(api.SearchReadGroupSetsRequest o) { buildCounterSearchReadGroupSetsRequest++; if (buildCounterSearchReadGroupSetsRequest < 3) { - checkUnnamed2974(o.datasetIds); + checkUnnamed2444(o.datasetIds); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); @@ -2034,14 +2034,14 @@ buildCounterSearchReadGroupSetsRequest--; } -buildUnnamed2975() { +buildUnnamed2445() { var o = new core.List<api.ReadGroupSet>(); o.add(buildReadGroupSet()); o.add(buildReadGroupSet()); return o; } -checkUnnamed2975(core.List<api.ReadGroupSet> o) { +checkUnnamed2445(core.List<api.ReadGroupSet> o) { unittest.expect(o, unittest.hasLength(2)); checkReadGroupSet(o[0]); checkReadGroupSet(o[1]); @@ -2053,7 +2053,7 @@ buildCounterSearchReadGroupSetsResponse++; if (buildCounterSearchReadGroupSetsResponse < 3) { o.nextPageToken = "foo"; - o.readGroupSets = buildUnnamed2975(); + o.readGroupSets = buildUnnamed2445(); } buildCounterSearchReadGroupSetsResponse--; return o; @@ -2063,32 +2063,32 @@ buildCounterSearchReadGroupSetsResponse++; if (buildCounterSearchReadGroupSetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2975(o.readGroupSets); + checkUnnamed2445(o.readGroupSets); } buildCounterSearchReadGroupSetsResponse--; } -buildUnnamed2976() { +buildUnnamed2446() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2976(core.List<core.String> o) { +checkUnnamed2446(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2977() { +buildUnnamed2447() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2977(core.List<core.String> o) { +checkUnnamed2447(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2102,8 +2102,8 @@ o.end = "foo"; o.pageSize = 42; o.pageToken = "foo"; - o.readGroupIds = buildUnnamed2976(); - o.readGroupSetIds = buildUnnamed2977(); + o.readGroupIds = buildUnnamed2446(); + o.readGroupSetIds = buildUnnamed2447(); o.referenceName = "foo"; o.start = "foo"; } @@ -2117,22 +2117,22 @@ unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed2976(o.readGroupIds); - checkUnnamed2977(o.readGroupSetIds); + checkUnnamed2446(o.readGroupIds); + checkUnnamed2447(o.readGroupSetIds); unittest.expect(o.referenceName, unittest.equals('foo')); unittest.expect(o.start, unittest.equals('foo')); } buildCounterSearchReadsRequest--; } -buildUnnamed2978() { +buildUnnamed2448() { var o = new core.List<api.Read>(); o.add(buildRead()); o.add(buildRead()); return o; } -checkUnnamed2978(core.List<api.Read> o) { +checkUnnamed2448(core.List<api.Read> o) { unittest.expect(o, unittest.hasLength(2)); checkRead(o[0]); checkRead(o[1]); @@ -2143,7 +2143,7 @@ var o = new api.SearchReadsResponse(); buildCounterSearchReadsResponse++; if (buildCounterSearchReadsResponse < 3) { - o.alignments = buildUnnamed2978(); + o.alignments = buildUnnamed2448(); o.nextPageToken = "foo"; } buildCounterSearchReadsResponse--; @@ -2153,33 +2153,33 @@ checkSearchReadsResponse(api.SearchReadsResponse o) { buildCounterSearchReadsResponse++; if (buildCounterSearchReadsResponse < 3) { - checkUnnamed2978(o.alignments); + checkUnnamed2448(o.alignments); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchReadsResponse--; } -buildUnnamed2979() { +buildUnnamed2449() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2979(core.List<core.String> o) { +checkUnnamed2449(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2980() { +buildUnnamed2450() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2980(core.List<core.String> o) { +checkUnnamed2450(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2190,9 +2190,9 @@ var o = new api.SearchReferenceSetsRequest(); buildCounterSearchReferenceSetsRequest++; if (buildCounterSearchReferenceSetsRequest < 3) { - o.accessions = buildUnnamed2979(); + o.accessions = buildUnnamed2449(); o.assemblyId = "foo"; - o.md5checksums = buildUnnamed2980(); + o.md5checksums = buildUnnamed2450(); o.pageSize = 42; o.pageToken = "foo"; } @@ -2203,23 +2203,23 @@ checkSearchReferenceSetsRequest(api.SearchReferenceSetsRequest o) { buildCounterSearchReferenceSetsRequest++; if (buildCounterSearchReferenceSetsRequest < 3) { - checkUnnamed2979(o.accessions); + checkUnnamed2449(o.accessions); unittest.expect(o.assemblyId, unittest.equals('foo')); - checkUnnamed2980(o.md5checksums); + checkUnnamed2450(o.md5checksums); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); } buildCounterSearchReferenceSetsRequest--; } -buildUnnamed2981() { +buildUnnamed2451() { var o = new core.List<api.ReferenceSet>(); o.add(buildReferenceSet()); o.add(buildReferenceSet()); return o; } -checkUnnamed2981(core.List<api.ReferenceSet> o) { +checkUnnamed2451(core.List<api.ReferenceSet> o) { unittest.expect(o, unittest.hasLength(2)); checkReferenceSet(o[0]); checkReferenceSet(o[1]); @@ -2231,7 +2231,7 @@ buildCounterSearchReferenceSetsResponse++; if (buildCounterSearchReferenceSetsResponse < 3) { o.nextPageToken = "foo"; - o.referenceSets = buildUnnamed2981(); + o.referenceSets = buildUnnamed2451(); } buildCounterSearchReferenceSetsResponse--; return o; @@ -2241,32 +2241,32 @@ buildCounterSearchReferenceSetsResponse++; if (buildCounterSearchReferenceSetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2981(o.referenceSets); + checkUnnamed2451(o.referenceSets); } buildCounterSearchReferenceSetsResponse--; } -buildUnnamed2982() { +buildUnnamed2452() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2982(core.List<core.String> o) { +checkUnnamed2452(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2983() { +buildUnnamed2453() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2983(core.List<core.String> o) { +checkUnnamed2453(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2277,8 +2277,8 @@ var o = new api.SearchReferencesRequest(); buildCounterSearchReferencesRequest++; if (buildCounterSearchReferencesRequest < 3) { - o.accessions = buildUnnamed2982(); - o.md5checksums = buildUnnamed2983(); + o.accessions = buildUnnamed2452(); + o.md5checksums = buildUnnamed2453(); o.pageSize = 42; o.pageToken = "foo"; o.referenceSetId = "foo"; @@ -2290,8 +2290,8 @@ checkSearchReferencesRequest(api.SearchReferencesRequest o) { buildCounterSearchReferencesRequest++; if (buildCounterSearchReferencesRequest < 3) { - checkUnnamed2982(o.accessions); - checkUnnamed2983(o.md5checksums); + checkUnnamed2452(o.accessions); + checkUnnamed2453(o.md5checksums); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); unittest.expect(o.referenceSetId, unittest.equals('foo')); @@ -2299,14 +2299,14 @@ buildCounterSearchReferencesRequest--; } -buildUnnamed2984() { +buildUnnamed2454() { var o = new core.List<api.Reference>(); o.add(buildReference()); o.add(buildReference()); return o; } -checkUnnamed2984(core.List<api.Reference> o) { +checkUnnamed2454(core.List<api.Reference> o) { unittest.expect(o, unittest.hasLength(2)); checkReference(o[0]); checkReference(o[1]); @@ -2318,7 +2318,7 @@ buildCounterSearchReferencesResponse++; if (buildCounterSearchReferencesResponse < 3) { o.nextPageToken = "foo"; - o.references = buildUnnamed2984(); + o.references = buildUnnamed2454(); } buildCounterSearchReferencesResponse--; return o; @@ -2328,19 +2328,19 @@ buildCounterSearchReferencesResponse++; if (buildCounterSearchReferencesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2984(o.references); + checkUnnamed2454(o.references); } buildCounterSearchReferencesResponse--; } -buildUnnamed2985() { +buildUnnamed2455() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2985(core.List<core.String> o) { +checkUnnamed2455(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2351,7 +2351,7 @@ var o = new api.SearchVariantSetsRequest(); buildCounterSearchVariantSetsRequest++; if (buildCounterSearchVariantSetsRequest < 3) { - o.datasetIds = buildUnnamed2985(); + o.datasetIds = buildUnnamed2455(); o.pageSize = 42; o.pageToken = "foo"; } @@ -2362,21 +2362,21 @@ checkSearchVariantSetsRequest(api.SearchVariantSetsRequest o) { buildCounterSearchVariantSetsRequest++; if (buildCounterSearchVariantSetsRequest < 3) { - checkUnnamed2985(o.datasetIds); + checkUnnamed2455(o.datasetIds); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); } buildCounterSearchVariantSetsRequest--; } -buildUnnamed2986() { +buildUnnamed2456() { var o = new core.List<api.VariantSet>(); o.add(buildVariantSet()); o.add(buildVariantSet()); return o; } -checkUnnamed2986(core.List<api.VariantSet> o) { +checkUnnamed2456(core.List<api.VariantSet> o) { unittest.expect(o, unittest.hasLength(2)); checkVariantSet(o[0]); checkVariantSet(o[1]); @@ -2388,7 +2388,7 @@ buildCounterSearchVariantSetsResponse++; if (buildCounterSearchVariantSetsResponse < 3) { o.nextPageToken = "foo"; - o.variantSets = buildUnnamed2986(); + o.variantSets = buildUnnamed2456(); } buildCounterSearchVariantSetsResponse--; return o; @@ -2398,32 +2398,32 @@ buildCounterSearchVariantSetsResponse++; if (buildCounterSearchVariantSetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2986(o.variantSets); + checkUnnamed2456(o.variantSets); } buildCounterSearchVariantSetsResponse--; } -buildUnnamed2987() { +buildUnnamed2457() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2987(core.List<core.String> o) { +checkUnnamed2457(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2988() { +buildUnnamed2458() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2988(core.List<core.String> o) { +checkUnnamed2458(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2434,7 +2434,7 @@ var o = new api.SearchVariantsRequest(); buildCounterSearchVariantsRequest++; if (buildCounterSearchVariantsRequest < 3) { - o.callSetIds = buildUnnamed2987(); + o.callSetIds = buildUnnamed2457(); o.end = "foo"; o.maxCalls = 42; o.pageSize = 42; @@ -2442,7 +2442,7 @@ o.referenceName = "foo"; o.start = "foo"; o.variantName = "foo"; - o.variantSetIds = buildUnnamed2988(); + o.variantSetIds = buildUnnamed2458(); } buildCounterSearchVariantsRequest--; return o; @@ -2451,7 +2451,7 @@ checkSearchVariantsRequest(api.SearchVariantsRequest o) { buildCounterSearchVariantsRequest++; if (buildCounterSearchVariantsRequest < 3) { - checkUnnamed2987(o.callSetIds); + checkUnnamed2457(o.callSetIds); unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.maxCalls, unittest.equals(42)); unittest.expect(o.pageSize, unittest.equals(42)); @@ -2459,19 +2459,19 @@ unittest.expect(o.referenceName, unittest.equals('foo')); unittest.expect(o.start, unittest.equals('foo')); unittest.expect(o.variantName, unittest.equals('foo')); - checkUnnamed2988(o.variantSetIds); + checkUnnamed2458(o.variantSetIds); } buildCounterSearchVariantsRequest--; } -buildUnnamed2989() { +buildUnnamed2459() { var o = new core.List<api.Variant>(); o.add(buildVariant()); o.add(buildVariant()); return o; } -checkUnnamed2989(core.List<api.Variant> o) { +checkUnnamed2459(core.List<api.Variant> o) { unittest.expect(o, unittest.hasLength(2)); checkVariant(o[0]); checkVariant(o[1]); @@ -2483,7 +2483,7 @@ buildCounterSearchVariantsResponse++; if (buildCounterSearchVariantsResponse < 3) { o.nextPageToken = "foo"; - o.variants = buildUnnamed2989(); + o.variants = buildUnnamed2459(); } buildCounterSearchVariantsResponse--; return o; @@ -2493,7 +2493,7 @@ buildCounterSearchVariantsResponse++; if (buildCounterSearchVariantsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2989(o.variants); + checkUnnamed2459(o.variants); } buildCounterSearchVariantsResponse--; } @@ -2517,30 +2517,30 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed2990() { +buildUnnamed2460() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed2990(core.Map<core.String, core.Object> o) { +checkUnnamed2460(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted21 = (o["x"]) as core.Map; unittest.expect(casted21, unittest.hasLength(3)); unittest.expect(casted21["list"], unittest.equals([1, 2, 3])); unittest.expect(casted21["bool"], unittest.equals(true)); unittest.expect(casted21["string"], unittest.equals('foo')); var casted22 = (o["y"]) as core.Map; unittest.expect(casted22, unittest.hasLength(3)); unittest.expect(casted22["list"], unittest.equals([1, 2, 3])); unittest.expect(casted22["bool"], unittest.equals(true)); unittest.expect(casted22["string"], unittest.equals('foo')); } -buildUnnamed2991() { +buildUnnamed2461() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2990()); - o.add(buildUnnamed2990()); + o.add(buildUnnamed2460()); + o.add(buildUnnamed2460()); return o; } -checkUnnamed2991(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2461(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2990(o[0]); - checkUnnamed2990(o[1]); + checkUnnamed2460(o[0]); + checkUnnamed2460(o[1]); } core.int buildCounterStatus = 0; @@ -2549,7 +2549,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2991(); + o.details = buildUnnamed2461(); o.message = "foo"; } buildCounterStatus--; @@ -2560,20 +2560,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2991(o.details); + checkUnnamed2461(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed2992() { +buildUnnamed2462() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2992(core.List<core.String> o) { +checkUnnamed2462(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2584,7 +2584,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed2992(); + o.permissions = buildUnnamed2462(); } buildCounterTestIamPermissionsRequest--; return o; @@ -2593,19 +2593,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed2992(o.permissions); + checkUnnamed2462(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed2993() { +buildUnnamed2463() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2993(core.List<core.String> o) { +checkUnnamed2463(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2616,7 +2616,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed2993(); + o.permissions = buildUnnamed2463(); } buildCounterTestIamPermissionsResponse--; return o; @@ -2625,19 +2625,19 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed2993(o.permissions); + checkUnnamed2463(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed2994() { +buildUnnamed2464() { var o = new core.List<api.Exon>(); o.add(buildExon()); o.add(buildExon()); return o; } -checkUnnamed2994(core.List<api.Exon> o) { +checkUnnamed2464(core.List<api.Exon> o) { unittest.expect(o, unittest.hasLength(2)); checkExon(o[0]); checkExon(o[1]); @@ -2649,7 +2649,7 @@ buildCounterTranscript++; if (buildCounterTranscript < 3) { o.codingSequence = buildCodingSequence(); - o.exons = buildUnnamed2994(); + o.exons = buildUnnamed2464(); o.geneId = "foo"; } buildCounterTranscript--; @@ -2660,7 +2660,7 @@ buildCounterTranscript++; if (buildCounterTranscript < 3) { checkCodingSequence(o.codingSequence); - checkUnnamed2994(o.exons); + checkUnnamed2464(o.exons); unittest.expect(o.geneId, unittest.equals('foo')); } buildCounterTranscript--; @@ -2683,79 +2683,79 @@ buildCounterUndeleteDatasetRequest--; } -buildUnnamed2995() { +buildUnnamed2465() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2995(core.List<core.String> o) { +checkUnnamed2465(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2996() { +buildUnnamed2466() { var o = new core.List<api.VariantCall>(); o.add(buildVariantCall()); o.add(buildVariantCall()); return o; } -checkUnnamed2996(core.List<api.VariantCall> o) { +checkUnnamed2466(core.List<api.VariantCall> o) { unittest.expect(o, unittest.hasLength(2)); checkVariantCall(o[0]); checkVariantCall(o[1]); } -buildUnnamed2997() { +buildUnnamed2467() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2997(core.List<core.String> o) { +checkUnnamed2467(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2998() { +buildUnnamed2468() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2998(core.List<core.Object> o) { +checkUnnamed2468(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted23 = (o[0]) as core.Map; unittest.expect(casted23, unittest.hasLength(3)); unittest.expect(casted23["list"], unittest.equals([1, 2, 3])); unittest.expect(casted23["bool"], unittest.equals(true)); unittest.expect(casted23["string"], unittest.equals('foo')); var casted24 = (o[1]) as core.Map; unittest.expect(casted24, unittest.hasLength(3)); unittest.expect(casted24["list"], unittest.equals([1, 2, 3])); unittest.expect(casted24["bool"], unittest.equals(true)); unittest.expect(casted24["string"], unittest.equals('foo')); } -buildUnnamed2999() { +buildUnnamed2469() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2998(); - o["y"] = buildUnnamed2998(); + o["x"] = buildUnnamed2468(); + o["y"] = buildUnnamed2468(); return o; } -checkUnnamed2999(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2469(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2998(o["x"]); - checkUnnamed2998(o["y"]); + checkUnnamed2468(o["x"]); + checkUnnamed2468(o["y"]); } -buildUnnamed3000() { +buildUnnamed2470() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3000(core.List<core.String> o) { +checkUnnamed2470(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2766,14 +2766,14 @@ var o = new api.Variant(); buildCounterVariant++; if (buildCounterVariant < 3) { - o.alternateBases = buildUnnamed2995(); - o.calls = buildUnnamed2996(); + o.alternateBases = buildUnnamed2465(); + o.calls = buildUnnamed2466(); o.created = "foo"; o.end = "foo"; - o.filter = buildUnnamed2997(); + o.filter = buildUnnamed2467(); o.id = "foo"; - o.info = buildUnnamed2999(); - o.names = buildUnnamed3000(); + o.info = buildUnnamed2469(); + o.names = buildUnnamed2470(); o.quality = 42.0; o.referenceBases = "foo"; o.referenceName = "foo"; @@ -2787,14 +2787,14 @@ checkVariant(api.Variant o) { buildCounterVariant++; if (buildCounterVariant < 3) { - checkUnnamed2995(o.alternateBases); - checkUnnamed2996(o.calls); + checkUnnamed2465(o.alternateBases); + checkUnnamed2466(o.calls); unittest.expect(o.created, unittest.equals('foo')); unittest.expect(o.end, unittest.equals('foo')); - checkUnnamed2997(o.filter); + checkUnnamed2467(o.filter); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2999(o.info); - checkUnnamed3000(o.names); + checkUnnamed2469(o.info); + checkUnnamed2470(o.names); unittest.expect(o.quality, unittest.equals(42.0)); unittest.expect(o.referenceBases, unittest.equals('foo')); unittest.expect(o.referenceName, unittest.equals('foo')); @@ -2804,27 +2804,27 @@ buildCounterVariant--; } -buildUnnamed3001() { +buildUnnamed2471() { var o = new core.List<api.ClinicalCondition>(); o.add(buildClinicalCondition()); o.add(buildClinicalCondition()); return o; } -checkUnnamed3001(core.List<api.ClinicalCondition> o) { +checkUnnamed2471(core.List<api.ClinicalCondition> o) { unittest.expect(o, unittest.hasLength(2)); checkClinicalCondition(o[0]); checkClinicalCondition(o[1]); } -buildUnnamed3002() { +buildUnnamed2472() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3002(core.List<core.String> o) { +checkUnnamed2472(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2837,10 +2837,10 @@ if (buildCounterVariantAnnotation < 3) { o.alternateBases = "foo"; o.clinicalSignificance = "foo"; - o.conditions = buildUnnamed3001(); + o.conditions = buildUnnamed2471(); o.effect = "foo"; o.geneId = "foo"; - o.transcriptIds = buildUnnamed3002(); + o.transcriptIds = buildUnnamed2472(); o.type = "foo"; } buildCounterVariantAnnotation--; @@ -2852,65 +2852,65 @@ if (buildCounterVariantAnnotation < 3) { unittest.expect(o.alternateBases, unittest.equals('foo')); unittest.expect(o.clinicalSignificance, unittest.equals('foo')); - checkUnnamed3001(o.conditions); + checkUnnamed2471(o.conditions); unittest.expect(o.effect, unittest.equals('foo')); unittest.expect(o.geneId, unittest.equals('foo')); - checkUnnamed3002(o.transcriptIds); + checkUnnamed2472(o.transcriptIds); unittest.expect(o.type, unittest.equals('foo')); } buildCounterVariantAnnotation--; } -buildUnnamed3003() { +buildUnnamed2473() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3003(core.List<core.int> o) { +checkUnnamed2473(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed3004() { +buildUnnamed2474() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3004(core.List<core.double> o) { +checkUnnamed2474(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -buildUnnamed3005() { +buildUnnamed2475() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed3005(core.List<core.Object> o) { +checkUnnamed2475(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted25 = (o[0]) as core.Map; unittest.expect(casted25, unittest.hasLength(3)); unittest.expect(casted25["list"], unittest.equals([1, 2, 3])); unittest.expect(casted25["bool"], unittest.equals(true)); unittest.expect(casted25["string"], unittest.equals('foo')); var casted26 = (o[1]) as core.Map; unittest.expect(casted26, unittest.hasLength(3)); unittest.expect(casted26["list"], unittest.equals([1, 2, 3])); unittest.expect(casted26["bool"], unittest.equals(true)); unittest.expect(casted26["string"], unittest.equals('foo')); } -buildUnnamed3006() { +buildUnnamed2476() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed3005(); - o["y"] = buildUnnamed3005(); + o["x"] = buildUnnamed2475(); + o["y"] = buildUnnamed2475(); return o; } -checkUnnamed3006(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2476(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3005(o["x"]); - checkUnnamed3005(o["y"]); + checkUnnamed2475(o["x"]); + checkUnnamed2475(o["y"]); } core.int buildCounterVariantCall = 0; @@ -2920,9 +2920,9 @@ if (buildCounterVariantCall < 3) { o.callSetId = "foo"; o.callSetName = "foo"; - o.genotype = buildUnnamed3003(); - o.genotypeLikelihood = buildUnnamed3004(); - o.info = buildUnnamed3006(); + o.genotype = buildUnnamed2473(); + o.genotypeLikelihood = buildUnnamed2474(); + o.info = buildUnnamed2476(); o.phaseset = "foo"; } buildCounterVariantCall--; @@ -2934,35 +2934,35 @@ if (buildCounterVariantCall < 3) { unittest.expect(o.callSetId, unittest.equals('foo')); unittest.expect(o.callSetName, unittest.equals('foo')); - checkUnnamed3003(o.genotype); - checkUnnamed3004(o.genotypeLikelihood); - checkUnnamed3006(o.info); + checkUnnamed2473(o.genotype); + checkUnnamed2474(o.genotypeLikelihood); + checkUnnamed2476(o.info); unittest.expect(o.phaseset, unittest.equals('foo')); } buildCounterVariantCall--; } -buildUnnamed3007() { +buildUnnamed2477() { var o = new core.List<api.VariantSetMetadata>(); o.add(buildVariantSetMetadata()); o.add(buildVariantSetMetadata()); return o; } -checkUnnamed3007(core.List<api.VariantSetMetadata> o) { +checkUnnamed2477(core.List<api.VariantSetMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkVariantSetMetadata(o[0]); checkVariantSetMetadata(o[1]); } -buildUnnamed3008() { +buildUnnamed2478() { var o = new core.List<api.ReferenceBound>(); o.add(buildReferenceBound()); o.add(buildReferenceBound()); return o; } -checkUnnamed3008(core.List<api.ReferenceBound> o) { +checkUnnamed2478(core.List<api.ReferenceBound> o) { unittest.expect(o, unittest.hasLength(2)); checkReferenceBound(o[0]); checkReferenceBound(o[1]); @@ -2976,9 +2976,9 @@ o.datasetId = "foo"; o.description = "foo"; o.id = "foo"; - o.metadata = buildUnnamed3007(); + o.metadata = buildUnnamed2477(); o.name = "foo"; - o.referenceBounds = buildUnnamed3008(); + o.referenceBounds = buildUnnamed2478(); o.referenceSetId = "foo"; } buildCounterVariantSet--; @@ -2991,38 +2991,38 @@ unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3007(o.metadata); + checkUnnamed2477(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3008(o.referenceBounds); + checkUnnamed2478(o.referenceBounds); unittest.expect(o.referenceSetId, unittest.equals('foo')); } buildCounterVariantSet--; } -buildUnnamed3009() { +buildUnnamed2479() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed3009(core.List<core.Object> o) { +checkUnnamed2479(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted27 = (o[0]) as core.Map; unittest.expect(casted27, unittest.hasLength(3)); unittest.expect(casted27["list"], unittest.equals([1, 2, 3])); unittest.expect(casted27["bool"], unittest.equals(true)); unittest.expect(casted27["string"], unittest.equals('foo')); var casted28 = (o[1]) as core.Map; unittest.expect(casted28, unittest.hasLength(3)); unittest.expect(casted28["list"], unittest.equals([1, 2, 3])); unittest.expect(casted28["bool"], unittest.equals(true)); unittest.expect(casted28["string"], unittest.equals('foo')); } -buildUnnamed3010() { +buildUnnamed2480() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed3009(); - o["y"] = buildUnnamed3009(); + o["x"] = buildUnnamed2479(); + o["y"] = buildUnnamed2479(); return o; } -checkUnnamed3010(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2480(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3009(o["x"]); - checkUnnamed3009(o["y"]); + checkUnnamed2479(o["x"]); + checkUnnamed2479(o["y"]); } core.int buildCounterVariantSetMetadata = 0; @@ -3032,7 +3032,7 @@ if (buildCounterVariantSetMetadata < 3) { o.description = "foo"; o.id = "foo"; - o.info = buildUnnamed3010(); + o.info = buildUnnamed2480(); o.key = "foo"; o.number = "foo"; o.type = "foo"; @@ -3047,7 +3047,7 @@ if (buildCounterVariantSetMetadata < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3010(o.info); + checkUnnamed2480(o.info); unittest.expect(o.key, unittest.equals('foo')); unittest.expect(o.number, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -3730,7 +3730,7 @@ var mock = new HttpServerMock(); api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; var arg_request = buildBatchCreateAnnotationsRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.BatchCreateAnnotationsRequest.fromJson(json); checkBatchCreateAnnotationsRequest(obj); @@ -3767,7 +3767,7 @@ var resp = convert.JSON.encode(buildBatchCreateAnnotationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.batchCreate(arg_request).then(unittest.expectAsync(((api.BatchCreateAnnotationsResponse response) { + res.batchCreate(arg_request).then(unittest.expectAsync1(((api.BatchCreateAnnotationsResponse response) { checkBatchCreateAnnotationsResponse(response); }))); }); @@ -3777,7 +3777,7 @@ var mock = new HttpServerMock(); api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; var arg_request = buildAnnotation(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Annotation.fromJson(json); checkAnnotation(obj); @@ -3814,7 +3814,7 @@ var resp = convert.JSON.encode(buildAnnotation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request).then(unittest.expectAsync(((api.Annotation response) { + res.create(arg_request).then(unittest.expectAsync1(((api.Annotation response) { checkAnnotation(response); }))); }); @@ -3824,7 +3824,7 @@ var mock = new HttpServerMock(); api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; var arg_annotationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3861,7 +3861,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_annotationId).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_annotationId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -3871,7 +3871,7 @@ var mock = new HttpServerMock(); api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; var arg_annotationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3908,7 +3908,7 @@ var resp = convert.JSON.encode(buildAnnotation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_annotationId).then(unittest.expectAsync(((api.Annotation response) { + res.get(arg_annotationId).then(unittest.expectAsync1(((api.Annotation response) { checkAnnotation(response); }))); }); @@ -3918,7 +3918,7 @@ var mock = new HttpServerMock(); api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; var arg_request = buildSearchAnnotationsRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SearchAnnotationsRequest.fromJson(json); checkSearchAnnotationsRequest(obj); @@ -3955,7 +3955,7 @@ var resp = convert.JSON.encode(buildSearchAnnotationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.search(arg_request).then(unittest.expectAsync(((api.SearchAnnotationsResponse response) { + res.search(arg_request).then(unittest.expectAsync1(((api.SearchAnnotationsResponse response) { checkSearchAnnotationsResponse(response); }))); }); @@ -3967,7 +3967,7 @@ var arg_request = buildAnnotation(); var arg_annotationId = "foo"; var arg_updateMask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Annotation.fromJson(json); checkAnnotation(obj); @@ -4008,7 +4008,7 @@ var resp = convert.JSON.encode(buildAnnotation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_annotationId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.Annotation response) { + res.update(arg_request, arg_annotationId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Annotation response) { checkAnnotation(response); }))); }); @@ -4022,7 +4022,7 @@ var mock = new HttpServerMock(); api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationsets; var arg_request = buildAnnotationSet(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AnnotationSet.fromJson(json); checkAnnotationSet(obj); @@ -4059,7 +4059,7 @@ var resp = convert.JSON.encode(buildAnnotationSet()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request).then(unittest.expectAsync(((api.AnnotationSet response) { + res.create(arg_request).then(unittest.expectAsync1(((api.AnnotationSet response) { checkAnnotationSet(response); }))); }); @@ -4069,7 +4069,7 @@ var mock = new HttpServerMock(); api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationsets; var arg_annotationSetId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4106,7 +4106,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_annotationSetId).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_annotationSetId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -4116,7 +4116,7 @@ var mock = new HttpServerMock(); api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationsets; var arg_annotationSetId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4153,7 +4153,7 @@ var resp = convert.JSON.encode(buildAnnotationSet()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_annotationSetId).then(unittest.expectAsync(((api.AnnotationSet response) { + res.get(arg_annotationSetId).then(unittest.expectAsync1(((api.AnnotationSet response) { checkAnnotationSet(response); }))); }); @@ -4163,7 +4163,7 @@ var mock = new HttpServerMock(); api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationsets; var arg_request = buildSearchAnnotationSetsRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SearchAnnotationSetsRequest.fromJson(json); checkSearchAnnotationSetsRequest(obj); @@ -4200,7 +4200,7 @@ var resp = convert.JSON.encode(buildSearchAnnotationSetsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.search(arg_request).then(unittest.expectAsync(((api.SearchAnnotationSetsResponse response) { + res.search(arg_request).then(unittest.expectAsync1(((api.SearchAnnotationSetsResponse response) { checkSearchAnnotationSetsResponse(response); }))); }); @@ -4212,7 +4212,7 @@ var arg_request = buildAnnotationSet(); var arg_annotationSetId = "foo"; var arg_updateMask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AnnotationSet.fromJson(json); checkAnnotationSet(obj); @@ -4253,7 +4253,7 @@ var resp = convert.JSON.encode(buildAnnotationSet()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_annotationSetId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.AnnotationSet response) { + res.update(arg_request, arg_annotationSetId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.AnnotationSet response) { checkAnnotationSet(response); }))); }); @@ -4267,7 +4267,7 @@ var mock = new HttpServerMock(); api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; var arg_request = buildCallSet(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CallSet.fromJson(json); checkCallSet(obj); @@ -4304,7 +4304,7 @@ var resp = convert.JSON.encode(buildCallSet()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request).then(unittest.expectAsync(((api.CallSet response) { + res.create(arg_request).then(unittest.expectAsync1(((api.CallSet response) { checkCallSet(response); }))); }); @@ -4314,7 +4314,7 @@ var mock = new HttpServerMock(); api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; var arg_callSetId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4351,7 +4351,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_callSetId).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_callSetId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -4361,7 +4361,7 @@ var mock = new HttpServerMock(); api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; var arg_callSetId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4398,7 +4398,7 @@ var resp = convert.JSON.encode(buildCallSet()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_callSetId).then(unittest.expectAsync(((api.CallSet response) { + res.get(arg_callSetId).then(unittest.expectAsync1(((api.CallSet response) { checkCallSet(response); }))); }); @@ -4410,7 +4410,7 @@ var arg_request = buildCallSet(); var arg_callSetId = "foo"; var arg_updateMask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CallSet.fromJson(json); checkCallSet(obj); @@ -4451,7 +4451,7 @@ var resp = convert.JSON.encode(buildCallSet()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_callSetId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.CallSet response) { + res.patch(arg_request, arg_callSetId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.CallSet response) { checkCallSet(response); }))); }); @@ -4461,7 +4461,7 @@ var mock = new HttpServerMock(); api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; var arg_request = buildSearchCallSetsRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SearchCallSetsRequest.fromJson(json); checkSearchCallSetsRequest(obj); @@ -4498,7 +4498,7 @@ var resp = convert.JSON.encode(buildSearchCallSetsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.search(arg_request).then(unittest.expectAsync(((api.SearchCallSetsResponse response) { + res.search(arg_request).then(unittest.expectAsync1(((api.SearchCallSetsResponse response) { checkSearchCallSetsResponse(response); }))); }); @@ -4512,7 +4512,7 @@ var mock = new HttpServerMock(); api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; var arg_request = buildDataset(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Dataset.fromJson(json); checkDataset(obj); @@ -4549,7 +4549,7 @@ var resp = convert.JSON.encode(buildDataset()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request).then(unittest.expectAsync(((api.Dataset response) { + res.create(arg_request).then(unittest.expectAsync1(((api.Dataset response) { checkDataset(response); }))); }); @@ -4559,7 +4559,7 @@ var mock = new HttpServerMock(); api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; var arg_datasetId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4596,7 +4596,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_datasetId).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_datasetId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -4606,7 +4606,7 @@ var mock = new HttpServerMock(); api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; var arg_datasetId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4643,7 +4643,7 @@ var resp = convert.JSON.encode(buildDataset()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_datasetId).then(unittest.expectAsync(((api.Dataset response) { + res.get(arg_datasetId).then(unittest.expectAsync1(((api.Dataset response) { checkDataset(response); }))); }); @@ -4654,7 +4654,7 @@ api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; var arg_request = buildGetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GetIamPolicyRequest.fromJson(json); checkGetIamPolicyRequest(obj); @@ -4692,7 +4692,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -4704,7 +4704,7 @@ var arg_pageSize = 42; var arg_projectId = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4741,7 +4741,7 @@ var resp = convert.JSON.encode(buildListDatasetsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(pageSize: arg_pageSize, projectId: arg_projectId, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListDatasetsResponse response) { + res.list(pageSize: arg_pageSize, projectId: arg_projectId, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListDatasetsResponse response) { checkListDatasetsResponse(response); }))); }); @@ -4753,7 +4753,7 @@ var arg_request = buildDataset(); var arg_datasetId = "foo"; var arg_updateMask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Dataset.fromJson(json); checkDataset(obj); @@ -4794,7 +4794,7 @@ var resp = convert.JSON.encode(buildDataset()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_datasetId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.Dataset response) { + res.patch(arg_request, arg_datasetId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Dataset response) { checkDataset(response); }))); }); @@ -4805,7 +4805,7 @@ api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; var arg_request = buildSetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetIamPolicyRequest.fromJson(json); checkSetIamPolicyRequest(obj); @@ -4843,7 +4843,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -4854,7 +4854,7 @@ api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; var arg_request = buildTestIamPermissionsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TestIamPermissionsRequest.fromJson(json); checkTestIamPermissionsRequest(obj); @@ -4892,7 +4892,7 @@ var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { checkTestIamPermissionsResponse(response); }))); }); @@ -4903,7 +4903,7 @@ api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; var arg_request = buildUndeleteDatasetRequest(); var arg_datasetId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UndeleteDatasetRequest.fromJson(json); checkUndeleteDatasetRequest(obj); @@ -4947,7 +4947,7 @@ var resp = convert.JSON.encode(buildDataset()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.undelete(arg_request, arg_datasetId).then(unittest.expectAsync(((api.Dataset response) { + res.undelete(arg_request, arg_datasetId).then(unittest.expectAsync1(((api.Dataset response) { checkDataset(response); }))); }); @@ -4962,7 +4962,7 @@ api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; var arg_request = buildCancelOperationRequest(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CancelOperationRequest.fromJson(json); checkCancelOperationRequest(obj); @@ -5000,7 +5000,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.cancel(arg_request, arg_name).then(unittest.expectAsync(((api.Empty response) { + res.cancel(arg_request, arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -5010,7 +5010,7 @@ var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5045,7 +5045,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -5058,7 +5058,7 @@ var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5096,7 +5096,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListOperationsResponse response) { + res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); }); @@ -5110,7 +5110,7 @@ var mock = new HttpServerMock(); api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets; var arg_readGroupSetId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5147,7 +5147,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_readGroupSetId).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_readGroupSetId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -5158,7 +5158,7 @@ api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets; var arg_request = buildExportReadGroupSetRequest(); var arg_readGroupSetId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ExportReadGroupSetRequest.fromJson(json); checkExportReadGroupSetRequest(obj); @@ -5202,7 +5202,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.export(arg_request, arg_readGroupSetId).then(unittest.expectAsync(((api.Operation response) { + res.export(arg_request, arg_readGroupSetId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -5212,7 +5212,7 @@ var mock = new HttpServerMock(); api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets; var arg_readGroupSetId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5249,7 +5249,7 @@ var resp = convert.JSON.encode(buildReadGroupSet()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_readGroupSetId).then(unittest.expectAsync(((api.ReadGroupSet response) { + res.get(arg_readGroupSetId).then(unittest.expectAsync1(((api.ReadGroupSet response) { checkReadGroupSet(response); }))); }); @@ -5259,7 +5259,7 @@ var mock = new HttpServerMock(); api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets; var arg_request = buildImportReadGroupSetsRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ImportReadGroupSetsRequest.fromJson(json); checkImportReadGroupSetsRequest(obj); @@ -5296,7 +5296,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.import(arg_request).then(unittest.expectAsync(((api.Operation response) { + res.import(arg_request).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -5308,7 +5308,7 @@ var arg_request = buildReadGroupSet(); var arg_readGroupSetId = "foo"; var arg_updateMask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ReadGroupSet.fromJson(json); checkReadGroupSet(obj); @@ -5349,7 +5349,7 @@ var resp = convert.JSON.encode(buildReadGroupSet()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_readGroupSetId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.ReadGroupSet response) { + res.patch(arg_request, arg_readGroupSetId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.ReadGroupSet response) { checkReadGroupSet(response); }))); }); @@ -5359,7 +5359,7 @@ var mock = new HttpServerMock(); api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets; var arg_request = buildSearchReadGroupSetsRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SearchReadGroupSetsRequest.fromJson(json); checkSearchReadGroupSetsRequest(obj); @@ -5396,7 +5396,7 @@ var resp = convert.JSON.encode(buildSearchReadGroupSetsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.search(arg_request).then(unittest.expectAsync(((api.SearchReadGroupSetsResponse response) { + res.search(arg_request).then(unittest.expectAsync1(((api.SearchReadGroupSetsResponse response) { checkSearchReadGroupSetsResponse(response); }))); }); @@ -5410,13 +5410,13 @@ var mock = new HttpServerMock(); api.ReadgroupsetsCoveragebucketsResourceApi res = new api.GenomicsApi(mock).readgroupsets.coveragebuckets; var arg_readGroupSetId = "foo"; + var arg_end = "foo"; + var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_start = "foo"; var arg_targetBucketWidth = "foo"; var arg_referenceName = "foo"; - var arg_end = "foo"; - var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5449,12 +5449,12 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["end"].first, unittest.equals(arg_end)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["start"].first, unittest.equals(arg_start)); unittest.expect(queryMap["targetBucketWidth"].first, unittest.equals(arg_targetBucketWidth)); unittest.expect(queryMap["referenceName"].first, unittest.equals(arg_referenceName)); - unittest.expect(queryMap["end"].first, unittest.equals(arg_end)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -5463,7 +5463,7 @@ var resp = convert.JSON.encode(buildListCoverageBucketsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_readGroupSetId, pageSize: arg_pageSize, start: arg_start, targetBucketWidth: arg_targetBucketWidth, referenceName: arg_referenceName, end: arg_end, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListCoverageBucketsResponse response) { + res.list(arg_readGroupSetId, end: arg_end, pageToken: arg_pageToken, pageSize: arg_pageSize, start: arg_start, targetBucketWidth: arg_targetBucketWidth, referenceName: arg_referenceName).then(unittest.expectAsync1(((api.ListCoverageBucketsResponse response) { checkListCoverageBucketsResponse(response); }))); }); @@ -5477,7 +5477,7 @@ var mock = new HttpServerMock(); api.ReadsResourceApi res = new api.GenomicsApi(mock).reads; var arg_request = buildSearchReadsRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SearchReadsRequest.fromJson(json); checkSearchReadsRequest(obj); @@ -5514,7 +5514,7 @@ var resp = convert.JSON.encode(buildSearchReadsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.search(arg_request).then(unittest.expectAsync(((api.SearchReadsResponse response) { + res.search(arg_request).then(unittest.expectAsync1(((api.SearchReadsResponse response) { checkSearchReadsResponse(response); }))); }); @@ -5528,7 +5528,7 @@ var mock = new HttpServerMock(); api.ReferencesResourceApi res = new api.GenomicsApi(mock).references; var arg_referenceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5565,7 +5565,7 @@ var resp = convert.JSON.encode(buildReference()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_referenceId).then(unittest.expectAsync(((api.Reference response) { + res.get(arg_referenceId).then(unittest.expectAsync1(((api.Reference response) { checkReference(response); }))); }); @@ -5575,7 +5575,7 @@ var mock = new HttpServerMock(); api.ReferencesResourceApi res = new api.GenomicsApi(mock).references; var arg_request = buildSearchReferencesRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SearchReferencesRequest.fromJson(json); checkSearchReferencesRequest(obj); @@ -5612,7 +5612,7 @@ var resp = convert.JSON.encode(buildSearchReferencesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.search(arg_request).then(unittest.expectAsync(((api.SearchReferencesResponse response) { + res.search(arg_request).then(unittest.expectAsync1(((api.SearchReferencesResponse response) { checkSearchReferencesResponse(response); }))); }); @@ -5630,7 +5630,7 @@ var arg_start = "foo"; var arg_end = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5675,7 +5675,7 @@ var resp = convert.JSON.encode(buildListBasesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_referenceId, pageSize: arg_pageSize, start: arg_start, end: arg_end, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListBasesResponse response) { + res.list(arg_referenceId, pageSize: arg_pageSize, start: arg_start, end: arg_end, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListBasesResponse response) { checkListBasesResponse(response); }))); }); @@ -5689,7 +5689,7 @@ var mock = new HttpServerMock(); api.ReferencesetsResourceApi res = new api.GenomicsApi(mock).referencesets; var arg_referenceSetId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5726,7 +5726,7 @@ var resp = convert.JSON.encode(buildReferenceSet()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_referenceSetId).then(unittest.expectAsync(((api.ReferenceSet response) { + res.get(arg_referenceSetId).then(unittest.expectAsync1(((api.ReferenceSet response) { checkReferenceSet(response); }))); }); @@ -5736,7 +5736,7 @@ var mock = new HttpServerMock(); api.ReferencesetsResourceApi res = new api.GenomicsApi(mock).referencesets; var arg_request = buildSearchReferenceSetsRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SearchReferenceSetsRequest.fromJson(json); checkSearchReferenceSetsRequest(obj); @@ -5773,7 +5773,7 @@ var resp = convert.JSON.encode(buildSearchReferenceSetsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.search(arg_request).then(unittest.expectAsync(((api.SearchReferenceSetsResponse response) { + res.search(arg_request).then(unittest.expectAsync1(((api.SearchReferenceSetsResponse response) { checkSearchReferenceSetsResponse(response); }))); }); @@ -5787,7 +5787,7 @@ var mock = new HttpServerMock(); api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; var arg_request = buildVariant(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Variant.fromJson(json); checkVariant(obj); @@ -5824,7 +5824,7 @@ var resp = convert.JSON.encode(buildVariant()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request).then(unittest.expectAsync(((api.Variant response) { + res.create(arg_request).then(unittest.expectAsync1(((api.Variant response) { checkVariant(response); }))); }); @@ -5834,7 +5834,7 @@ var mock = new HttpServerMock(); api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; var arg_variantId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5871,7 +5871,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_variantId).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_variantId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -5881,7 +5881,7 @@ var mock = new HttpServerMock(); api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; var arg_variantId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5918,7 +5918,7 @@ var resp = convert.JSON.encode(buildVariant()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_variantId).then(unittest.expectAsync(((api.Variant response) { + res.get(arg_variantId).then(unittest.expectAsync1(((api.Variant response) { checkVariant(response); }))); }); @@ -5928,7 +5928,7 @@ var mock = new HttpServerMock(); api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; var arg_request = buildImportVariantsRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ImportVariantsRequest.fromJson(json); checkImportVariantsRequest(obj); @@ -5965,7 +5965,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.import(arg_request).then(unittest.expectAsync(((api.Operation response) { + res.import(arg_request).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -5975,7 +5975,7 @@ var mock = new HttpServerMock(); api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; var arg_request = buildMergeVariantsRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.MergeVariantsRequest.fromJson(json); checkMergeVariantsRequest(obj); @@ -6012,7 +6012,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.merge(arg_request).then(unittest.expectAsync(((api.Empty response) { + res.merge(arg_request).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -6024,7 +6024,7 @@ var arg_request = buildVariant(); var arg_variantId = "foo"; var arg_updateMask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Variant.fromJson(json); checkVariant(obj); @@ -6065,7 +6065,7 @@ var resp = convert.JSON.encode(buildVariant()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_variantId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.Variant response) { + res.patch(arg_request, arg_variantId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Variant response) { checkVariant(response); }))); }); @@ -6075,7 +6075,7 @@ var mock = new HttpServerMock(); api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; var arg_request = buildSearchVariantsRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SearchVariantsRequest.fromJson(json); checkSearchVariantsRequest(obj); @@ -6112,7 +6112,7 @@ var resp = convert.JSON.encode(buildSearchVariantsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.search(arg_request).then(unittest.expectAsync(((api.SearchVariantsResponse response) { + res.search(arg_request).then(unittest.expectAsync1(((api.SearchVariantsResponse response) { checkSearchVariantsResponse(response); }))); }); @@ -6126,7 +6126,7 @@ var mock = new HttpServerMock(); api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; var arg_request = buildVariantSet(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.VariantSet.fromJson(json); checkVariantSet(obj); @@ -6163,7 +6163,7 @@ var resp = convert.JSON.encode(buildVariantSet()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request).then(unittest.expectAsync(((api.VariantSet response) { + res.create(arg_request).then(unittest.expectAsync1(((api.VariantSet response) { checkVariantSet(response); }))); }); @@ -6173,7 +6173,7 @@ var mock = new HttpServerMock(); api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; var arg_variantSetId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6210,7 +6210,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_variantSetId).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_variantSetId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -6221,7 +6221,7 @@ api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; var arg_request = buildExportVariantSetRequest(); var arg_variantSetId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ExportVariantSetRequest.fromJson(json); checkExportVariantSetRequest(obj); @@ -6265,7 +6265,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.export(arg_request, arg_variantSetId).then(unittest.expectAsync(((api.Operation response) { + res.export(arg_request, arg_variantSetId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -6275,7 +6275,7 @@ var mock = new HttpServerMock(); api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; var arg_variantSetId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6312,7 +6312,7 @@ var resp = convert.JSON.encode(buildVariantSet()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_variantSetId).then(unittest.expectAsync(((api.VariantSet response) { + res.get(arg_variantSetId).then(unittest.expectAsync1(((api.VariantSet response) { checkVariantSet(response); }))); }); @@ -6324,7 +6324,7 @@ var arg_request = buildVariantSet(); var arg_variantSetId = "foo"; var arg_updateMask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.VariantSet.fromJson(json); checkVariantSet(obj); @@ -6365,7 +6365,7 @@ var resp = convert.JSON.encode(buildVariantSet()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_variantSetId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.VariantSet response) { + res.patch(arg_request, arg_variantSetId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.VariantSet response) { checkVariantSet(response); }))); }); @@ -6375,7 +6375,7 @@ var mock = new HttpServerMock(); api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; var arg_request = buildSearchVariantSetsRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SearchVariantSetsRequest.fromJson(json); checkSearchVariantSetsRequest(obj); @@ -6412,7 +6412,7 @@ var resp = convert.JSON.encode(buildSearchVariantSetsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.search(arg_request).then(unittest.expectAsync(((api.SearchVariantSetsResponse response) { + res.search(arg_request).then(unittest.expectAsync1(((api.SearchVariantSetsResponse response) { checkSearchVariantSetsResponse(response); }))); });
diff --git a/generated/googleapis/test/groupsmigration/v1_test.dart b/generated/googleapis/test/groupsmigration/v1_test.dart index 04ab387..e26d3f0 100644 --- a/generated/googleapis/test/groupsmigration/v1_test.dart +++ b/generated/googleapis/test/groupsmigration/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/groupsmigration/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -91,7 +91,7 @@ var mock = new HttpServerMock(); api.ArchiveResourceApi res = new api.GroupsmigrationApi(mock).archive; var arg_groupId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -123,7 +123,7 @@ var resp = convert.JSON.encode(buildGroups()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_groupId).then(unittest.expectAsync(((api.Groups response) { + res.insert(arg_groupId).then(unittest.expectAsync1(((api.Groups response) { checkGroups(response); }))); });
diff --git a/generated/googleapis/test/groupssettings/v1_test.dart b/generated/googleapis/test/groupssettings/v1_test.dart index f847906..299cb55 100644 --- a/generated/googleapis/test/groupssettings/v1_test.dart +++ b/generated/googleapis/test/groupssettings/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/groupssettings/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -147,7 +147,7 @@ var mock = new HttpServerMock(); api.GroupsResourceApi res = new api.GroupssettingsApi(mock).groups; var arg_groupUniqueId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -179,7 +179,7 @@ var resp = convert.JSON.encode(buildGroups()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_groupUniqueId).then(unittest.expectAsync(((api.Groups response) { + res.get(arg_groupUniqueId).then(unittest.expectAsync1(((api.Groups response) { checkGroups(response); }))); }); @@ -190,7 +190,7 @@ api.GroupsResourceApi res = new api.GroupssettingsApi(mock).groups; var arg_request = buildGroups(); var arg_groupUniqueId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Groups.fromJson(json); checkGroups(obj); @@ -225,7 +225,7 @@ var resp = convert.JSON.encode(buildGroups()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_groupUniqueId).then(unittest.expectAsync(((api.Groups response) { + res.patch(arg_request, arg_groupUniqueId).then(unittest.expectAsync1(((api.Groups response) { checkGroups(response); }))); }); @@ -236,7 +236,7 @@ api.GroupsResourceApi res = new api.GroupssettingsApi(mock).groups; var arg_request = buildGroups(); var arg_groupUniqueId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Groups.fromJson(json); checkGroups(obj); @@ -271,7 +271,7 @@ var resp = convert.JSON.encode(buildGroups()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_groupUniqueId).then(unittest.expectAsync(((api.Groups response) { + res.update(arg_request, arg_groupUniqueId).then(unittest.expectAsync1(((api.Groups response) { checkGroups(response); }))); });
diff --git a/generated/googleapis/test/identitytoolkit/v3_test.dart b/generated/googleapis/test/identitytoolkit/v3_test.dart index de581b5..d69309d 100644 --- a/generated/googleapis/test/identitytoolkit/v3_test.dart +++ b/generated/googleapis/test/identitytoolkit/v3_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/identitytoolkit/v3.dart' as api; @@ -46,19 +46,19 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2274() { +buildUnnamed2297() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2274(core.List<core.String> o) { +checkUnnamed2297(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -69,7 +69,7 @@ var o = new api.CreateAuthUriResponse(); buildCounterCreateAuthUriResponse++; if (buildCounterCreateAuthUriResponse < 3) { - o.allProviders = buildUnnamed2274(); + o.allProviders = buildUnnamed2297(); o.authUri = "foo"; o.captchaRequired = true; o.forExistingProvider = true; @@ -85,7 +85,7 @@ checkCreateAuthUriResponse(api.CreateAuthUriResponse o) { buildCounterCreateAuthUriResponse++; if (buildCounterCreateAuthUriResponse < 3) { - checkUnnamed2274(o.allProviders); + checkUnnamed2297(o.allProviders); unittest.expect(o.authUri, unittest.equals('foo')); unittest.expect(o.captchaRequired, unittest.isTrue); unittest.expect(o.forExistingProvider, unittest.isTrue); @@ -116,14 +116,14 @@ buildCounterDeleteAccountResponse--; } -buildUnnamed2275() { +buildUnnamed2298() { var o = new core.List<api.UserInfo>(); o.add(buildUserInfo()); o.add(buildUserInfo()); return o; } -checkUnnamed2275(core.List<api.UserInfo> o) { +checkUnnamed2298(core.List<api.UserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfo(o[0]); checkUserInfo(o[1]); @@ -136,7 +136,7 @@ if (buildCounterDownloadAccountResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.users = buildUnnamed2275(); + o.users = buildUnnamed2298(); } buildCounterDownloadAccountResponse--; return o; @@ -147,7 +147,7 @@ if (buildCounterDownloadAccountResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2275(o.users); + checkUnnamed2298(o.users); } buildCounterDownloadAccountResponse--; } @@ -181,14 +181,14 @@ buildCounterEmailTemplate--; } -buildUnnamed2276() { +buildUnnamed2299() { var o = new core.List<api.UserInfo>(); o.add(buildUserInfo()); o.add(buildUserInfo()); return o; } -checkUnnamed2276(core.List<api.UserInfo> o) { +checkUnnamed2299(core.List<api.UserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfo(o[0]); checkUserInfo(o[1]); @@ -200,7 +200,7 @@ buildCounterGetAccountInfoResponse++; if (buildCounterGetAccountInfoResponse < 3) { o.kind = "foo"; - o.users = buildUnnamed2276(); + o.users = buildUnnamed2299(); } buildCounterGetAccountInfoResponse--; return o; @@ -210,7 +210,7 @@ buildCounterGetAccountInfoResponse++; if (buildCounterGetAccountInfoResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2276(o.users); + checkUnnamed2299(o.users); } buildCounterGetAccountInfoResponse--; } @@ -261,14 +261,14 @@ buildCounterGetRecaptchaParamResponse--; } -buildUnnamed2277() { +buildUnnamed2300() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2277(core.Map<core.String, core.String> o) { +checkUnnamed2300(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -284,7 +284,7 @@ o.clientId = "foo"; o.context = "foo"; o.continueUri = "foo"; - o.customParameter = buildUnnamed2277(); + o.customParameter = buildUnnamed2300(); o.hostedDomain = "foo"; o.identifier = "foo"; o.oauthConsumerKey = "foo"; @@ -306,7 +306,7 @@ unittest.expect(o.clientId, unittest.equals('foo')); unittest.expect(o.context, unittest.equals('foo')); unittest.expect(o.continueUri, unittest.equals('foo')); - checkUnnamed2277(o.customParameter); + checkUnnamed2300(o.customParameter); unittest.expect(o.hostedDomain, unittest.equals('foo')); unittest.expect(o.identifier, unittest.equals('foo')); unittest.expect(o.oauthConsumerKey, unittest.equals('foo')); @@ -367,27 +367,27 @@ buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest--; } -buildUnnamed2278() { +buildUnnamed2301() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2278(core.List<core.String> o) { +checkUnnamed2301(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2279() { +buildUnnamed2302() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2279(core.List<core.String> o) { +checkUnnamed2302(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -399,9 +399,9 @@ buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { o.delegatedProjectNumber = "foo"; - o.email = buildUnnamed2278(); + o.email = buildUnnamed2301(); o.idToken = "foo"; - o.localId = buildUnnamed2279(); + o.localId = buildUnnamed2302(); } buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; return o; @@ -411,34 +411,34 @@ buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); - checkUnnamed2278(o.email); + checkUnnamed2301(o.email); unittest.expect(o.idToken, unittest.equals('foo')); - checkUnnamed2279(o.localId); + checkUnnamed2302(o.localId); } buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; } -buildUnnamed2280() { +buildUnnamed2303() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2280(core.List<core.String> o) { +checkUnnamed2303(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2281() { +buildUnnamed2304() { var o = new core.List<api.IdpConfig>(); o.add(buildIdpConfig()); o.add(buildIdpConfig()); return o; } -checkUnnamed2281(core.List<api.IdpConfig> o) { +checkUnnamed2304(core.List<api.IdpConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkIdpConfig(o[0]); checkIdpConfig(o[1]); @@ -451,11 +451,11 @@ if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { o.allowPasswordUser = true; o.apiKey = "foo"; - o.authorizedDomains = buildUnnamed2280(); + o.authorizedDomains = buildUnnamed2303(); o.changeEmailTemplate = buildEmailTemplate(); o.dynamicLinksDomain = "foo"; o.enableAnonymousUser = true; - o.idpConfig = buildUnnamed2281(); + o.idpConfig = buildUnnamed2304(); o.legacyResetPasswordTemplate = buildEmailTemplate(); o.projectId = "foo"; o.resetPasswordTemplate = buildEmailTemplate(); @@ -471,11 +471,11 @@ if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { unittest.expect(o.allowPasswordUser, unittest.isTrue); unittest.expect(o.apiKey, unittest.equals('foo')); - checkUnnamed2280(o.authorizedDomains); + checkUnnamed2303(o.authorizedDomains); checkEmailTemplate(o.changeEmailTemplate); unittest.expect(o.dynamicLinksDomain, unittest.equals('foo')); unittest.expect(o.enableAnonymousUser, unittest.isTrue); - checkUnnamed2281(o.idpConfig); + checkUnnamed2304(o.idpConfig); checkEmailTemplate(o.legacyResetPasswordTemplate); unittest.expect(o.projectId, unittest.equals('foo')); checkEmailTemplate(o.resetPasswordTemplate); @@ -523,40 +523,40 @@ buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest--; } -buildUnnamed2282() { +buildUnnamed2305() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2282(core.List<core.String> o) { +checkUnnamed2305(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2283() { +buildUnnamed2306() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2283(core.List<core.String> o) { +checkUnnamed2306(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2284() { +buildUnnamed2307() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2284(core.List<core.String> o) { +checkUnnamed2307(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -571,8 +571,8 @@ o.captchaResponse = "foo"; o.createdAt = "foo"; o.delegatedProjectNumber = "foo"; - o.deleteAttribute = buildUnnamed2282(); - o.deleteProvider = buildUnnamed2283(); + o.deleteAttribute = buildUnnamed2305(); + o.deleteProvider = buildUnnamed2306(); o.disableUser = true; o.displayName = "foo"; o.email = "foo"; @@ -584,7 +584,7 @@ o.oobCode = "foo"; o.password = "foo"; o.photoUrl = "foo"; - o.provider = buildUnnamed2284(); + o.provider = buildUnnamed2307(); o.returnSecureToken = true; o.upgradeToFederatedLogin = true; o.validSince = "foo"; @@ -600,8 +600,8 @@ unittest.expect(o.captchaResponse, unittest.equals('foo')); unittest.expect(o.createdAt, unittest.equals('foo')); unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); - checkUnnamed2282(o.deleteAttribute); - checkUnnamed2283(o.deleteProvider); + checkUnnamed2305(o.deleteAttribute); + checkUnnamed2306(o.deleteProvider); unittest.expect(o.disableUser, unittest.isTrue); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.email, unittest.equals('foo')); @@ -613,7 +613,7 @@ unittest.expect(o.oobCode, unittest.equals('foo')); unittest.expect(o.password, unittest.equals('foo')); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed2284(o.provider); + checkUnnamed2307(o.provider); unittest.expect(o.returnSecureToken, unittest.isTrue); unittest.expect(o.upgradeToFederatedLogin, unittest.isTrue); unittest.expect(o.validSince, unittest.equals('foo')); @@ -621,27 +621,27 @@ buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest--; } -buildUnnamed2285() { +buildUnnamed2308() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2285(core.List<core.String> o) { +checkUnnamed2308(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2286() { +buildUnnamed2309() { var o = new core.List<api.IdpConfig>(); o.add(buildIdpConfig()); o.add(buildIdpConfig()); return o; } -checkUnnamed2286(core.List<api.IdpConfig> o) { +checkUnnamed2309(core.List<api.IdpConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkIdpConfig(o[0]); checkIdpConfig(o[1]); @@ -654,11 +654,11 @@ if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) { o.allowPasswordUser = true; o.apiKey = "foo"; - o.authorizedDomains = buildUnnamed2285(); + o.authorizedDomains = buildUnnamed2308(); o.changeEmailTemplate = buildEmailTemplate(); o.delegatedProjectNumber = "foo"; o.enableAnonymousUser = true; - o.idpConfig = buildUnnamed2286(); + o.idpConfig = buildUnnamed2309(); o.legacyResetPasswordTemplate = buildEmailTemplate(); o.resetPasswordTemplate = buildEmailTemplate(); o.useEmailSending = true; @@ -673,11 +673,11 @@ if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) { unittest.expect(o.allowPasswordUser, unittest.isTrue); unittest.expect(o.apiKey, unittest.equals('foo')); - checkUnnamed2285(o.authorizedDomains); + checkUnnamed2308(o.authorizedDomains); checkEmailTemplate(o.changeEmailTemplate); unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); unittest.expect(o.enableAnonymousUser, unittest.isTrue); - checkUnnamed2286(o.idpConfig); + checkUnnamed2309(o.idpConfig); checkEmailTemplate(o.legacyResetPasswordTemplate); checkEmailTemplate(o.resetPasswordTemplate); unittest.expect(o.useEmailSending, unittest.isTrue); @@ -784,14 +784,14 @@ buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest--; } -buildUnnamed2287() { +buildUnnamed2310() { var o = new core.List<api.UserInfo>(); o.add(buildUserInfo()); o.add(buildUserInfo()); return o; } -checkUnnamed2287(core.List<api.UserInfo> o) { +checkUnnamed2310(core.List<api.UserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfo(o[0]); checkUserInfo(o[1]); @@ -811,7 +811,7 @@ o.sanityCheck = true; o.signerKey = "foo"; o.targetProjectId = "foo"; - o.users = buildUnnamed2287(); + o.users = buildUnnamed2310(); } buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; return o; @@ -829,7 +829,7 @@ unittest.expect(o.sanityCheck, unittest.isTrue); unittest.expect(o.signerKey, unittest.equals('foo')); unittest.expect(o.targetProjectId, unittest.equals('foo')); - checkUnnamed2287(o.users); + checkUnnamed2310(o.users); } buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; } @@ -933,14 +933,14 @@ buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest--; } -buildUnnamed2288() { +buildUnnamed2311() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2288(core.List<core.String> o) { +checkUnnamed2311(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -956,7 +956,7 @@ o.experimentPercent = 42; o.provider = "foo"; o.secret = "foo"; - o.whitelistedAudiences = buildUnnamed2288(); + o.whitelistedAudiences = buildUnnamed2311(); } buildCounterIdpConfig--; return o; @@ -970,7 +970,7 @@ unittest.expect(o.experimentPercent, unittest.equals(42)); unittest.expect(o.provider, unittest.equals('foo')); unittest.expect(o.secret, unittest.equals('foo')); - checkUnnamed2288(o.whitelistedAudiences); + checkUnnamed2311(o.whitelistedAudiences); } buildCounterIdpConfig--; } @@ -1072,14 +1072,14 @@ buildCounterSetAccountInfoResponseProviderUserInfo--; } -buildUnnamed2289() { +buildUnnamed2312() { var o = new core.List<api.SetAccountInfoResponseProviderUserInfo>(); o.add(buildSetAccountInfoResponseProviderUserInfo()); o.add(buildSetAccountInfoResponseProviderUserInfo()); return o; } -checkUnnamed2289(core.List<api.SetAccountInfoResponseProviderUserInfo> o) { +checkUnnamed2312(core.List<api.SetAccountInfoResponseProviderUserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkSetAccountInfoResponseProviderUserInfo(o[0]); checkSetAccountInfoResponseProviderUserInfo(o[1]); @@ -1100,7 +1100,7 @@ o.newEmail = "foo"; o.passwordHash = "foo"; o.photoUrl = "foo"; - o.providerUserInfo = buildUnnamed2289(); + o.providerUserInfo = buildUnnamed2312(); o.refreshToken = "foo"; } buildCounterSetAccountInfoResponse--; @@ -1120,7 +1120,7 @@ unittest.expect(o.newEmail, unittest.equals('foo')); unittest.expect(o.passwordHash, unittest.equals('foo')); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed2289(o.providerUserInfo); + checkUnnamed2312(o.providerUserInfo); unittest.expect(o.refreshToken, unittest.equals('foo')); } buildCounterSetAccountInfoResponse--; @@ -1178,14 +1178,14 @@ buildCounterUploadAccountResponseError--; } -buildUnnamed2290() { +buildUnnamed2313() { var o = new core.List<api.UploadAccountResponseError>(); o.add(buildUploadAccountResponseError()); o.add(buildUploadAccountResponseError()); return o; } -checkUnnamed2290(core.List<api.UploadAccountResponseError> o) { +checkUnnamed2313(core.List<api.UploadAccountResponseError> o) { unittest.expect(o, unittest.hasLength(2)); checkUploadAccountResponseError(o[0]); checkUploadAccountResponseError(o[1]); @@ -1196,7 +1196,7 @@ var o = new api.UploadAccountResponse(); buildCounterUploadAccountResponse++; if (buildCounterUploadAccountResponse < 3) { - o.error = buildUnnamed2290(); + o.error = buildUnnamed2313(); o.kind = "foo"; } buildCounterUploadAccountResponse--; @@ -1206,7 +1206,7 @@ checkUploadAccountResponse(api.UploadAccountResponse o) { buildCounterUploadAccountResponse++; if (buildCounterUploadAccountResponse < 3) { - checkUnnamed2290(o.error); + checkUnnamed2313(o.error); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterUploadAccountResponse--; @@ -1245,14 +1245,14 @@ buildCounterUserInfoProviderUserInfo--; } -buildUnnamed2291() { +buildUnnamed2314() { var o = new core.List<api.UserInfoProviderUserInfo>(); o.add(buildUserInfoProviderUserInfo()); o.add(buildUserInfoProviderUserInfo()); return o; } -checkUnnamed2291(core.List<api.UserInfoProviderUserInfo> o) { +checkUnnamed2314(core.List<api.UserInfoProviderUserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfoProviderUserInfo(o[0]); checkUserInfoProviderUserInfo(o[1]); @@ -1275,7 +1275,7 @@ o.passwordUpdatedAt = 42.0; o.phoneNumber = "foo"; o.photoUrl = "foo"; - o.providerUserInfo = buildUnnamed2291(); + o.providerUserInfo = buildUnnamed2314(); o.rawPassword = "foo"; o.salt = "foo"; o.screenName = "foo"; @@ -1301,7 +1301,7 @@ unittest.expect(o.passwordUpdatedAt, unittest.equals(42.0)); unittest.expect(o.phoneNumber, unittest.equals('foo')); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed2291(o.providerUserInfo); + checkUnnamed2314(o.providerUserInfo); unittest.expect(o.rawPassword, unittest.equals('foo')); unittest.expect(o.salt, unittest.equals('foo')); unittest.expect(o.screenName, unittest.equals('foo')); @@ -1311,14 +1311,14 @@ buildCounterUserInfo--; } -buildUnnamed2292() { +buildUnnamed2315() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2292(core.List<core.String> o) { +checkUnnamed2315(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1367,7 +1367,7 @@ o.refreshToken = "foo"; o.screenName = "foo"; o.timeZone = "foo"; - o.verifiedProvider = buildUnnamed2292(); + o.verifiedProvider = buildUnnamed2315(); } buildCounterVerifyAssertionResponse--; return o; @@ -1414,7 +1414,7 @@ unittest.expect(o.refreshToken, unittest.equals('foo')); unittest.expect(o.screenName, unittest.equals('foo')); unittest.expect(o.timeZone, unittest.equals('foo')); - checkUnnamed2292(o.verifiedProvider); + checkUnnamed2315(o.verifiedProvider); } buildCounterVerifyAssertionResponse--; } @@ -1826,7 +1826,7 @@ var mock = new HttpServerMock(); api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relyingparty; var arg_request = buildIdentitytoolkitRelyingpartyCreateAuthUriRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.IdentitytoolkitRelyingpartyCreateAuthUriRequest.fromJson(json); checkIdentitytoolkitRelyingpartyCreateAuthUriRequest(obj); @@ -1865,7 +1865,7 @@ var resp = convert.JSON.encode(buildCreateAuthUriResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.createAuthUri(arg_request).then(unittest.expectAsync(((api.CreateAuthUriResponse response) { + res.createAuthUri(arg_request).then(unittest.expectAsync1(((api.CreateAuthUriResponse response) { checkCreateAuthUriResponse(response); }))); }); @@ -1875,7 +1875,7 @@ var mock = new HttpServerMock(); api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relyingparty; var arg_request = buildIdentitytoolkitRelyingpartyDeleteAccountRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.IdentitytoolkitRelyingpartyDeleteAccountRequest.fromJson(json); checkIdentitytoolkitRelyingpartyDeleteAccountRequest(obj); @@ -1914,7 +1914,7 @@ var resp = convert.JSON.encode(buildDeleteAccountResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.deleteAccount(arg_request).then(unittest.expectAsync(((api.DeleteAccountResponse response) { + res.deleteAccount(arg_request).then(unittest.expectAsync1(((api.DeleteAccountResponse response) { checkDeleteAccountResponse(response); }))); }); @@ -1924,7 +1924,7 @@ var mock = new HttpServerMock(); api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relyingparty; var arg_request = buildIdentitytoolkitRelyingpartyDownloadAccountRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.IdentitytoolkitRelyingpartyDownloadAccountRequest.fromJson(json); checkIdentitytoolkitRelyingpartyDownloadAccountRequest(obj); @@ -1963,7 +1963,7 @@ var resp = convert.JSON.encode(buildDownloadAccountResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.downloadAccount(arg_request).then(unittest.expectAsync(((api.DownloadAccountResponse response) { + res.downloadAccount(arg_request).then(unittest.expectAsync1(((api.DownloadAccountResponse response) { checkDownloadAccountResponse(response); }))); }); @@ -1973,7 +1973,7 @@ var mock = new HttpServerMock(); api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relyingparty; var arg_request = buildIdentitytoolkitRelyingpartyGetAccountInfoRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.IdentitytoolkitRelyingpartyGetAccountInfoRequest.fromJson(json); checkIdentitytoolkitRelyingpartyGetAccountInfoRequest(obj); @@ -2012,7 +2012,7 @@ var resp = convert.JSON.encode(buildGetAccountInfoResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getAccountInfo(arg_request).then(unittest.expectAsync(((api.GetAccountInfoResponse response) { + res.getAccountInfo(arg_request).then(unittest.expectAsync1(((api.GetAccountInfoResponse response) { checkGetAccountInfoResponse(response); }))); }); @@ -2022,7 +2022,7 @@ var mock = new HttpServerMock(); api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relyingparty; var arg_request = buildRelyingparty(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Relyingparty.fromJson(json); checkRelyingparty(obj); @@ -2061,7 +2061,7 @@ var resp = convert.JSON.encode(buildGetOobConfirmationCodeResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getOobConfirmationCode(arg_request).then(unittest.expectAsync(((api.GetOobConfirmationCodeResponse response) { + res.getOobConfirmationCode(arg_request).then(unittest.expectAsync1(((api.GetOobConfirmationCodeResponse response) { checkGetOobConfirmationCodeResponse(response); }))); }); @@ -2072,7 +2072,7 @@ api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relyingparty; var arg_delegatedProjectNumber = "foo"; var arg_projectNumber = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2110,7 +2110,7 @@ var resp = convert.JSON.encode(buildIdentitytoolkitRelyingpartyGetProjectConfigResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getProjectConfig(delegatedProjectNumber: arg_delegatedProjectNumber, projectNumber: arg_projectNumber).then(unittest.expectAsync(((api.IdentitytoolkitRelyingpartyGetProjectConfigResponse response) { + res.getProjectConfig(delegatedProjectNumber: arg_delegatedProjectNumber, projectNumber: arg_projectNumber).then(unittest.expectAsync1(((api.IdentitytoolkitRelyingpartyGetProjectConfigResponse response) { checkIdentitytoolkitRelyingpartyGetProjectConfigResponse(response); }))); }); @@ -2119,7 +2119,7 @@ var mock = new HttpServerMock(); api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relyingparty; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2155,7 +2155,7 @@ var resp = convert.JSON.encode(buildIdentitytoolkitRelyingpartyGetPublicKeysResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getPublicKeys().then(unittest.expectAsync(((api.IdentitytoolkitRelyingpartyGetPublicKeysResponse response) { + res.getPublicKeys().then(unittest.expectAsync1(((api.IdentitytoolkitRelyingpartyGetPublicKeysResponse response) { checkIdentitytoolkitRelyingpartyGetPublicKeysResponse(response); }))); }); @@ -2164,7 +2164,7 @@ var mock = new HttpServerMock(); api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relyingparty; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2200,7 +2200,7 @@ var resp = convert.JSON.encode(buildGetRecaptchaParamResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getRecaptchaParam().then(unittest.expectAsync(((api.GetRecaptchaParamResponse response) { + res.getRecaptchaParam().then(unittest.expectAsync1(((api.GetRecaptchaParamResponse response) { checkGetRecaptchaParamResponse(response); }))); }); @@ -2210,7 +2210,7 @@ var mock = new HttpServerMock(); api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relyingparty; var arg_request = buildIdentitytoolkitRelyingpartyResetPasswordRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.IdentitytoolkitRelyingpartyResetPasswordRequest.fromJson(json); checkIdentitytoolkitRelyingpartyResetPasswordRequest(obj); @@ -2249,7 +2249,7 @@ var resp = convert.JSON.encode(buildResetPasswordResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resetPassword(arg_request).then(unittest.expectAsync(((api.ResetPasswordResponse response) { + res.resetPassword(arg_request).then(unittest.expectAsync1(((api.ResetPasswordResponse response) { checkResetPasswordResponse(response); }))); }); @@ -2259,7 +2259,7 @@ var mock = new HttpServerMock(); api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relyingparty; var arg_request = buildIdentitytoolkitRelyingpartySetAccountInfoRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.IdentitytoolkitRelyingpartySetAccountInfoRequest.fromJson(json); checkIdentitytoolkitRelyingpartySetAccountInfoRequest(obj); @@ -2298,7 +2298,7 @@ var resp = convert.JSON.encode(buildSetAccountInfoResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setAccountInfo(arg_request).then(unittest.expectAsync(((api.SetAccountInfoResponse response) { + res.setAccountInfo(arg_request).then(unittest.expectAsync1(((api.SetAccountInfoResponse response) { checkSetAccountInfoResponse(response); }))); }); @@ -2308,7 +2308,7 @@ var mock = new HttpServerMock(); api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relyingparty; var arg_request = buildIdentitytoolkitRelyingpartySetProjectConfigRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.IdentitytoolkitRelyingpartySetProjectConfigRequest.fromJson(json); checkIdentitytoolkitRelyingpartySetProjectConfigRequest(obj); @@ -2347,7 +2347,7 @@ var resp = convert.JSON.encode(buildIdentitytoolkitRelyingpartySetProjectConfigResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setProjectConfig(arg_request).then(unittest.expectAsync(((api.IdentitytoolkitRelyingpartySetProjectConfigResponse response) { + res.setProjectConfig(arg_request).then(unittest.expectAsync1(((api.IdentitytoolkitRelyingpartySetProjectConfigResponse response) { checkIdentitytoolkitRelyingpartySetProjectConfigResponse(response); }))); }); @@ -2357,7 +2357,7 @@ var mock = new HttpServerMock(); api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relyingparty; var arg_request = buildIdentitytoolkitRelyingpartySignOutUserRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.IdentitytoolkitRelyingpartySignOutUserRequest.fromJson(json); checkIdentitytoolkitRelyingpartySignOutUserRequest(obj); @@ -2396,7 +2396,7 @@ var resp = convert.JSON.encode(buildIdentitytoolkitRelyingpartySignOutUserResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.signOutUser(arg_request).then(unittest.expectAsync(((api.IdentitytoolkitRelyingpartySignOutUserResponse response) { + res.signOutUser(arg_request).then(unittest.expectAsync1(((api.IdentitytoolkitRelyingpartySignOutUserResponse response) { checkIdentitytoolkitRelyingpartySignOutUserResponse(response); }))); }); @@ -2406,7 +2406,7 @@ var mock = new HttpServerMock(); api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relyingparty; var arg_request = buildIdentitytoolkitRelyingpartySignupNewUserRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.IdentitytoolkitRelyingpartySignupNewUserRequest.fromJson(json); checkIdentitytoolkitRelyingpartySignupNewUserRequest(obj); @@ -2445,7 +2445,7 @@ var resp = convert.JSON.encode(buildSignupNewUserResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.signupNewUser(arg_request).then(unittest.expectAsync(((api.SignupNewUserResponse response) { + res.signupNewUser(arg_request).then(unittest.expectAsync1(((api.SignupNewUserResponse response) { checkSignupNewUserResponse(response); }))); }); @@ -2455,7 +2455,7 @@ var mock = new HttpServerMock(); api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relyingparty; var arg_request = buildIdentitytoolkitRelyingpartyUploadAccountRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.IdentitytoolkitRelyingpartyUploadAccountRequest.fromJson(json); checkIdentitytoolkitRelyingpartyUploadAccountRequest(obj); @@ -2494,7 +2494,7 @@ var resp = convert.JSON.encode(buildUploadAccountResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.uploadAccount(arg_request).then(unittest.expectAsync(((api.UploadAccountResponse response) { + res.uploadAccount(arg_request).then(unittest.expectAsync1(((api.UploadAccountResponse response) { checkUploadAccountResponse(response); }))); }); @@ -2504,7 +2504,7 @@ var mock = new HttpServerMock(); api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relyingparty; var arg_request = buildIdentitytoolkitRelyingpartyVerifyAssertionRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.IdentitytoolkitRelyingpartyVerifyAssertionRequest.fromJson(json); checkIdentitytoolkitRelyingpartyVerifyAssertionRequest(obj); @@ -2543,7 +2543,7 @@ var resp = convert.JSON.encode(buildVerifyAssertionResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.verifyAssertion(arg_request).then(unittest.expectAsync(((api.VerifyAssertionResponse response) { + res.verifyAssertion(arg_request).then(unittest.expectAsync1(((api.VerifyAssertionResponse response) { checkVerifyAssertionResponse(response); }))); }); @@ -2553,7 +2553,7 @@ var mock = new HttpServerMock(); api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relyingparty; var arg_request = buildIdentitytoolkitRelyingpartyVerifyCustomTokenRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.IdentitytoolkitRelyingpartyVerifyCustomTokenRequest.fromJson(json); checkIdentitytoolkitRelyingpartyVerifyCustomTokenRequest(obj); @@ -2592,7 +2592,7 @@ var resp = convert.JSON.encode(buildVerifyCustomTokenResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.verifyCustomToken(arg_request).then(unittest.expectAsync(((api.VerifyCustomTokenResponse response) { + res.verifyCustomToken(arg_request).then(unittest.expectAsync1(((api.VerifyCustomTokenResponse response) { checkVerifyCustomTokenResponse(response); }))); }); @@ -2602,7 +2602,7 @@ var mock = new HttpServerMock(); api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relyingparty; var arg_request = buildIdentitytoolkitRelyingpartyVerifyPasswordRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.IdentitytoolkitRelyingpartyVerifyPasswordRequest.fromJson(json); checkIdentitytoolkitRelyingpartyVerifyPasswordRequest(obj); @@ -2641,7 +2641,7 @@ var resp = convert.JSON.encode(buildVerifyPasswordResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.verifyPassword(arg_request).then(unittest.expectAsync(((api.VerifyPasswordResponse response) { + res.verifyPassword(arg_request).then(unittest.expectAsync1(((api.VerifyPasswordResponse response) { checkVerifyPasswordResponse(response); }))); });
diff --git a/generated/googleapis/test/language/v1_test.dart b/generated/googleapis/test/language/v1_test.dart index bce57f3..177b122 100644 --- a/generated/googleapis/test/language/v1_test.dart +++ b/generated/googleapis/test/language/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/language/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -72,14 +72,14 @@ buildCounterAnalyzeEntitiesRequest--; } -buildUnnamed798() { +buildUnnamed805() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed798(core.List<api.Entity> o) { +checkUnnamed805(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); @@ -90,7 +90,7 @@ var o = new api.AnalyzeEntitiesResponse(); buildCounterAnalyzeEntitiesResponse++; if (buildCounterAnalyzeEntitiesResponse < 3) { - o.entities = buildUnnamed798(); + o.entities = buildUnnamed805(); o.language = "foo"; } buildCounterAnalyzeEntitiesResponse--; @@ -100,7 +100,7 @@ checkAnalyzeEntitiesResponse(api.AnalyzeEntitiesResponse o) { buildCounterAnalyzeEntitiesResponse++; if (buildCounterAnalyzeEntitiesResponse < 3) { - checkUnnamed798(o.entities); + checkUnnamed805(o.entities); unittest.expect(o.language, unittest.equals('foo')); } buildCounterAnalyzeEntitiesResponse--; @@ -127,14 +127,14 @@ buildCounterAnalyzeSentimentRequest--; } -buildUnnamed799() { +buildUnnamed806() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); o.add(buildSentence()); return o; } -checkUnnamed799(core.List<api.Sentence> o) { +checkUnnamed806(core.List<api.Sentence> o) { unittest.expect(o, unittest.hasLength(2)); checkSentence(o[0]); checkSentence(o[1]); @@ -147,7 +147,7 @@ if (buildCounterAnalyzeSentimentResponse < 3) { o.documentSentiment = buildSentiment(); o.language = "foo"; - o.sentences = buildUnnamed799(); + o.sentences = buildUnnamed806(); } buildCounterAnalyzeSentimentResponse--; return o; @@ -158,7 +158,7 @@ if (buildCounterAnalyzeSentimentResponse < 3) { checkSentiment(o.documentSentiment); unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed799(o.sentences); + checkUnnamed806(o.sentences); } buildCounterAnalyzeSentimentResponse--; } @@ -184,27 +184,27 @@ buildCounterAnalyzeSyntaxRequest--; } -buildUnnamed800() { +buildUnnamed807() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); o.add(buildSentence()); return o; } -checkUnnamed800(core.List<api.Sentence> o) { +checkUnnamed807(core.List<api.Sentence> o) { unittest.expect(o, unittest.hasLength(2)); checkSentence(o[0]); checkSentence(o[1]); } -buildUnnamed801() { +buildUnnamed808() { var o = new core.List<api.Token>(); o.add(buildToken()); o.add(buildToken()); return o; } -checkUnnamed801(core.List<api.Token> o) { +checkUnnamed808(core.List<api.Token> o) { unittest.expect(o, unittest.hasLength(2)); checkToken(o[0]); checkToken(o[1]); @@ -216,8 +216,8 @@ buildCounterAnalyzeSyntaxResponse++; if (buildCounterAnalyzeSyntaxResponse < 3) { o.language = "foo"; - o.sentences = buildUnnamed800(); - o.tokens = buildUnnamed801(); + o.sentences = buildUnnamed807(); + o.tokens = buildUnnamed808(); } buildCounterAnalyzeSyntaxResponse--; return o; @@ -227,8 +227,8 @@ buildCounterAnalyzeSyntaxResponse++; if (buildCounterAnalyzeSyntaxResponse < 3) { unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed800(o.sentences); - checkUnnamed801(o.tokens); + checkUnnamed807(o.sentences); + checkUnnamed808(o.tokens); } buildCounterAnalyzeSyntaxResponse--; } @@ -256,40 +256,40 @@ buildCounterAnnotateTextRequest--; } -buildUnnamed802() { +buildUnnamed809() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed802(core.List<api.Entity> o) { +checkUnnamed809(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); } -buildUnnamed803() { +buildUnnamed810() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); o.add(buildSentence()); return o; } -checkUnnamed803(core.List<api.Sentence> o) { +checkUnnamed810(core.List<api.Sentence> o) { unittest.expect(o, unittest.hasLength(2)); checkSentence(o[0]); checkSentence(o[1]); } -buildUnnamed804() { +buildUnnamed811() { var o = new core.List<api.Token>(); o.add(buildToken()); o.add(buildToken()); return o; } -checkUnnamed804(core.List<api.Token> o) { +checkUnnamed811(core.List<api.Token> o) { unittest.expect(o, unittest.hasLength(2)); checkToken(o[0]); checkToken(o[1]); @@ -301,10 +301,10 @@ buildCounterAnnotateTextResponse++; if (buildCounterAnnotateTextResponse < 3) { o.documentSentiment = buildSentiment(); - o.entities = buildUnnamed802(); + o.entities = buildUnnamed809(); o.language = "foo"; - o.sentences = buildUnnamed803(); - o.tokens = buildUnnamed804(); + o.sentences = buildUnnamed810(); + o.tokens = buildUnnamed811(); } buildCounterAnnotateTextResponse--; return o; @@ -314,10 +314,10 @@ buildCounterAnnotateTextResponse++; if (buildCounterAnnotateTextResponse < 3) { checkSentiment(o.documentSentiment); - checkUnnamed802(o.entities); + checkUnnamed809(o.entities); unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed803(o.sentences); - checkUnnamed804(o.tokens); + checkUnnamed810(o.sentences); + checkUnnamed811(o.tokens); } buildCounterAnnotateTextResponse--; } @@ -368,27 +368,27 @@ buildCounterDocument--; } -buildUnnamed805() { +buildUnnamed812() { var o = new core.List<api.EntityMention>(); o.add(buildEntityMention()); o.add(buildEntityMention()); return o; } -checkUnnamed805(core.List<api.EntityMention> o) { +checkUnnamed812(core.List<api.EntityMention> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityMention(o[0]); checkEntityMention(o[1]); } -buildUnnamed806() { +buildUnnamed813() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed806(core.Map<core.String, core.String> o) { +checkUnnamed813(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -399,8 +399,8 @@ var o = new api.Entity(); buildCounterEntity++; if (buildCounterEntity < 3) { - o.mentions = buildUnnamed805(); - o.metadata = buildUnnamed806(); + o.mentions = buildUnnamed812(); + o.metadata = buildUnnamed813(); o.name = "foo"; o.salience = 42.0; o.type = "foo"; @@ -412,8 +412,8 @@ checkEntity(api.Entity o) { buildCounterEntity++; if (buildCounterEntity < 3) { - checkUnnamed805(o.mentions); - checkUnnamed806(o.metadata); + checkUnnamed812(o.mentions); + checkUnnamed813(o.metadata); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.salience, unittest.equals(42.0)); unittest.expect(o.type, unittest.equals('foo')); @@ -548,30 +548,30 @@ buildCounterSentiment--; } -buildUnnamed807() { +buildUnnamed814() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed807(core.Map<core.String, core.Object> o) { +checkUnnamed814(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed808() { +buildUnnamed815() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed807()); - o.add(buildUnnamed807()); + o.add(buildUnnamed814()); + o.add(buildUnnamed814()); return o; } -checkUnnamed808(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed815(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed807(o[0]); - checkUnnamed807(o[1]); + checkUnnamed814(o[0]); + checkUnnamed814(o[1]); } core.int buildCounterStatus = 0; @@ -580,7 +580,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed808(); + o.details = buildUnnamed815(); o.message = "foo"; } buildCounterStatus--; @@ -591,7 +591,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed808(o.details); + checkUnnamed815(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -822,7 +822,7 @@ var mock = new HttpServerMock(); api.DocumentsResourceApi res = new api.LanguageApi(mock).documents; var arg_request = buildAnalyzeEntitiesRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AnalyzeEntitiesRequest.fromJson(json); checkAnalyzeEntitiesRequest(obj); @@ -859,7 +859,7 @@ var resp = convert.JSON.encode(buildAnalyzeEntitiesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.analyzeEntities(arg_request).then(unittest.expectAsync(((api.AnalyzeEntitiesResponse response) { + res.analyzeEntities(arg_request).then(unittest.expectAsync1(((api.AnalyzeEntitiesResponse response) { checkAnalyzeEntitiesResponse(response); }))); }); @@ -869,7 +869,7 @@ var mock = new HttpServerMock(); api.DocumentsResourceApi res = new api.LanguageApi(mock).documents; var arg_request = buildAnalyzeSentimentRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AnalyzeSentimentRequest.fromJson(json); checkAnalyzeSentimentRequest(obj); @@ -906,7 +906,7 @@ var resp = convert.JSON.encode(buildAnalyzeSentimentResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.analyzeSentiment(arg_request).then(unittest.expectAsync(((api.AnalyzeSentimentResponse response) { + res.analyzeSentiment(arg_request).then(unittest.expectAsync1(((api.AnalyzeSentimentResponse response) { checkAnalyzeSentimentResponse(response); }))); }); @@ -916,7 +916,7 @@ var mock = new HttpServerMock(); api.DocumentsResourceApi res = new api.LanguageApi(mock).documents; var arg_request = buildAnalyzeSyntaxRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AnalyzeSyntaxRequest.fromJson(json); checkAnalyzeSyntaxRequest(obj); @@ -953,7 +953,7 @@ var resp = convert.JSON.encode(buildAnalyzeSyntaxResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.analyzeSyntax(arg_request).then(unittest.expectAsync(((api.AnalyzeSyntaxResponse response) { + res.analyzeSyntax(arg_request).then(unittest.expectAsync1(((api.AnalyzeSyntaxResponse response) { checkAnalyzeSyntaxResponse(response); }))); }); @@ -963,7 +963,7 @@ var mock = new HttpServerMock(); api.DocumentsResourceApi res = new api.LanguageApi(mock).documents; var arg_request = buildAnnotateTextRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AnnotateTextRequest.fromJson(json); checkAnnotateTextRequest(obj); @@ -1000,7 +1000,7 @@ var resp = convert.JSON.encode(buildAnnotateTextResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.annotateText(arg_request).then(unittest.expectAsync(((api.AnnotateTextResponse response) { + res.annotateText(arg_request).then(unittest.expectAsync1(((api.AnnotateTextResponse response) { checkAnnotateTextResponse(response); }))); });
diff --git a/generated/googleapis/test/licensing/v1_test.dart b/generated/googleapis/test/licensing/v1_test.dart index 1d273c9..cb8884e 100644 --- a/generated/googleapis/test/licensing/v1_test.dart +++ b/generated/googleapis/test/licensing/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/licensing/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -103,14 +103,14 @@ buildCounterLicenseAssignmentInsert--; } -buildUnnamed1956() { +buildUnnamed1966() { var o = new core.List<api.LicenseAssignment>(); o.add(buildLicenseAssignment()); o.add(buildLicenseAssignment()); return o; } -checkUnnamed1956(core.List<api.LicenseAssignment> o) { +checkUnnamed1966(core.List<api.LicenseAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkLicenseAssignment(o[0]); checkLicenseAssignment(o[1]); @@ -122,7 +122,7 @@ buildCounterLicenseAssignmentList++; if (buildCounterLicenseAssignmentList < 3) { o.etag = "foo"; - o.items = buildUnnamed1956(); + o.items = buildUnnamed1966(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -134,7 +134,7 @@ buildCounterLicenseAssignmentList++; if (buildCounterLicenseAssignmentList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1956(o.items); + checkUnnamed1966(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -178,7 +178,7 @@ var arg_productId = "foo"; var arg_skuId = "foo"; var arg_userId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -210,7 +210,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_productId, arg_skuId, arg_userId).then(unittest.expectAsync((_) {})); + res.delete(arg_productId, arg_skuId, arg_userId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -220,7 +220,7 @@ var arg_productId = "foo"; var arg_skuId = "foo"; var arg_userId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -252,7 +252,7 @@ var resp = convert.JSON.encode(buildLicenseAssignment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_productId, arg_skuId, arg_userId).then(unittest.expectAsync(((api.LicenseAssignment response) { + res.get(arg_productId, arg_skuId, arg_userId).then(unittest.expectAsync1(((api.LicenseAssignment response) { checkLicenseAssignment(response); }))); }); @@ -264,7 +264,7 @@ var arg_request = buildLicenseAssignmentInsert(); var arg_productId = "foo"; var arg_skuId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LicenseAssignmentInsert.fromJson(json); checkLicenseAssignmentInsert(obj); @@ -299,7 +299,7 @@ var resp = convert.JSON.encode(buildLicenseAssignment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_productId, arg_skuId).then(unittest.expectAsync(((api.LicenseAssignment response) { + res.insert(arg_request, arg_productId, arg_skuId).then(unittest.expectAsync1(((api.LicenseAssignment response) { checkLicenseAssignment(response); }))); }); @@ -312,7 +312,7 @@ var arg_customerId = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -347,7 +347,7 @@ var resp = convert.JSON.encode(buildLicenseAssignmentList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listForProduct(arg_productId, arg_customerId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.LicenseAssignmentList response) { + res.listForProduct(arg_productId, arg_customerId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.LicenseAssignmentList response) { checkLicenseAssignmentList(response); }))); }); @@ -361,7 +361,7 @@ var arg_customerId = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -396,7 +396,7 @@ var resp = convert.JSON.encode(buildLicenseAssignmentList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listForProductAndSku(arg_productId, arg_skuId, arg_customerId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.LicenseAssignmentList response) { + res.listForProductAndSku(arg_productId, arg_skuId, arg_customerId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.LicenseAssignmentList response) { checkLicenseAssignmentList(response); }))); }); @@ -409,7 +409,7 @@ var arg_productId = "foo"; var arg_skuId = "foo"; var arg_userId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LicenseAssignment.fromJson(json); checkLicenseAssignment(obj); @@ -444,7 +444,7 @@ var resp = convert.JSON.encode(buildLicenseAssignment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_productId, arg_skuId, arg_userId).then(unittest.expectAsync(((api.LicenseAssignment response) { + res.patch(arg_request, arg_productId, arg_skuId, arg_userId).then(unittest.expectAsync1(((api.LicenseAssignment response) { checkLicenseAssignment(response); }))); }); @@ -457,7 +457,7 @@ var arg_productId = "foo"; var arg_skuId = "foo"; var arg_userId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LicenseAssignment.fromJson(json); checkLicenseAssignment(obj); @@ -492,7 +492,7 @@ var resp = convert.JSON.encode(buildLicenseAssignment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_productId, arg_skuId, arg_userId).then(unittest.expectAsync(((api.LicenseAssignment response) { + res.update(arg_request, arg_productId, arg_skuId, arg_userId).then(unittest.expectAsync1(((api.LicenseAssignment response) { checkLicenseAssignment(response); }))); });
diff --git a/generated/googleapis/test/logging/v2_test.dart b/generated/googleapis/test/logging/v2_test.dart index 94da6a1..8bc0c27 100644 --- a/generated/googleapis/test/logging/v2_test.dart +++ b/generated/googleapis/test/logging/v2_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/logging/v2.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -136,27 +136,27 @@ buildCounterLabelDescriptor--; } -buildUnnamed198() { +buildUnnamed200() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed198(core.List<core.String> o) { +checkUnnamed200(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed199() { +buildUnnamed201() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed199(core.List<core.String> o) { +checkUnnamed201(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -171,8 +171,8 @@ o.orderBy = "foo"; o.pageSize = 42; o.pageToken = "foo"; - o.projectIds = buildUnnamed198(); - o.resourceNames = buildUnnamed199(); + o.projectIds = buildUnnamed200(); + o.resourceNames = buildUnnamed201(); } buildCounterListLogEntriesRequest--; return o; @@ -185,20 +185,20 @@ unittest.expect(o.orderBy, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed198(o.projectIds); - checkUnnamed199(o.resourceNames); + checkUnnamed200(o.projectIds); + checkUnnamed201(o.resourceNames); } buildCounterListLogEntriesRequest--; } -buildUnnamed200() { +buildUnnamed202() { var o = new core.List<api.LogEntry>(); o.add(buildLogEntry()); o.add(buildLogEntry()); return o; } -checkUnnamed200(core.List<api.LogEntry> o) { +checkUnnamed202(core.List<api.LogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLogEntry(o[0]); checkLogEntry(o[1]); @@ -209,7 +209,7 @@ var o = new api.ListLogEntriesResponse(); buildCounterListLogEntriesResponse++; if (buildCounterListLogEntriesResponse < 3) { - o.entries = buildUnnamed200(); + o.entries = buildUnnamed202(); o.nextPageToken = "foo"; } buildCounterListLogEntriesResponse--; @@ -219,20 +219,20 @@ checkListLogEntriesResponse(api.ListLogEntriesResponse o) { buildCounterListLogEntriesResponse++; if (buildCounterListLogEntriesResponse < 3) { - checkUnnamed200(o.entries); + checkUnnamed202(o.entries); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLogEntriesResponse--; } -buildUnnamed201() { +buildUnnamed203() { var o = new core.List<api.LogMetric>(); o.add(buildLogMetric()); o.add(buildLogMetric()); return o; } -checkUnnamed201(core.List<api.LogMetric> o) { +checkUnnamed203(core.List<api.LogMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkLogMetric(o[0]); checkLogMetric(o[1]); @@ -243,7 +243,7 @@ var o = new api.ListLogMetricsResponse(); buildCounterListLogMetricsResponse++; if (buildCounterListLogMetricsResponse < 3) { - o.metrics = buildUnnamed201(); + o.metrics = buildUnnamed203(); o.nextPageToken = "foo"; } buildCounterListLogMetricsResponse--; @@ -253,20 +253,20 @@ checkListLogMetricsResponse(api.ListLogMetricsResponse o) { buildCounterListLogMetricsResponse++; if (buildCounterListLogMetricsResponse < 3) { - checkUnnamed201(o.metrics); + checkUnnamed203(o.metrics); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLogMetricsResponse--; } -buildUnnamed202() { +buildUnnamed204() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed202(core.List<core.String> o) { +checkUnnamed204(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -277,7 +277,7 @@ var o = new api.ListLogsResponse(); buildCounterListLogsResponse++; if (buildCounterListLogsResponse < 3) { - o.logNames = buildUnnamed202(); + o.logNames = buildUnnamed204(); o.nextPageToken = "foo"; } buildCounterListLogsResponse--; @@ -287,20 +287,20 @@ checkListLogsResponse(api.ListLogsResponse o) { buildCounterListLogsResponse++; if (buildCounterListLogsResponse < 3) { - checkUnnamed202(o.logNames); + checkUnnamed204(o.logNames); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLogsResponse--; } -buildUnnamed203() { +buildUnnamed205() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed203(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed205(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); @@ -312,7 +312,7 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { o.nextPageToken = "foo"; - o.resourceDescriptors = buildUnnamed203(); + o.resourceDescriptors = buildUnnamed205(); } buildCounterListMonitoredResourceDescriptorsResponse--; return o; @@ -322,19 +322,19 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed203(o.resourceDescriptors); + checkUnnamed205(o.resourceDescriptors); } buildCounterListMonitoredResourceDescriptorsResponse--; } -buildUnnamed204() { +buildUnnamed206() { var o = new core.List<api.LogSink>(); o.add(buildLogSink()); o.add(buildLogSink()); return o; } -checkUnnamed204(core.List<api.LogSink> o) { +checkUnnamed206(core.List<api.LogSink> o) { unittest.expect(o, unittest.hasLength(2)); checkLogSink(o[0]); checkLogSink(o[1]); @@ -346,7 +346,7 @@ buildCounterListSinksResponse++; if (buildCounterListSinksResponse < 3) { o.nextPageToken = "foo"; - o.sinks = buildUnnamed204(); + o.sinks = buildUnnamed206(); } buildCounterListSinksResponse--; return o; @@ -356,37 +356,11 @@ buildCounterListSinksResponse++; if (buildCounterListSinksResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed204(o.sinks); + checkUnnamed206(o.sinks); } buildCounterListSinksResponse--; } -buildUnnamed205() { - var o = new core.Map<core.String, core.Object>(); - o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; - o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; - return o; -} - -checkUnnamed205(core.Map<core.String, core.Object> o) { - unittest.expect(o, unittest.hasLength(2)); - var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); - var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); -} - -buildUnnamed206() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed206(core.Map<core.String, core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - buildUnnamed207() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; @@ -396,6 +370,32 @@ checkUnnamed207(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); + var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); + var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); +} + +buildUnnamed208() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed208(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +buildUnnamed209() { + var o = new core.Map<core.String, core.Object>(); + o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + return o; +} + +checkUnnamed209(core.Map<core.String, core.Object> o) { + unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); } @@ -407,11 +407,11 @@ if (buildCounterLogEntry < 3) { o.httpRequest = buildHttpRequest(); o.insertId = "foo"; - o.jsonPayload = buildUnnamed205(); - o.labels = buildUnnamed206(); + o.jsonPayload = buildUnnamed207(); + o.labels = buildUnnamed208(); o.logName = "foo"; o.operation = buildLogEntryOperation(); - o.protoPayload = buildUnnamed207(); + o.protoPayload = buildUnnamed209(); o.receiveTimestamp = "foo"; o.resource = buildMonitoredResource(); o.severity = "foo"; @@ -429,11 +429,11 @@ if (buildCounterLogEntry < 3) { checkHttpRequest(o.httpRequest); unittest.expect(o.insertId, unittest.equals('foo')); - checkUnnamed205(o.jsonPayload); - checkUnnamed206(o.labels); + checkUnnamed207(o.jsonPayload); + checkUnnamed208(o.labels); unittest.expect(o.logName, unittest.equals('foo')); checkLogEntryOperation(o.operation); - checkUnnamed207(o.protoPayload); + checkUnnamed209(o.protoPayload); unittest.expect(o.receiveTimestamp, unittest.equals('foo')); checkMonitoredResource(o.resource); unittest.expect(o.severity, unittest.equals('foo')); @@ -576,14 +576,14 @@ buildCounterLogSink--; } -buildUnnamed208() { +buildUnnamed210() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed208(core.Map<core.String, core.String> o) { +checkUnnamed210(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -594,7 +594,7 @@ var o = new api.MonitoredResource(); buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - o.labels = buildUnnamed208(); + o.labels = buildUnnamed210(); o.type = "foo"; } buildCounterMonitoredResource--; @@ -604,20 +604,20 @@ checkMonitoredResource(api.MonitoredResource o) { buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - checkUnnamed208(o.labels); + checkUnnamed210(o.labels); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResource--; } -buildUnnamed209() { +buildUnnamed211() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed209(core.List<api.LabelDescriptor> o) { +checkUnnamed211(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -630,7 +630,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed209(); + o.labels = buildUnnamed211(); o.name = "foo"; o.type = "foo"; } @@ -643,34 +643,34 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed209(o.labels); + checkUnnamed211(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResourceDescriptor--; } -buildUnnamed210() { +buildUnnamed212() { var o = new core.List<api.LogLine>(); o.add(buildLogLine()); o.add(buildLogLine()); return o; } -checkUnnamed210(core.List<api.LogLine> o) { +checkUnnamed212(core.List<api.LogLine> o) { unittest.expect(o, unittest.hasLength(2)); checkLogLine(o[0]); checkLogLine(o[1]); } -buildUnnamed211() { +buildUnnamed213() { var o = new core.List<api.SourceReference>(); o.add(buildSourceReference()); o.add(buildSourceReference()); return o; } -checkUnnamed211(core.List<api.SourceReference> o) { +checkUnnamed213(core.List<api.SourceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceReference(o[0]); checkSourceReference(o[1]); @@ -693,7 +693,7 @@ o.instanceIndex = 42; o.ip = "foo"; o.latency = "foo"; - o.line = buildUnnamed210(); + o.line = buildUnnamed212(); o.megaCycles = "foo"; o.method = "foo"; o.moduleId = "foo"; @@ -703,7 +703,7 @@ o.requestId = "foo"; o.resource = "foo"; o.responseSize = "foo"; - o.sourceReference = buildUnnamed211(); + o.sourceReference = buildUnnamed213(); o.startTime = "foo"; o.status = 42; o.taskName = "foo"; @@ -733,7 +733,7 @@ unittest.expect(o.instanceIndex, unittest.equals(42)); unittest.expect(o.ip, unittest.equals('foo')); unittest.expect(o.latency, unittest.equals('foo')); - checkUnnamed210(o.line); + checkUnnamed212(o.line); unittest.expect(o.megaCycles, unittest.equals('foo')); unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.moduleId, unittest.equals('foo')); @@ -743,7 +743,7 @@ unittest.expect(o.requestId, unittest.equals('foo')); unittest.expect(o.resource, unittest.equals('foo')); unittest.expect(o.responseSize, unittest.equals('foo')); - checkUnnamed211(o.sourceReference); + checkUnnamed213(o.sourceReference); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.status, unittest.equals(42)); unittest.expect(o.taskName, unittest.equals('foo')); @@ -801,27 +801,27 @@ buildCounterSourceReference--; } -buildUnnamed212() { +buildUnnamed214() { var o = new core.List<api.LogEntry>(); o.add(buildLogEntry()); o.add(buildLogEntry()); return o; } -checkUnnamed212(core.List<api.LogEntry> o) { +checkUnnamed214(core.List<api.LogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLogEntry(o[0]); checkLogEntry(o[1]); } -buildUnnamed213() { +buildUnnamed215() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed213(core.Map<core.String, core.String> o) { +checkUnnamed215(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -832,8 +832,8 @@ var o = new api.WriteLogEntriesRequest(); buildCounterWriteLogEntriesRequest++; if (buildCounterWriteLogEntriesRequest < 3) { - o.entries = buildUnnamed212(); - o.labels = buildUnnamed213(); + o.entries = buildUnnamed214(); + o.labels = buildUnnamed215(); o.logName = "foo"; o.partialSuccess = true; o.resource = buildMonitoredResource(); @@ -845,8 +845,8 @@ checkWriteLogEntriesRequest(api.WriteLogEntriesRequest o) { buildCounterWriteLogEntriesRequest++; if (buildCounterWriteLogEntriesRequest < 3) { - checkUnnamed212(o.entries); - checkUnnamed213(o.labels); + checkUnnamed214(o.entries); + checkUnnamed215(o.labels); unittest.expect(o.logName, unittest.equals('foo')); unittest.expect(o.partialSuccess, unittest.isTrue); checkMonitoredResource(o.resource); @@ -1077,7 +1077,7 @@ var mock = new HttpServerMock(); api.BillingAccountsLogsResourceApi res = new api.LoggingApi(mock).billingAccounts.logs; var arg_logName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1112,7 +1112,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_logName).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_logName).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1124,7 +1124,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1161,7 +1161,7 @@ var resp = convert.JSON.encode(buildListLogsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListLogsResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListLogsResponse response) { checkListLogsResponse(response); }))); }); @@ -1177,7 +1177,7 @@ var arg_request = buildLogSink(); var arg_parent = "foo"; var arg_uniqueWriterIdentity = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LogSink.fromJson(json); checkLogSink(obj); @@ -1216,7 +1216,7 @@ var resp = convert.JSON.encode(buildLogSink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_parent, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync(((api.LogSink response) { + res.create(arg_request, arg_parent, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync1(((api.LogSink response) { checkLogSink(response); }))); }); @@ -1226,7 +1226,7 @@ var mock = new HttpServerMock(); api.BillingAccountsSinksResourceApi res = new api.LoggingApi(mock).billingAccounts.sinks; var arg_sinkName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1261,7 +1261,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_sinkName).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_sinkName).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1271,7 +1271,7 @@ var mock = new HttpServerMock(); api.BillingAccountsSinksResourceApi res = new api.LoggingApi(mock).billingAccounts.sinks; var arg_sinkName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1306,7 +1306,7 @@ var resp = convert.JSON.encode(buildLogSink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_sinkName).then(unittest.expectAsync(((api.LogSink response) { + res.get(arg_sinkName).then(unittest.expectAsync1(((api.LogSink response) { checkLogSink(response); }))); }); @@ -1318,7 +1318,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1355,7 +1355,7 @@ var resp = convert.JSON.encode(buildListSinksResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListSinksResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListSinksResponse response) { checkListSinksResponse(response); }))); }); @@ -1367,7 +1367,7 @@ var arg_request = buildLogSink(); var arg_sinkName = "foo"; var arg_uniqueWriterIdentity = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LogSink.fromJson(json); checkLogSink(obj); @@ -1406,7 +1406,7 @@ var resp = convert.JSON.encode(buildLogSink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_sinkName, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync(((api.LogSink response) { + res.update(arg_request, arg_sinkName, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync1(((api.LogSink response) { checkLogSink(response); }))); }); @@ -1420,7 +1420,7 @@ var mock = new HttpServerMock(); api.EntriesResourceApi res = new api.LoggingApi(mock).entries; var arg_request = buildListLogEntriesRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ListLogEntriesRequest.fromJson(json); checkListLogEntriesRequest(obj); @@ -1457,7 +1457,7 @@ var resp = convert.JSON.encode(buildListLogEntriesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_request).then(unittest.expectAsync(((api.ListLogEntriesResponse response) { + res.list(arg_request).then(unittest.expectAsync1(((api.ListLogEntriesResponse response) { checkListLogEntriesResponse(response); }))); }); @@ -1467,7 +1467,7 @@ var mock = new HttpServerMock(); api.EntriesResourceApi res = new api.LoggingApi(mock).entries; var arg_request = buildWriteLogEntriesRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.WriteLogEntriesRequest.fromJson(json); checkWriteLogEntriesRequest(obj); @@ -1504,7 +1504,7 @@ var resp = convert.JSON.encode(buildWriteLogEntriesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.write(arg_request).then(unittest.expectAsync(((api.WriteLogEntriesResponse response) { + res.write(arg_request).then(unittest.expectAsync1(((api.WriteLogEntriesResponse response) { checkWriteLogEntriesResponse(response); }))); }); @@ -1518,7 +1518,7 @@ var mock = new HttpServerMock(); api.FoldersLogsResourceApi res = new api.LoggingApi(mock).folders.logs; var arg_logName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1553,7 +1553,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_logName).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_logName).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1565,7 +1565,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1602,7 +1602,7 @@ var resp = convert.JSON.encode(buildListLogsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListLogsResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListLogsResponse response) { checkListLogsResponse(response); }))); }); @@ -1618,7 +1618,7 @@ var arg_request = buildLogSink(); var arg_parent = "foo"; var arg_uniqueWriterIdentity = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LogSink.fromJson(json); checkLogSink(obj); @@ -1657,7 +1657,7 @@ var resp = convert.JSON.encode(buildLogSink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_parent, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync(((api.LogSink response) { + res.create(arg_request, arg_parent, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync1(((api.LogSink response) { checkLogSink(response); }))); }); @@ -1667,7 +1667,7 @@ var mock = new HttpServerMock(); api.FoldersSinksResourceApi res = new api.LoggingApi(mock).folders.sinks; var arg_sinkName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1702,7 +1702,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_sinkName).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_sinkName).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1712,7 +1712,7 @@ var mock = new HttpServerMock(); api.FoldersSinksResourceApi res = new api.LoggingApi(mock).folders.sinks; var arg_sinkName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1747,7 +1747,7 @@ var resp = convert.JSON.encode(buildLogSink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_sinkName).then(unittest.expectAsync(((api.LogSink response) { + res.get(arg_sinkName).then(unittest.expectAsync1(((api.LogSink response) { checkLogSink(response); }))); }); @@ -1759,7 +1759,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1796,7 +1796,7 @@ var resp = convert.JSON.encode(buildListSinksResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListSinksResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListSinksResponse response) { checkListSinksResponse(response); }))); }); @@ -1808,7 +1808,7 @@ var arg_request = buildLogSink(); var arg_sinkName = "foo"; var arg_uniqueWriterIdentity = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LogSink.fromJson(json); checkLogSink(obj); @@ -1847,7 +1847,7 @@ var resp = convert.JSON.encode(buildLogSink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_sinkName, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync(((api.LogSink response) { + res.update(arg_request, arg_sinkName, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync1(((api.LogSink response) { checkLogSink(response); }))); }); @@ -1862,7 +1862,7 @@ api.MonitoredResourceDescriptorsResourceApi res = new api.LoggingApi(mock).monitoredResourceDescriptors; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1898,7 +1898,7 @@ var resp = convert.JSON.encode(buildListMonitoredResourceDescriptorsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListMonitoredResourceDescriptorsResponse response) { + res.list(pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListMonitoredResourceDescriptorsResponse response) { checkListMonitoredResourceDescriptorsResponse(response); }))); }); @@ -1912,7 +1912,7 @@ var mock = new HttpServerMock(); api.OrganizationsLogsResourceApi res = new api.LoggingApi(mock).organizations.logs; var arg_logName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1947,7 +1947,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_logName).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_logName).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1957,9 +1957,9 @@ var mock = new HttpServerMock(); api.OrganizationsLogsResourceApi res = new api.LoggingApi(mock).organizations.logs; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1986,8 +1986,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -1996,7 +1996,7 @@ var resp = convert.JSON.encode(buildListLogsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListLogsResponse response) { + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListLogsResponse response) { checkListLogsResponse(response); }))); }); @@ -2012,7 +2012,7 @@ var arg_request = buildLogSink(); var arg_parent = "foo"; var arg_uniqueWriterIdentity = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LogSink.fromJson(json); checkLogSink(obj); @@ -2051,7 +2051,7 @@ var resp = convert.JSON.encode(buildLogSink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_parent, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync(((api.LogSink response) { + res.create(arg_request, arg_parent, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync1(((api.LogSink response) { checkLogSink(response); }))); }); @@ -2061,7 +2061,7 @@ var mock = new HttpServerMock(); api.OrganizationsSinksResourceApi res = new api.LoggingApi(mock).organizations.sinks; var arg_sinkName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2096,7 +2096,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_sinkName).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_sinkName).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -2106,7 +2106,7 @@ var mock = new HttpServerMock(); api.OrganizationsSinksResourceApi res = new api.LoggingApi(mock).organizations.sinks; var arg_sinkName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2141,7 +2141,7 @@ var resp = convert.JSON.encode(buildLogSink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_sinkName).then(unittest.expectAsync(((api.LogSink response) { + res.get(arg_sinkName).then(unittest.expectAsync1(((api.LogSink response) { checkLogSink(response); }))); }); @@ -2151,9 +2151,9 @@ var mock = new HttpServerMock(); api.OrganizationsSinksResourceApi res = new api.LoggingApi(mock).organizations.sinks; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2180,8 +2180,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -2190,7 +2190,7 @@ var resp = convert.JSON.encode(buildListSinksResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListSinksResponse response) { + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListSinksResponse response) { checkListSinksResponse(response); }))); }); @@ -2202,7 +2202,7 @@ var arg_request = buildLogSink(); var arg_sinkName = "foo"; var arg_uniqueWriterIdentity = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LogSink.fromJson(json); checkLogSink(obj); @@ -2241,7 +2241,7 @@ var resp = convert.JSON.encode(buildLogSink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_sinkName, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync(((api.LogSink response) { + res.update(arg_request, arg_sinkName, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync1(((api.LogSink response) { checkLogSink(response); }))); }); @@ -2255,7 +2255,7 @@ var mock = new HttpServerMock(); api.ProjectsLogsResourceApi res = new api.LoggingApi(mock).projects.logs; var arg_logName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2290,7 +2290,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_logName).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_logName).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -2302,7 +2302,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2339,7 +2339,7 @@ var resp = convert.JSON.encode(buildListLogsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListLogsResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListLogsResponse response) { checkListLogsResponse(response); }))); }); @@ -2354,7 +2354,7 @@ api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.metrics; var arg_request = buildLogMetric(); var arg_parent = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LogMetric.fromJson(json); checkLogMetric(obj); @@ -2392,7 +2392,7 @@ var resp = convert.JSON.encode(buildLogMetric()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_parent).then(unittest.expectAsync(((api.LogMetric response) { + res.create(arg_request, arg_parent).then(unittest.expectAsync1(((api.LogMetric response) { checkLogMetric(response); }))); }); @@ -2402,7 +2402,7 @@ var mock = new HttpServerMock(); api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.metrics; var arg_metricName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2437,7 +2437,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_metricName).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_metricName).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -2447,7 +2447,7 @@ var mock = new HttpServerMock(); api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.metrics; var arg_metricName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2482,7 +2482,7 @@ var resp = convert.JSON.encode(buildLogMetric()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_metricName).then(unittest.expectAsync(((api.LogMetric response) { + res.get(arg_metricName).then(unittest.expectAsync1(((api.LogMetric response) { checkLogMetric(response); }))); }); @@ -2494,7 +2494,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2531,7 +2531,7 @@ var resp = convert.JSON.encode(buildListLogMetricsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListLogMetricsResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListLogMetricsResponse response) { checkListLogMetricsResponse(response); }))); }); @@ -2542,7 +2542,7 @@ api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.metrics; var arg_request = buildLogMetric(); var arg_metricName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LogMetric.fromJson(json); checkLogMetric(obj); @@ -2580,7 +2580,7 @@ var resp = convert.JSON.encode(buildLogMetric()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_metricName).then(unittest.expectAsync(((api.LogMetric response) { + res.update(arg_request, arg_metricName).then(unittest.expectAsync1(((api.LogMetric response) { checkLogMetric(response); }))); }); @@ -2596,7 +2596,7 @@ var arg_request = buildLogSink(); var arg_parent = "foo"; var arg_uniqueWriterIdentity = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LogSink.fromJson(json); checkLogSink(obj); @@ -2635,7 +2635,7 @@ var resp = convert.JSON.encode(buildLogSink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_parent, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync(((api.LogSink response) { + res.create(arg_request, arg_parent, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync1(((api.LogSink response) { checkLogSink(response); }))); }); @@ -2645,7 +2645,7 @@ var mock = new HttpServerMock(); api.ProjectsSinksResourceApi res = new api.LoggingApi(mock).projects.sinks; var arg_sinkName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2680,7 +2680,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_sinkName).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_sinkName).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -2690,7 +2690,7 @@ var mock = new HttpServerMock(); api.ProjectsSinksResourceApi res = new api.LoggingApi(mock).projects.sinks; var arg_sinkName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2725,7 +2725,7 @@ var resp = convert.JSON.encode(buildLogSink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_sinkName).then(unittest.expectAsync(((api.LogSink response) { + res.get(arg_sinkName).then(unittest.expectAsync1(((api.LogSink response) { checkLogSink(response); }))); }); @@ -2737,7 +2737,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2774,7 +2774,7 @@ var resp = convert.JSON.encode(buildListSinksResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListSinksResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListSinksResponse response) { checkListSinksResponse(response); }))); }); @@ -2786,7 +2786,7 @@ var arg_request = buildLogSink(); var arg_sinkName = "foo"; var arg_uniqueWriterIdentity = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LogSink.fromJson(json); checkLogSink(obj); @@ -2825,7 +2825,7 @@ var resp = convert.JSON.encode(buildLogSink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_sinkName, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync(((api.LogSink response) { + res.update(arg_request, arg_sinkName, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync1(((api.LogSink response) { checkLogSink(response); }))); });
diff --git a/generated/googleapis/test/manufacturers/v1_test.dart b/generated/googleapis/test/manufacturers/v1_test.dart index 20f22d7..9eace3f 100644 --- a/generated/googleapis/test/manufacturers/v1_test.dart +++ b/generated/googleapis/test/manufacturers/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/manufacturers/v1.dart' as api; @@ -46,84 +46,84 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1461() { +buildUnnamed1468() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed1461(core.List<api.Image> o) { +checkUnnamed1468(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); } -buildUnnamed1462() { +buildUnnamed1469() { var o = new core.List<api.FeatureDescription>(); o.add(buildFeatureDescription()); o.add(buildFeatureDescription()); return o; } -checkUnnamed1462(core.List<api.FeatureDescription> o) { +checkUnnamed1469(core.List<api.FeatureDescription> o) { unittest.expect(o, unittest.hasLength(2)); checkFeatureDescription(o[0]); checkFeatureDescription(o[1]); } -buildUnnamed1463() { +buildUnnamed1470() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1463(core.List<core.String> o) { +checkUnnamed1470(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1464() { +buildUnnamed1471() { var o = new core.List<api.ProductDetail>(); o.add(buildProductDetail()); o.add(buildProductDetail()); return o; } -checkUnnamed1464(core.List<api.ProductDetail> o) { +checkUnnamed1471(core.List<api.ProductDetail> o) { unittest.expect(o, unittest.hasLength(2)); checkProductDetail(o[0]); checkProductDetail(o[1]); } -buildUnnamed1465() { +buildUnnamed1472() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1465(core.List<core.String> o) { +checkUnnamed1472(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1466() { +buildUnnamed1473() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1466(core.List<core.String> o) { +checkUnnamed1473(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -134,7 +134,7 @@ var o = new api.Attributes(); buildCounterAttributes++; if (buildCounterAttributes < 3) { - o.additionalImageLink = buildUnnamed1461(); + o.additionalImageLink = buildUnnamed1468(); o.ageGroup = "foo"; o.brand = "foo"; o.capacity = buildCapacity(); @@ -142,21 +142,21 @@ o.count = buildCount(); o.description = "foo"; o.disclosureDate = "foo"; - o.featureDescription = buildUnnamed1462(); + o.featureDescription = buildUnnamed1469(); o.flavor = "foo"; o.format = "foo"; o.gender = "foo"; - o.gtin = buildUnnamed1463(); + o.gtin = buildUnnamed1470(); o.imageLink = buildImage(); o.itemGroupId = "foo"; o.material = "foo"; o.mpn = "foo"; o.pattern = "foo"; - o.productDetail = buildUnnamed1464(); + o.productDetail = buildUnnamed1471(); o.productLine = "foo"; o.productName = "foo"; o.productPageUrl = "foo"; - o.productType = buildUnnamed1465(); + o.productType = buildUnnamed1472(); o.releaseDate = "foo"; o.scent = "foo"; o.size = "foo"; @@ -165,7 +165,7 @@ o.suggestedRetailPrice = buildPrice(); o.theme = "foo"; o.title = "foo"; - o.videoLink = buildUnnamed1466(); + o.videoLink = buildUnnamed1473(); } buildCounterAttributes--; return o; @@ -174,7 +174,7 @@ checkAttributes(api.Attributes o) { buildCounterAttributes++; if (buildCounterAttributes < 3) { - checkUnnamed1461(o.additionalImageLink); + checkUnnamed1468(o.additionalImageLink); unittest.expect(o.ageGroup, unittest.equals('foo')); unittest.expect(o.brand, unittest.equals('foo')); checkCapacity(o.capacity); @@ -182,21 +182,21 @@ checkCount(o.count); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.disclosureDate, unittest.equals('foo')); - checkUnnamed1462(o.featureDescription); + checkUnnamed1469(o.featureDescription); unittest.expect(o.flavor, unittest.equals('foo')); unittest.expect(o.format, unittest.equals('foo')); unittest.expect(o.gender, unittest.equals('foo')); - checkUnnamed1463(o.gtin); + checkUnnamed1470(o.gtin); checkImage(o.imageLink); unittest.expect(o.itemGroupId, unittest.equals('foo')); unittest.expect(o.material, unittest.equals('foo')); unittest.expect(o.mpn, unittest.equals('foo')); unittest.expect(o.pattern, unittest.equals('foo')); - checkUnnamed1464(o.productDetail); + checkUnnamed1471(o.productDetail); unittest.expect(o.productLine, unittest.equals('foo')); unittest.expect(o.productName, unittest.equals('foo')); unittest.expect(o.productPageUrl, unittest.equals('foo')); - checkUnnamed1465(o.productType); + checkUnnamed1472(o.productType); unittest.expect(o.releaseDate, unittest.equals('foo')); unittest.expect(o.scent, unittest.equals('foo')); unittest.expect(o.size, unittest.equals('foo')); @@ -205,7 +205,7 @@ checkPrice(o.suggestedRetailPrice); unittest.expect(o.theme, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed1466(o.videoLink); + checkUnnamed1473(o.videoLink); } buildCounterAttributes--; } @@ -325,14 +325,14 @@ buildCounterIssue--; } -buildUnnamed1467() { +buildUnnamed1474() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed1467(core.List<api.Product> o) { +checkUnnamed1474(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -344,7 +344,7 @@ buildCounterListProductsResponse++; if (buildCounterListProductsResponse < 3) { o.nextPageToken = "foo"; - o.products = buildUnnamed1467(); + o.products = buildUnnamed1474(); } buildCounterListProductsResponse--; return o; @@ -354,7 +354,7 @@ buildCounterListProductsResponse++; if (buildCounterListProductsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1467(o.products); + checkUnnamed1474(o.products); } buildCounterListProductsResponse--; } @@ -380,27 +380,27 @@ buildCounterPrice--; } -buildUnnamed1468() { +buildUnnamed1475() { var o = new core.List<api.Issue>(); o.add(buildIssue()); o.add(buildIssue()); return o; } -checkUnnamed1468(core.List<api.Issue> o) { +checkUnnamed1475(core.List<api.Issue> o) { unittest.expect(o, unittest.hasLength(2)); checkIssue(o[0]); checkIssue(o[1]); } -buildUnnamed1469() { +buildUnnamed1476() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1469(core.List<core.String> o) { +checkUnnamed1476(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -413,8 +413,8 @@ if (buildCounterProduct < 3) { o.contentLanguage = "foo"; o.finalAttributes = buildAttributes(); - o.issues = buildUnnamed1468(); - o.manuallyDeletedAttributes = buildUnnamed1469(); + o.issues = buildUnnamed1475(); + o.manuallyDeletedAttributes = buildUnnamed1476(); o.manuallyProvidedAttributes = buildAttributes(); o.name = "foo"; o.parent = "foo"; @@ -431,8 +431,8 @@ if (buildCounterProduct < 3) { unittest.expect(o.contentLanguage, unittest.equals('foo')); checkAttributes(o.finalAttributes); - checkUnnamed1468(o.issues); - checkUnnamed1469(o.manuallyDeletedAttributes); + checkUnnamed1475(o.issues); + checkUnnamed1476(o.manuallyDeletedAttributes); checkAttributes(o.manuallyProvidedAttributes); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parent, unittest.equals('foo')); @@ -565,7 +565,7 @@ api.AccountsProductsResourceApi res = new api.ManufacturersApi(mock).accounts.products; var arg_parent = "foo"; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -600,7 +600,7 @@ var resp = convert.JSON.encode(buildProduct()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_parent, arg_name).then(unittest.expectAsync(((api.Product response) { + res.get(arg_parent, arg_name).then(unittest.expectAsync1(((api.Product response) { checkProduct(response); }))); }); @@ -612,7 +612,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -649,7 +649,7 @@ var resp = convert.JSON.encode(buildListProductsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListProductsResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListProductsResponse response) { checkListProductsResponse(response); }))); });
diff --git a/generated/googleapis/test/mirror/v1_test.dart b/generated/googleapis/test/mirror/v1_test.dart index f04869b..ef93858 100644 --- a/generated/googleapis/test/mirror/v1_test.dart +++ b/generated/googleapis/test/mirror/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/mirror/v1.dart' as api; @@ -46,45 +46,45 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1399() { +buildUnnamed1406() { var o = new core.List<api.AuthToken>(); o.add(buildAuthToken()); o.add(buildAuthToken()); return o; } -checkUnnamed1399(core.List<api.AuthToken> o) { +checkUnnamed1406(core.List<api.AuthToken> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthToken(o[0]); checkAuthToken(o[1]); } -buildUnnamed1400() { +buildUnnamed1407() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1400(core.List<core.String> o) { +checkUnnamed1407(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1401() { +buildUnnamed1408() { var o = new core.List<api.UserData>(); o.add(buildUserData()); o.add(buildUserData()); return o; } -checkUnnamed1401(core.List<api.UserData> o) { +checkUnnamed1408(core.List<api.UserData> o) { unittest.expect(o, unittest.hasLength(2)); checkUserData(o[0]); checkUserData(o[1]); @@ -95,10 +95,10 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.authTokens = buildUnnamed1399(); - o.features = buildUnnamed1400(); + o.authTokens = buildUnnamed1406(); + o.features = buildUnnamed1407(); o.password = "foo"; - o.userData = buildUnnamed1401(); + o.userData = buildUnnamed1408(); } buildCounterAccount--; return o; @@ -107,10 +107,10 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed1399(o.authTokens); - checkUnnamed1400(o.features); + checkUnnamed1406(o.authTokens); + checkUnnamed1407(o.features); unittest.expect(o.password, unittest.equals('foo')); - checkUnnamed1401(o.userData); + checkUnnamed1408(o.userData); } buildCounterAccount--; } @@ -140,14 +140,14 @@ buildCounterAttachment--; } -buildUnnamed1402() { +buildUnnamed1409() { var o = new core.List<api.Attachment>(); o.add(buildAttachment()); o.add(buildAttachment()); return o; } -checkUnnamed1402(core.List<api.Attachment> o) { +checkUnnamed1409(core.List<api.Attachment> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachment(o[0]); checkAttachment(o[1]); @@ -158,7 +158,7 @@ var o = new api.AttachmentsListResponse(); buildCounterAttachmentsListResponse++; if (buildCounterAttachmentsListResponse < 3) { - o.items = buildUnnamed1402(); + o.items = buildUnnamed1409(); o.kind = "foo"; } buildCounterAttachmentsListResponse--; @@ -168,7 +168,7 @@ checkAttachmentsListResponse(api.AttachmentsListResponse o) { buildCounterAttachmentsListResponse++; if (buildCounterAttachmentsListResponse < 3) { - checkUnnamed1402(o.items); + checkUnnamed1409(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAttachmentsListResponse--; @@ -214,53 +214,53 @@ buildCounterCommand--; } -buildUnnamed1403() { +buildUnnamed1410() { var o = new core.List<api.Command>(); o.add(buildCommand()); o.add(buildCommand()); return o; } -checkUnnamed1403(core.List<api.Command> o) { +checkUnnamed1410(core.List<api.Command> o) { unittest.expect(o, unittest.hasLength(2)); checkCommand(o[0]); checkCommand(o[1]); } -buildUnnamed1404() { +buildUnnamed1411() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1404(core.List<core.String> o) { +checkUnnamed1411(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1405() { +buildUnnamed1412() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1405(core.List<core.String> o) { +checkUnnamed1412(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1406() { +buildUnnamed1413() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1406(core.List<core.String> o) { +checkUnnamed1413(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -271,15 +271,15 @@ var o = new api.Contact(); buildCounterContact++; if (buildCounterContact < 3) { - o.acceptCommands = buildUnnamed1403(); - o.acceptTypes = buildUnnamed1404(); + o.acceptCommands = buildUnnamed1410(); + o.acceptTypes = buildUnnamed1411(); o.displayName = "foo"; o.id = "foo"; - o.imageUrls = buildUnnamed1405(); + o.imageUrls = buildUnnamed1412(); o.kind = "foo"; o.phoneNumber = "foo"; o.priority = 42; - o.sharingFeatures = buildUnnamed1406(); + o.sharingFeatures = buildUnnamed1413(); o.source = "foo"; o.speakableName = "foo"; o.type = "foo"; @@ -291,15 +291,15 @@ checkContact(api.Contact o) { buildCounterContact++; if (buildCounterContact < 3) { - checkUnnamed1403(o.acceptCommands); - checkUnnamed1404(o.acceptTypes); + checkUnnamed1410(o.acceptCommands); + checkUnnamed1411(o.acceptTypes); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1405(o.imageUrls); + checkUnnamed1412(o.imageUrls); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.phoneNumber, unittest.equals('foo')); unittest.expect(o.priority, unittest.equals(42)); - checkUnnamed1406(o.sharingFeatures); + checkUnnamed1413(o.sharingFeatures); unittest.expect(o.source, unittest.equals('foo')); unittest.expect(o.speakableName, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -307,14 +307,14 @@ buildCounterContact--; } -buildUnnamed1407() { +buildUnnamed1414() { var o = new core.List<api.Contact>(); o.add(buildContact()); o.add(buildContact()); return o; } -checkUnnamed1407(core.List<api.Contact> o) { +checkUnnamed1414(core.List<api.Contact> o) { unittest.expect(o, unittest.hasLength(2)); checkContact(o[0]); checkContact(o[1]); @@ -325,7 +325,7 @@ var o = new api.ContactsListResponse(); buildCounterContactsListResponse++; if (buildCounterContactsListResponse < 3) { - o.items = buildUnnamed1407(); + o.items = buildUnnamed1414(); o.kind = "foo"; } buildCounterContactsListResponse--; @@ -335,7 +335,7 @@ checkContactsListResponse(api.ContactsListResponse o) { buildCounterContactsListResponse++; if (buildCounterContactsListResponse < 3) { - checkUnnamed1407(o.items); + checkUnnamed1414(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterContactsListResponse--; @@ -374,14 +374,14 @@ buildCounterLocation--; } -buildUnnamed1408() { +buildUnnamed1415() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed1408(core.List<api.Location> o) { +checkUnnamed1415(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -392,7 +392,7 @@ var o = new api.LocationsListResponse(); buildCounterLocationsListResponse++; if (buildCounterLocationsListResponse < 3) { - o.items = buildUnnamed1408(); + o.items = buildUnnamed1415(); o.kind = "foo"; } buildCounterLocationsListResponse--; @@ -402,20 +402,20 @@ checkLocationsListResponse(api.LocationsListResponse o) { buildCounterLocationsListResponse++; if (buildCounterLocationsListResponse < 3) { - checkUnnamed1408(o.items); + checkUnnamed1415(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterLocationsListResponse--; } -buildUnnamed1409() { +buildUnnamed1416() { var o = new core.List<api.MenuValue>(); o.add(buildMenuValue()); o.add(buildMenuValue()); return o; } -checkUnnamed1409(core.List<api.MenuValue> o) { +checkUnnamed1416(core.List<api.MenuValue> o) { unittest.expect(o, unittest.hasLength(2)); checkMenuValue(o[0]); checkMenuValue(o[1]); @@ -431,7 +431,7 @@ o.id = "foo"; o.payload = "foo"; o.removeWhenSelected = true; - o.values = buildUnnamed1409(); + o.values = buildUnnamed1416(); } buildCounterMenuItem--; return o; @@ -445,7 +445,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.payload, unittest.equals('foo')); unittest.expect(o.removeWhenSelected, unittest.isTrue); - checkUnnamed1409(o.values); + checkUnnamed1416(o.values); } buildCounterMenuItem--; } @@ -473,14 +473,14 @@ buildCounterMenuValue--; } -buildUnnamed1410() { +buildUnnamed1417() { var o = new core.List<api.UserAction>(); o.add(buildUserAction()); o.add(buildUserAction()); return o; } -checkUnnamed1410(core.List<api.UserAction> o) { +checkUnnamed1417(core.List<api.UserAction> o) { unittest.expect(o, unittest.hasLength(2)); checkUserAction(o[0]); checkUserAction(o[1]); @@ -494,7 +494,7 @@ o.collection = "foo"; o.itemId = "foo"; o.operation = "foo"; - o.userActions = buildUnnamed1410(); + o.userActions = buildUnnamed1417(); o.userToken = "foo"; o.verifyToken = "foo"; } @@ -508,7 +508,7 @@ unittest.expect(o.collection, unittest.equals('foo')); unittest.expect(o.itemId, unittest.equals('foo')); unittest.expect(o.operation, unittest.equals('foo')); - checkUnnamed1410(o.userActions); + checkUnnamed1417(o.userActions); unittest.expect(o.userToken, unittest.equals('foo')); unittest.expect(o.verifyToken, unittest.equals('foo')); } @@ -559,14 +559,14 @@ buildCounterSetting--; } -buildUnnamed1411() { +buildUnnamed1418() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1411(core.List<core.String> o) { +checkUnnamed1418(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -582,7 +582,7 @@ o.id = "foo"; o.kind = "foo"; o.notification = buildNotification(); - o.operation = buildUnnamed1411(); + o.operation = buildUnnamed1418(); o.updated = core.DateTime.parse("2002-02-27T14:01:02"); o.userToken = "foo"; o.verifyToken = "foo"; @@ -599,7 +599,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkNotification(o.notification); - checkUnnamed1411(o.operation); + checkUnnamed1418(o.operation); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.userToken, unittest.equals('foo')); unittest.expect(o.verifyToken, unittest.equals('foo')); @@ -607,14 +607,14 @@ buildCounterSubscription--; } -buildUnnamed1412() { +buildUnnamed1419() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed1412(core.List<api.Subscription> o) { +checkUnnamed1419(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -625,7 +625,7 @@ var o = new api.SubscriptionsListResponse(); buildCounterSubscriptionsListResponse++; if (buildCounterSubscriptionsListResponse < 3) { - o.items = buildUnnamed1412(); + o.items = buildUnnamed1419(); o.kind = "foo"; } buildCounterSubscriptionsListResponse--; @@ -635,46 +635,46 @@ checkSubscriptionsListResponse(api.SubscriptionsListResponse o) { buildCounterSubscriptionsListResponse++; if (buildCounterSubscriptionsListResponse < 3) { - checkUnnamed1412(o.items); + checkUnnamed1419(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterSubscriptionsListResponse--; } -buildUnnamed1413() { +buildUnnamed1420() { var o = new core.List<api.Attachment>(); o.add(buildAttachment()); o.add(buildAttachment()); return o; } -checkUnnamed1413(core.List<api.Attachment> o) { +checkUnnamed1420(core.List<api.Attachment> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachment(o[0]); checkAttachment(o[1]); } -buildUnnamed1414() { +buildUnnamed1421() { var o = new core.List<api.MenuItem>(); o.add(buildMenuItem()); o.add(buildMenuItem()); return o; } -checkUnnamed1414(core.List<api.MenuItem> o) { +checkUnnamed1421(core.List<api.MenuItem> o) { unittest.expect(o, unittest.hasLength(2)); checkMenuItem(o[0]); checkMenuItem(o[1]); } -buildUnnamed1415() { +buildUnnamed1422() { var o = new core.List<api.Contact>(); o.add(buildContact()); o.add(buildContact()); return o; } -checkUnnamed1415(core.List<api.Contact> o) { +checkUnnamed1422(core.List<api.Contact> o) { unittest.expect(o, unittest.hasLength(2)); checkContact(o[0]); checkContact(o[1]); @@ -685,7 +685,7 @@ var o = new api.TimelineItem(); buildCounterTimelineItem++; if (buildCounterTimelineItem < 3) { - o.attachments = buildUnnamed1413(); + o.attachments = buildUnnamed1420(); o.bundleId = "foo"; o.canonicalUrl = "foo"; o.created = core.DateTime.parse("2002-02-27T14:01:02"); @@ -700,10 +700,10 @@ o.isPinned = true; o.kind = "foo"; o.location = buildLocation(); - o.menuItems = buildUnnamed1414(); + o.menuItems = buildUnnamed1421(); o.notification = buildNotificationConfig(); o.pinScore = 42; - o.recipients = buildUnnamed1415(); + o.recipients = buildUnnamed1422(); o.selfLink = "foo"; o.sourceItemId = "foo"; o.speakableText = "foo"; @@ -719,7 +719,7 @@ checkTimelineItem(api.TimelineItem o) { buildCounterTimelineItem++; if (buildCounterTimelineItem < 3) { - checkUnnamed1413(o.attachments); + checkUnnamed1420(o.attachments); unittest.expect(o.bundleId, unittest.equals('foo')); unittest.expect(o.canonicalUrl, unittest.equals('foo')); unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -734,10 +734,10 @@ unittest.expect(o.isPinned, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); checkLocation(o.location); - checkUnnamed1414(o.menuItems); + checkUnnamed1421(o.menuItems); checkNotificationConfig(o.notification); unittest.expect(o.pinScore, unittest.equals(42)); - checkUnnamed1415(o.recipients); + checkUnnamed1422(o.recipients); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.sourceItemId, unittest.equals('foo')); unittest.expect(o.speakableText, unittest.equals('foo')); @@ -749,14 +749,14 @@ buildCounterTimelineItem--; } -buildUnnamed1416() { +buildUnnamed1423() { var o = new core.List<api.TimelineItem>(); o.add(buildTimelineItem()); o.add(buildTimelineItem()); return o; } -checkUnnamed1416(core.List<api.TimelineItem> o) { +checkUnnamed1423(core.List<api.TimelineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkTimelineItem(o[0]); checkTimelineItem(o[1]); @@ -767,7 +767,7 @@ var o = new api.TimelineListResponse(); buildCounterTimelineListResponse++; if (buildCounterTimelineListResponse < 3) { - o.items = buildUnnamed1416(); + o.items = buildUnnamed1423(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -778,7 +778,7 @@ checkTimelineListResponse(api.TimelineListResponse o) { buildCounterTimelineListResponse++; if (buildCounterTimelineListResponse < 3) { - checkUnnamed1416(o.items); + checkUnnamed1423(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1018,7 +1018,7 @@ var arg_userToken = "foo"; var arg_accountType = "foo"; var arg_accountName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Account.fromJson(json); checkAccount(obj); @@ -1074,7 +1074,7 @@ var resp = convert.JSON.encode(buildAccount()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_userToken, arg_accountType, arg_accountName).then(unittest.expectAsync(((api.Account response) { + res.insert(arg_request, arg_userToken, arg_accountType, arg_accountName).then(unittest.expectAsync1(((api.Account response) { checkAccount(response); }))); }); @@ -1088,7 +1088,7 @@ var mock = new HttpServerMock(); api.ContactsResourceApi res = new api.MirrorApi(mock).contacts; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1127,7 +1127,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_id).then(unittest.expectAsync((_) {})); + res.delete(arg_id).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -1135,7 +1135,7 @@ var mock = new HttpServerMock(); api.ContactsResourceApi res = new api.MirrorApi(mock).contacts; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1174,7 +1174,7 @@ var resp = convert.JSON.encode(buildContact()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_id).then(unittest.expectAsync(((api.Contact response) { + res.get(arg_id).then(unittest.expectAsync1(((api.Contact response) { checkContact(response); }))); }); @@ -1184,7 +1184,7 @@ var mock = new HttpServerMock(); api.ContactsResourceApi res = new api.MirrorApi(mock).contacts; var arg_request = buildContact(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Contact.fromJson(json); checkContact(obj); @@ -1223,7 +1223,7 @@ var resp = convert.JSON.encode(buildContact()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request).then(unittest.expectAsync(((api.Contact response) { + res.insert(arg_request).then(unittest.expectAsync1(((api.Contact response) { checkContact(response); }))); }); @@ -1232,7 +1232,7 @@ var mock = new HttpServerMock(); api.ContactsResourceApi res = new api.MirrorApi(mock).contacts; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1268,7 +1268,7 @@ var resp = convert.JSON.encode(buildContactsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list().then(unittest.expectAsync(((api.ContactsListResponse response) { + res.list().then(unittest.expectAsync1(((api.ContactsListResponse response) { checkContactsListResponse(response); }))); }); @@ -1279,7 +1279,7 @@ api.ContactsResourceApi res = new api.MirrorApi(mock).contacts; var arg_request = buildContact(); var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Contact.fromJson(json); checkContact(obj); @@ -1321,7 +1321,7 @@ var resp = convert.JSON.encode(buildContact()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_id).then(unittest.expectAsync(((api.Contact response) { + res.patch(arg_request, arg_id).then(unittest.expectAsync1(((api.Contact response) { checkContact(response); }))); }); @@ -1332,7 +1332,7 @@ api.ContactsResourceApi res = new api.MirrorApi(mock).contacts; var arg_request = buildContact(); var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Contact.fromJson(json); checkContact(obj); @@ -1374,7 +1374,7 @@ var resp = convert.JSON.encode(buildContact()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_id).then(unittest.expectAsync(((api.Contact response) { + res.update(arg_request, arg_id).then(unittest.expectAsync1(((api.Contact response) { checkContact(response); }))); }); @@ -1388,7 +1388,7 @@ var mock = new HttpServerMock(); api.LocationsResourceApi res = new api.MirrorApi(mock).locations; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1427,7 +1427,7 @@ var resp = convert.JSON.encode(buildLocation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_id).then(unittest.expectAsync(((api.Location response) { + res.get(arg_id).then(unittest.expectAsync1(((api.Location response) { checkLocation(response); }))); }); @@ -1436,7 +1436,7 @@ var mock = new HttpServerMock(); api.LocationsResourceApi res = new api.MirrorApi(mock).locations; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1472,7 +1472,7 @@ var resp = convert.JSON.encode(buildLocationsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list().then(unittest.expectAsync(((api.LocationsListResponse response) { + res.list().then(unittest.expectAsync1(((api.LocationsListResponse response) { checkLocationsListResponse(response); }))); }); @@ -1486,7 +1486,7 @@ var mock = new HttpServerMock(); api.SettingsResourceApi res = new api.MirrorApi(mock).settings; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1525,7 +1525,7 @@ var resp = convert.JSON.encode(buildSetting()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_id).then(unittest.expectAsync(((api.Setting response) { + res.get(arg_id).then(unittest.expectAsync1(((api.Setting response) { checkSetting(response); }))); }); @@ -1539,7 +1539,7 @@ var mock = new HttpServerMock(); api.SubscriptionsResourceApi res = new api.MirrorApi(mock).subscriptions; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1578,7 +1578,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_id).then(unittest.expectAsync((_) {})); + res.delete(arg_id).then(unittest.expectAsync1((_) {})); }); unittest.test("method--insert", () { @@ -1586,7 +1586,7 @@ var mock = new HttpServerMock(); api.SubscriptionsResourceApi res = new api.MirrorApi(mock).subscriptions; var arg_request = buildSubscription(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Subscription.fromJson(json); checkSubscription(obj); @@ -1625,7 +1625,7 @@ var resp = convert.JSON.encode(buildSubscription()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request).then(unittest.expectAsync(((api.Subscription response) { + res.insert(arg_request).then(unittest.expectAsync1(((api.Subscription response) { checkSubscription(response); }))); }); @@ -1634,7 +1634,7 @@ var mock = new HttpServerMock(); api.SubscriptionsResourceApi res = new api.MirrorApi(mock).subscriptions; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1670,7 +1670,7 @@ var resp = convert.JSON.encode(buildSubscriptionsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list().then(unittest.expectAsync(((api.SubscriptionsListResponse response) { + res.list().then(unittest.expectAsync1(((api.SubscriptionsListResponse response) { checkSubscriptionsListResponse(response); }))); }); @@ -1681,7 +1681,7 @@ api.SubscriptionsResourceApi res = new api.MirrorApi(mock).subscriptions; var arg_request = buildSubscription(); var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Subscription.fromJson(json); checkSubscription(obj); @@ -1723,7 +1723,7 @@ var resp = convert.JSON.encode(buildSubscription()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_id).then(unittest.expectAsync(((api.Subscription response) { + res.update(arg_request, arg_id).then(unittest.expectAsync1(((api.Subscription response) { checkSubscription(response); }))); }); @@ -1737,7 +1737,7 @@ var mock = new HttpServerMock(); api.TimelineResourceApi res = new api.MirrorApi(mock).timeline; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1776,7 +1776,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_id).then(unittest.expectAsync((_) {})); + res.delete(arg_id).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -1784,7 +1784,7 @@ var mock = new HttpServerMock(); api.TimelineResourceApi res = new api.MirrorApi(mock).timeline; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1823,7 +1823,7 @@ var resp = convert.JSON.encode(buildTimelineItem()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_id).then(unittest.expectAsync(((api.TimelineItem response) { + res.get(arg_id).then(unittest.expectAsync1(((api.TimelineItem response) { checkTimelineItem(response); }))); }); @@ -1835,7 +1835,7 @@ var mock = new HttpServerMock(); api.TimelineResourceApi res = new api.MirrorApi(mock).timeline; var arg_request = buildTimelineItem(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TimelineItem.fromJson(json); checkTimelineItem(obj); @@ -1874,7 +1874,7 @@ var resp = convert.JSON.encode(buildTimelineItem()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request).then(unittest.expectAsync(((api.TimelineItem response) { + res.insert(arg_request).then(unittest.expectAsync1(((api.TimelineItem response) { checkTimelineItem(response); }))); }); @@ -1890,7 +1890,7 @@ var arg_pageToken = "foo"; var arg_pinnedOnly = true; var arg_sourceItemId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1933,7 +1933,7 @@ var resp = convert.JSON.encode(buildTimelineListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(bundleId: arg_bundleId, includeDeleted: arg_includeDeleted, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, pinnedOnly: arg_pinnedOnly, sourceItemId: arg_sourceItemId).then(unittest.expectAsync(((api.TimelineListResponse response) { + res.list(bundleId: arg_bundleId, includeDeleted: arg_includeDeleted, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, pinnedOnly: arg_pinnedOnly, sourceItemId: arg_sourceItemId).then(unittest.expectAsync1(((api.TimelineListResponse response) { checkTimelineListResponse(response); }))); }); @@ -1944,7 +1944,7 @@ api.TimelineResourceApi res = new api.MirrorApi(mock).timeline; var arg_request = buildTimelineItem(); var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TimelineItem.fromJson(json); checkTimelineItem(obj); @@ -1986,7 +1986,7 @@ var resp = convert.JSON.encode(buildTimelineItem()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_id).then(unittest.expectAsync(((api.TimelineItem response) { + res.patch(arg_request, arg_id).then(unittest.expectAsync1(((api.TimelineItem response) { checkTimelineItem(response); }))); }); @@ -1999,7 +1999,7 @@ api.TimelineResourceApi res = new api.MirrorApi(mock).timeline; var arg_request = buildTimelineItem(); var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TimelineItem.fromJson(json); checkTimelineItem(obj); @@ -2041,7 +2041,7 @@ var resp = convert.JSON.encode(buildTimelineItem()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_id).then(unittest.expectAsync(((api.TimelineItem response) { + res.update(arg_request, arg_id).then(unittest.expectAsync1(((api.TimelineItem response) { checkTimelineItem(response); }))); }); @@ -2056,7 +2056,7 @@ api.TimelineAttachmentsResourceApi res = new api.MirrorApi(mock).timeline.attachments; var arg_itemId = "foo"; var arg_attachmentId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2102,7 +2102,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_itemId, arg_attachmentId).then(unittest.expectAsync((_) {})); + res.delete(arg_itemId, arg_attachmentId).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -2113,7 +2113,7 @@ api.TimelineAttachmentsResourceApi res = new api.MirrorApi(mock).timeline.attachments; var arg_itemId = "foo"; var arg_attachmentId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2159,7 +2159,7 @@ var resp = convert.JSON.encode(buildAttachment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_itemId, arg_attachmentId).then(unittest.expectAsync(((api.Attachment response) { + res.get(arg_itemId, arg_attachmentId).then(unittest.expectAsync1(((api.Attachment response) { checkAttachment(response); }))); }); @@ -2171,7 +2171,7 @@ var mock = new HttpServerMock(); api.TimelineAttachmentsResourceApi res = new api.MirrorApi(mock).timeline.attachments; var arg_itemId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2214,7 +2214,7 @@ var resp = convert.JSON.encode(buildAttachment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_itemId).then(unittest.expectAsync(((api.Attachment response) { + res.insert(arg_itemId).then(unittest.expectAsync1(((api.Attachment response) { checkAttachment(response); }))); }); @@ -2224,7 +2224,7 @@ var mock = new HttpServerMock(); api.TimelineAttachmentsResourceApi res = new api.MirrorApi(mock).timeline.attachments; var arg_itemId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2267,7 +2267,7 @@ var resp = convert.JSON.encode(buildAttachmentsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_itemId).then(unittest.expectAsync(((api.AttachmentsListResponse response) { + res.list(arg_itemId).then(unittest.expectAsync1(((api.AttachmentsListResponse response) { checkAttachmentsListResponse(response); }))); });
diff --git a/generated/googleapis/test/ml/v1_test.dart b/generated/googleapis/test/ml/v1_test.dart index 7b428c0..1e2523d 100644 --- a/generated/googleapis/test/ml/v1_test.dart +++ b/generated/googleapis/test/ml/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/ml/v1.dart' as api; @@ -46,11 +46,37 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } +buildUnnamed0() { + var o = new core.Map<core.String, core.Object>(); + o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + return o; +} + +checkUnnamed0(core.Map<core.String, core.Object> o) { + unittest.expect(o, unittest.hasLength(2)); + var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); + var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); +} + +buildUnnamed1() { + var o = new core.List<core.Map<core.String, core.Object>>(); + o.add(buildUnnamed0()); + o.add(buildUnnamed0()); + return o; +} + +checkUnnamed1(core.List<core.Map<core.String, core.Object>> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed0(o[0]); + checkUnnamed0(o[1]); +} + core.int buildCounterGoogleApiHttpBody = 0; buildGoogleApiHttpBody() { var o = new api.GoogleApiHttpBody(); @@ -58,6 +84,7 @@ if (buildCounterGoogleApiHttpBody < 3) { o.contentType = "foo"; o.data = "foo"; + o.extensions = buildUnnamed1(); } buildCounterGoogleApiHttpBody--; return o; @@ -68,6 +95,7 @@ if (buildCounterGoogleApiHttpBody < 3) { unittest.expect(o.contentType, unittest.equals('foo')); unittest.expect(o.data, unittest.equals('foo')); + checkUnnamed1(o.extensions); } buildCounterGoogleApiHttpBody--; } @@ -93,6 +121,25 @@ buildCounterGoogleCloudMlV1HyperparameterOutputHyperparameterMetric--; } +core.int buildCounterGoogleCloudMlV1AutomaticScaling = 0; +buildGoogleCloudMlV1AutomaticScaling() { + var o = new api.GoogleCloudMlV1AutomaticScaling(); + buildCounterGoogleCloudMlV1AutomaticScaling++; + if (buildCounterGoogleCloudMlV1AutomaticScaling < 3) { + o.minNodes = 42; + } + buildCounterGoogleCloudMlV1AutomaticScaling--; + return o; +} + +checkGoogleCloudMlV1AutomaticScaling(api.GoogleCloudMlV1AutomaticScaling o) { + buildCounterGoogleCloudMlV1AutomaticScaling++; + if (buildCounterGoogleCloudMlV1AutomaticScaling < 3) { + unittest.expect(o.minNodes, unittest.equals(42)); + } + buildCounterGoogleCloudMlV1AutomaticScaling--; +} + core.int buildCounterGoogleCloudMlV1CancelJobRequest = 0; buildGoogleCloudMlV1CancelJobRequest() { var o = new api.GoogleCloudMlV1CancelJobRequest(); @@ -131,27 +178,27 @@ buildCounterGoogleCloudMlV1GetConfigResponse--; } -buildUnnamed0() { +buildUnnamed2() { var o = new core.List<api.GoogleCloudMlV1HyperparameterOutputHyperparameterMetric>(); o.add(buildGoogleCloudMlV1HyperparameterOutputHyperparameterMetric()); o.add(buildGoogleCloudMlV1HyperparameterOutputHyperparameterMetric()); return o; } -checkUnnamed0(core.List<api.GoogleCloudMlV1HyperparameterOutputHyperparameterMetric> o) { +checkUnnamed2(core.List<api.GoogleCloudMlV1HyperparameterOutputHyperparameterMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(o[0]); checkGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(o[1]); } -buildUnnamed1() { +buildUnnamed3() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1(core.Map<core.String, core.String> o) { +checkUnnamed3(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -162,9 +209,9 @@ var o = new api.GoogleCloudMlV1HyperparameterOutput(); buildCounterGoogleCloudMlV1HyperparameterOutput++; if (buildCounterGoogleCloudMlV1HyperparameterOutput < 3) { - o.allMetrics = buildUnnamed0(); + o.allMetrics = buildUnnamed2(); o.finalMetric = buildGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(); - o.hyperparameters = buildUnnamed1(); + o.hyperparameters = buildUnnamed3(); o.trialId = "foo"; } buildCounterGoogleCloudMlV1HyperparameterOutput--; @@ -174,22 +221,22 @@ checkGoogleCloudMlV1HyperparameterOutput(api.GoogleCloudMlV1HyperparameterOutput o) { buildCounterGoogleCloudMlV1HyperparameterOutput++; if (buildCounterGoogleCloudMlV1HyperparameterOutput < 3) { - checkUnnamed0(o.allMetrics); + checkUnnamed2(o.allMetrics); checkGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(o.finalMetric); - checkUnnamed1(o.hyperparameters); + checkUnnamed3(o.hyperparameters); unittest.expect(o.trialId, unittest.equals('foo')); } buildCounterGoogleCloudMlV1HyperparameterOutput--; } -buildUnnamed2() { +buildUnnamed4() { var o = new core.List<api.GoogleCloudMlV1ParameterSpec>(); o.add(buildGoogleCloudMlV1ParameterSpec()); o.add(buildGoogleCloudMlV1ParameterSpec()); return o; } -checkUnnamed2(core.List<api.GoogleCloudMlV1ParameterSpec> o) { +checkUnnamed4(core.List<api.GoogleCloudMlV1ParameterSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1ParameterSpec(o[0]); checkGoogleCloudMlV1ParameterSpec(o[1]); @@ -204,7 +251,7 @@ o.hyperparameterMetricTag = "foo"; o.maxParallelTrials = 42; o.maxTrials = 42; - o.params = buildUnnamed2(); + o.params = buildUnnamed4(); } buildCounterGoogleCloudMlV1HyperparameterSpec--; return o; @@ -217,7 +264,7 @@ unittest.expect(o.hyperparameterMetricTag, unittest.equals('foo')); unittest.expect(o.maxParallelTrials, unittest.equals(42)); unittest.expect(o.maxTrials, unittest.equals(42)); - checkUnnamed2(o.params); + checkUnnamed4(o.params); } buildCounterGoogleCloudMlV1HyperparameterSpec--; } @@ -259,14 +306,14 @@ buildCounterGoogleCloudMlV1Job--; } -buildUnnamed3() { +buildUnnamed5() { var o = new core.List<api.GoogleCloudMlV1Job>(); o.add(buildGoogleCloudMlV1Job()); o.add(buildGoogleCloudMlV1Job()); return o; } -checkUnnamed3(core.List<api.GoogleCloudMlV1Job> o) { +checkUnnamed5(core.List<api.GoogleCloudMlV1Job> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1Job(o[0]); checkGoogleCloudMlV1Job(o[1]); @@ -277,7 +324,7 @@ var o = new api.GoogleCloudMlV1ListJobsResponse(); buildCounterGoogleCloudMlV1ListJobsResponse++; if (buildCounterGoogleCloudMlV1ListJobsResponse < 3) { - o.jobs = buildUnnamed3(); + o.jobs = buildUnnamed5(); o.nextPageToken = "foo"; } buildCounterGoogleCloudMlV1ListJobsResponse--; @@ -287,20 +334,20 @@ checkGoogleCloudMlV1ListJobsResponse(api.GoogleCloudMlV1ListJobsResponse o) { buildCounterGoogleCloudMlV1ListJobsResponse++; if (buildCounterGoogleCloudMlV1ListJobsResponse < 3) { - checkUnnamed3(o.jobs); + checkUnnamed5(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterGoogleCloudMlV1ListJobsResponse--; } -buildUnnamed4() { +buildUnnamed6() { var o = new core.List<api.GoogleCloudMlV1Model>(); o.add(buildGoogleCloudMlV1Model()); o.add(buildGoogleCloudMlV1Model()); return o; } -checkUnnamed4(core.List<api.GoogleCloudMlV1Model> o) { +checkUnnamed6(core.List<api.GoogleCloudMlV1Model> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1Model(o[0]); checkGoogleCloudMlV1Model(o[1]); @@ -311,7 +358,7 @@ var o = new api.GoogleCloudMlV1ListModelsResponse(); buildCounterGoogleCloudMlV1ListModelsResponse++; if (buildCounterGoogleCloudMlV1ListModelsResponse < 3) { - o.models = buildUnnamed4(); + o.models = buildUnnamed6(); o.nextPageToken = "foo"; } buildCounterGoogleCloudMlV1ListModelsResponse--; @@ -321,20 +368,20 @@ checkGoogleCloudMlV1ListModelsResponse(api.GoogleCloudMlV1ListModelsResponse o) { buildCounterGoogleCloudMlV1ListModelsResponse++; if (buildCounterGoogleCloudMlV1ListModelsResponse < 3) { - checkUnnamed4(o.models); + checkUnnamed6(o.models); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterGoogleCloudMlV1ListModelsResponse--; } -buildUnnamed5() { +buildUnnamed7() { var o = new core.List<api.GoogleCloudMlV1Version>(); o.add(buildGoogleCloudMlV1Version()); o.add(buildGoogleCloudMlV1Version()); return o; } -checkUnnamed5(core.List<api.GoogleCloudMlV1Version> o) { +checkUnnamed7(core.List<api.GoogleCloudMlV1Version> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1Version(o[0]); checkGoogleCloudMlV1Version(o[1]); @@ -346,7 +393,7 @@ buildCounterGoogleCloudMlV1ListVersionsResponse++; if (buildCounterGoogleCloudMlV1ListVersionsResponse < 3) { o.nextPageToken = "foo"; - o.versions = buildUnnamed5(); + o.versions = buildUnnamed7(); } buildCounterGoogleCloudMlV1ListVersionsResponse--; return o; @@ -356,7 +403,7 @@ buildCounterGoogleCloudMlV1ListVersionsResponse++; if (buildCounterGoogleCloudMlV1ListVersionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed5(o.versions); + checkUnnamed7(o.versions); } buildCounterGoogleCloudMlV1ListVersionsResponse--; } @@ -380,14 +427,14 @@ buildCounterGoogleCloudMlV1ManualScaling--; } -buildUnnamed6() { +buildUnnamed8() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed6(core.List<core.String> o) { +checkUnnamed8(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -402,7 +449,7 @@ o.description = "foo"; o.name = "foo"; o.onlinePredictionLogging = true; - o.regions = buildUnnamed6(); + o.regions = buildUnnamed8(); } buildCounterGoogleCloudMlV1Model--; return o; @@ -415,7 +462,7 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.onlinePredictionLogging, unittest.isTrue); - checkUnnamed6(o.regions); + checkUnnamed8(o.regions); } buildCounterGoogleCloudMlV1Model--; } @@ -451,27 +498,27 @@ buildCounterGoogleCloudMlV1OperationMetadata--; } -buildUnnamed7() { +buildUnnamed9() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed7(core.List<core.String> o) { +checkUnnamed9(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed8() { +buildUnnamed10() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed8(core.List<core.double> o) { +checkUnnamed10(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); @@ -482,8 +529,8 @@ var o = new api.GoogleCloudMlV1ParameterSpec(); buildCounterGoogleCloudMlV1ParameterSpec++; if (buildCounterGoogleCloudMlV1ParameterSpec < 3) { - o.categoricalValues = buildUnnamed7(); - o.discreteValues = buildUnnamed8(); + o.categoricalValues = buildUnnamed9(); + o.discreteValues = buildUnnamed10(); o.maxValue = 42.0; o.minValue = 42.0; o.parameterName = "foo"; @@ -497,8 +544,8 @@ checkGoogleCloudMlV1ParameterSpec(api.GoogleCloudMlV1ParameterSpec o) { buildCounterGoogleCloudMlV1ParameterSpec++; if (buildCounterGoogleCloudMlV1ParameterSpec < 3) { - checkUnnamed7(o.categoricalValues); - checkUnnamed8(o.discreteValues); + checkUnnamed9(o.categoricalValues); + checkUnnamed10(o.discreteValues); unittest.expect(o.maxValue, unittest.equals(42.0)); unittest.expect(o.minValue, unittest.equals(42.0)); unittest.expect(o.parameterName, unittest.equals('foo')); @@ -527,14 +574,14 @@ buildCounterGoogleCloudMlV1PredictRequest--; } -buildUnnamed9() { +buildUnnamed11() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed9(core.List<core.String> o) { +checkUnnamed11(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -546,7 +593,7 @@ buildCounterGoogleCloudMlV1PredictionInput++; if (buildCounterGoogleCloudMlV1PredictionInput < 3) { o.dataFormat = "foo"; - o.inputPaths = buildUnnamed9(); + o.inputPaths = buildUnnamed11(); o.maxWorkerCount = "foo"; o.modelName = "foo"; o.outputPath = "foo"; @@ -563,7 +610,7 @@ buildCounterGoogleCloudMlV1PredictionInput++; if (buildCounterGoogleCloudMlV1PredictionInput < 3) { unittest.expect(o.dataFormat, unittest.equals('foo')); - checkUnnamed9(o.inputPaths); + checkUnnamed11(o.inputPaths); unittest.expect(o.maxWorkerCount, unittest.equals('foo')); unittest.expect(o.modelName, unittest.equals('foo')); unittest.expect(o.outputPath, unittest.equals('foo')); @@ -617,27 +664,27 @@ buildCounterGoogleCloudMlV1SetDefaultVersionRequest--; } -buildUnnamed10() { +buildUnnamed12() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed10(core.List<core.String> o) { +checkUnnamed12(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed11() { +buildUnnamed13() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed11(core.List<core.String> o) { +checkUnnamed13(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -648,11 +695,11 @@ var o = new api.GoogleCloudMlV1TrainingInput(); buildCounterGoogleCloudMlV1TrainingInput++; if (buildCounterGoogleCloudMlV1TrainingInput < 3) { - o.args = buildUnnamed10(); + o.args = buildUnnamed12(); o.hyperparameters = buildGoogleCloudMlV1HyperparameterSpec(); o.jobDir = "foo"; o.masterType = "foo"; - o.packageUris = buildUnnamed11(); + o.packageUris = buildUnnamed13(); o.parameterServerCount = "foo"; o.parameterServerType = "foo"; o.pythonModule = "foo"; @@ -669,11 +716,11 @@ checkGoogleCloudMlV1TrainingInput(api.GoogleCloudMlV1TrainingInput o) { buildCounterGoogleCloudMlV1TrainingInput++; if (buildCounterGoogleCloudMlV1TrainingInput < 3) { - checkUnnamed10(o.args); + checkUnnamed12(o.args); checkGoogleCloudMlV1HyperparameterSpec(o.hyperparameters); unittest.expect(o.jobDir, unittest.equals('foo')); unittest.expect(o.masterType, unittest.equals('foo')); - checkUnnamed11(o.packageUris); + checkUnnamed13(o.packageUris); unittest.expect(o.parameterServerCount, unittest.equals('foo')); unittest.expect(o.parameterServerType, unittest.equals('foo')); unittest.expect(o.pythonModule, unittest.equals('foo')); @@ -686,14 +733,14 @@ buildCounterGoogleCloudMlV1TrainingInput--; } -buildUnnamed12() { +buildUnnamed14() { var o = new core.List<api.GoogleCloudMlV1HyperparameterOutput>(); o.add(buildGoogleCloudMlV1HyperparameterOutput()); o.add(buildGoogleCloudMlV1HyperparameterOutput()); return o; } -checkUnnamed12(core.List<api.GoogleCloudMlV1HyperparameterOutput> o) { +checkUnnamed14(core.List<api.GoogleCloudMlV1HyperparameterOutput> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1HyperparameterOutput(o[0]); checkGoogleCloudMlV1HyperparameterOutput(o[1]); @@ -707,7 +754,7 @@ o.completedTrialCount = "foo"; o.consumedMLUnits = 42.0; o.isHyperparameterTuningJob = true; - o.trials = buildUnnamed12(); + o.trials = buildUnnamed14(); } buildCounterGoogleCloudMlV1TrainingOutput--; return o; @@ -719,7 +766,7 @@ unittest.expect(o.completedTrialCount, unittest.equals('foo')); unittest.expect(o.consumedMLUnits, unittest.equals(42.0)); unittest.expect(o.isHyperparameterTuningJob, unittest.isTrue); - checkUnnamed12(o.trials); + checkUnnamed14(o.trials); } buildCounterGoogleCloudMlV1TrainingOutput--; } @@ -729,6 +776,7 @@ var o = new api.GoogleCloudMlV1Version(); buildCounterGoogleCloudMlV1Version++; if (buildCounterGoogleCloudMlV1Version < 3) { + o.automaticScaling = buildGoogleCloudMlV1AutomaticScaling(); o.createTime = "foo"; o.deploymentUri = "foo"; o.description = "foo"; @@ -745,6 +793,7 @@ checkGoogleCloudMlV1Version(api.GoogleCloudMlV1Version o) { buildCounterGoogleCloudMlV1Version++; if (buildCounterGoogleCloudMlV1Version < 3) { + checkGoogleCloudMlV1AutomaticScaling(o.automaticScaling); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.deploymentUri, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); @@ -757,6 +806,25 @@ buildCounterGoogleCloudMlV1Version--; } +core.int buildCounterGoogleCloudMlV1beta1AutomaticScaling = 0; +buildGoogleCloudMlV1beta1AutomaticScaling() { + var o = new api.GoogleCloudMlV1beta1AutomaticScaling(); + buildCounterGoogleCloudMlV1beta1AutomaticScaling++; + if (buildCounterGoogleCloudMlV1beta1AutomaticScaling < 3) { + o.minNodes = 42; + } + buildCounterGoogleCloudMlV1beta1AutomaticScaling--; + return o; +} + +checkGoogleCloudMlV1beta1AutomaticScaling(api.GoogleCloudMlV1beta1AutomaticScaling o) { + buildCounterGoogleCloudMlV1beta1AutomaticScaling++; + if (buildCounterGoogleCloudMlV1beta1AutomaticScaling < 3) { + unittest.expect(o.minNodes, unittest.equals(42)); + } + buildCounterGoogleCloudMlV1beta1AutomaticScaling--; +} + core.int buildCounterGoogleCloudMlV1beta1ManualScaling = 0; buildGoogleCloudMlV1beta1ManualScaling() { var o = new api.GoogleCloudMlV1beta1ManualScaling(); @@ -812,6 +880,7 @@ var o = new api.GoogleCloudMlV1beta1Version(); buildCounterGoogleCloudMlV1beta1Version++; if (buildCounterGoogleCloudMlV1beta1Version < 3) { + o.automaticScaling = buildGoogleCloudMlV1beta1AutomaticScaling(); o.createTime = "foo"; o.deploymentUri = "foo"; o.description = "foo"; @@ -828,6 +897,7 @@ checkGoogleCloudMlV1beta1Version(api.GoogleCloudMlV1beta1Version o) { buildCounterGoogleCloudMlV1beta1Version++; if (buildCounterGoogleCloudMlV1beta1Version < 3) { + checkGoogleCloudMlV1beta1AutomaticScaling(o.automaticScaling); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.deploymentUri, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); @@ -840,14 +910,14 @@ buildCounterGoogleCloudMlV1beta1Version--; } -buildUnnamed13() { +buildUnnamed15() { var o = new core.List<api.GoogleLongrunningOperation>(); o.add(buildGoogleLongrunningOperation()); o.add(buildGoogleLongrunningOperation()); return o; } -checkUnnamed13(core.List<api.GoogleLongrunningOperation> o) { +checkUnnamed15(core.List<api.GoogleLongrunningOperation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleLongrunningOperation(o[0]); checkGoogleLongrunningOperation(o[1]); @@ -859,7 +929,7 @@ buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed13(); + o.operations = buildUnnamed15(); } buildCounterGoogleLongrunningListOperationsResponse--; return o; @@ -869,37 +939,37 @@ buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed13(o.operations); + checkUnnamed15(o.operations); } buildCounterGoogleLongrunningListOperationsResponse--; } -buildUnnamed14() { +buildUnnamed16() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed14(core.Map<core.String, core.Object> o) { - unittest.expect(o, unittest.hasLength(2)); - var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); - var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); -} - -buildUnnamed15() { - var o = new core.Map<core.String, core.Object>(); - o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; - o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; - return o; -} - -checkUnnamed15(core.Map<core.String, core.Object> o) { +checkUnnamed16(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); } +buildUnnamed17() { + var o = new core.Map<core.String, core.Object>(); + o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + return o; +} + +checkUnnamed17(core.Map<core.String, core.Object> o) { + unittest.expect(o, unittest.hasLength(2)); + var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); + var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); +} + core.int buildCounterGoogleLongrunningOperation = 0; buildGoogleLongrunningOperation() { var o = new api.GoogleLongrunningOperation(); @@ -907,9 +977,9 @@ if (buildCounterGoogleLongrunningOperation < 3) { o.done = true; o.error = buildGoogleRpcStatus(); - o.metadata = buildUnnamed14(); + o.metadata = buildUnnamed16(); o.name = "foo"; - o.response = buildUnnamed15(); + o.response = buildUnnamed17(); } buildCounterGoogleLongrunningOperation--; return o; @@ -920,9 +990,9 @@ if (buildCounterGoogleLongrunningOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkGoogleRpcStatus(o.error); - checkUnnamed14(o.metadata); + checkUnnamed16(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed15(o.response); + checkUnnamed17(o.response); } buildCounterGoogleLongrunningOperation--; } @@ -944,30 +1014,30 @@ buildCounterGoogleProtobufEmpty--; } -buildUnnamed16() { +buildUnnamed18() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed16(core.Map<core.String, core.Object> o) { +checkUnnamed18(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); - var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); + var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); + var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed17() { +buildUnnamed19() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed16()); - o.add(buildUnnamed16()); + o.add(buildUnnamed18()); + o.add(buildUnnamed18()); return o; } -checkUnnamed17(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed19(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed16(o[0]); - checkUnnamed16(o[1]); + checkUnnamed18(o[0]); + checkUnnamed18(o[1]); } core.int buildCounterGoogleRpcStatus = 0; @@ -976,7 +1046,7 @@ buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { o.code = 42; - o.details = buildUnnamed17(); + o.details = buildUnnamed19(); o.message = "foo"; } buildCounterGoogleRpcStatus--; @@ -987,7 +1057,7 @@ buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed17(o.details); + checkUnnamed19(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterGoogleRpcStatus--; @@ -1013,6 +1083,15 @@ }); + unittest.group("obj-schema-GoogleCloudMlV1AutomaticScaling", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1AutomaticScaling(); + var od = new api.GoogleCloudMlV1AutomaticScaling.fromJson(o.toJson()); + checkGoogleCloudMlV1AutomaticScaling(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudMlV1CancelJobRequest", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudMlV1CancelJobRequest(); @@ -1184,6 +1263,15 @@ }); + unittest.group("obj-schema-GoogleCloudMlV1beta1AutomaticScaling", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1beta1AutomaticScaling(); + var od = new api.GoogleCloudMlV1beta1AutomaticScaling.fromJson(o.toJson()); + checkGoogleCloudMlV1beta1AutomaticScaling(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudMlV1beta1ManualScaling", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudMlV1beta1ManualScaling(); @@ -1253,7 +1341,7 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.MlApi(mock).projects; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1288,7 +1376,7 @@ var resp = convert.JSON.encode(buildGoogleCloudMlV1GetConfigResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getConfig(arg_name).then(unittest.expectAsync(((api.GoogleCloudMlV1GetConfigResponse response) { + res.getConfig(arg_name).then(unittest.expectAsync1(((api.GoogleCloudMlV1GetConfigResponse response) { checkGoogleCloudMlV1GetConfigResponse(response); }))); }); @@ -1299,7 +1387,7 @@ api.ProjectsResourceApi res = new api.MlApi(mock).projects; var arg_request = buildGoogleCloudMlV1PredictRequest(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GoogleCloudMlV1PredictRequest.fromJson(json); checkGoogleCloudMlV1PredictRequest(obj); @@ -1337,7 +1425,7 @@ var resp = convert.JSON.encode(buildGoogleApiHttpBody()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.predict(arg_request, arg_name).then(unittest.expectAsync(((api.GoogleApiHttpBody response) { + res.predict(arg_request, arg_name).then(unittest.expectAsync1(((api.GoogleApiHttpBody response) { checkGoogleApiHttpBody(response); }))); }); @@ -1352,7 +1440,7 @@ api.ProjectsJobsResourceApi res = new api.MlApi(mock).projects.jobs; var arg_request = buildGoogleCloudMlV1CancelJobRequest(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GoogleCloudMlV1CancelJobRequest.fromJson(json); checkGoogleCloudMlV1CancelJobRequest(obj); @@ -1390,7 +1478,7 @@ var resp = convert.JSON.encode(buildGoogleProtobufEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.cancel(arg_request, arg_name).then(unittest.expectAsync(((api.GoogleProtobufEmpty response) { + res.cancel(arg_request, arg_name).then(unittest.expectAsync1(((api.GoogleProtobufEmpty response) { checkGoogleProtobufEmpty(response); }))); }); @@ -1401,7 +1489,7 @@ api.ProjectsJobsResourceApi res = new api.MlApi(mock).projects.jobs; var arg_request = buildGoogleCloudMlV1Job(); var arg_parent = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GoogleCloudMlV1Job.fromJson(json); checkGoogleCloudMlV1Job(obj); @@ -1439,7 +1527,7 @@ var resp = convert.JSON.encode(buildGoogleCloudMlV1Job()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_parent).then(unittest.expectAsync(((api.GoogleCloudMlV1Job response) { + res.create(arg_request, arg_parent).then(unittest.expectAsync1(((api.GoogleCloudMlV1Job response) { checkGoogleCloudMlV1Job(response); }))); }); @@ -1449,7 +1537,7 @@ var mock = new HttpServerMock(); api.ProjectsJobsResourceApi res = new api.MlApi(mock).projects.jobs; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1484,7 +1572,7 @@ var resp = convert.JSON.encode(buildGoogleCloudMlV1Job()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.GoogleCloudMlV1Job response) { + res.get(arg_name).then(unittest.expectAsync1(((api.GoogleCloudMlV1Job response) { checkGoogleCloudMlV1Job(response); }))); }); @@ -1494,10 +1582,10 @@ var mock = new HttpServerMock(); api.ProjectsJobsResourceApi res = new api.MlApi(mock).projects.jobs; var arg_parent = "foo"; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1524,9 +1612,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); var h = { @@ -1535,7 +1623,7 @@ var resp = convert.JSON.encode(buildGoogleCloudMlV1ListJobsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.GoogleCloudMlV1ListJobsResponse response) { + res.list(arg_parent, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.GoogleCloudMlV1ListJobsResponse response) { checkGoogleCloudMlV1ListJobsResponse(response); }))); }); @@ -1550,7 +1638,7 @@ api.ProjectsModelsResourceApi res = new api.MlApi(mock).projects.models; var arg_request = buildGoogleCloudMlV1Model(); var arg_parent = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GoogleCloudMlV1Model.fromJson(json); checkGoogleCloudMlV1Model(obj); @@ -1588,7 +1676,7 @@ var resp = convert.JSON.encode(buildGoogleCloudMlV1Model()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_parent).then(unittest.expectAsync(((api.GoogleCloudMlV1Model response) { + res.create(arg_request, arg_parent).then(unittest.expectAsync1(((api.GoogleCloudMlV1Model response) { checkGoogleCloudMlV1Model(response); }))); }); @@ -1598,7 +1686,7 @@ var mock = new HttpServerMock(); api.ProjectsModelsResourceApi res = new api.MlApi(mock).projects.models; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1633,7 +1721,7 @@ var resp = convert.JSON.encode(buildGoogleLongrunningOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_name).then(unittest.expectAsync(((api.GoogleLongrunningOperation response) { + res.delete(arg_name).then(unittest.expectAsync1(((api.GoogleLongrunningOperation response) { checkGoogleLongrunningOperation(response); }))); }); @@ -1643,7 +1731,7 @@ var mock = new HttpServerMock(); api.ProjectsModelsResourceApi res = new api.MlApi(mock).projects.models; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1678,7 +1766,7 @@ var resp = convert.JSON.encode(buildGoogleCloudMlV1Model()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.GoogleCloudMlV1Model response) { + res.get(arg_name).then(unittest.expectAsync1(((api.GoogleCloudMlV1Model response) { checkGoogleCloudMlV1Model(response); }))); }); @@ -1690,7 +1778,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1727,7 +1815,7 @@ var resp = convert.JSON.encode(buildGoogleCloudMlV1ListModelsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.GoogleCloudMlV1ListModelsResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.GoogleCloudMlV1ListModelsResponse response) { checkGoogleCloudMlV1ListModelsResponse(response); }))); }); @@ -1742,7 +1830,7 @@ api.ProjectsModelsVersionsResourceApi res = new api.MlApi(mock).projects.models.versions; var arg_request = buildGoogleCloudMlV1Version(); var arg_parent = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GoogleCloudMlV1Version.fromJson(json); checkGoogleCloudMlV1Version(obj); @@ -1780,7 +1868,7 @@ var resp = convert.JSON.encode(buildGoogleLongrunningOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_parent).then(unittest.expectAsync(((api.GoogleLongrunningOperation response) { + res.create(arg_request, arg_parent).then(unittest.expectAsync1(((api.GoogleLongrunningOperation response) { checkGoogleLongrunningOperation(response); }))); }); @@ -1790,7 +1878,7 @@ var mock = new HttpServerMock(); api.ProjectsModelsVersionsResourceApi res = new api.MlApi(mock).projects.models.versions; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1825,7 +1913,7 @@ var resp = convert.JSON.encode(buildGoogleLongrunningOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_name).then(unittest.expectAsync(((api.GoogleLongrunningOperation response) { + res.delete(arg_name).then(unittest.expectAsync1(((api.GoogleLongrunningOperation response) { checkGoogleLongrunningOperation(response); }))); }); @@ -1835,7 +1923,7 @@ var mock = new HttpServerMock(); api.ProjectsModelsVersionsResourceApi res = new api.MlApi(mock).projects.models.versions; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1870,7 +1958,7 @@ var resp = convert.JSON.encode(buildGoogleCloudMlV1Version()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.GoogleCloudMlV1Version response) { + res.get(arg_name).then(unittest.expectAsync1(((api.GoogleCloudMlV1Version response) { checkGoogleCloudMlV1Version(response); }))); }); @@ -1880,9 +1968,9 @@ var mock = new HttpServerMock(); api.ProjectsModelsVersionsResourceApi res = new api.MlApi(mock).projects.models.versions; var arg_parent = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_pageSize = 42; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1909,8 +1997,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); var h = { @@ -1919,7 +2007,7 @@ var resp = convert.JSON.encode(buildGoogleCloudMlV1ListVersionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.GoogleCloudMlV1ListVersionsResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.GoogleCloudMlV1ListVersionsResponse response) { checkGoogleCloudMlV1ListVersionsResponse(response); }))); }); @@ -1930,7 +2018,7 @@ api.ProjectsModelsVersionsResourceApi res = new api.MlApi(mock).projects.models.versions; var arg_request = buildGoogleCloudMlV1SetDefaultVersionRequest(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GoogleCloudMlV1SetDefaultVersionRequest.fromJson(json); checkGoogleCloudMlV1SetDefaultVersionRequest(obj); @@ -1968,7 +2056,7 @@ var resp = convert.JSON.encode(buildGoogleCloudMlV1Version()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setDefault(arg_request, arg_name).then(unittest.expectAsync(((api.GoogleCloudMlV1Version response) { + res.setDefault(arg_request, arg_name).then(unittest.expectAsync1(((api.GoogleCloudMlV1Version response) { checkGoogleCloudMlV1Version(response); }))); }); @@ -1982,7 +2070,7 @@ var mock = new HttpServerMock(); api.ProjectsOperationsResourceApi res = new api.MlApi(mock).projects.operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2017,7 +2105,7 @@ var resp = convert.JSON.encode(buildGoogleProtobufEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.cancel(arg_name).then(unittest.expectAsync(((api.GoogleProtobufEmpty response) { + res.cancel(arg_name).then(unittest.expectAsync1(((api.GoogleProtobufEmpty response) { checkGoogleProtobufEmpty(response); }))); }); @@ -2027,7 +2115,7 @@ var mock = new HttpServerMock(); api.ProjectsOperationsResourceApi res = new api.MlApi(mock).projects.operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2062,7 +2150,7 @@ var resp = convert.JSON.encode(buildGoogleProtobufEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_name).then(unittest.expectAsync(((api.GoogleProtobufEmpty response) { + res.delete(arg_name).then(unittest.expectAsync1(((api.GoogleProtobufEmpty response) { checkGoogleProtobufEmpty(response); }))); }); @@ -2072,7 +2160,7 @@ var mock = new HttpServerMock(); api.ProjectsOperationsResourceApi res = new api.MlApi(mock).projects.operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2107,7 +2195,7 @@ var resp = convert.JSON.encode(buildGoogleLongrunningOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.GoogleLongrunningOperation response) { + res.get(arg_name).then(unittest.expectAsync1(((api.GoogleLongrunningOperation response) { checkGoogleLongrunningOperation(response); }))); }); @@ -2117,10 +2205,10 @@ var mock = new HttpServerMock(); api.ProjectsOperationsResourceApi res = new api.MlApi(mock).projects.operations; var arg_name = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_pageSize = 42; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2147,9 +2235,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); var h = { @@ -2158,7 +2246,7 @@ var resp = convert.JSON.encode(buildGoogleLongrunningListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.GoogleLongrunningListOperationsResponse response) { + res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.GoogleLongrunningListOperationsResponse response) { checkGoogleLongrunningListOperationsResponse(response); }))); });
diff --git a/generated/googleapis/test/oauth2/v2_test.dart b/generated/googleapis/test/oauth2/v2_test.dart index 61d3a6e..e38646f 100644 --- a/generated/googleapis/test/oauth2/v2_test.dart +++ b/generated/googleapis/test/oauth2/v2_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/oauth2/v2.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -80,14 +80,14 @@ buildCounterJwkKeys--; } -buildUnnamed2889() { +buildUnnamed2359() { var o = new core.List<api.JwkKeys>(); o.add(buildJwkKeys()); o.add(buildJwkKeys()); return o; } -checkUnnamed2889(core.List<api.JwkKeys> o) { +checkUnnamed2359(core.List<api.JwkKeys> o) { unittest.expect(o, unittest.hasLength(2)); checkJwkKeys(o[0]); checkJwkKeys(o[1]); @@ -98,7 +98,7 @@ var o = new api.Jwk(); buildCounterJwk++; if (buildCounterJwk < 3) { - o.keys = buildUnnamed2889(); + o.keys = buildUnnamed2359(); } buildCounterJwk--; return o; @@ -107,7 +107,7 @@ checkJwk(api.Jwk o) { buildCounterJwk++; if (buildCounterJwk < 3) { - checkUnnamed2889(o.keys); + checkUnnamed2359(o.keys); } buildCounterJwk--; } @@ -229,7 +229,7 @@ var mock = new HttpServerMock(); api.Oauth2Api res = new api.Oauth2Api(mock); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -263,7 +263,7 @@ var resp = convert.JSON.encode(buildJwk()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getCertForOpenIdConnect().then(unittest.expectAsync(((api.Jwk response) { + res.getCertForOpenIdConnect().then(unittest.expectAsync1(((api.Jwk response) { checkJwk(response); }))); }); @@ -275,7 +275,7 @@ var arg_accessToken = "foo"; var arg_idToken = "foo"; var arg_tokenHandle = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -312,7 +312,7 @@ var resp = convert.JSON.encode(buildTokeninfo()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.tokeninfo(accessToken: arg_accessToken, idToken: arg_idToken, tokenHandle: arg_tokenHandle).then(unittest.expectAsync(((api.Tokeninfo response) { + res.tokeninfo(accessToken: arg_accessToken, idToken: arg_idToken, tokenHandle: arg_tokenHandle).then(unittest.expectAsync1(((api.Tokeninfo response) { checkTokeninfo(response); }))); }); @@ -325,7 +325,7 @@ var mock = new HttpServerMock(); api.UserinfoResourceApi res = new api.Oauth2Api(mock).userinfo; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -359,7 +359,7 @@ var resp = convert.JSON.encode(buildUserinfoplus()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get().then(unittest.expectAsync(((api.Userinfoplus response) { + res.get().then(unittest.expectAsync1(((api.Userinfoplus response) { checkUserinfoplus(response); }))); }); @@ -372,7 +372,7 @@ var mock = new HttpServerMock(); api.UserinfoV2MeResourceApi res = new api.Oauth2Api(mock).userinfo.v2.me; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -406,7 +406,7 @@ var resp = convert.JSON.encode(buildUserinfoplus()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get().then(unittest.expectAsync(((api.Userinfoplus response) { + res.get().then(unittest.expectAsync1(((api.Userinfoplus response) { checkUserinfoplus(response); }))); });
diff --git a/generated/googleapis/test/plus/v1_test.dart b/generated/googleapis/test/plus/v1_test.dart index 0bde4a3..f71b7e4 100644 --- a/generated/googleapis/test/plus/v1_test.dart +++ b/generated/googleapis/test/plus/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/plus/v1.dart' as api; @@ -46,19 +46,19 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed98() { +buildUnnamed100() { var o = new core.List<api.PlusAclentryResource>(); o.add(buildPlusAclentryResource()); o.add(buildPlusAclentryResource()); return o; } -checkUnnamed98(core.List<api.PlusAclentryResource> o) { +checkUnnamed100(core.List<api.PlusAclentryResource> o) { unittest.expect(o, unittest.hasLength(2)); checkPlusAclentryResource(o[0]); checkPlusAclentryResource(o[1]); @@ -70,7 +70,7 @@ buildCounterAcl++; if (buildCounterAcl < 3) { o.description = "foo"; - o.items = buildUnnamed98(); + o.items = buildUnnamed100(); o.kind = "foo"; } buildCounterAcl--; @@ -81,7 +81,7 @@ buildCounterAcl++; if (buildCounterAcl < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed98(o.items); + checkUnnamed100(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAcl--; @@ -439,14 +439,14 @@ buildCounterActivityObjectAttachmentsThumbnails--; } -buildUnnamed99() { +buildUnnamed101() { var o = new core.List<api.ActivityObjectAttachmentsThumbnails>(); o.add(buildActivityObjectAttachmentsThumbnails()); o.add(buildActivityObjectAttachmentsThumbnails()); return o; } -checkUnnamed99(core.List<api.ActivityObjectAttachmentsThumbnails> o) { +checkUnnamed101(core.List<api.ActivityObjectAttachmentsThumbnails> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityObjectAttachmentsThumbnails(o[0]); checkActivityObjectAttachmentsThumbnails(o[1]); @@ -464,7 +464,7 @@ o.id = "foo"; o.image = buildActivityObjectAttachmentsImage(); o.objectType = "foo"; - o.thumbnails = buildUnnamed99(); + o.thumbnails = buildUnnamed101(); o.url = "foo"; } buildCounterActivityObjectAttachments--; @@ -481,20 +481,20 @@ unittest.expect(o.id, unittest.equals('foo')); checkActivityObjectAttachmentsImage(o.image); unittest.expect(o.objectType, unittest.equals('foo')); - checkUnnamed99(o.thumbnails); + checkUnnamed101(o.thumbnails); unittest.expect(o.url, unittest.equals('foo')); } buildCounterActivityObjectAttachments--; } -buildUnnamed100() { +buildUnnamed102() { var o = new core.List<api.ActivityObjectAttachments>(); o.add(buildActivityObjectAttachments()); o.add(buildActivityObjectAttachments()); return o; } -checkUnnamed100(core.List<api.ActivityObjectAttachments> o) { +checkUnnamed102(core.List<api.ActivityObjectAttachments> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityObjectAttachments(o[0]); checkActivityObjectAttachments(o[1]); @@ -569,7 +569,7 @@ buildCounterActivityObject++; if (buildCounterActivityObject < 3) { o.actor = buildActivityObjectActor(); - o.attachments = buildUnnamed100(); + o.attachments = buildUnnamed102(); o.content = "foo"; o.id = "foo"; o.objectType = "foo"; @@ -587,7 +587,7 @@ buildCounterActivityObject++; if (buildCounterActivityObject < 3) { checkActivityObjectActor(o.actor); - checkUnnamed100(o.attachments); + checkUnnamed102(o.attachments); unittest.expect(o.content, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.objectType, unittest.equals('foo')); @@ -676,14 +676,14 @@ buildCounterActivity--; } -buildUnnamed101() { +buildUnnamed103() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed101(core.List<api.Activity> o) { +checkUnnamed103(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -696,7 +696,7 @@ if (buildCounterActivityFeed < 3) { o.etag = "foo"; o.id = "foo"; - o.items = buildUnnamed101(); + o.items = buildUnnamed103(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -713,7 +713,7 @@ if (buildCounterActivityFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed101(o.items); + checkUnnamed103(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -850,14 +850,14 @@ buildCounterCommentInReplyTo--; } -buildUnnamed102() { +buildUnnamed104() { var o = new core.List<api.CommentInReplyTo>(); o.add(buildCommentInReplyTo()); o.add(buildCommentInReplyTo()); return o; } -checkUnnamed102(core.List<api.CommentInReplyTo> o) { +checkUnnamed104(core.List<api.CommentInReplyTo> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentInReplyTo(o[0]); checkCommentInReplyTo(o[1]); @@ -913,7 +913,7 @@ o.actor = buildCommentActor(); o.etag = "foo"; o.id = "foo"; - o.inReplyTo = buildUnnamed102(); + o.inReplyTo = buildUnnamed104(); o.kind = "foo"; o.object = buildCommentObject(); o.plusoners = buildCommentPlusoners(); @@ -932,7 +932,7 @@ checkCommentActor(o.actor); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed102(o.inReplyTo); + checkUnnamed104(o.inReplyTo); unittest.expect(o.kind, unittest.equals('foo')); checkCommentObject(o.object); checkCommentPlusoners(o.plusoners); @@ -944,14 +944,14 @@ buildCounterComment--; } -buildUnnamed103() { +buildUnnamed105() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed103(core.List<api.Comment> o) { +checkUnnamed105(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -964,7 +964,7 @@ if (buildCounterCommentFeed < 3) { o.etag = "foo"; o.id = "foo"; - o.items = buildUnnamed103(); + o.items = buildUnnamed105(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -980,7 +980,7 @@ if (buildCounterCommentFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed103(o.items); + checkUnnamed105(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -990,14 +990,14 @@ buildCounterCommentFeed--; } -buildUnnamed104() { +buildUnnamed106() { var o = new core.List<api.Person>(); o.add(buildPerson()); o.add(buildPerson()); return o; } -checkUnnamed104(core.List<api.Person> o) { +checkUnnamed106(core.List<api.Person> o) { unittest.expect(o, unittest.hasLength(2)); checkPerson(o[0]); checkPerson(o[1]); @@ -1009,7 +1009,7 @@ buildCounterPeopleFeed++; if (buildCounterPeopleFeed < 3) { o.etag = "foo"; - o.items = buildUnnamed104(); + o.items = buildUnnamed106(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1024,7 +1024,7 @@ buildCounterPeopleFeed++; if (buildCounterPeopleFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed104(o.items); + checkUnnamed106(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1143,14 +1143,14 @@ buildCounterPersonEmails--; } -buildUnnamed105() { +buildUnnamed107() { var o = new core.List<api.PersonEmails>(); o.add(buildPersonEmails()); o.add(buildPersonEmails()); return o; } -checkUnnamed105(core.List<api.PersonEmails> o) { +checkUnnamed107(core.List<api.PersonEmails> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonEmails(o[0]); checkPersonEmails(o[1]); @@ -1241,14 +1241,14 @@ buildCounterPersonOrganizations--; } -buildUnnamed106() { +buildUnnamed108() { var o = new core.List<api.PersonOrganizations>(); o.add(buildPersonOrganizations()); o.add(buildPersonOrganizations()); return o; } -checkUnnamed106(core.List<api.PersonOrganizations> o) { +checkUnnamed108(core.List<api.PersonOrganizations> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonOrganizations(o[0]); checkPersonOrganizations(o[1]); @@ -1275,14 +1275,14 @@ buildCounterPersonPlacesLived--; } -buildUnnamed107() { +buildUnnamed109() { var o = new core.List<api.PersonPlacesLived>(); o.add(buildPersonPlacesLived()); o.add(buildPersonPlacesLived()); return o; } -checkUnnamed107(core.List<api.PersonPlacesLived> o) { +checkUnnamed109(core.List<api.PersonPlacesLived> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonPlacesLived(o[0]); checkPersonPlacesLived(o[1]); @@ -1311,14 +1311,14 @@ buildCounterPersonUrls--; } -buildUnnamed108() { +buildUnnamed110() { var o = new core.List<api.PersonUrls>(); o.add(buildPersonUrls()); o.add(buildPersonUrls()); return o; } -checkUnnamed108(core.List<api.PersonUrls> o) { +checkUnnamed110(core.List<api.PersonUrls> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonUrls(o[0]); checkPersonUrls(o[1]); @@ -1338,7 +1338,7 @@ o.currentLocation = "foo"; o.displayName = "foo"; o.domain = "foo"; - o.emails = buildUnnamed105(); + o.emails = buildUnnamed107(); o.etag = "foo"; o.gender = "foo"; o.id = "foo"; @@ -1350,14 +1350,14 @@ o.nickname = "foo"; o.objectType = "foo"; o.occupation = "foo"; - o.organizations = buildUnnamed106(); - o.placesLived = buildUnnamed107(); + o.organizations = buildUnnamed108(); + o.placesLived = buildUnnamed109(); o.plusOneCount = 42; o.relationshipStatus = "foo"; o.skills = "foo"; o.tagline = "foo"; o.url = "foo"; - o.urls = buildUnnamed108(); + o.urls = buildUnnamed110(); o.verified = true; } buildCounterPerson--; @@ -1376,7 +1376,7 @@ unittest.expect(o.currentLocation, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.domain, unittest.equals('foo')); - checkUnnamed105(o.emails); + checkUnnamed107(o.emails); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.gender, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -1388,14 +1388,14 @@ unittest.expect(o.nickname, unittest.equals('foo')); unittest.expect(o.objectType, unittest.equals('foo')); unittest.expect(o.occupation, unittest.equals('foo')); - checkUnnamed106(o.organizations); - checkUnnamed107(o.placesLived); + checkUnnamed108(o.organizations); + checkUnnamed109(o.placesLived); unittest.expect(o.plusOneCount, unittest.equals(42)); unittest.expect(o.relationshipStatus, unittest.equals('foo')); unittest.expect(o.skills, unittest.equals('foo')); unittest.expect(o.tagline, unittest.equals('foo')); unittest.expect(o.url, unittest.equals('foo')); - checkUnnamed108(o.urls); + checkUnnamed110(o.urls); unittest.expect(o.verified, unittest.isTrue); } buildCounterPerson--; @@ -1958,7 +1958,7 @@ var mock = new HttpServerMock(); api.ActivitiesResourceApi res = new api.PlusApi(mock).activities; var arg_activityId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1997,7 +1997,7 @@ var resp = convert.JSON.encode(buildActivity()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_activityId).then(unittest.expectAsync(((api.Activity response) { + res.get(arg_activityId).then(unittest.expectAsync1(((api.Activity response) { checkActivity(response); }))); }); @@ -2010,7 +2010,7 @@ var arg_collection = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2058,7 +2058,7 @@ var resp = convert.JSON.encode(buildActivityFeed()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_userId, arg_collection, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ActivityFeed response) { + res.list(arg_userId, arg_collection, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ActivityFeed response) { checkActivityFeed(response); }))); }); @@ -2072,7 +2072,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2113,7 +2113,7 @@ var resp = convert.JSON.encode(buildActivityFeed()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.search(arg_query, language: arg_language, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ActivityFeed response) { + res.search(arg_query, language: arg_language, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ActivityFeed response) { checkActivityFeed(response); }))); }); @@ -2127,7 +2127,7 @@ var mock = new HttpServerMock(); api.CommentsResourceApi res = new api.PlusApi(mock).comments; var arg_commentId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2166,7 +2166,7 @@ var resp = convert.JSON.encode(buildComment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_commentId).then(unittest.expectAsync(((api.Comment response) { + res.get(arg_commentId).then(unittest.expectAsync1(((api.Comment response) { checkComment(response); }))); }); @@ -2179,7 +2179,7 @@ var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2225,7 +2225,7 @@ var resp = convert.JSON.encode(buildCommentFeed()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_activityId, maxResults: arg_maxResults, pageToken: arg_pageToken, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.CommentFeed response) { + res.list(arg_activityId, maxResults: arg_maxResults, pageToken: arg_pageToken, sortOrder: arg_sortOrder).then(unittest.expectAsync1(((api.CommentFeed response) { checkCommentFeed(response); }))); }); @@ -2239,7 +2239,7 @@ var mock = new HttpServerMock(); api.PeopleResourceApi res = new api.PlusApi(mock).people; var arg_userId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2278,7 +2278,7 @@ var resp = convert.JSON.encode(buildPerson()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_userId).then(unittest.expectAsync(((api.Person response) { + res.get(arg_userId).then(unittest.expectAsync1(((api.Person response) { checkPerson(response); }))); }); @@ -2292,7 +2292,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2341,7 +2341,7 @@ var resp = convert.JSON.encode(buildPeopleFeed()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_userId, arg_collection, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.PeopleFeed response) { + res.list(arg_userId, arg_collection, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.PeopleFeed response) { checkPeopleFeed(response); }))); }); @@ -2354,7 +2354,7 @@ var arg_collection = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2402,7 +2402,7 @@ var resp = convert.JSON.encode(buildPeopleFeed()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listByActivity(arg_activityId, arg_collection, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.PeopleFeed response) { + res.listByActivity(arg_activityId, arg_collection, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.PeopleFeed response) { checkPeopleFeed(response); }))); }); @@ -2415,7 +2415,7 @@ var arg_language = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2455,7 +2455,7 @@ var resp = convert.JSON.encode(buildPeopleFeed()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.search(arg_query, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.PeopleFeed response) { + res.search(arg_query, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.PeopleFeed response) { checkPeopleFeed(response); }))); });
diff --git a/generated/googleapis/test/prediction/v1_6_test.dart b/generated/googleapis/test/prediction/v1_6_test.dart index b68207c..f4fe78f 100644 --- a/generated/googleapis/test/prediction/v1_6_test.dart +++ b/generated/googleapis/test/prediction/v1_6_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/prediction/v1_6.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -72,14 +72,14 @@ buildCounterAnalyzeDataDescriptionFeaturesCategoricalValues--; } -buildUnnamed1738() { +buildUnnamed1748() { var o = new core.List<api.AnalyzeDataDescriptionFeaturesCategoricalValues>(); o.add(buildAnalyzeDataDescriptionFeaturesCategoricalValues()); o.add(buildAnalyzeDataDescriptionFeaturesCategoricalValues()); return o; } -checkUnnamed1738(core.List<api.AnalyzeDataDescriptionFeaturesCategoricalValues> o) { +checkUnnamed1748(core.List<api.AnalyzeDataDescriptionFeaturesCategoricalValues> o) { unittest.expect(o, unittest.hasLength(2)); checkAnalyzeDataDescriptionFeaturesCategoricalValues(o[0]); checkAnalyzeDataDescriptionFeaturesCategoricalValues(o[1]); @@ -91,7 +91,7 @@ buildCounterAnalyzeDataDescriptionFeaturesCategorical++; if (buildCounterAnalyzeDataDescriptionFeaturesCategorical < 3) { o.count = "foo"; - o.values = buildUnnamed1738(); + o.values = buildUnnamed1748(); } buildCounterAnalyzeDataDescriptionFeaturesCategorical--; return o; @@ -101,7 +101,7 @@ buildCounterAnalyzeDataDescriptionFeaturesCategorical++; if (buildCounterAnalyzeDataDescriptionFeaturesCategorical < 3) { unittest.expect(o.count, unittest.equals('foo')); - checkUnnamed1738(o.values); + checkUnnamed1748(o.values); } buildCounterAnalyzeDataDescriptionFeaturesCategorical--; } @@ -173,14 +173,14 @@ buildCounterAnalyzeDataDescriptionFeatures--; } -buildUnnamed1739() { +buildUnnamed1749() { var o = new core.List<api.AnalyzeDataDescriptionFeatures>(); o.add(buildAnalyzeDataDescriptionFeatures()); o.add(buildAnalyzeDataDescriptionFeatures()); return o; } -checkUnnamed1739(core.List<api.AnalyzeDataDescriptionFeatures> o) { +checkUnnamed1749(core.List<api.AnalyzeDataDescriptionFeatures> o) { unittest.expect(o, unittest.hasLength(2)); checkAnalyzeDataDescriptionFeatures(o[0]); checkAnalyzeDataDescriptionFeatures(o[1]); @@ -230,14 +230,14 @@ buildCounterAnalyzeDataDescriptionOutputFeatureText--; } -buildUnnamed1740() { +buildUnnamed1750() { var o = new core.List<api.AnalyzeDataDescriptionOutputFeatureText>(); o.add(buildAnalyzeDataDescriptionOutputFeatureText()); o.add(buildAnalyzeDataDescriptionOutputFeatureText()); return o; } -checkUnnamed1740(core.List<api.AnalyzeDataDescriptionOutputFeatureText> o) { +checkUnnamed1750(core.List<api.AnalyzeDataDescriptionOutputFeatureText> o) { unittest.expect(o, unittest.hasLength(2)); checkAnalyzeDataDescriptionOutputFeatureText(o[0]); checkAnalyzeDataDescriptionOutputFeatureText(o[1]); @@ -249,7 +249,7 @@ buildCounterAnalyzeDataDescriptionOutputFeature++; if (buildCounterAnalyzeDataDescriptionOutputFeature < 3) { o.numeric = buildAnalyzeDataDescriptionOutputFeatureNumeric(); - o.text = buildUnnamed1740(); + o.text = buildUnnamed1750(); } buildCounterAnalyzeDataDescriptionOutputFeature--; return o; @@ -259,7 +259,7 @@ buildCounterAnalyzeDataDescriptionOutputFeature++; if (buildCounterAnalyzeDataDescriptionOutputFeature < 3) { checkAnalyzeDataDescriptionOutputFeatureNumeric(o.numeric); - checkUnnamed1740(o.text); + checkUnnamed1750(o.text); } buildCounterAnalyzeDataDescriptionOutputFeature--; } @@ -269,7 +269,7 @@ var o = new api.AnalyzeDataDescription(); buildCounterAnalyzeDataDescription++; if (buildCounterAnalyzeDataDescription < 3) { - o.features = buildUnnamed1739(); + o.features = buildUnnamed1749(); o.outputFeature = buildAnalyzeDataDescriptionOutputFeature(); } buildCounterAnalyzeDataDescription--; @@ -279,72 +279,72 @@ checkAnalyzeDataDescription(api.AnalyzeDataDescription o) { buildCounterAnalyzeDataDescription++; if (buildCounterAnalyzeDataDescription < 3) { - checkUnnamed1739(o.features); + checkUnnamed1749(o.features); checkAnalyzeDataDescriptionOutputFeature(o.outputFeature); } buildCounterAnalyzeDataDescription--; } -buildUnnamed1741() { +buildUnnamed1751() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1741(core.Map<core.String, core.String> o) { +checkUnnamed1751(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1742() { +buildUnnamed1752() { var o = new core.List<core.Map<core.String, core.String>>(); - o.add(buildUnnamed1741()); - o.add(buildUnnamed1741()); + o.add(buildUnnamed1751()); + o.add(buildUnnamed1751()); return o; } -checkUnnamed1742(core.List<core.Map<core.String, core.String>> o) { +checkUnnamed1752(core.List<core.Map<core.String, core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1741(o[0]); - checkUnnamed1741(o[1]); + checkUnnamed1751(o[0]); + checkUnnamed1751(o[1]); } -buildUnnamed1743() { +buildUnnamed1753() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1743(core.Map<core.String, core.String> o) { +checkUnnamed1753(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1744() { +buildUnnamed1754() { var o = new core.Map<core.String, core.Map<core.String, core.String>>(); - o["x"] = buildUnnamed1743(); - o["y"] = buildUnnamed1743(); + o["x"] = buildUnnamed1753(); + o["y"] = buildUnnamed1753(); return o; } -checkUnnamed1744(core.Map<core.String, core.Map<core.String, core.String>> o) { +checkUnnamed1754(core.Map<core.String, core.Map<core.String, core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1743(o["x"]); - checkUnnamed1743(o["y"]); + checkUnnamed1753(o["x"]); + checkUnnamed1753(o["y"]); } -buildUnnamed1745() { +buildUnnamed1755() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1745(core.Map<core.String, core.String> o) { +checkUnnamed1755(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -355,8 +355,8 @@ var o = new api.AnalyzeModelDescription(); buildCounterAnalyzeModelDescription++; if (buildCounterAnalyzeModelDescription < 3) { - o.confusionMatrix = buildUnnamed1744(); - o.confusionMatrixRowTotals = buildUnnamed1745(); + o.confusionMatrix = buildUnnamed1754(); + o.confusionMatrixRowTotals = buildUnnamed1755(); o.modelinfo = buildInsert2(); } buildCounterAnalyzeModelDescription--; @@ -366,8 +366,8 @@ checkAnalyzeModelDescription(api.AnalyzeModelDescription o) { buildCounterAnalyzeModelDescription++; if (buildCounterAnalyzeModelDescription < 3) { - checkUnnamed1744(o.confusionMatrix); - checkUnnamed1745(o.confusionMatrixRowTotals); + checkUnnamed1754(o.confusionMatrix); + checkUnnamed1755(o.confusionMatrixRowTotals); checkInsert2(o.modelinfo); } buildCounterAnalyzeModelDescription--; @@ -379,7 +379,7 @@ buildCounterAnalyze++; if (buildCounterAnalyze < 3) { o.dataDescription = buildAnalyzeDataDescription(); - o.errors = buildUnnamed1742(); + o.errors = buildUnnamed1752(); o.id = "foo"; o.kind = "foo"; o.modelDescription = buildAnalyzeModelDescription(); @@ -393,7 +393,7 @@ buildCounterAnalyze++; if (buildCounterAnalyze < 3) { checkAnalyzeDataDescription(o.dataDescription); - checkUnnamed1742(o.errors); + checkUnnamed1752(o.errors); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkAnalyzeModelDescription(o.modelDescription); @@ -402,14 +402,14 @@ buildCounterAnalyze--; } -buildUnnamed1746() { +buildUnnamed1756() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1746(core.List<core.Object> o) { +checkUnnamed1756(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -420,7 +420,7 @@ var o = new api.InputInput(); buildCounterInputInput++; if (buildCounterInputInput < 3) { - o.csvInstance = buildUnnamed1746(); + o.csvInstance = buildUnnamed1756(); } buildCounterInputInput--; return o; @@ -429,7 +429,7 @@ checkInputInput(api.InputInput o) { buildCounterInputInput++; if (buildCounterInputInput < 3) { - checkUnnamed1746(o.csvInstance); + checkUnnamed1756(o.csvInstance); } buildCounterInputInput--; } @@ -453,14 +453,14 @@ buildCounterInput--; } -buildUnnamed1747() { +buildUnnamed1757() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1747(core.List<core.Object> o) { +checkUnnamed1757(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -471,7 +471,7 @@ var o = new api.InsertTrainingInstances(); buildCounterInsertTrainingInstances++; if (buildCounterInsertTrainingInstances < 3) { - o.csvInstance = buildUnnamed1747(); + o.csvInstance = buildUnnamed1757(); o.output = "foo"; } buildCounterInsertTrainingInstances--; @@ -481,49 +481,49 @@ checkInsertTrainingInstances(api.InsertTrainingInstances o) { buildCounterInsertTrainingInstances++; if (buildCounterInsertTrainingInstances < 3) { - checkUnnamed1747(o.csvInstance); + checkUnnamed1757(o.csvInstance); unittest.expect(o.output, unittest.equals('foo')); } buildCounterInsertTrainingInstances--; } -buildUnnamed1748() { +buildUnnamed1758() { var o = new core.List<api.InsertTrainingInstances>(); o.add(buildInsertTrainingInstances()); o.add(buildInsertTrainingInstances()); return o; } -checkUnnamed1748(core.List<api.InsertTrainingInstances> o) { +checkUnnamed1758(core.List<api.InsertTrainingInstances> o) { unittest.expect(o, unittest.hasLength(2)); checkInsertTrainingInstances(o[0]); checkInsertTrainingInstances(o[1]); } -buildUnnamed1749() { +buildUnnamed1759() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed1749(core.Map<core.String, core.double> o) { +checkUnnamed1759(core.Map<core.String, core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals(42.0)); unittest.expect(o["y"], unittest.equals(42.0)); } -buildUnnamed1750() { +buildUnnamed1760() { var o = new core.List<core.Map<core.String, core.double>>(); - o.add(buildUnnamed1749()); - o.add(buildUnnamed1749()); + o.add(buildUnnamed1759()); + o.add(buildUnnamed1759()); return o; } -checkUnnamed1750(core.List<core.Map<core.String, core.double>> o) { +checkUnnamed1760(core.List<core.Map<core.String, core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1749(o[0]); - checkUnnamed1749(o[1]); + checkUnnamed1759(o[0]); + checkUnnamed1759(o[1]); } core.int buildCounterInsert = 0; @@ -537,8 +537,8 @@ o.storageDataLocation = "foo"; o.storagePMMLLocation = "foo"; o.storagePMMLModelLocation = "foo"; - o.trainingInstances = buildUnnamed1748(); - o.utility = buildUnnamed1750(); + o.trainingInstances = buildUnnamed1758(); + o.utility = buildUnnamed1760(); } buildCounterInsert--; return o; @@ -553,8 +553,8 @@ unittest.expect(o.storageDataLocation, unittest.equals('foo')); unittest.expect(o.storagePMMLLocation, unittest.equals('foo')); unittest.expect(o.storagePMMLModelLocation, unittest.equals('foo')); - checkUnnamed1748(o.trainingInstances); - checkUnnamed1750(o.utility); + checkUnnamed1758(o.trainingInstances); + checkUnnamed1760(o.utility); } buildCounterInsert--; } @@ -627,14 +627,14 @@ buildCounterInsert2--; } -buildUnnamed1751() { +buildUnnamed1761() { var o = new core.List<api.Insert2>(); o.add(buildInsert2()); o.add(buildInsert2()); return o; } -checkUnnamed1751(core.List<api.Insert2> o) { +checkUnnamed1761(core.List<api.Insert2> o) { unittest.expect(o, unittest.hasLength(2)); checkInsert2(o[0]); checkInsert2(o[1]); @@ -645,7 +645,7 @@ var o = new api.List(); buildCounterList++; if (buildCounterList < 3) { - o.items = buildUnnamed1751(); + o.items = buildUnnamed1761(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -657,7 +657,7 @@ checkList(api.List o) { buildCounterList++; if (buildCounterList < 3) { - checkUnnamed1751(o.items); + checkUnnamed1761(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -686,14 +686,14 @@ buildCounterOutputOutputMulti--; } -buildUnnamed1752() { +buildUnnamed1762() { var o = new core.List<api.OutputOutputMulti>(); o.add(buildOutputOutputMulti()); o.add(buildOutputOutputMulti()); return o; } -checkUnnamed1752(core.List<api.OutputOutputMulti> o) { +checkUnnamed1762(core.List<api.OutputOutputMulti> o) { unittest.expect(o, unittest.hasLength(2)); checkOutputOutputMulti(o[0]); checkOutputOutputMulti(o[1]); @@ -707,7 +707,7 @@ o.id = "foo"; o.kind = "foo"; o.outputLabel = "foo"; - o.outputMulti = buildUnnamed1752(); + o.outputMulti = buildUnnamed1762(); o.outputValue = "foo"; o.selfLink = "foo"; } @@ -721,21 +721,21 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.outputLabel, unittest.equals('foo')); - checkUnnamed1752(o.outputMulti); + checkUnnamed1762(o.outputMulti); unittest.expect(o.outputValue, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterOutput--; } -buildUnnamed1753() { +buildUnnamed1763() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1753(core.List<core.Object> o) { +checkUnnamed1763(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); @@ -746,7 +746,7 @@ var o = new api.Update(); buildCounterUpdate++; if (buildCounterUpdate < 3) { - o.csvInstance = buildUnnamed1753(); + o.csvInstance = buildUnnamed1763(); o.output = "foo"; } buildCounterUpdate--; @@ -756,7 +756,7 @@ checkUpdate(api.Update o) { buildCounterUpdate++; if (buildCounterUpdate < 3) { - checkUnnamed1753(o.csvInstance); + checkUnnamed1763(o.csvInstance); unittest.expect(o.output, unittest.equals('foo')); } buildCounterUpdate--; @@ -961,7 +961,7 @@ var arg_request = buildInput(); var arg_project = "foo"; var arg_hostedModelName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Input.fromJson(json); checkInput(obj); @@ -996,7 +996,7 @@ var resp = convert.JSON.encode(buildOutput()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.predict(arg_request, arg_project, arg_hostedModelName).then(unittest.expectAsync(((api.Output response) { + res.predict(arg_request, arg_project, arg_hostedModelName).then(unittest.expectAsync1(((api.Output response) { checkOutput(response); }))); }); @@ -1011,7 +1011,7 @@ api.TrainedmodelsResourceApi res = new api.PredictionApi(mock).trainedmodels; var arg_project = "foo"; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1043,7 +1043,7 @@ var resp = convert.JSON.encode(buildAnalyze()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.analyze(arg_project, arg_id).then(unittest.expectAsync(((api.Analyze response) { + res.analyze(arg_project, arg_id).then(unittest.expectAsync1(((api.Analyze response) { checkAnalyze(response); }))); }); @@ -1054,7 +1054,7 @@ api.TrainedmodelsResourceApi res = new api.PredictionApi(mock).trainedmodels; var arg_project = "foo"; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1086,7 +1086,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_id).then(unittest.expectAsync((_) {})); + res.delete(arg_project, arg_id).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -1095,7 +1095,7 @@ api.TrainedmodelsResourceApi res = new api.PredictionApi(mock).trainedmodels; var arg_project = "foo"; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1127,7 +1127,7 @@ var resp = convert.JSON.encode(buildInsert2()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_id).then(unittest.expectAsync(((api.Insert2 response) { + res.get(arg_project, arg_id).then(unittest.expectAsync1(((api.Insert2 response) { checkInsert2(response); }))); }); @@ -1138,7 +1138,7 @@ api.TrainedmodelsResourceApi res = new api.PredictionApi(mock).trainedmodels; var arg_request = buildInsert(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Insert.fromJson(json); checkInsert(obj); @@ -1173,7 +1173,7 @@ var resp = convert.JSON.encode(buildInsert2()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Insert2 response) { + res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Insert2 response) { checkInsert2(response); }))); }); @@ -1185,7 +1185,7 @@ var arg_project = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1219,7 +1219,7 @@ var resp = convert.JSON.encode(buildList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.List response) { + res.list(arg_project, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.List response) { checkList(response); }))); }); @@ -1231,7 +1231,7 @@ var arg_request = buildInput(); var arg_project = "foo"; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Input.fromJson(json); checkInput(obj); @@ -1266,7 +1266,7 @@ var resp = convert.JSON.encode(buildOutput()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.predict(arg_request, arg_project, arg_id).then(unittest.expectAsync(((api.Output response) { + res.predict(arg_request, arg_project, arg_id).then(unittest.expectAsync1(((api.Output response) { checkOutput(response); }))); }); @@ -1278,7 +1278,7 @@ var arg_request = buildUpdate(); var arg_project = "foo"; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Update.fromJson(json); checkUpdate(obj); @@ -1313,7 +1313,7 @@ var resp = convert.JSON.encode(buildInsert2()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_project, arg_id).then(unittest.expectAsync(((api.Insert2 response) { + res.update(arg_request, arg_project, arg_id).then(unittest.expectAsync1(((api.Insert2 response) { checkInsert2(response); }))); });
diff --git a/generated/googleapis/test/pubsub/v1_test.dart b/generated/googleapis/test/pubsub/v1_test.dart index bdf0a70..b93aaee 100644 --- a/generated/googleapis/test/pubsub/v1_test.dart +++ b/generated/googleapis/test/pubsub/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/pubsub/v1.dart' as api; @@ -46,19 +46,19 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1187() { +buildUnnamed1194() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1187(core.List<core.String> o) { +checkUnnamed1194(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -69,7 +69,7 @@ var o = new api.AcknowledgeRequest(); buildCounterAcknowledgeRequest++; if (buildCounterAcknowledgeRequest < 3) { - o.ackIds = buildUnnamed1187(); + o.ackIds = buildUnnamed1194(); } buildCounterAcknowledgeRequest--; return o; @@ -78,19 +78,19 @@ checkAcknowledgeRequest(api.AcknowledgeRequest o) { buildCounterAcknowledgeRequest++; if (buildCounterAcknowledgeRequest < 3) { - checkUnnamed1187(o.ackIds); + checkUnnamed1194(o.ackIds); } buildCounterAcknowledgeRequest--; } -buildUnnamed1188() { +buildUnnamed1195() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1188(core.List<core.String> o) { +checkUnnamed1195(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -101,7 +101,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed1188(); + o.members = buildUnnamed1195(); o.role = "foo"; } buildCounterBinding--; @@ -111,7 +111,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed1188(o.members); + checkUnnamed1195(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -134,14 +134,14 @@ buildCounterEmpty--; } -buildUnnamed1189() { +buildUnnamed1196() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed1189(core.List<api.Subscription> o) { +checkUnnamed1196(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -153,7 +153,7 @@ buildCounterListSubscriptionsResponse++; if (buildCounterListSubscriptionsResponse < 3) { o.nextPageToken = "foo"; - o.subscriptions = buildUnnamed1189(); + o.subscriptions = buildUnnamed1196(); } buildCounterListSubscriptionsResponse--; return o; @@ -163,19 +163,19 @@ buildCounterListSubscriptionsResponse++; if (buildCounterListSubscriptionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1189(o.subscriptions); + checkUnnamed1196(o.subscriptions); } buildCounterListSubscriptionsResponse--; } -buildUnnamed1190() { +buildUnnamed1197() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1190(core.List<core.String> o) { +checkUnnamed1197(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -187,7 +187,7 @@ buildCounterListTopicSubscriptionsResponse++; if (buildCounterListTopicSubscriptionsResponse < 3) { o.nextPageToken = "foo"; - o.subscriptions = buildUnnamed1190(); + o.subscriptions = buildUnnamed1197(); } buildCounterListTopicSubscriptionsResponse--; return o; @@ -197,19 +197,19 @@ buildCounterListTopicSubscriptionsResponse++; if (buildCounterListTopicSubscriptionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1190(o.subscriptions); + checkUnnamed1197(o.subscriptions); } buildCounterListTopicSubscriptionsResponse--; } -buildUnnamed1191() { +buildUnnamed1198() { var o = new core.List<api.Topic>(); o.add(buildTopic()); o.add(buildTopic()); return o; } -checkUnnamed1191(core.List<api.Topic> o) { +checkUnnamed1198(core.List<api.Topic> o) { unittest.expect(o, unittest.hasLength(2)); checkTopic(o[0]); checkTopic(o[1]); @@ -221,7 +221,7 @@ buildCounterListTopicsResponse++; if (buildCounterListTopicsResponse < 3) { o.nextPageToken = "foo"; - o.topics = buildUnnamed1191(); + o.topics = buildUnnamed1198(); } buildCounterListTopicsResponse--; return o; @@ -231,19 +231,19 @@ buildCounterListTopicsResponse++; if (buildCounterListTopicsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1191(o.topics); + checkUnnamed1198(o.topics); } buildCounterListTopicsResponse--; } -buildUnnamed1192() { +buildUnnamed1199() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1192(core.List<core.String> o) { +checkUnnamed1199(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -255,7 +255,7 @@ buildCounterModifyAckDeadlineRequest++; if (buildCounterModifyAckDeadlineRequest < 3) { o.ackDeadlineSeconds = 42; - o.ackIds = buildUnnamed1192(); + o.ackIds = buildUnnamed1199(); } buildCounterModifyAckDeadlineRequest--; return o; @@ -265,7 +265,7 @@ buildCounterModifyAckDeadlineRequest++; if (buildCounterModifyAckDeadlineRequest < 3) { unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); - checkUnnamed1192(o.ackIds); + checkUnnamed1199(o.ackIds); } buildCounterModifyAckDeadlineRequest--; } @@ -289,14 +289,14 @@ buildCounterModifyPushConfigRequest--; } -buildUnnamed1193() { +buildUnnamed1200() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1193(core.List<api.Binding> o) { +checkUnnamed1200(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -307,7 +307,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed1193(); + o.bindings = buildUnnamed1200(); o.etag = "foo"; o.version = 42; } @@ -318,21 +318,21 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1193(o.bindings); + checkUnnamed1200(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed1194() { +buildUnnamed1201() { var o = new core.List<api.PubsubMessage>(); o.add(buildPubsubMessage()); o.add(buildPubsubMessage()); return o; } -checkUnnamed1194(core.List<api.PubsubMessage> o) { +checkUnnamed1201(core.List<api.PubsubMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkPubsubMessage(o[0]); checkPubsubMessage(o[1]); @@ -343,7 +343,7 @@ var o = new api.PublishRequest(); buildCounterPublishRequest++; if (buildCounterPublishRequest < 3) { - o.messages = buildUnnamed1194(); + o.messages = buildUnnamed1201(); } buildCounterPublishRequest--; return o; @@ -352,19 +352,19 @@ checkPublishRequest(api.PublishRequest o) { buildCounterPublishRequest++; if (buildCounterPublishRequest < 3) { - checkUnnamed1194(o.messages); + checkUnnamed1201(o.messages); } buildCounterPublishRequest--; } -buildUnnamed1195() { +buildUnnamed1202() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1195(core.List<core.String> o) { +checkUnnamed1202(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -375,7 +375,7 @@ var o = new api.PublishResponse(); buildCounterPublishResponse++; if (buildCounterPublishResponse < 3) { - o.messageIds = buildUnnamed1195(); + o.messageIds = buildUnnamed1202(); } buildCounterPublishResponse--; return o; @@ -384,19 +384,19 @@ checkPublishResponse(api.PublishResponse o) { buildCounterPublishResponse++; if (buildCounterPublishResponse < 3) { - checkUnnamed1195(o.messageIds); + checkUnnamed1202(o.messageIds); } buildCounterPublishResponse--; } -buildUnnamed1196() { +buildUnnamed1203() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1196(core.Map<core.String, core.String> o) { +checkUnnamed1203(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -407,7 +407,7 @@ var o = new api.PubsubMessage(); buildCounterPubsubMessage++; if (buildCounterPubsubMessage < 3) { - o.attributes = buildUnnamed1196(); + o.attributes = buildUnnamed1203(); o.data = "foo"; o.messageId = "foo"; o.publishTime = "foo"; @@ -419,7 +419,7 @@ checkPubsubMessage(api.PubsubMessage o) { buildCounterPubsubMessage++; if (buildCounterPubsubMessage < 3) { - checkUnnamed1196(o.attributes); + checkUnnamed1203(o.attributes); unittest.expect(o.data, unittest.equals('foo')); unittest.expect(o.messageId, unittest.equals('foo')); unittest.expect(o.publishTime, unittest.equals('foo')); @@ -448,14 +448,14 @@ buildCounterPullRequest--; } -buildUnnamed1197() { +buildUnnamed1204() { var o = new core.List<api.ReceivedMessage>(); o.add(buildReceivedMessage()); o.add(buildReceivedMessage()); return o; } -checkUnnamed1197(core.List<api.ReceivedMessage> o) { +checkUnnamed1204(core.List<api.ReceivedMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkReceivedMessage(o[0]); checkReceivedMessage(o[1]); @@ -466,7 +466,7 @@ var o = new api.PullResponse(); buildCounterPullResponse++; if (buildCounterPullResponse < 3) { - o.receivedMessages = buildUnnamed1197(); + o.receivedMessages = buildUnnamed1204(); } buildCounterPullResponse--; return o; @@ -475,19 +475,19 @@ checkPullResponse(api.PullResponse o) { buildCounterPullResponse++; if (buildCounterPullResponse < 3) { - checkUnnamed1197(o.receivedMessages); + checkUnnamed1204(o.receivedMessages); } buildCounterPullResponse--; } -buildUnnamed1198() { +buildUnnamed1205() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1198(core.Map<core.String, core.String> o) { +checkUnnamed1205(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -498,7 +498,7 @@ var o = new api.PushConfig(); buildCounterPushConfig++; if (buildCounterPushConfig < 3) { - o.attributes = buildUnnamed1198(); + o.attributes = buildUnnamed1205(); o.pushEndpoint = "foo"; } buildCounterPushConfig--; @@ -508,7 +508,7 @@ checkPushConfig(api.PushConfig o) { buildCounterPushConfig++; if (buildCounterPushConfig < 3) { - checkUnnamed1198(o.attributes); + checkUnnamed1205(o.attributes); unittest.expect(o.pushEndpoint, unittest.equals('foo')); } buildCounterPushConfig--; @@ -579,14 +579,14 @@ buildCounterSubscription--; } -buildUnnamed1199() { +buildUnnamed1206() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1199(core.List<core.String> o) { +checkUnnamed1206(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -597,7 +597,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1199(); + o.permissions = buildUnnamed1206(); } buildCounterTestIamPermissionsRequest--; return o; @@ -606,19 +606,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1199(o.permissions); + checkUnnamed1206(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1200() { +buildUnnamed1207() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1200(core.List<core.String> o) { +checkUnnamed1207(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -629,7 +629,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1200(); + o.permissions = buildUnnamed1207(); } buildCounterTestIamPermissionsResponse--; return o; @@ -638,7 +638,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1200(o.permissions); + checkUnnamed1207(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -859,7 +859,7 @@ var mock = new HttpServerMock(); api.ProjectsSnapshotsResourceApi res = new api.PubsubApi(mock).projects.snapshots; var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -894,7 +894,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getIamPolicy(arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.getIamPolicy(arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -905,7 +905,7 @@ api.ProjectsSnapshotsResourceApi res = new api.PubsubApi(mock).projects.snapshots; var arg_request = buildSetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetIamPolicyRequest.fromJson(json); checkSetIamPolicyRequest(obj); @@ -943,7 +943,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -954,7 +954,7 @@ api.ProjectsSnapshotsResourceApi res = new api.PubsubApi(mock).projects.snapshots; var arg_request = buildTestIamPermissionsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TestIamPermissionsRequest.fromJson(json); checkTestIamPermissionsRequest(obj); @@ -992,7 +992,7 @@ var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { checkTestIamPermissionsResponse(response); }))); }); @@ -1007,7 +1007,7 @@ api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_request = buildAcknowledgeRequest(); var arg_subscription = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AcknowledgeRequest.fromJson(json); checkAcknowledgeRequest(obj); @@ -1045,7 +1045,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.acknowledge(arg_request, arg_subscription).then(unittest.expectAsync(((api.Empty response) { + res.acknowledge(arg_request, arg_subscription).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1056,7 +1056,7 @@ api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_request = buildSubscription(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Subscription.fromJson(json); checkSubscription(obj); @@ -1094,7 +1094,7 @@ var resp = convert.JSON.encode(buildSubscription()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_name).then(unittest.expectAsync(((api.Subscription response) { + res.create(arg_request, arg_name).then(unittest.expectAsync1(((api.Subscription response) { checkSubscription(response); }))); }); @@ -1104,7 +1104,7 @@ var mock = new HttpServerMock(); api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_subscription = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1139,7 +1139,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_subscription).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_subscription).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1149,7 +1149,7 @@ var mock = new HttpServerMock(); api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_subscription = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1184,7 +1184,7 @@ var resp = convert.JSON.encode(buildSubscription()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_subscription).then(unittest.expectAsync(((api.Subscription response) { + res.get(arg_subscription).then(unittest.expectAsync1(((api.Subscription response) { checkSubscription(response); }))); }); @@ -1194,7 +1194,7 @@ var mock = new HttpServerMock(); api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1229,7 +1229,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getIamPolicy(arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.getIamPolicy(arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -1241,7 +1241,7 @@ var arg_project = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1278,7 +1278,7 @@ var resp = convert.JSON.encode(buildListSubscriptionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListSubscriptionsResponse response) { + res.list(arg_project, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListSubscriptionsResponse response) { checkListSubscriptionsResponse(response); }))); }); @@ -1289,7 +1289,7 @@ api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_request = buildModifyAckDeadlineRequest(); var arg_subscription = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ModifyAckDeadlineRequest.fromJson(json); checkModifyAckDeadlineRequest(obj); @@ -1327,7 +1327,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.modifyAckDeadline(arg_request, arg_subscription).then(unittest.expectAsync(((api.Empty response) { + res.modifyAckDeadline(arg_request, arg_subscription).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1338,7 +1338,7 @@ api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_request = buildModifyPushConfigRequest(); var arg_subscription = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ModifyPushConfigRequest.fromJson(json); checkModifyPushConfigRequest(obj); @@ -1376,7 +1376,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.modifyPushConfig(arg_request, arg_subscription).then(unittest.expectAsync(((api.Empty response) { + res.modifyPushConfig(arg_request, arg_subscription).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1387,7 +1387,7 @@ api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_request = buildPullRequest(); var arg_subscription = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.PullRequest.fromJson(json); checkPullRequest(obj); @@ -1425,7 +1425,7 @@ var resp = convert.JSON.encode(buildPullResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.pull(arg_request, arg_subscription).then(unittest.expectAsync(((api.PullResponse response) { + res.pull(arg_request, arg_subscription).then(unittest.expectAsync1(((api.PullResponse response) { checkPullResponse(response); }))); }); @@ -1436,7 +1436,7 @@ api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_request = buildSetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetIamPolicyRequest.fromJson(json); checkSetIamPolicyRequest(obj); @@ -1474,7 +1474,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -1485,7 +1485,7 @@ api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_request = buildTestIamPermissionsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TestIamPermissionsRequest.fromJson(json); checkTestIamPermissionsRequest(obj); @@ -1523,7 +1523,7 @@ var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { checkTestIamPermissionsResponse(response); }))); }); @@ -1538,7 +1538,7 @@ api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topics; var arg_request = buildTopic(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Topic.fromJson(json); checkTopic(obj); @@ -1576,7 +1576,7 @@ var resp = convert.JSON.encode(buildTopic()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_name).then(unittest.expectAsync(((api.Topic response) { + res.create(arg_request, arg_name).then(unittest.expectAsync1(((api.Topic response) { checkTopic(response); }))); }); @@ -1586,7 +1586,7 @@ var mock = new HttpServerMock(); api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topics; var arg_topic = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1621,7 +1621,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_topic).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_topic).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1631,7 +1631,7 @@ var mock = new HttpServerMock(); api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topics; var arg_topic = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1666,7 +1666,7 @@ var resp = convert.JSON.encode(buildTopic()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_topic).then(unittest.expectAsync(((api.Topic response) { + res.get(arg_topic).then(unittest.expectAsync1(((api.Topic response) { checkTopic(response); }))); }); @@ -1676,7 +1676,7 @@ var mock = new HttpServerMock(); api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topics; var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1711,7 +1711,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getIamPolicy(arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.getIamPolicy(arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -1723,7 +1723,7 @@ var arg_project = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1760,7 +1760,7 @@ var resp = convert.JSON.encode(buildListTopicsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListTopicsResponse response) { + res.list(arg_project, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListTopicsResponse response) { checkListTopicsResponse(response); }))); }); @@ -1771,7 +1771,7 @@ api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topics; var arg_request = buildPublishRequest(); var arg_topic = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.PublishRequest.fromJson(json); checkPublishRequest(obj); @@ -1809,7 +1809,7 @@ var resp = convert.JSON.encode(buildPublishResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.publish(arg_request, arg_topic).then(unittest.expectAsync(((api.PublishResponse response) { + res.publish(arg_request, arg_topic).then(unittest.expectAsync1(((api.PublishResponse response) { checkPublishResponse(response); }))); }); @@ -1820,7 +1820,7 @@ api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topics; var arg_request = buildSetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetIamPolicyRequest.fromJson(json); checkSetIamPolicyRequest(obj); @@ -1858,7 +1858,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -1869,7 +1869,7 @@ api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topics; var arg_request = buildTestIamPermissionsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TestIamPermissionsRequest.fromJson(json); checkTestIamPermissionsRequest(obj); @@ -1907,7 +1907,7 @@ var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { checkTestIamPermissionsResponse(response); }))); }); @@ -1923,7 +1923,7 @@ var arg_topic = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1960,7 +1960,7 @@ var resp = convert.JSON.encode(buildListTopicSubscriptionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_topic, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListTopicSubscriptionsResponse response) { + res.list(arg_topic, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListTopicSubscriptionsResponse response) { checkListTopicSubscriptionsResponse(response); }))); });
diff --git a/generated/googleapis/test/qpxexpress/v1_test.dart b/generated/googleapis/test/qpxexpress/v1_test.dart index 1faeda4..03e9f60 100644 --- a/generated/googleapis/test/qpxexpress/v1_test.dart +++ b/generated/googleapis/test/qpxexpress/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/qpxexpress/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -99,14 +99,14 @@ buildCounterAirportData--; } -buildUnnamed18() { +buildUnnamed20() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed18(core.List<core.String> o) { +checkUnnamed20(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -119,7 +119,7 @@ if (buildCounterBagDescriptor < 3) { o.commercialName = "foo"; o.count = 42; - o.description = buildUnnamed18(); + o.description = buildUnnamed20(); o.kind = "foo"; o.subcode = "foo"; } @@ -132,7 +132,7 @@ if (buildCounterBagDescriptor < 3) { unittest.expect(o.commercialName, unittest.equals('foo')); unittest.expect(o.count, unittest.equals(42)); - checkUnnamed18(o.description); + checkUnnamed20(o.description); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.subcode, unittest.equals('foo')); } @@ -187,66 +187,66 @@ buildCounterCityData--; } -buildUnnamed19() { +buildUnnamed21() { var o = new core.List<api.AircraftData>(); o.add(buildAircraftData()); o.add(buildAircraftData()); return o; } -checkUnnamed19(core.List<api.AircraftData> o) { +checkUnnamed21(core.List<api.AircraftData> o) { unittest.expect(o, unittest.hasLength(2)); checkAircraftData(o[0]); checkAircraftData(o[1]); } -buildUnnamed20() { +buildUnnamed22() { var o = new core.List<api.AirportData>(); o.add(buildAirportData()); o.add(buildAirportData()); return o; } -checkUnnamed20(core.List<api.AirportData> o) { +checkUnnamed22(core.List<api.AirportData> o) { unittest.expect(o, unittest.hasLength(2)); checkAirportData(o[0]); checkAirportData(o[1]); } -buildUnnamed21() { +buildUnnamed23() { var o = new core.List<api.CarrierData>(); o.add(buildCarrierData()); o.add(buildCarrierData()); return o; } -checkUnnamed21(core.List<api.CarrierData> o) { +checkUnnamed23(core.List<api.CarrierData> o) { unittest.expect(o, unittest.hasLength(2)); checkCarrierData(o[0]); checkCarrierData(o[1]); } -buildUnnamed22() { +buildUnnamed24() { var o = new core.List<api.CityData>(); o.add(buildCityData()); o.add(buildCityData()); return o; } -checkUnnamed22(core.List<api.CityData> o) { +checkUnnamed24(core.List<api.CityData> o) { unittest.expect(o, unittest.hasLength(2)); checkCityData(o[0]); checkCityData(o[1]); } -buildUnnamed23() { +buildUnnamed25() { var o = new core.List<api.TaxData>(); o.add(buildTaxData()); o.add(buildTaxData()); return o; } -checkUnnamed23(core.List<api.TaxData> o) { +checkUnnamed25(core.List<api.TaxData> o) { unittest.expect(o, unittest.hasLength(2)); checkTaxData(o[0]); checkTaxData(o[1]); @@ -257,12 +257,12 @@ var o = new api.Data(); buildCounterData++; if (buildCounterData < 3) { - o.aircraft = buildUnnamed19(); - o.airport = buildUnnamed20(); - o.carrier = buildUnnamed21(); - o.city = buildUnnamed22(); + o.aircraft = buildUnnamed21(); + o.airport = buildUnnamed22(); + o.carrier = buildUnnamed23(); + o.city = buildUnnamed24(); o.kind = "foo"; - o.tax = buildUnnamed23(); + o.tax = buildUnnamed25(); } buildCounterData--; return o; @@ -271,12 +271,12 @@ checkData(api.Data o) { buildCounterData++; if (buildCounterData < 3) { - checkUnnamed19(o.aircraft); - checkUnnamed20(o.airport); - checkUnnamed21(o.carrier); - checkUnnamed22(o.city); + checkUnnamed21(o.aircraft); + checkUnnamed22(o.airport); + checkUnnamed23(o.carrier); + checkUnnamed24(o.city); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed23(o.tax); + checkUnnamed25(o.tax); } buildCounterData--; } @@ -333,14 +333,14 @@ buildCounterFlightInfo--; } -buildUnnamed24() { +buildUnnamed26() { var o = new core.List<api.BagDescriptor>(); o.add(buildBagDescriptor()); o.add(buildBagDescriptor()); return o; } -checkUnnamed24(core.List<api.BagDescriptor> o) { +checkUnnamed26(core.List<api.BagDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkBagDescriptor(o[0]); checkBagDescriptor(o[1]); @@ -351,7 +351,7 @@ var o = new api.FreeBaggageAllowance(); buildCounterFreeBaggageAllowance++; if (buildCounterFreeBaggageAllowance < 3) { - o.bagDescriptor = buildUnnamed24(); + o.bagDescriptor = buildUnnamed26(); o.kilos = 42; o.kilosPerPiece = 42; o.kind = "foo"; @@ -365,7 +365,7 @@ checkFreeBaggageAllowance(api.FreeBaggageAllowance o) { buildCounterFreeBaggageAllowance++; if (buildCounterFreeBaggageAllowance < 3) { - checkUnnamed24(o.bagDescriptor); + checkUnnamed26(o.bagDescriptor); unittest.expect(o.kilos, unittest.equals(42)); unittest.expect(o.kilosPerPiece, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); @@ -455,40 +455,40 @@ buildCounterPassengerCounts--; } -buildUnnamed25() { +buildUnnamed27() { var o = new core.List<api.FareInfo>(); o.add(buildFareInfo()); o.add(buildFareInfo()); return o; } -checkUnnamed25(core.List<api.FareInfo> o) { +checkUnnamed27(core.List<api.FareInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkFareInfo(o[0]); checkFareInfo(o[1]); } -buildUnnamed26() { +buildUnnamed28() { var o = new core.List<api.SegmentPricing>(); o.add(buildSegmentPricing()); o.add(buildSegmentPricing()); return o; } -checkUnnamed26(core.List<api.SegmentPricing> o) { +checkUnnamed28(core.List<api.SegmentPricing> o) { unittest.expect(o, unittest.hasLength(2)); checkSegmentPricing(o[0]); checkSegmentPricing(o[1]); } -buildUnnamed27() { +buildUnnamed29() { var o = new core.List<api.TaxInfo>(); o.add(buildTaxInfo()); o.add(buildTaxInfo()); return o; } -checkUnnamed27(core.List<api.TaxInfo> o) { +checkUnnamed29(core.List<api.TaxInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkTaxInfo(o[0]); checkTaxInfo(o[1]); @@ -500,7 +500,7 @@ buildCounterPricingInfo++; if (buildCounterPricingInfo < 3) { o.baseFareTotal = "foo"; - o.fare = buildUnnamed25(); + o.fare = buildUnnamed27(); o.fareCalculation = "foo"; o.kind = "foo"; o.latestTicketingTime = "foo"; @@ -510,8 +510,8 @@ o.saleFareTotal = "foo"; o.saleTaxTotal = "foo"; o.saleTotal = "foo"; - o.segmentPricing = buildUnnamed26(); - o.tax = buildUnnamed27(); + o.segmentPricing = buildUnnamed28(); + o.tax = buildUnnamed29(); } buildCounterPricingInfo--; return o; @@ -521,7 +521,7 @@ buildCounterPricingInfo++; if (buildCounterPricingInfo < 3) { unittest.expect(o.baseFareTotal, unittest.equals('foo')); - checkUnnamed25(o.fare); + checkUnnamed27(o.fare); unittest.expect(o.fareCalculation, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.latestTicketingTime, unittest.equals('foo')); @@ -531,20 +531,20 @@ unittest.expect(o.saleFareTotal, unittest.equals('foo')); unittest.expect(o.saleTaxTotal, unittest.equals('foo')); unittest.expect(o.saleTotal, unittest.equals('foo')); - checkUnnamed26(o.segmentPricing); - checkUnnamed27(o.tax); + checkUnnamed28(o.segmentPricing); + checkUnnamed29(o.tax); } buildCounterPricingInfo--; } -buildUnnamed28() { +buildUnnamed30() { var o = new core.List<api.LegInfo>(); o.add(buildLegInfo()); o.add(buildLegInfo()); return o; } -checkUnnamed28(core.List<api.LegInfo> o) { +checkUnnamed30(core.List<api.LegInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkLegInfo(o[0]); checkLegInfo(o[1]); @@ -563,7 +563,7 @@ o.flight = buildFlightInfo(); o.id = "foo"; o.kind = "foo"; - o.leg = buildUnnamed28(); + o.leg = buildUnnamed30(); o.marriedSegmentGroup = "foo"; o.subjectToGovernmentApproval = true; } @@ -582,21 +582,21 @@ checkFlightInfo(o.flight); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed28(o.leg); + checkUnnamed30(o.leg); unittest.expect(o.marriedSegmentGroup, unittest.equals('foo')); unittest.expect(o.subjectToGovernmentApproval, unittest.isTrue); } buildCounterSegmentInfo--; } -buildUnnamed29() { +buildUnnamed31() { var o = new core.List<api.FreeBaggageAllowance>(); o.add(buildFreeBaggageAllowance()); o.add(buildFreeBaggageAllowance()); return o; } -checkUnnamed29(core.List<api.FreeBaggageAllowance> o) { +checkUnnamed31(core.List<api.FreeBaggageAllowance> o) { unittest.expect(o, unittest.hasLength(2)); checkFreeBaggageAllowance(o[0]); checkFreeBaggageAllowance(o[1]); @@ -608,7 +608,7 @@ buildCounterSegmentPricing++; if (buildCounterSegmentPricing < 3) { o.fareId = "foo"; - o.freeBaggageOption = buildUnnamed29(); + o.freeBaggageOption = buildUnnamed31(); o.kind = "foo"; o.segmentId = "foo"; } @@ -620,21 +620,21 @@ buildCounterSegmentPricing++; if (buildCounterSegmentPricing < 3) { unittest.expect(o.fareId, unittest.equals('foo')); - checkUnnamed29(o.freeBaggageOption); + checkUnnamed31(o.freeBaggageOption); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.segmentId, unittest.equals('foo')); } buildCounterSegmentPricing--; } -buildUnnamed30() { +buildUnnamed32() { var o = new core.List<api.SegmentInfo>(); o.add(buildSegmentInfo()); o.add(buildSegmentInfo()); return o; } -checkUnnamed30(core.List<api.SegmentInfo> o) { +checkUnnamed32(core.List<api.SegmentInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkSegmentInfo(o[0]); checkSegmentInfo(o[1]); @@ -647,7 +647,7 @@ if (buildCounterSliceInfo < 3) { o.duration = 42; o.kind = "foo"; - o.segment = buildUnnamed30(); + o.segment = buildUnnamed32(); } buildCounterSliceInfo--; return o; @@ -658,32 +658,32 @@ if (buildCounterSliceInfo < 3) { unittest.expect(o.duration, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed30(o.segment); + checkUnnamed32(o.segment); } buildCounterSliceInfo--; } -buildUnnamed31() { +buildUnnamed33() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed31(core.List<core.String> o) { +checkUnnamed33(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed32() { +buildUnnamed34() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed32(core.List<core.String> o) { +checkUnnamed34(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -701,10 +701,10 @@ o.maxConnectionDuration = 42; o.maxStops = 42; o.origin = "foo"; - o.permittedCarrier = buildUnnamed31(); + o.permittedCarrier = buildUnnamed33(); o.permittedDepartureTime = buildTimeOfDayRange(); o.preferredCabin = "foo"; - o.prohibitedCarrier = buildUnnamed32(); + o.prohibitedCarrier = buildUnnamed34(); } buildCounterSliceInput--; return o; @@ -720,10 +720,10 @@ unittest.expect(o.maxConnectionDuration, unittest.equals(42)); unittest.expect(o.maxStops, unittest.equals(42)); unittest.expect(o.origin, unittest.equals('foo')); - checkUnnamed31(o.permittedCarrier); + checkUnnamed33(o.permittedCarrier); checkTimeOfDayRange(o.permittedDepartureTime); unittest.expect(o.preferredCabin, unittest.equals('foo')); - checkUnnamed32(o.prohibitedCarrier); + checkUnnamed34(o.prohibitedCarrier); } buildCounterSliceInput--; } @@ -803,27 +803,27 @@ buildCounterTimeOfDayRange--; } -buildUnnamed33() { +buildUnnamed35() { var o = new core.List<api.PricingInfo>(); o.add(buildPricingInfo()); o.add(buildPricingInfo()); return o; } -checkUnnamed33(core.List<api.PricingInfo> o) { +checkUnnamed35(core.List<api.PricingInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkPricingInfo(o[0]); checkPricingInfo(o[1]); } -buildUnnamed34() { +buildUnnamed36() { var o = new core.List<api.SliceInfo>(); o.add(buildSliceInfo()); o.add(buildSliceInfo()); return o; } -checkUnnamed34(core.List<api.SliceInfo> o) { +checkUnnamed36(core.List<api.SliceInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkSliceInfo(o[0]); checkSliceInfo(o[1]); @@ -836,9 +836,9 @@ if (buildCounterTripOption < 3) { o.id = "foo"; o.kind = "foo"; - o.pricing = buildUnnamed33(); + o.pricing = buildUnnamed35(); o.saleTotal = "foo"; - o.slice = buildUnnamed34(); + o.slice = buildUnnamed36(); } buildCounterTripOption--; return o; @@ -849,21 +849,21 @@ if (buildCounterTripOption < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed33(o.pricing); + checkUnnamed35(o.pricing); unittest.expect(o.saleTotal, unittest.equals('foo')); - checkUnnamed34(o.slice); + checkUnnamed36(o.slice); } buildCounterTripOption--; } -buildUnnamed35() { +buildUnnamed37() { var o = new core.List<api.SliceInput>(); o.add(buildSliceInput()); o.add(buildSliceInput()); return o; } -checkUnnamed35(core.List<api.SliceInput> o) { +checkUnnamed37(core.List<api.SliceInput> o) { unittest.expect(o, unittest.hasLength(2)); checkSliceInput(o[0]); checkSliceInput(o[1]); @@ -878,7 +878,7 @@ o.passengers = buildPassengerCounts(); o.refundable = true; o.saleCountry = "foo"; - o.slice = buildUnnamed35(); + o.slice = buildUnnamed37(); o.solutions = 42; o.ticketingCountry = "foo"; } @@ -893,21 +893,21 @@ checkPassengerCounts(o.passengers); unittest.expect(o.refundable, unittest.isTrue); unittest.expect(o.saleCountry, unittest.equals('foo')); - checkUnnamed35(o.slice); + checkUnnamed37(o.slice); unittest.expect(o.solutions, unittest.equals(42)); unittest.expect(o.ticketingCountry, unittest.equals('foo')); } buildCounterTripOptionsRequest--; } -buildUnnamed36() { +buildUnnamed38() { var o = new core.List<api.TripOption>(); o.add(buildTripOption()); o.add(buildTripOption()); return o; } -checkUnnamed36(core.List<api.TripOption> o) { +checkUnnamed38(core.List<api.TripOption> o) { unittest.expect(o, unittest.hasLength(2)); checkTripOption(o[0]); checkTripOption(o[1]); @@ -921,7 +921,7 @@ o.data = buildData(); o.kind = "foo"; o.requestId = "foo"; - o.tripOption = buildUnnamed36(); + o.tripOption = buildUnnamed38(); } buildCounterTripOptionsResponse--; return o; @@ -933,7 +933,7 @@ checkData(o.data); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.requestId, unittest.equals('foo')); - checkUnnamed36(o.tripOption); + checkUnnamed38(o.tripOption); } buildCounterTripOptionsResponse--; } @@ -1202,7 +1202,7 @@ var mock = new HttpServerMock(); api.TripsResourceApi res = new api.QpxExpressApi(mock).trips; var arg_request = buildTripsSearchRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TripsSearchRequest.fromJson(json); checkTripsSearchRequest(obj); @@ -1241,7 +1241,7 @@ var resp = convert.JSON.encode(buildTripsSearchResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.search(arg_request).then(unittest.expectAsync(((api.TripsSearchResponse response) { + res.search(arg_request).then(unittest.expectAsync1(((api.TripsSearchResponse response) { checkTripsSearchResponse(response); }))); });
diff --git a/generated/googleapis/test/reseller/v1_test.dart b/generated/googleapis/test/reseller/v1_test.dart index ec2996e..444c690 100644 --- a/generated/googleapis/test/reseller/v1_test.dart +++ b/generated/googleapis/test/reseller/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/reseller/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -169,14 +169,14 @@ buildCounterRenewalSettings--; } -buildUnnamed2271() { +buildUnnamed2294() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2271(core.List<core.String> o) { +checkUnnamed2294(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -187,7 +187,7 @@ var o = new api.ResellernotifyGetwatchdetailsResponse(); buildCounterResellernotifyGetwatchdetailsResponse++; if (buildCounterResellernotifyGetwatchdetailsResponse < 3) { - o.serviceAccountEmailAddresses = buildUnnamed2271(); + o.serviceAccountEmailAddresses = buildUnnamed2294(); o.topicName = "foo"; } buildCounterResellernotifyGetwatchdetailsResponse--; @@ -197,7 +197,7 @@ checkResellernotifyGetwatchdetailsResponse(api.ResellernotifyGetwatchdetailsResponse o) { buildCounterResellernotifyGetwatchdetailsResponse++; if (buildCounterResellernotifyGetwatchdetailsResponse < 3) { - checkUnnamed2271(o.serviceAccountEmailAddresses); + checkUnnamed2294(o.serviceAccountEmailAddresses); unittest.expect(o.topicName, unittest.equals('foo')); } buildCounterResellernotifyGetwatchdetailsResponse--; @@ -291,14 +291,14 @@ buildCounterSubscriptionPlan--; } -buildUnnamed2272() { +buildUnnamed2295() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2272(core.List<core.String> o) { +checkUnnamed2295(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -366,7 +366,7 @@ o.skuName = "foo"; o.status = "foo"; o.subscriptionId = "foo"; - o.suspensionReasons = buildUnnamed2272(); + o.suspensionReasons = buildUnnamed2295(); o.transferInfo = buildSubscriptionTransferInfo(); o.trialSettings = buildSubscriptionTrialSettings(); } @@ -392,21 +392,21 @@ unittest.expect(o.skuName, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subscriptionId, unittest.equals('foo')); - checkUnnamed2272(o.suspensionReasons); + checkUnnamed2295(o.suspensionReasons); checkSubscriptionTransferInfo(o.transferInfo); checkSubscriptionTrialSettings(o.trialSettings); } buildCounterSubscription--; } -buildUnnamed2273() { +buildUnnamed2296() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed2273(core.List<api.Subscription> o) { +checkUnnamed2296(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -419,7 +419,7 @@ if (buildCounterSubscriptions < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.subscriptions = buildUnnamed2273(); + o.subscriptions = buildUnnamed2296(); } buildCounterSubscriptions--; return o; @@ -430,7 +430,7 @@ if (buildCounterSubscriptions < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2273(o.subscriptions); + checkUnnamed2296(o.subscriptions); } buildCounterSubscriptions--; } @@ -560,7 +560,7 @@ var mock = new HttpServerMock(); api.CustomersResourceApi res = new api.ResellerApi(mock).customers; var arg_customerId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -599,7 +599,7 @@ var resp = convert.JSON.encode(buildCustomer()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_customerId).then(unittest.expectAsync(((api.Customer response) { + res.get(arg_customerId).then(unittest.expectAsync1(((api.Customer response) { checkCustomer(response); }))); }); @@ -610,7 +610,7 @@ api.CustomersResourceApi res = new api.ResellerApi(mock).customers; var arg_request = buildCustomer(); var arg_customerAuthToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Customer.fromJson(json); checkCustomer(obj); @@ -650,7 +650,7 @@ var resp = convert.JSON.encode(buildCustomer()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, customerAuthToken: arg_customerAuthToken).then(unittest.expectAsync(((api.Customer response) { + res.insert(arg_request, customerAuthToken: arg_customerAuthToken).then(unittest.expectAsync1(((api.Customer response) { checkCustomer(response); }))); }); @@ -661,7 +661,7 @@ api.CustomersResourceApi res = new api.ResellerApi(mock).customers; var arg_request = buildCustomer(); var arg_customerId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Customer.fromJson(json); checkCustomer(obj); @@ -703,7 +703,7 @@ var resp = convert.JSON.encode(buildCustomer()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_customerId).then(unittest.expectAsync(((api.Customer response) { + res.patch(arg_request, arg_customerId).then(unittest.expectAsync1(((api.Customer response) { checkCustomer(response); }))); }); @@ -714,7 +714,7 @@ api.CustomersResourceApi res = new api.ResellerApi(mock).customers; var arg_request = buildCustomer(); var arg_customerId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Customer.fromJson(json); checkCustomer(obj); @@ -756,7 +756,7 @@ var resp = convert.JSON.encode(buildCustomer()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_customerId).then(unittest.expectAsync(((api.Customer response) { + res.update(arg_request, arg_customerId).then(unittest.expectAsync1(((api.Customer response) { checkCustomer(response); }))); }); @@ -769,7 +769,7 @@ var mock = new HttpServerMock(); api.ResellernotifyResourceApi res = new api.ResellerApi(mock).resellernotify; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -805,7 +805,7 @@ var resp = convert.JSON.encode(buildResellernotifyGetwatchdetailsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getwatchdetails().then(unittest.expectAsync(((api.ResellernotifyGetwatchdetailsResponse response) { + res.getwatchdetails().then(unittest.expectAsync1(((api.ResellernotifyGetwatchdetailsResponse response) { checkResellernotifyGetwatchdetailsResponse(response); }))); }); @@ -815,7 +815,7 @@ var mock = new HttpServerMock(); api.ResellernotifyResourceApi res = new api.ResellerApi(mock).resellernotify; var arg_serviceAccountEmailAddress = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -852,7 +852,7 @@ var resp = convert.JSON.encode(buildResellernotifyResource()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.register(serviceAccountEmailAddress: arg_serviceAccountEmailAddress).then(unittest.expectAsync(((api.ResellernotifyResource response) { + res.register(serviceAccountEmailAddress: arg_serviceAccountEmailAddress).then(unittest.expectAsync1(((api.ResellernotifyResource response) { checkResellernotifyResource(response); }))); }); @@ -862,7 +862,7 @@ var mock = new HttpServerMock(); api.ResellernotifyResourceApi res = new api.ResellerApi(mock).resellernotify; var arg_serviceAccountEmailAddress = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -899,7 +899,7 @@ var resp = convert.JSON.encode(buildResellernotifyResource()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.unregister(serviceAccountEmailAddress: arg_serviceAccountEmailAddress).then(unittest.expectAsync(((api.ResellernotifyResource response) { + res.unregister(serviceAccountEmailAddress: arg_serviceAccountEmailAddress).then(unittest.expectAsync1(((api.ResellernotifyResource response) { checkResellernotifyResource(response); }))); }); @@ -914,7 +914,7 @@ api.SubscriptionsResourceApi res = new api.ResellerApi(mock).subscriptions; var arg_customerId = "foo"; var arg_subscriptionId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -964,7 +964,7 @@ var resp = convert.JSON.encode(buildSubscription()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.activate(arg_customerId, arg_subscriptionId).then(unittest.expectAsync(((api.Subscription response) { + res.activate(arg_customerId, arg_subscriptionId).then(unittest.expectAsync1(((api.Subscription response) { checkSubscription(response); }))); }); @@ -976,7 +976,7 @@ var arg_request = buildChangePlanRequest(); var arg_customerId = "foo"; var arg_subscriptionId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ChangePlanRequest.fromJson(json); checkChangePlanRequest(obj); @@ -1029,7 +1029,7 @@ var resp = convert.JSON.encode(buildSubscription()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.changePlan(arg_request, arg_customerId, arg_subscriptionId).then(unittest.expectAsync(((api.Subscription response) { + res.changePlan(arg_request, arg_customerId, arg_subscriptionId).then(unittest.expectAsync1(((api.Subscription response) { checkSubscription(response); }))); }); @@ -1041,7 +1041,7 @@ var arg_request = buildRenewalSettings(); var arg_customerId = "foo"; var arg_subscriptionId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RenewalSettings.fromJson(json); checkRenewalSettings(obj); @@ -1094,7 +1094,7 @@ var resp = convert.JSON.encode(buildSubscription()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.changeRenewalSettings(arg_request, arg_customerId, arg_subscriptionId).then(unittest.expectAsync(((api.Subscription response) { + res.changeRenewalSettings(arg_request, arg_customerId, arg_subscriptionId).then(unittest.expectAsync1(((api.Subscription response) { checkSubscription(response); }))); }); @@ -1106,7 +1106,7 @@ var arg_request = buildSeats(); var arg_customerId = "foo"; var arg_subscriptionId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Seats.fromJson(json); checkSeats(obj); @@ -1159,7 +1159,7 @@ var resp = convert.JSON.encode(buildSubscription()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.changeSeats(arg_request, arg_customerId, arg_subscriptionId).then(unittest.expectAsync(((api.Subscription response) { + res.changeSeats(arg_request, arg_customerId, arg_subscriptionId).then(unittest.expectAsync1(((api.Subscription response) { checkSubscription(response); }))); }); @@ -1171,7 +1171,7 @@ var arg_customerId = "foo"; var arg_subscriptionId = "foo"; var arg_deletionType = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1218,7 +1218,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_customerId, arg_subscriptionId, arg_deletionType).then(unittest.expectAsync((_) {})); + res.delete(arg_customerId, arg_subscriptionId, arg_deletionType).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -1227,7 +1227,7 @@ api.SubscriptionsResourceApi res = new api.ResellerApi(mock).subscriptions; var arg_customerId = "foo"; var arg_subscriptionId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1273,7 +1273,7 @@ var resp = convert.JSON.encode(buildSubscription()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_customerId, arg_subscriptionId).then(unittest.expectAsync(((api.Subscription response) { + res.get(arg_customerId, arg_subscriptionId).then(unittest.expectAsync1(((api.Subscription response) { checkSubscription(response); }))); }); @@ -1285,7 +1285,7 @@ var arg_request = buildSubscription(); var arg_customerId = "foo"; var arg_customerAuthToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Subscription.fromJson(json); checkSubscription(obj); @@ -1332,7 +1332,7 @@ var resp = convert.JSON.encode(buildSubscription()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_customerId, customerAuthToken: arg_customerAuthToken).then(unittest.expectAsync(((api.Subscription response) { + res.insert(arg_request, arg_customerId, customerAuthToken: arg_customerAuthToken).then(unittest.expectAsync1(((api.Subscription response) { checkSubscription(response); }))); }); @@ -1346,7 +1346,7 @@ var arg_customerNamePrefix = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1387,7 +1387,7 @@ var resp = convert.JSON.encode(buildSubscriptions()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(customerAuthToken: arg_customerAuthToken, customerId: arg_customerId, customerNamePrefix: arg_customerNamePrefix, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Subscriptions response) { + res.list(customerAuthToken: arg_customerAuthToken, customerId: arg_customerId, customerNamePrefix: arg_customerNamePrefix, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.Subscriptions response) { checkSubscriptions(response); }))); }); @@ -1398,7 +1398,7 @@ api.SubscriptionsResourceApi res = new api.ResellerApi(mock).subscriptions; var arg_customerId = "foo"; var arg_subscriptionId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1448,7 +1448,7 @@ var resp = convert.JSON.encode(buildSubscription()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.startPaidService(arg_customerId, arg_subscriptionId).then(unittest.expectAsync(((api.Subscription response) { + res.startPaidService(arg_customerId, arg_subscriptionId).then(unittest.expectAsync1(((api.Subscription response) { checkSubscription(response); }))); }); @@ -1459,7 +1459,7 @@ api.SubscriptionsResourceApi res = new api.ResellerApi(mock).subscriptions; var arg_customerId = "foo"; var arg_subscriptionId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1509,7 +1509,7 @@ var resp = convert.JSON.encode(buildSubscription()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.suspend(arg_customerId, arg_subscriptionId).then(unittest.expectAsync(((api.Subscription response) { + res.suspend(arg_customerId, arg_subscriptionId).then(unittest.expectAsync1(((api.Subscription response) { checkSubscription(response); }))); });
diff --git a/generated/googleapis/test/runtimeconfig/v1_test.dart b/generated/googleapis/test/runtimeconfig/v1_test.dart index 757036d..a779947 100644 --- a/generated/googleapis/test/runtimeconfig/v1_test.dart +++ b/generated/googleapis/test/runtimeconfig/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/runtimeconfig/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -85,14 +85,14 @@ buildCounterEmpty--; } -buildUnnamed1798() { +buildUnnamed1808() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1798(core.List<api.Operation> o) { +checkUnnamed1808(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -104,7 +104,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1798(); + o.operations = buildUnnamed1808(); } buildCounterListOperationsResponse--; return o; @@ -114,32 +114,32 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1798(o.operations); + checkUnnamed1808(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1799() { +buildUnnamed1809() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1799(core.Map<core.String, core.Object> o) { +checkUnnamed1809(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1800() { +buildUnnamed1810() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1800(core.Map<core.String, core.Object> o) { +checkUnnamed1810(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -152,9 +152,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1799(); + o.metadata = buildUnnamed1809(); o.name = "foo"; - o.response = buildUnnamed1800(); + o.response = buildUnnamed1810(); } buildCounterOperation--; return o; @@ -165,37 +165,37 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1799(o.metadata); + checkUnnamed1809(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1800(o.response); + checkUnnamed1810(o.response); } buildCounterOperation--; } -buildUnnamed1801() { +buildUnnamed1811() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1801(core.Map<core.String, core.Object> o) { +checkUnnamed1811(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1802() { +buildUnnamed1812() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1801()); - o.add(buildUnnamed1801()); + o.add(buildUnnamed1811()); + o.add(buildUnnamed1811()); return o; } -checkUnnamed1802(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1812(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1801(o[0]); - checkUnnamed1801(o[1]); + checkUnnamed1811(o[0]); + checkUnnamed1811(o[1]); } core.int buildCounterStatus = 0; @@ -204,7 +204,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1802(); + o.details = buildUnnamed1812(); o.message = "foo"; } buildCounterStatus--; @@ -215,7 +215,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1802(o.details); + checkUnnamed1812(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -275,7 +275,7 @@ api.OperationsResourceApi res = new api.RuntimeconfigApi(mock).operations; var arg_request = buildCancelOperationRequest(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CancelOperationRequest.fromJson(json); checkCancelOperationRequest(obj); @@ -313,7 +313,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.cancel(arg_request, arg_name).then(unittest.expectAsync(((api.Empty response) { + res.cancel(arg_request, arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -323,7 +323,7 @@ var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.RuntimeconfigApi(mock).operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -358,7 +358,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -371,7 +371,7 @@ var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -409,7 +409,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListOperationsResponse response) { + res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); });
diff --git a/generated/googleapis/test/safebrowsing/v4_test.dart b/generated/googleapis/test/safebrowsing/v4_test.dart index 0ee64d9..ac972e3 100644 --- a/generated/googleapis/test/safebrowsing/v4_test.dart +++ b/generated/googleapis/test/safebrowsing/v4_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/safebrowsing/v4.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -91,14 +91,14 @@ buildCounterClientInfo--; } -buildUnnamed1006() { +buildUnnamed1013() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1006(core.List<core.String> o) { +checkUnnamed1013(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -112,7 +112,7 @@ o.maxDatabaseEntries = 42; o.maxUpdateEntries = 42; o.region = "foo"; - o.supportedCompressions = buildUnnamed1006(); + o.supportedCompressions = buildUnnamed1013(); } buildCounterConstraints--; return o; @@ -124,19 +124,19 @@ unittest.expect(o.maxDatabaseEntries, unittest.equals(42)); unittest.expect(o.maxUpdateEntries, unittest.equals(42)); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed1006(o.supportedCompressions); + checkUnnamed1013(o.supportedCompressions); } buildCounterConstraints--; } -buildUnnamed1007() { +buildUnnamed1014() { var o = new core.List<api.ListUpdateRequest>(); o.add(buildListUpdateRequest()); o.add(buildListUpdateRequest()); return o; } -checkUnnamed1007(core.List<api.ListUpdateRequest> o) { +checkUnnamed1014(core.List<api.ListUpdateRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkListUpdateRequest(o[0]); checkListUpdateRequest(o[1]); @@ -148,7 +148,7 @@ buildCounterFetchThreatListUpdatesRequest++; if (buildCounterFetchThreatListUpdatesRequest < 3) { o.client = buildClientInfo(); - o.listUpdateRequests = buildUnnamed1007(); + o.listUpdateRequests = buildUnnamed1014(); } buildCounterFetchThreatListUpdatesRequest--; return o; @@ -158,19 +158,19 @@ buildCounterFetchThreatListUpdatesRequest++; if (buildCounterFetchThreatListUpdatesRequest < 3) { checkClientInfo(o.client); - checkUnnamed1007(o.listUpdateRequests); + checkUnnamed1014(o.listUpdateRequests); } buildCounterFetchThreatListUpdatesRequest--; } -buildUnnamed1008() { +buildUnnamed1015() { var o = new core.List<api.ListUpdateResponse>(); o.add(buildListUpdateResponse()); o.add(buildListUpdateResponse()); return o; } -checkUnnamed1008(core.List<api.ListUpdateResponse> o) { +checkUnnamed1015(core.List<api.ListUpdateResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkListUpdateResponse(o[0]); checkListUpdateResponse(o[1]); @@ -181,7 +181,7 @@ var o = new api.FetchThreatListUpdatesResponse(); buildCounterFetchThreatListUpdatesResponse++; if (buildCounterFetchThreatListUpdatesResponse < 3) { - o.listUpdateResponses = buildUnnamed1008(); + o.listUpdateResponses = buildUnnamed1015(); o.minimumWaitDuration = "foo"; } buildCounterFetchThreatListUpdatesResponse--; @@ -191,20 +191,20 @@ checkFetchThreatListUpdatesResponse(api.FetchThreatListUpdatesResponse o) { buildCounterFetchThreatListUpdatesResponse++; if (buildCounterFetchThreatListUpdatesResponse < 3) { - checkUnnamed1008(o.listUpdateResponses); + checkUnnamed1015(o.listUpdateResponses); unittest.expect(o.minimumWaitDuration, unittest.equals('foo')); } buildCounterFetchThreatListUpdatesResponse--; } -buildUnnamed1009() { +buildUnnamed1016() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1009(core.List<core.String> o) { +checkUnnamed1016(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -217,7 +217,7 @@ if (buildCounterFindFullHashesRequest < 3) { o.apiClient = buildClientInfo(); o.client = buildClientInfo(); - o.clientStates = buildUnnamed1009(); + o.clientStates = buildUnnamed1016(); o.threatInfo = buildThreatInfo(); } buildCounterFindFullHashesRequest--; @@ -229,20 +229,20 @@ if (buildCounterFindFullHashesRequest < 3) { checkClientInfo(o.apiClient); checkClientInfo(o.client); - checkUnnamed1009(o.clientStates); + checkUnnamed1016(o.clientStates); checkThreatInfo(o.threatInfo); } buildCounterFindFullHashesRequest--; } -buildUnnamed1010() { +buildUnnamed1017() { var o = new core.List<api.ThreatMatch>(); o.add(buildThreatMatch()); o.add(buildThreatMatch()); return o; } -checkUnnamed1010(core.List<api.ThreatMatch> o) { +checkUnnamed1017(core.List<api.ThreatMatch> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatMatch(o[0]); checkThreatMatch(o[1]); @@ -253,7 +253,7 @@ var o = new api.FindFullHashesResponse(); buildCounterFindFullHashesResponse++; if (buildCounterFindFullHashesResponse < 3) { - o.matches = buildUnnamed1010(); + o.matches = buildUnnamed1017(); o.minimumWaitDuration = "foo"; o.negativeCacheDuration = "foo"; } @@ -264,7 +264,7 @@ checkFindFullHashesResponse(api.FindFullHashesResponse o) { buildCounterFindFullHashesResponse++; if (buildCounterFindFullHashesResponse < 3) { - checkUnnamed1010(o.matches); + checkUnnamed1017(o.matches); unittest.expect(o.minimumWaitDuration, unittest.equals('foo')); unittest.expect(o.negativeCacheDuration, unittest.equals('foo')); } @@ -292,14 +292,14 @@ buildCounterFindThreatMatchesRequest--; } -buildUnnamed1011() { +buildUnnamed1018() { var o = new core.List<api.ThreatMatch>(); o.add(buildThreatMatch()); o.add(buildThreatMatch()); return o; } -checkUnnamed1011(core.List<api.ThreatMatch> o) { +checkUnnamed1018(core.List<api.ThreatMatch> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatMatch(o[0]); checkThreatMatch(o[1]); @@ -310,7 +310,7 @@ var o = new api.FindThreatMatchesResponse(); buildCounterFindThreatMatchesResponse++; if (buildCounterFindThreatMatchesResponse < 3) { - o.matches = buildUnnamed1011(); + o.matches = buildUnnamed1018(); } buildCounterFindThreatMatchesResponse--; return o; @@ -319,19 +319,19 @@ checkFindThreatMatchesResponse(api.FindThreatMatchesResponse o) { buildCounterFindThreatMatchesResponse++; if (buildCounterFindThreatMatchesResponse < 3) { - checkUnnamed1011(o.matches); + checkUnnamed1018(o.matches); } buildCounterFindThreatMatchesResponse--; } -buildUnnamed1012() { +buildUnnamed1019() { var o = new core.List<api.ThreatListDescriptor>(); o.add(buildThreatListDescriptor()); o.add(buildThreatListDescriptor()); return o; } -checkUnnamed1012(core.List<api.ThreatListDescriptor> o) { +checkUnnamed1019(core.List<api.ThreatListDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatListDescriptor(o[0]); checkThreatListDescriptor(o[1]); @@ -342,7 +342,7 @@ var o = new api.ListThreatListsResponse(); buildCounterListThreatListsResponse++; if (buildCounterListThreatListsResponse < 3) { - o.threatLists = buildUnnamed1012(); + o.threatLists = buildUnnamed1019(); } buildCounterListThreatListsResponse--; return o; @@ -351,7 +351,7 @@ checkListThreatListsResponse(api.ListThreatListsResponse o) { buildCounterListThreatListsResponse++; if (buildCounterListThreatListsResponse < 3) { - checkUnnamed1012(o.threatLists); + checkUnnamed1019(o.threatLists); } buildCounterListThreatListsResponse--; } @@ -383,27 +383,27 @@ buildCounterListUpdateRequest--; } -buildUnnamed1013() { +buildUnnamed1020() { var o = new core.List<api.ThreatEntrySet>(); o.add(buildThreatEntrySet()); o.add(buildThreatEntrySet()); return o; } -checkUnnamed1013(core.List<api.ThreatEntrySet> o) { +checkUnnamed1020(core.List<api.ThreatEntrySet> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatEntrySet(o[0]); checkThreatEntrySet(o[1]); } -buildUnnamed1014() { +buildUnnamed1021() { var o = new core.List<api.ThreatEntrySet>(); o.add(buildThreatEntrySet()); o.add(buildThreatEntrySet()); return o; } -checkUnnamed1014(core.List<api.ThreatEntrySet> o) { +checkUnnamed1021(core.List<api.ThreatEntrySet> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatEntrySet(o[0]); checkThreatEntrySet(o[1]); @@ -414,11 +414,11 @@ var o = new api.ListUpdateResponse(); buildCounterListUpdateResponse++; if (buildCounterListUpdateResponse < 3) { - o.additions = buildUnnamed1013(); + o.additions = buildUnnamed1020(); o.checksum = buildChecksum(); o.newClientState = "foo"; o.platformType = "foo"; - o.removals = buildUnnamed1014(); + o.removals = buildUnnamed1021(); o.responseType = "foo"; o.threatEntryType = "foo"; o.threatType = "foo"; @@ -430,11 +430,11 @@ checkListUpdateResponse(api.ListUpdateResponse o) { buildCounterListUpdateResponse++; if (buildCounterListUpdateResponse < 3) { - checkUnnamed1013(o.additions); + checkUnnamed1020(o.additions); checkChecksum(o.checksum); unittest.expect(o.newClientState, unittest.equals('foo')); unittest.expect(o.platformType, unittest.equals('foo')); - checkUnnamed1014(o.removals); + checkUnnamed1021(o.removals); unittest.expect(o.responseType, unittest.equals('foo')); unittest.expect(o.threatEntryType, unittest.equals('foo')); unittest.expect(o.threatType, unittest.equals('foo')); @@ -484,14 +484,14 @@ buildCounterRawHashes--; } -buildUnnamed1015() { +buildUnnamed1022() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1015(core.List<core.int> o) { +checkUnnamed1022(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -502,7 +502,7 @@ var o = new api.RawIndices(); buildCounterRawIndices++; if (buildCounterRawIndices < 3) { - o.indices = buildUnnamed1015(); + o.indices = buildUnnamed1022(); } buildCounterRawIndices--; return o; @@ -511,7 +511,7 @@ checkRawIndices(api.RawIndices o) { buildCounterRawIndices++; if (buildCounterRawIndices < 3) { - checkUnnamed1015(o.indices); + checkUnnamed1022(o.indices); } buildCounterRawIndices--; } @@ -564,14 +564,14 @@ buildCounterThreatEntry--; } -buildUnnamed1016() { +buildUnnamed1023() { var o = new core.List<api.MetadataEntry>(); o.add(buildMetadataEntry()); o.add(buildMetadataEntry()); return o; } -checkUnnamed1016(core.List<api.MetadataEntry> o) { +checkUnnamed1023(core.List<api.MetadataEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataEntry(o[0]); checkMetadataEntry(o[1]); @@ -582,7 +582,7 @@ var o = new api.ThreatEntryMetadata(); buildCounterThreatEntryMetadata++; if (buildCounterThreatEntryMetadata < 3) { - o.entries = buildUnnamed1016(); + o.entries = buildUnnamed1023(); } buildCounterThreatEntryMetadata--; return o; @@ -591,7 +591,7 @@ checkThreatEntryMetadata(api.ThreatEntryMetadata o) { buildCounterThreatEntryMetadata++; if (buildCounterThreatEntryMetadata < 3) { - checkUnnamed1016(o.entries); + checkUnnamed1023(o.entries); } buildCounterThreatEntryMetadata--; } @@ -623,53 +623,53 @@ buildCounterThreatEntrySet--; } -buildUnnamed1017() { +buildUnnamed1024() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1017(core.List<core.String> o) { +checkUnnamed1024(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1018() { +buildUnnamed1025() { var o = new core.List<api.ThreatEntry>(); o.add(buildThreatEntry()); o.add(buildThreatEntry()); return o; } -checkUnnamed1018(core.List<api.ThreatEntry> o) { +checkUnnamed1025(core.List<api.ThreatEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatEntry(o[0]); checkThreatEntry(o[1]); } -buildUnnamed1019() { +buildUnnamed1026() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1019(core.List<core.String> o) { +checkUnnamed1026(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1020() { +buildUnnamed1027() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1020(core.List<core.String> o) { +checkUnnamed1027(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -680,10 +680,10 @@ var o = new api.ThreatInfo(); buildCounterThreatInfo++; if (buildCounterThreatInfo < 3) { - o.platformTypes = buildUnnamed1017(); - o.threatEntries = buildUnnamed1018(); - o.threatEntryTypes = buildUnnamed1019(); - o.threatTypes = buildUnnamed1020(); + o.platformTypes = buildUnnamed1024(); + o.threatEntries = buildUnnamed1025(); + o.threatEntryTypes = buildUnnamed1026(); + o.threatTypes = buildUnnamed1027(); } buildCounterThreatInfo--; return o; @@ -692,10 +692,10 @@ checkThreatInfo(api.ThreatInfo o) { buildCounterThreatInfo++; if (buildCounterThreatInfo < 3) { - checkUnnamed1017(o.platformTypes); - checkUnnamed1018(o.threatEntries); - checkUnnamed1019(o.threatEntryTypes); - checkUnnamed1020(o.threatTypes); + checkUnnamed1024(o.platformTypes); + checkUnnamed1025(o.threatEntries); + checkUnnamed1026(o.threatEntryTypes); + checkUnnamed1027(o.threatTypes); } buildCounterThreatInfo--; } @@ -960,7 +960,7 @@ var arg_encodedRequest = "foo"; var arg_clientId = "foo"; var arg_clientVersion = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -999,7 +999,7 @@ var resp = convert.JSON.encode(buildFindFullHashesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_encodedRequest, clientId: arg_clientId, clientVersion: arg_clientVersion).then(unittest.expectAsync(((api.FindFullHashesResponse response) { + res.get(arg_encodedRequest, clientId: arg_clientId, clientVersion: arg_clientVersion).then(unittest.expectAsync1(((api.FindFullHashesResponse response) { checkFindFullHashesResponse(response); }))); }); @@ -1013,9 +1013,9 @@ var mock = new HttpServerMock(); api.EncodedUpdatesResourceApi res = new api.SafebrowsingApi(mock).encodedUpdates; var arg_encodedRequest = "foo"; - var arg_clientId = "foo"; var arg_clientVersion = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_clientId = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1044,8 +1044,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["clientId"].first, unittest.equals(arg_clientId)); unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_clientVersion)); + unittest.expect(queryMap["clientId"].first, unittest.equals(arg_clientId)); var h = { @@ -1054,7 +1054,7 @@ var resp = convert.JSON.encode(buildFetchThreatListUpdatesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_encodedRequest, clientId: arg_clientId, clientVersion: arg_clientVersion).then(unittest.expectAsync(((api.FetchThreatListUpdatesResponse response) { + res.get(arg_encodedRequest, clientVersion: arg_clientVersion, clientId: arg_clientId).then(unittest.expectAsync1(((api.FetchThreatListUpdatesResponse response) { checkFetchThreatListUpdatesResponse(response); }))); }); @@ -1068,7 +1068,7 @@ var mock = new HttpServerMock(); api.FullHashesResourceApi res = new api.SafebrowsingApi(mock).fullHashes; var arg_request = buildFindFullHashesRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.FindFullHashesRequest.fromJson(json); checkFindFullHashesRequest(obj); @@ -1105,7 +1105,7 @@ var resp = convert.JSON.encode(buildFindFullHashesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.find(arg_request).then(unittest.expectAsync(((api.FindFullHashesResponse response) { + res.find(arg_request).then(unittest.expectAsync1(((api.FindFullHashesResponse response) { checkFindFullHashesResponse(response); }))); }); @@ -1119,7 +1119,7 @@ var mock = new HttpServerMock(); api.ThreatListUpdatesResourceApi res = new api.SafebrowsingApi(mock).threatListUpdates; var arg_request = buildFetchThreatListUpdatesRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.FetchThreatListUpdatesRequest.fromJson(json); checkFetchThreatListUpdatesRequest(obj); @@ -1156,7 +1156,7 @@ var resp = convert.JSON.encode(buildFetchThreatListUpdatesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.fetch(arg_request).then(unittest.expectAsync(((api.FetchThreatListUpdatesResponse response) { + res.fetch(arg_request).then(unittest.expectAsync1(((api.FetchThreatListUpdatesResponse response) { checkFetchThreatListUpdatesResponse(response); }))); }); @@ -1169,7 +1169,7 @@ var mock = new HttpServerMock(); api.ThreatListsResourceApi res = new api.SafebrowsingApi(mock).threatLists; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1203,7 +1203,7 @@ var resp = convert.JSON.encode(buildListThreatListsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list().then(unittest.expectAsync(((api.ListThreatListsResponse response) { + res.list().then(unittest.expectAsync1(((api.ListThreatListsResponse response) { checkListThreatListsResponse(response); }))); }); @@ -1217,7 +1217,7 @@ var mock = new HttpServerMock(); api.ThreatMatchesResourceApi res = new api.SafebrowsingApi(mock).threatMatches; var arg_request = buildFindThreatMatchesRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.FindThreatMatchesRequest.fromJson(json); checkFindThreatMatchesRequest(obj); @@ -1254,7 +1254,7 @@ var resp = convert.JSON.encode(buildFindThreatMatchesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.find(arg_request).then(unittest.expectAsync(((api.FindThreatMatchesResponse response) { + res.find(arg_request).then(unittest.expectAsync1(((api.FindThreatMatchesResponse response) { checkFindThreatMatchesResponse(response); }))); });
diff --git a/generated/googleapis/test/script/v1_test.dart b/generated/googleapis/test/script/v1_test.dart index 02f9e7c..1233fd2 100644 --- a/generated/googleapis/test/script/v1_test.dart +++ b/generated/googleapis/test/script/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/script/v1.dart' as api; @@ -46,19 +46,19 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed724() { +buildUnnamed731() { var o = new core.List<api.ScriptStackTraceElement>(); o.add(buildScriptStackTraceElement()); o.add(buildScriptStackTraceElement()); return o; } -checkUnnamed724(core.List<api.ScriptStackTraceElement> o) { +checkUnnamed731(core.List<api.ScriptStackTraceElement> o) { unittest.expect(o, unittest.hasLength(2)); checkScriptStackTraceElement(o[0]); checkScriptStackTraceElement(o[1]); @@ -71,7 +71,7 @@ if (buildCounterExecutionError < 3) { o.errorMessage = "foo"; o.errorType = "foo"; - o.scriptStackTraceElements = buildUnnamed724(); + o.scriptStackTraceElements = buildUnnamed731(); } buildCounterExecutionError--; return o; @@ -82,19 +82,19 @@ if (buildCounterExecutionError < 3) { unittest.expect(o.errorMessage, unittest.equals('foo')); unittest.expect(o.errorType, unittest.equals('foo')); - checkUnnamed724(o.scriptStackTraceElements); + checkUnnamed731(o.scriptStackTraceElements); } buildCounterExecutionError--; } -buildUnnamed725() { +buildUnnamed732() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed725(core.List<core.Object> o) { +checkUnnamed732(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -107,7 +107,7 @@ if (buildCounterExecutionRequest < 3) { o.devMode = true; o.function = "foo"; - o.parameters = buildUnnamed725(); + o.parameters = buildUnnamed732(); o.sessionState = "foo"; } buildCounterExecutionRequest--; @@ -119,7 +119,7 @@ if (buildCounterExecutionRequest < 3) { unittest.expect(o.devMode, unittest.isTrue); unittest.expect(o.function, unittest.equals('foo')); - checkUnnamed725(o.parameters); + checkUnnamed732(o.parameters); unittest.expect(o.sessionState, unittest.equals('foo')); } buildCounterExecutionRequest--; @@ -144,14 +144,14 @@ buildCounterExecutionResponse--; } -buildUnnamed726() { +buildUnnamed733() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed726(core.List<core.String> o) { +checkUnnamed733(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -162,7 +162,7 @@ var o = new api.JoinAsyncRequest(); buildCounterJoinAsyncRequest++; if (buildCounterJoinAsyncRequest < 3) { - o.names = buildUnnamed726(); + o.names = buildUnnamed733(); o.scriptId = "foo"; o.timeout = "foo"; } @@ -173,21 +173,21 @@ checkJoinAsyncRequest(api.JoinAsyncRequest o) { buildCounterJoinAsyncRequest++; if (buildCounterJoinAsyncRequest < 3) { - checkUnnamed726(o.names); + checkUnnamed733(o.names); unittest.expect(o.scriptId, unittest.equals('foo')); unittest.expect(o.timeout, unittest.equals('foo')); } buildCounterJoinAsyncRequest--; } -buildUnnamed727() { +buildUnnamed734() { var o = new core.Map<core.String, api.Operation>(); o["x"] = buildOperation(); o["y"] = buildOperation(); return o; } -checkUnnamed727(core.Map<core.String, api.Operation> o) { +checkUnnamed734(core.Map<core.String, api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o["x"]); checkOperation(o["y"]); @@ -198,7 +198,7 @@ var o = new api.JoinAsyncResponse(); buildCounterJoinAsyncResponse++; if (buildCounterJoinAsyncResponse < 3) { - o.results = buildUnnamed727(); + o.results = buildUnnamed734(); } buildCounterJoinAsyncResponse--; return o; @@ -207,32 +207,32 @@ checkJoinAsyncResponse(api.JoinAsyncResponse o) { buildCounterJoinAsyncResponse++; if (buildCounterJoinAsyncResponse < 3) { - checkUnnamed727(o.results); + checkUnnamed734(o.results); } buildCounterJoinAsyncResponse--; } -buildUnnamed728() { +buildUnnamed735() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed728(core.Map<core.String, core.Object> o) { +checkUnnamed735(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted4 = (o["x"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); var casted5 = (o["y"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); } -buildUnnamed729() { +buildUnnamed736() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed729(core.Map<core.String, core.Object> o) { +checkUnnamed736(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted6 = (o["x"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); var casted7 = (o["y"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); @@ -245,9 +245,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed728(); + o.metadata = buildUnnamed735(); o.name = "foo"; - o.response = buildUnnamed729(); + o.response = buildUnnamed736(); } buildCounterOperation--; return o; @@ -258,9 +258,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed728(o.metadata); + checkUnnamed735(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed729(o.response); + checkUnnamed736(o.response); } buildCounterOperation--; } @@ -286,30 +286,30 @@ buildCounterScriptStackTraceElement--; } -buildUnnamed730() { +buildUnnamed737() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed730(core.Map<core.String, core.Object> o) { +checkUnnamed737(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted8 = (o["x"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); var casted9 = (o["y"]) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo')); } -buildUnnamed731() { +buildUnnamed738() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed730()); - o.add(buildUnnamed730()); + o.add(buildUnnamed737()); + o.add(buildUnnamed737()); return o; } -checkUnnamed731(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed738(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed730(o[0]); - checkUnnamed730(o[1]); + checkUnnamed737(o[0]); + checkUnnamed737(o[1]); } core.int buildCounterStatus = 0; @@ -318,7 +318,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed731(); + o.details = buildUnnamed738(); o.message = "foo"; } buildCounterStatus--; @@ -329,7 +329,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed731(o.details); + checkUnnamed738(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -416,7 +416,7 @@ api.ScriptsResourceApi res = new api.ScriptApi(mock).scripts; var arg_request = buildExecutionRequest(); var arg_scriptId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ExecutionRequest.fromJson(json); checkExecutionRequest(obj); @@ -460,7 +460,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.run(arg_request, arg_scriptId).then(unittest.expectAsync(((api.Operation response) { + res.run(arg_request, arg_scriptId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); });
diff --git a/generated/googleapis/test/searchconsole/v1_test.dart b/generated/googleapis/test/searchconsole/v1_test.dart index 2803a5e..d341a66 100644 --- a/generated/googleapis/test/searchconsole/v1_test.dart +++ b/generated/googleapis/test/searchconsole/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/searchconsole/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -150,27 +150,27 @@ buildCounterRunMobileFriendlyTestRequest--; } -buildUnnamed1150() { +buildUnnamed1157() { var o = new core.List<api.MobileFriendlyIssue>(); o.add(buildMobileFriendlyIssue()); o.add(buildMobileFriendlyIssue()); return o; } -checkUnnamed1150(core.List<api.MobileFriendlyIssue> o) { +checkUnnamed1157(core.List<api.MobileFriendlyIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileFriendlyIssue(o[0]); checkMobileFriendlyIssue(o[1]); } -buildUnnamed1151() { +buildUnnamed1158() { var o = new core.List<api.ResourceIssue>(); o.add(buildResourceIssue()); o.add(buildResourceIssue()); return o; } -checkUnnamed1151(core.List<api.ResourceIssue> o) { +checkUnnamed1158(core.List<api.ResourceIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceIssue(o[0]); checkResourceIssue(o[1]); @@ -182,8 +182,8 @@ buildCounterRunMobileFriendlyTestResponse++; if (buildCounterRunMobileFriendlyTestResponse < 3) { o.mobileFriendliness = "foo"; - o.mobileFriendlyIssues = buildUnnamed1150(); - o.resourceIssues = buildUnnamed1151(); + o.mobileFriendlyIssues = buildUnnamed1157(); + o.resourceIssues = buildUnnamed1158(); o.screenshot = buildImage(); o.testStatus = buildTestStatus(); } @@ -195,8 +195,8 @@ buildCounterRunMobileFriendlyTestResponse++; if (buildCounterRunMobileFriendlyTestResponse < 3) { unittest.expect(o.mobileFriendliness, unittest.equals('foo')); - checkUnnamed1150(o.mobileFriendlyIssues); - checkUnnamed1151(o.resourceIssues); + checkUnnamed1157(o.mobileFriendlyIssues); + checkUnnamed1158(o.resourceIssues); checkImage(o.screenshot); checkTestStatus(o.testStatus); } @@ -295,7 +295,7 @@ var mock = new HttpServerMock(); api.UrlTestingToolsMobileFriendlyTestResourceApi res = new api.SearchconsoleApi(mock).urlTestingTools.mobileFriendlyTest; var arg_request = buildRunMobileFriendlyTestRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RunMobileFriendlyTestRequest.fromJson(json); checkRunMobileFriendlyTestRequest(obj); @@ -332,7 +332,7 @@ var resp = convert.JSON.encode(buildRunMobileFriendlyTestResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.run(arg_request).then(unittest.expectAsync(((api.RunMobileFriendlyTestResponse response) { + res.run(arg_request).then(unittest.expectAsync1(((api.RunMobileFriendlyTestResponse response) { checkRunMobileFriendlyTestResponse(response); }))); });
diff --git a/generated/googleapis/test/servicecontrol/v1_test.dart b/generated/googleapis/test/servicecontrol/v1_test.dart index 97bd69a..db4f7ff 100644 --- a/generated/googleapis/test/servicecontrol/v1_test.dart +++ b/generated/googleapis/test/servicecontrol/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/servicecontrol/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -74,27 +74,27 @@ buildCounterAllocateQuotaRequest--; } -buildUnnamed1546() { +buildUnnamed1553() { var o = new core.List<api.QuotaError>(); o.add(buildQuotaError()); o.add(buildQuotaError()); return o; } -checkUnnamed1546(core.List<api.QuotaError> o) { +checkUnnamed1553(core.List<api.QuotaError> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaError(o[0]); checkQuotaError(o[1]); } -buildUnnamed1547() { +buildUnnamed1554() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1547(core.List<api.MetricValueSet> o) { +checkUnnamed1554(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); @@ -105,9 +105,9 @@ var o = new api.AllocateQuotaResponse(); buildCounterAllocateQuotaResponse++; if (buildCounterAllocateQuotaResponse < 3) { - o.allocateErrors = buildUnnamed1546(); + o.allocateErrors = buildUnnamed1553(); o.operationId = "foo"; - o.quotaMetrics = buildUnnamed1547(); + o.quotaMetrics = buildUnnamed1554(); o.serviceConfigId = "foo"; } buildCounterAllocateQuotaResponse--; @@ -117,61 +117,61 @@ checkAllocateQuotaResponse(api.AllocateQuotaResponse o) { buildCounterAllocateQuotaResponse++; if (buildCounterAllocateQuotaResponse < 3) { - checkUnnamed1546(o.allocateErrors); + checkUnnamed1553(o.allocateErrors); unittest.expect(o.operationId, unittest.equals('foo')); - checkUnnamed1547(o.quotaMetrics); + checkUnnamed1554(o.quotaMetrics); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterAllocateQuotaResponse--; } -buildUnnamed1548() { +buildUnnamed1555() { var o = new core.List<api.AuthorizationInfo>(); o.add(buildAuthorizationInfo()); o.add(buildAuthorizationInfo()); return o; } -checkUnnamed1548(core.List<api.AuthorizationInfo> o) { +checkUnnamed1555(core.List<api.AuthorizationInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthorizationInfo(o[0]); checkAuthorizationInfo(o[1]); } -buildUnnamed1549() { +buildUnnamed1556() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1549(core.Map<core.String, core.Object> o) { +checkUnnamed1556(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1550() { +buildUnnamed1557() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1550(core.Map<core.String, core.Object> o) { +checkUnnamed1557(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed1551() { +buildUnnamed1558() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1551(core.Map<core.String, core.Object> o) { +checkUnnamed1558(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); @@ -183,14 +183,14 @@ buildCounterAuditLog++; if (buildCounterAuditLog < 3) { o.authenticationInfo = buildAuthenticationInfo(); - o.authorizationInfo = buildUnnamed1548(); + o.authorizationInfo = buildUnnamed1555(); o.methodName = "foo"; o.numResponseItems = "foo"; - o.request = buildUnnamed1549(); + o.request = buildUnnamed1556(); o.requestMetadata = buildRequestMetadata(); o.resourceName = "foo"; - o.response = buildUnnamed1550(); - o.serviceData = buildUnnamed1551(); + o.response = buildUnnamed1557(); + o.serviceData = buildUnnamed1558(); o.serviceName = "foo"; o.status = buildStatus(); } @@ -202,14 +202,14 @@ buildCounterAuditLog++; if (buildCounterAuditLog < 3) { checkAuthenticationInfo(o.authenticationInfo); - checkUnnamed1548(o.authorizationInfo); + checkUnnamed1555(o.authorizationInfo); unittest.expect(o.methodName, unittest.equals('foo')); unittest.expect(o.numResponseItems, unittest.equals('foo')); - checkUnnamed1549(o.request); + checkUnnamed1556(o.request); checkRequestMetadata(o.requestMetadata); unittest.expect(o.resourceName, unittest.equals('foo')); - checkUnnamed1550(o.response); - checkUnnamed1551(o.serviceData); + checkUnnamed1557(o.response); + checkUnnamed1558(o.serviceData); unittest.expect(o.serviceName, unittest.equals('foo')); checkStatus(o.status); } @@ -281,14 +281,14 @@ buildCounterCheckError--; } -buildUnnamed1552() { +buildUnnamed1559() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1552(core.List<core.String> o) { +checkUnnamed1559(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -299,7 +299,7 @@ var o = new api.CheckInfo(); buildCounterCheckInfo++; if (buildCounterCheckInfo < 3) { - o.unusedArguments = buildUnnamed1552(); + o.unusedArguments = buildUnnamed1559(); } buildCounterCheckInfo--; return o; @@ -308,7 +308,7 @@ checkCheckInfo(api.CheckInfo o) { buildCounterCheckInfo++; if (buildCounterCheckInfo < 3) { - checkUnnamed1552(o.unusedArguments); + checkUnnamed1559(o.unusedArguments); } buildCounterCheckInfo--; } @@ -338,14 +338,14 @@ buildCounterCheckRequest--; } -buildUnnamed1553() { +buildUnnamed1560() { var o = new core.List<api.CheckError>(); o.add(buildCheckError()); o.add(buildCheckError()); return o; } -checkUnnamed1553(core.List<api.CheckError> o) { +checkUnnamed1560(core.List<api.CheckError> o) { unittest.expect(o, unittest.hasLength(2)); checkCheckError(o[0]); checkCheckError(o[1]); @@ -356,7 +356,7 @@ var o = new api.CheckResponse(); buildCounterCheckResponse++; if (buildCounterCheckResponse < 3) { - o.checkErrors = buildUnnamed1553(); + o.checkErrors = buildUnnamed1560(); o.checkInfo = buildCheckInfo(); o.operationId = "foo"; o.quotaInfo = buildQuotaInfo(); @@ -369,7 +369,7 @@ checkCheckResponse(api.CheckResponse o) { buildCounterCheckResponse++; if (buildCounterCheckResponse < 3) { - checkUnnamed1553(o.checkErrors); + checkUnnamed1560(o.checkErrors); checkCheckInfo(o.checkInfo); unittest.expect(o.operationId, unittest.equals('foo')); checkQuotaInfo(o.quotaInfo); @@ -378,14 +378,14 @@ buildCounterCheckResponse--; } -buildUnnamed1554() { +buildUnnamed1561() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1554(core.List<core.String> o) { +checkUnnamed1561(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -396,7 +396,7 @@ var o = new api.Distribution(); buildCounterDistribution++; if (buildCounterDistribution < 3) { - o.bucketCounts = buildUnnamed1554(); + o.bucketCounts = buildUnnamed1561(); o.count = "foo"; o.explicitBuckets = buildExplicitBuckets(); o.exponentialBuckets = buildExponentialBuckets(); @@ -413,7 +413,7 @@ checkDistribution(api.Distribution o) { buildCounterDistribution++; if (buildCounterDistribution < 3) { - checkUnnamed1554(o.bucketCounts); + checkUnnamed1561(o.bucketCounts); unittest.expect(o.count, unittest.equals('foo')); checkExplicitBuckets(o.explicitBuckets); checkExponentialBuckets(o.exponentialBuckets); @@ -447,27 +447,27 @@ buildCounterEndReconciliationRequest--; } -buildUnnamed1555() { +buildUnnamed1562() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1555(core.List<api.MetricValueSet> o) { +checkUnnamed1562(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); } -buildUnnamed1556() { +buildUnnamed1563() { var o = new core.List<api.QuotaError>(); o.add(buildQuotaError()); o.add(buildQuotaError()); return o; } -checkUnnamed1556(core.List<api.QuotaError> o) { +checkUnnamed1563(core.List<api.QuotaError> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaError(o[0]); checkQuotaError(o[1]); @@ -479,8 +479,8 @@ buildCounterEndReconciliationResponse++; if (buildCounterEndReconciliationResponse < 3) { o.operationId = "foo"; - o.quotaMetrics = buildUnnamed1555(); - o.reconciliationErrors = buildUnnamed1556(); + o.quotaMetrics = buildUnnamed1562(); + o.reconciliationErrors = buildUnnamed1563(); o.serviceConfigId = "foo"; } buildCounterEndReconciliationResponse--; @@ -491,21 +491,21 @@ buildCounterEndReconciliationResponse++; if (buildCounterEndReconciliationResponse < 3) { unittest.expect(o.operationId, unittest.equals('foo')); - checkUnnamed1555(o.quotaMetrics); - checkUnnamed1556(o.reconciliationErrors); + checkUnnamed1562(o.quotaMetrics); + checkUnnamed1563(o.reconciliationErrors); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterEndReconciliationResponse--; } -buildUnnamed1557() { +buildUnnamed1564() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed1557(core.List<core.double> o) { +checkUnnamed1564(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); @@ -516,7 +516,7 @@ var o = new api.ExplicitBuckets(); buildCounterExplicitBuckets++; if (buildCounterExplicitBuckets < 3) { - o.bounds = buildUnnamed1557(); + o.bounds = buildUnnamed1564(); } buildCounterExplicitBuckets--; return o; @@ -525,7 +525,7 @@ checkExplicitBuckets(api.ExplicitBuckets o) { buildCounterExplicitBuckets++; if (buildCounterExplicitBuckets < 3) { - checkUnnamed1557(o.bounds); + checkUnnamed1564(o.bounds); } buildCounterExplicitBuckets--; } @@ -576,40 +576,40 @@ buildCounterLinearBuckets--; } -buildUnnamed1558() { +buildUnnamed1565() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1558(core.Map<core.String, core.String> o) { +checkUnnamed1565(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1559() { +buildUnnamed1566() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1559(core.Map<core.String, core.Object> o) { +checkUnnamed1566(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed1560() { +buildUnnamed1567() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1560(core.Map<core.String, core.Object> o) { +checkUnnamed1567(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted9 = (o["x"]) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo')); var casted10 = (o["y"]) as core.Map; unittest.expect(casted10, unittest.hasLength(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["string"], unittest.equals('foo')); @@ -621,11 +621,11 @@ buildCounterLogEntry++; if (buildCounterLogEntry < 3) { o.insertId = "foo"; - o.labels = buildUnnamed1558(); + o.labels = buildUnnamed1565(); o.name = "foo"; - o.protoPayload = buildUnnamed1559(); + o.protoPayload = buildUnnamed1566(); o.severity = "foo"; - o.structPayload = buildUnnamed1560(); + o.structPayload = buildUnnamed1567(); o.textPayload = "foo"; o.timestamp = "foo"; } @@ -637,25 +637,25 @@ buildCounterLogEntry++; if (buildCounterLogEntry < 3) { unittest.expect(o.insertId, unittest.equals('foo')); - checkUnnamed1558(o.labels); + checkUnnamed1565(o.labels); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1559(o.protoPayload); + checkUnnamed1566(o.protoPayload); unittest.expect(o.severity, unittest.equals('foo')); - checkUnnamed1560(o.structPayload); + checkUnnamed1567(o.structPayload); unittest.expect(o.textPayload, unittest.equals('foo')); unittest.expect(o.timestamp, unittest.equals('foo')); } buildCounterLogEntry--; } -buildUnnamed1561() { +buildUnnamed1568() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1561(core.Map<core.String, core.String> o) { +checkUnnamed1568(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -671,7 +671,7 @@ o.doubleValue = 42.0; o.endTime = "foo"; o.int64Value = "foo"; - o.labels = buildUnnamed1561(); + o.labels = buildUnnamed1568(); o.moneyValue = buildMoney(); o.startTime = "foo"; o.stringValue = "foo"; @@ -688,7 +688,7 @@ unittest.expect(o.doubleValue, unittest.equals(42.0)); unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.int64Value, unittest.equals('foo')); - checkUnnamed1561(o.labels); + checkUnnamed1568(o.labels); checkMoney(o.moneyValue); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.stringValue, unittest.equals('foo')); @@ -696,14 +696,14 @@ buildCounterMetricValue--; } -buildUnnamed1562() { +buildUnnamed1569() { var o = new core.List<api.MetricValue>(); o.add(buildMetricValue()); o.add(buildMetricValue()); return o; } -checkUnnamed1562(core.List<api.MetricValue> o) { +checkUnnamed1569(core.List<api.MetricValue> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValue(o[0]); checkMetricValue(o[1]); @@ -715,7 +715,7 @@ buildCounterMetricValueSet++; if (buildCounterMetricValueSet < 3) { o.metricName = "foo"; - o.metricValues = buildUnnamed1562(); + o.metricValues = buildUnnamed1569(); } buildCounterMetricValueSet--; return o; @@ -725,7 +725,7 @@ buildCounterMetricValueSet++; if (buildCounterMetricValueSet < 3) { unittest.expect(o.metricName, unittest.equals('foo')); - checkUnnamed1562(o.metricValues); + checkUnnamed1569(o.metricValues); } buildCounterMetricValueSet--; } @@ -753,53 +753,53 @@ buildCounterMoney--; } -buildUnnamed1563() { +buildUnnamed1570() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1563(core.Map<core.String, core.String> o) { +checkUnnamed1570(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1564() { +buildUnnamed1571() { var o = new core.List<api.LogEntry>(); o.add(buildLogEntry()); o.add(buildLogEntry()); return o; } -checkUnnamed1564(core.List<api.LogEntry> o) { +checkUnnamed1571(core.List<api.LogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLogEntry(o[0]); checkLogEntry(o[1]); } -buildUnnamed1565() { +buildUnnamed1572() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1565(core.List<api.MetricValueSet> o) { +checkUnnamed1572(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); } -buildUnnamed1566() { +buildUnnamed1573() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1566(core.Map<core.String, core.String> o) { +checkUnnamed1573(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -813,15 +813,15 @@ o.consumerId = "foo"; o.endTime = "foo"; o.importance = "foo"; - o.labels = buildUnnamed1563(); - o.logEntries = buildUnnamed1564(); - o.metricValueSets = buildUnnamed1565(); + o.labels = buildUnnamed1570(); + o.logEntries = buildUnnamed1571(); + o.metricValueSets = buildUnnamed1572(); o.operationId = "foo"; o.operationName = "foo"; o.quotaProperties = buildQuotaProperties(); o.resourceContainer = "foo"; o.startTime = "foo"; - o.userLabels = buildUnnamed1566(); + o.userLabels = buildUnnamed1573(); } buildCounterOperation--; return o; @@ -833,15 +833,15 @@ unittest.expect(o.consumerId, unittest.equals('foo')); unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.importance, unittest.equals('foo')); - checkUnnamed1563(o.labels); - checkUnnamed1564(o.logEntries); - checkUnnamed1565(o.metricValueSets); + checkUnnamed1570(o.labels); + checkUnnamed1571(o.logEntries); + checkUnnamed1572(o.metricValueSets); unittest.expect(o.operationId, unittest.equals('foo')); unittest.expect(o.operationName, unittest.equals('foo')); checkQuotaProperties(o.quotaProperties); unittest.expect(o.resourceContainer, unittest.equals('foo')); unittest.expect(o.startTime, unittest.equals('foo')); - checkUnnamed1566(o.userLabels); + checkUnnamed1573(o.userLabels); } buildCounterOperation--; } @@ -869,40 +869,40 @@ buildCounterQuotaError--; } -buildUnnamed1567() { +buildUnnamed1574() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1567(core.List<core.String> o) { +checkUnnamed1574(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1568() { +buildUnnamed1575() { var o = new core.Map<core.String, core.int>(); o["x"] = 42; o["y"] = 42; return o; } -checkUnnamed1568(core.Map<core.String, core.int> o) { +checkUnnamed1575(core.Map<core.String, core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals(42)); unittest.expect(o["y"], unittest.equals(42)); } -buildUnnamed1569() { +buildUnnamed1576() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1569(core.List<api.MetricValueSet> o) { +checkUnnamed1576(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); @@ -913,9 +913,9 @@ var o = new api.QuotaInfo(); buildCounterQuotaInfo++; if (buildCounterQuotaInfo < 3) { - o.limitExceeded = buildUnnamed1567(); - o.quotaConsumed = buildUnnamed1568(); - o.quotaMetrics = buildUnnamed1569(); + o.limitExceeded = buildUnnamed1574(); + o.quotaConsumed = buildUnnamed1575(); + o.quotaMetrics = buildUnnamed1576(); } buildCounterQuotaInfo--; return o; @@ -924,34 +924,34 @@ checkQuotaInfo(api.QuotaInfo o) { buildCounterQuotaInfo++; if (buildCounterQuotaInfo < 3) { - checkUnnamed1567(o.limitExceeded); - checkUnnamed1568(o.quotaConsumed); - checkUnnamed1569(o.quotaMetrics); + checkUnnamed1574(o.limitExceeded); + checkUnnamed1575(o.quotaConsumed); + checkUnnamed1576(o.quotaMetrics); } buildCounterQuotaInfo--; } -buildUnnamed1570() { +buildUnnamed1577() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1570(core.Map<core.String, core.String> o) { +checkUnnamed1577(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1571() { +buildUnnamed1578() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1571(core.List<api.MetricValueSet> o) { +checkUnnamed1578(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); @@ -963,10 +963,10 @@ buildCounterQuotaOperation++; if (buildCounterQuotaOperation < 3) { o.consumerId = "foo"; - o.labels = buildUnnamed1570(); + o.labels = buildUnnamed1577(); o.methodName = "foo"; o.operationId = "foo"; - o.quotaMetrics = buildUnnamed1571(); + o.quotaMetrics = buildUnnamed1578(); o.quotaMode = "foo"; } buildCounterQuotaOperation--; @@ -977,23 +977,23 @@ buildCounterQuotaOperation++; if (buildCounterQuotaOperation < 3) { unittest.expect(o.consumerId, unittest.equals('foo')); - checkUnnamed1570(o.labels); + checkUnnamed1577(o.labels); unittest.expect(o.methodName, unittest.equals('foo')); unittest.expect(o.operationId, unittest.equals('foo')); - checkUnnamed1571(o.quotaMetrics); + checkUnnamed1578(o.quotaMetrics); unittest.expect(o.quotaMode, unittest.equals('foo')); } buildCounterQuotaOperation--; } -buildUnnamed1572() { +buildUnnamed1579() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1572(core.Map<core.String, core.String> o) { +checkUnnamed1579(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1004,7 +1004,7 @@ var o = new api.QuotaProperties(); buildCounterQuotaProperties++; if (buildCounterQuotaProperties < 3) { - o.limitByIds = buildUnnamed1572(); + o.limitByIds = buildUnnamed1579(); o.quotaMode = "foo"; } buildCounterQuotaProperties--; @@ -1014,7 +1014,7 @@ checkQuotaProperties(api.QuotaProperties o) { buildCounterQuotaProperties++; if (buildCounterQuotaProperties < 3) { - checkUnnamed1572(o.limitByIds); + checkUnnamed1579(o.limitByIds); unittest.expect(o.quotaMode, unittest.equals('foo')); } buildCounterQuotaProperties--; @@ -1041,27 +1041,27 @@ buildCounterReleaseQuotaRequest--; } -buildUnnamed1573() { +buildUnnamed1580() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1573(core.List<api.MetricValueSet> o) { +checkUnnamed1580(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); } -buildUnnamed1574() { +buildUnnamed1581() { var o = new core.List<api.QuotaError>(); o.add(buildQuotaError()); o.add(buildQuotaError()); return o; } -checkUnnamed1574(core.List<api.QuotaError> o) { +checkUnnamed1581(core.List<api.QuotaError> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaError(o[0]); checkQuotaError(o[1]); @@ -1073,8 +1073,8 @@ buildCounterReleaseQuotaResponse++; if (buildCounterReleaseQuotaResponse < 3) { o.operationId = "foo"; - o.quotaMetrics = buildUnnamed1573(); - o.releaseErrors = buildUnnamed1574(); + o.quotaMetrics = buildUnnamed1580(); + o.releaseErrors = buildUnnamed1581(); o.serviceConfigId = "foo"; } buildCounterReleaseQuotaResponse--; @@ -1085,8 +1085,8 @@ buildCounterReleaseQuotaResponse++; if (buildCounterReleaseQuotaResponse < 3) { unittest.expect(o.operationId, unittest.equals('foo')); - checkUnnamed1573(o.quotaMetrics); - checkUnnamed1574(o.releaseErrors); + checkUnnamed1580(o.quotaMetrics); + checkUnnamed1581(o.releaseErrors); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterReleaseQuotaResponse--; @@ -1134,14 +1134,14 @@ buildCounterReportInfo--; } -buildUnnamed1575() { +buildUnnamed1582() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1575(core.List<api.Operation> o) { +checkUnnamed1582(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1152,7 +1152,7 @@ var o = new api.ReportRequest(); buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - o.operations = buildUnnamed1575(); + o.operations = buildUnnamed1582(); o.serviceConfigId = "foo"; } buildCounterReportRequest--; @@ -1162,33 +1162,33 @@ checkReportRequest(api.ReportRequest o) { buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - checkUnnamed1575(o.operations); + checkUnnamed1582(o.operations); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterReportRequest--; } -buildUnnamed1576() { +buildUnnamed1583() { var o = new core.List<api.ReportError>(); o.add(buildReportError()); o.add(buildReportError()); return o; } -checkUnnamed1576(core.List<api.ReportError> o) { +checkUnnamed1583(core.List<api.ReportError> o) { unittest.expect(o, unittest.hasLength(2)); checkReportError(o[0]); checkReportError(o[1]); } -buildUnnamed1577() { +buildUnnamed1584() { var o = new core.List<api.ReportInfo>(); o.add(buildReportInfo()); o.add(buildReportInfo()); return o; } -checkUnnamed1577(core.List<api.ReportInfo> o) { +checkUnnamed1584(core.List<api.ReportInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkReportInfo(o[0]); checkReportInfo(o[1]); @@ -1199,8 +1199,8 @@ var o = new api.ReportResponse(); buildCounterReportResponse++; if (buildCounterReportResponse < 3) { - o.reportErrors = buildUnnamed1576(); - o.reportInfos = buildUnnamed1577(); + o.reportErrors = buildUnnamed1583(); + o.reportInfos = buildUnnamed1584(); o.serviceConfigId = "foo"; } buildCounterReportResponse--; @@ -1210,8 +1210,8 @@ checkReportResponse(api.ReportResponse o) { buildCounterReportResponse++; if (buildCounterReportResponse < 3) { - checkUnnamed1576(o.reportErrors); - checkUnnamed1577(o.reportInfos); + checkUnnamed1583(o.reportErrors); + checkUnnamed1584(o.reportInfos); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterReportResponse--; @@ -1259,27 +1259,27 @@ buildCounterStartReconciliationRequest--; } -buildUnnamed1578() { +buildUnnamed1585() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1578(core.List<api.MetricValueSet> o) { +checkUnnamed1585(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); } -buildUnnamed1579() { +buildUnnamed1586() { var o = new core.List<api.QuotaError>(); o.add(buildQuotaError()); o.add(buildQuotaError()); return o; } -checkUnnamed1579(core.List<api.QuotaError> o) { +checkUnnamed1586(core.List<api.QuotaError> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaError(o[0]); checkQuotaError(o[1]); @@ -1291,8 +1291,8 @@ buildCounterStartReconciliationResponse++; if (buildCounterStartReconciliationResponse < 3) { o.operationId = "foo"; - o.quotaMetrics = buildUnnamed1578(); - o.reconciliationErrors = buildUnnamed1579(); + o.quotaMetrics = buildUnnamed1585(); + o.reconciliationErrors = buildUnnamed1586(); o.serviceConfigId = "foo"; } buildCounterStartReconciliationResponse--; @@ -1303,37 +1303,37 @@ buildCounterStartReconciliationResponse++; if (buildCounterStartReconciliationResponse < 3) { unittest.expect(o.operationId, unittest.equals('foo')); - checkUnnamed1578(o.quotaMetrics); - checkUnnamed1579(o.reconciliationErrors); + checkUnnamed1585(o.quotaMetrics); + checkUnnamed1586(o.reconciliationErrors); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterStartReconciliationResponse--; } -buildUnnamed1580() { +buildUnnamed1587() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1580(core.Map<core.String, core.Object> o) { +checkUnnamed1587(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted11 = (o["x"]) as core.Map; unittest.expect(casted11, unittest.hasLength(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["string"], unittest.equals('foo')); var casted12 = (o["y"]) as core.Map; unittest.expect(casted12, unittest.hasLength(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["string"], unittest.equals('foo')); } -buildUnnamed1581() { +buildUnnamed1588() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1580()); - o.add(buildUnnamed1580()); + o.add(buildUnnamed1587()); + o.add(buildUnnamed1587()); return o; } -checkUnnamed1581(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1588(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1580(o[0]); - checkUnnamed1580(o[1]); + checkUnnamed1587(o[0]); + checkUnnamed1587(o[1]); } core.int buildCounterStatus = 0; @@ -1342,7 +1342,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1581(); + o.details = buildUnnamed1588(); o.message = "foo"; } buildCounterStatus--; @@ -1353,7 +1353,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1581(o.details); + checkUnnamed1588(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1674,7 +1674,7 @@ api.ServicesResourceApi res = new api.ServicecontrolApi(mock).services; var arg_request = buildAllocateQuotaRequest(); var arg_serviceName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AllocateQuotaRequest.fromJson(json); checkAllocateQuotaRequest(obj); @@ -1718,7 +1718,7 @@ var resp = convert.JSON.encode(buildAllocateQuotaResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.allocateQuota(arg_request, arg_serviceName).then(unittest.expectAsync(((api.AllocateQuotaResponse response) { + res.allocateQuota(arg_request, arg_serviceName).then(unittest.expectAsync1(((api.AllocateQuotaResponse response) { checkAllocateQuotaResponse(response); }))); }); @@ -1729,7 +1729,7 @@ api.ServicesResourceApi res = new api.ServicecontrolApi(mock).services; var arg_request = buildCheckRequest(); var arg_serviceName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CheckRequest.fromJson(json); checkCheckRequest(obj); @@ -1773,7 +1773,7 @@ var resp = convert.JSON.encode(buildCheckResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.check(arg_request, arg_serviceName).then(unittest.expectAsync(((api.CheckResponse response) { + res.check(arg_request, arg_serviceName).then(unittest.expectAsync1(((api.CheckResponse response) { checkCheckResponse(response); }))); }); @@ -1784,7 +1784,7 @@ api.ServicesResourceApi res = new api.ServicecontrolApi(mock).services; var arg_request = buildEndReconciliationRequest(); var arg_serviceName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.EndReconciliationRequest.fromJson(json); checkEndReconciliationRequest(obj); @@ -1828,7 +1828,7 @@ var resp = convert.JSON.encode(buildEndReconciliationResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.endReconciliation(arg_request, arg_serviceName).then(unittest.expectAsync(((api.EndReconciliationResponse response) { + res.endReconciliation(arg_request, arg_serviceName).then(unittest.expectAsync1(((api.EndReconciliationResponse response) { checkEndReconciliationResponse(response); }))); }); @@ -1839,7 +1839,7 @@ api.ServicesResourceApi res = new api.ServicecontrolApi(mock).services; var arg_request = buildReleaseQuotaRequest(); var arg_serviceName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ReleaseQuotaRequest.fromJson(json); checkReleaseQuotaRequest(obj); @@ -1883,7 +1883,7 @@ var resp = convert.JSON.encode(buildReleaseQuotaResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.releaseQuota(arg_request, arg_serviceName).then(unittest.expectAsync(((api.ReleaseQuotaResponse response) { + res.releaseQuota(arg_request, arg_serviceName).then(unittest.expectAsync1(((api.ReleaseQuotaResponse response) { checkReleaseQuotaResponse(response); }))); }); @@ -1894,7 +1894,7 @@ api.ServicesResourceApi res = new api.ServicecontrolApi(mock).services; var arg_request = buildReportRequest(); var arg_serviceName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ReportRequest.fromJson(json); checkReportRequest(obj); @@ -1938,7 +1938,7 @@ var resp = convert.JSON.encode(buildReportResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.report(arg_request, arg_serviceName).then(unittest.expectAsync(((api.ReportResponse response) { + res.report(arg_request, arg_serviceName).then(unittest.expectAsync1(((api.ReportResponse response) { checkReportResponse(response); }))); }); @@ -1949,7 +1949,7 @@ api.ServicesResourceApi res = new api.ServicecontrolApi(mock).services; var arg_request = buildStartReconciliationRequest(); var arg_serviceName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.StartReconciliationRequest.fromJson(json); checkStartReconciliationRequest(obj); @@ -1993,7 +1993,7 @@ var resp = convert.JSON.encode(buildStartReconciliationResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.startReconciliation(arg_request, arg_serviceName).then(unittest.expectAsync(((api.StartReconciliationResponse response) { + res.startReconciliation(arg_request, arg_serviceName).then(unittest.expectAsync1(((api.StartReconciliationResponse response) { checkStartReconciliationResponse(response); }))); });
diff --git a/generated/googleapis/test/servicemanagement/v1_test.dart b/generated/googleapis/test/servicemanagement/v1_test.dart index 1729f49..446f7a8 100644 --- a/generated/googleapis/test/servicemanagement/v1_test.dart +++ b/generated/googleapis/test/servicemanagement/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/servicemanagement/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -70,40 +70,40 @@ buildCounterAdvice--; } -buildUnnamed1058() { +buildUnnamed1065() { var o = new core.List<api.Method>(); o.add(buildMethod()); o.add(buildMethod()); return o; } -checkUnnamed1058(core.List<api.Method> o) { +checkUnnamed1065(core.List<api.Method> o) { unittest.expect(o, unittest.hasLength(2)); checkMethod(o[0]); checkMethod(o[1]); } -buildUnnamed1059() { +buildUnnamed1066() { var o = new core.List<api.Mixin>(); o.add(buildMixin()); o.add(buildMixin()); return o; } -checkUnnamed1059(core.List<api.Mixin> o) { +checkUnnamed1066(core.List<api.Mixin> o) { unittest.expect(o, unittest.hasLength(2)); checkMixin(o[0]); checkMixin(o[1]); } -buildUnnamed1060() { +buildUnnamed1067() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1060(core.List<api.Option> o) { +checkUnnamed1067(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -114,10 +114,10 @@ var o = new api.Api(); buildCounterApi++; if (buildCounterApi < 3) { - o.methods = buildUnnamed1058(); - o.mixins = buildUnnamed1059(); + o.methods = buildUnnamed1065(); + o.mixins = buildUnnamed1066(); o.name = "foo"; - o.options = buildUnnamed1060(); + o.options = buildUnnamed1067(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; o.version = "foo"; @@ -129,10 +129,10 @@ checkApi(api.Api o) { buildCounterApi++; if (buildCounterApi < 3) { - checkUnnamed1058(o.methods); - checkUnnamed1059(o.mixins); + checkUnnamed1065(o.methods); + checkUnnamed1066(o.mixins); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1060(o.options); + checkUnnamed1067(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -140,27 +140,27 @@ buildCounterApi--; } -buildUnnamed1061() { +buildUnnamed1068() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed1061(core.List<api.AuditLogConfig> o) { +checkUnnamed1068(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); } -buildUnnamed1062() { +buildUnnamed1069() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1062(core.List<core.String> o) { +checkUnnamed1069(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -171,8 +171,8 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed1061(); - o.exemptedMembers = buildUnnamed1062(); + o.auditLogConfigs = buildUnnamed1068(); + o.exemptedMembers = buildUnnamed1069(); o.service = "foo"; } buildCounterAuditConfig--; @@ -182,21 +182,21 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed1061(o.auditLogConfigs); - checkUnnamed1062(o.exemptedMembers); + checkUnnamed1068(o.auditLogConfigs); + checkUnnamed1069(o.exemptedMembers); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed1063() { +buildUnnamed1070() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1063(core.List<core.String> o) { +checkUnnamed1070(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -207,7 +207,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed1063(); + o.exemptedMembers = buildUnnamed1070(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -217,7 +217,7 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed1063(o.exemptedMembers); + checkUnnamed1070(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; @@ -269,27 +269,27 @@ buildCounterAuthRequirement--; } -buildUnnamed1064() { +buildUnnamed1071() { var o = new core.List<api.AuthProvider>(); o.add(buildAuthProvider()); o.add(buildAuthProvider()); return o; } -checkUnnamed1064(core.List<api.AuthProvider> o) { +checkUnnamed1071(core.List<api.AuthProvider> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthProvider(o[0]); checkAuthProvider(o[1]); } -buildUnnamed1065() { +buildUnnamed1072() { var o = new core.List<api.AuthenticationRule>(); o.add(buildAuthenticationRule()); o.add(buildAuthenticationRule()); return o; } -checkUnnamed1065(core.List<api.AuthenticationRule> o) { +checkUnnamed1072(core.List<api.AuthenticationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthenticationRule(o[0]); checkAuthenticationRule(o[1]); @@ -300,8 +300,8 @@ var o = new api.Authentication(); buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - o.providers = buildUnnamed1064(); - o.rules = buildUnnamed1065(); + o.providers = buildUnnamed1071(); + o.rules = buildUnnamed1072(); } buildCounterAuthentication--; return o; @@ -310,20 +310,20 @@ checkAuthentication(api.Authentication o) { buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - checkUnnamed1064(o.providers); - checkUnnamed1065(o.rules); + checkUnnamed1071(o.providers); + checkUnnamed1072(o.rules); } buildCounterAuthentication--; } -buildUnnamed1066() { +buildUnnamed1073() { var o = new core.List<api.AuthRequirement>(); o.add(buildAuthRequirement()); o.add(buildAuthRequirement()); return o; } -checkUnnamed1066(core.List<api.AuthRequirement> o) { +checkUnnamed1073(core.List<api.AuthRequirement> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthRequirement(o[0]); checkAuthRequirement(o[1]); @@ -337,7 +337,7 @@ o.allowWithoutCredential = true; o.customAuth = buildCustomAuthRequirements(); o.oauth = buildOAuthRequirements(); - o.requirements = buildUnnamed1066(); + o.requirements = buildUnnamed1073(); o.selector = "foo"; } buildCounterAuthenticationRule--; @@ -350,7 +350,7 @@ unittest.expect(o.allowWithoutCredential, unittest.isTrue); checkCustomAuthRequirements(o.customAuth); checkOAuthRequirements(o.oauth); - checkUnnamed1066(o.requirements); + checkUnnamed1073(o.requirements); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterAuthenticationRule--; @@ -375,14 +375,14 @@ buildCounterAuthorizationConfig--; } -buildUnnamed1067() { +buildUnnamed1074() { var o = new core.List<api.BackendRule>(); o.add(buildBackendRule()); o.add(buildBackendRule()); return o; } -checkUnnamed1067(core.List<api.BackendRule> o) { +checkUnnamed1074(core.List<api.BackendRule> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendRule(o[0]); checkBackendRule(o[1]); @@ -393,7 +393,7 @@ var o = new api.Backend(); buildCounterBackend++; if (buildCounterBackend < 3) { - o.rules = buildUnnamed1067(); + o.rules = buildUnnamed1074(); } buildCounterBackend--; return o; @@ -402,7 +402,7 @@ checkBackend(api.Backend o) { buildCounterBackend++; if (buildCounterBackend < 3) { - checkUnnamed1067(o.rules); + checkUnnamed1074(o.rules); } buildCounterBackend--; } @@ -432,14 +432,14 @@ buildCounterBackendRule--; } -buildUnnamed1068() { +buildUnnamed1075() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1068(core.List<core.String> o) { +checkUnnamed1075(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -450,7 +450,8 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed1068(); + o.condition = buildExpr(); + o.members = buildUnnamed1075(); o.role = "foo"; } buildCounterBinding--; @@ -460,20 +461,21 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed1068(o.members); + checkExpr(o.condition); + checkUnnamed1075(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -buildUnnamed1069() { +buildUnnamed1076() { var o = new core.List<api.ConfigChange>(); o.add(buildConfigChange()); o.add(buildConfigChange()); return o; } -checkUnnamed1069(core.List<api.ConfigChange> o) { +checkUnnamed1076(core.List<api.ConfigChange> o) { unittest.expect(o, unittest.hasLength(2)); checkConfigChange(o[0]); checkConfigChange(o[1]); @@ -484,7 +486,7 @@ var o = new api.ChangeReport(); buildCounterChangeReport++; if (buildCounterChangeReport < 3) { - o.configChanges = buildUnnamed1069(); + o.configChanges = buildUnnamed1076(); } buildCounterChangeReport--; return o; @@ -493,7 +495,7 @@ checkChangeReport(api.ChangeReport o) { buildCounterChangeReport++; if (buildCounterChangeReport < 3) { - checkUnnamed1069(o.configChanges); + checkUnnamed1076(o.configChanges); } buildCounterChangeReport--; } @@ -517,14 +519,14 @@ buildCounterCloudAuditOptions--; } -buildUnnamed1070() { +buildUnnamed1077() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1070(core.List<core.String> o) { +checkUnnamed1077(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -540,7 +542,7 @@ o.svc = "foo"; o.sys = "foo"; o.value = "foo"; - o.values = buildUnnamed1070(); + o.values = buildUnnamed1077(); } buildCounterCondition--; return o; @@ -554,19 +556,19 @@ unittest.expect(o.svc, unittest.equals('foo')); unittest.expect(o.sys, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); - checkUnnamed1070(o.values); + checkUnnamed1077(o.values); } buildCounterCondition--; } -buildUnnamed1071() { +buildUnnamed1078() { var o = new core.List<api.Advice>(); o.add(buildAdvice()); o.add(buildAdvice()); return o; } -checkUnnamed1071(core.List<api.Advice> o) { +checkUnnamed1078(core.List<api.Advice> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvice(o[0]); checkAdvice(o[1]); @@ -577,7 +579,7 @@ var o = new api.ConfigChange(); buildCounterConfigChange++; if (buildCounterConfigChange < 3) { - o.advices = buildUnnamed1071(); + o.advices = buildUnnamed1078(); o.changeType = "foo"; o.element = "foo"; o.newValue = "foo"; @@ -590,7 +592,7 @@ checkConfigChange(api.ConfigChange o) { buildCounterConfigChange++; if (buildCounterConfigChange < 3) { - checkUnnamed1071(o.advices); + checkUnnamed1078(o.advices); unittest.expect(o.changeType, unittest.equals('foo')); unittest.expect(o.element, unittest.equals('foo')); unittest.expect(o.newValue, unittest.equals('foo')); @@ -641,14 +643,14 @@ buildCounterConfigRef--; } -buildUnnamed1072() { +buildUnnamed1079() { var o = new core.List<api.ConfigFile>(); o.add(buildConfigFile()); o.add(buildConfigFile()); return o; } -checkUnnamed1072(core.List<api.ConfigFile> o) { +checkUnnamed1079(core.List<api.ConfigFile> o) { unittest.expect(o, unittest.hasLength(2)); checkConfigFile(o[0]); checkConfigFile(o[1]); @@ -659,7 +661,7 @@ var o = new api.ConfigSource(); buildCounterConfigSource++; if (buildCounterConfigSource < 3) { - o.files = buildUnnamed1072(); + o.files = buildUnnamed1079(); o.id = "foo"; } buildCounterConfigSource--; @@ -669,20 +671,20 @@ checkConfigSource(api.ConfigSource o) { buildCounterConfigSource++; if (buildCounterConfigSource < 3) { - checkUnnamed1072(o.files); + checkUnnamed1079(o.files); unittest.expect(o.id, unittest.equals('foo')); } buildCounterConfigSource--; } -buildUnnamed1073() { +buildUnnamed1080() { var o = new core.List<api.ContextRule>(); o.add(buildContextRule()); o.add(buildContextRule()); return o; } -checkUnnamed1073(core.List<api.ContextRule> o) { +checkUnnamed1080(core.List<api.ContextRule> o) { unittest.expect(o, unittest.hasLength(2)); checkContextRule(o[0]); checkContextRule(o[1]); @@ -693,7 +695,7 @@ var o = new api.Context(); buildCounterContext++; if (buildCounterContext < 3) { - o.rules = buildUnnamed1073(); + o.rules = buildUnnamed1080(); } buildCounterContext--; return o; @@ -702,32 +704,32 @@ checkContext(api.Context o) { buildCounterContext++; if (buildCounterContext < 3) { - checkUnnamed1073(o.rules); + checkUnnamed1080(o.rules); } buildCounterContext--; } -buildUnnamed1074() { +buildUnnamed1081() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1074(core.List<core.String> o) { +checkUnnamed1081(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1075() { +buildUnnamed1082() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1075(core.List<core.String> o) { +checkUnnamed1082(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -738,8 +740,8 @@ var o = new api.ContextRule(); buildCounterContextRule++; if (buildCounterContextRule < 3) { - o.provided = buildUnnamed1074(); - o.requested = buildUnnamed1075(); + o.provided = buildUnnamed1081(); + o.requested = buildUnnamed1082(); o.selector = "foo"; } buildCounterContextRule--; @@ -749,8 +751,8 @@ checkContextRule(api.ContextRule o) { buildCounterContextRule++; if (buildCounterContextRule < 3) { - checkUnnamed1074(o.provided); - checkUnnamed1075(o.requested); + checkUnnamed1081(o.provided); + checkUnnamed1082(o.requested); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterContextRule--; @@ -815,27 +817,27 @@ buildCounterCustomAuthRequirements--; } -buildUnnamed1076() { +buildUnnamed1083() { var o = new core.List<api.CustomErrorRule>(); o.add(buildCustomErrorRule()); o.add(buildCustomErrorRule()); return o; } -checkUnnamed1076(core.List<api.CustomErrorRule> o) { +checkUnnamed1083(core.List<api.CustomErrorRule> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomErrorRule(o[0]); checkCustomErrorRule(o[1]); } -buildUnnamed1077() { +buildUnnamed1084() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1077(core.List<core.String> o) { +checkUnnamed1084(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -846,8 +848,8 @@ var o = new api.CustomError(); buildCounterCustomError++; if (buildCounterCustomError < 3) { - o.rules = buildUnnamed1076(); - o.types = buildUnnamed1077(); + o.rules = buildUnnamed1083(); + o.types = buildUnnamed1084(); } buildCounterCustomError--; return o; @@ -856,8 +858,8 @@ checkCustomError(api.CustomError o) { buildCounterCustomError++; if (buildCounterCustomError < 3) { - checkUnnamed1076(o.rules); - checkUnnamed1077(o.types); + checkUnnamed1083(o.rules); + checkUnnamed1084(o.types); } buildCounterCustomError--; } @@ -980,27 +982,27 @@ buildCounterDisableServiceRequest--; } -buildUnnamed1078() { +buildUnnamed1085() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1078(core.List<api.Page> o) { +checkUnnamed1085(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); } -buildUnnamed1079() { +buildUnnamed1086() { var o = new core.List<api.DocumentationRule>(); o.add(buildDocumentationRule()); o.add(buildDocumentationRule()); return o; } -checkUnnamed1079(core.List<api.DocumentationRule> o) { +checkUnnamed1086(core.List<api.DocumentationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkDocumentationRule(o[0]); checkDocumentationRule(o[1]); @@ -1013,8 +1015,8 @@ if (buildCounterDocumentation < 3) { o.documentationRootUrl = "foo"; o.overview = "foo"; - o.pages = buildUnnamed1078(); - o.rules = buildUnnamed1079(); + o.pages = buildUnnamed1085(); + o.rules = buildUnnamed1086(); o.summary = "foo"; } buildCounterDocumentation--; @@ -1026,8 +1028,8 @@ if (buildCounterDocumentation < 3) { unittest.expect(o.documentationRootUrl, unittest.equals('foo')); unittest.expect(o.overview, unittest.equals('foo')); - checkUnnamed1078(o.pages); - checkUnnamed1079(o.rules); + checkUnnamed1085(o.pages); + checkUnnamed1086(o.rules); unittest.expect(o.summary, unittest.equals('foo')); } buildCounterDocumentation--; @@ -1075,40 +1077,40 @@ buildCounterEnableServiceRequest--; } -buildUnnamed1080() { +buildUnnamed1087() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1080(core.List<core.String> o) { +checkUnnamed1087(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1081() { +buildUnnamed1088() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1081(core.List<core.String> o) { +checkUnnamed1088(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1082() { +buildUnnamed1089() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1082(core.List<core.String> o) { +checkUnnamed1089(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1119,10 +1121,10 @@ var o = new api.Endpoint(); buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - o.aliases = buildUnnamed1080(); + o.aliases = buildUnnamed1087(); o.allowCors = true; - o.apis = buildUnnamed1081(); - o.features = buildUnnamed1082(); + o.apis = buildUnnamed1088(); + o.features = buildUnnamed1089(); o.name = "foo"; o.target = "foo"; } @@ -1133,37 +1135,37 @@ checkEndpoint(api.Endpoint o) { buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - checkUnnamed1080(o.aliases); + checkUnnamed1087(o.aliases); unittest.expect(o.allowCors, unittest.isTrue); - checkUnnamed1081(o.apis); - checkUnnamed1082(o.features); + checkUnnamed1088(o.apis); + checkUnnamed1089(o.features); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); } buildCounterEndpoint--; } -buildUnnamed1083() { +buildUnnamed1090() { var o = new core.List<api.EnumValue>(); o.add(buildEnumValue()); o.add(buildEnumValue()); return o; } -checkUnnamed1083(core.List<api.EnumValue> o) { +checkUnnamed1090(core.List<api.EnumValue> o) { unittest.expect(o, unittest.hasLength(2)); checkEnumValue(o[0]); checkEnumValue(o[1]); } -buildUnnamed1084() { +buildUnnamed1091() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1084(core.List<api.Option> o) { +checkUnnamed1091(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1174,9 +1176,9 @@ var o = new api.Enum(); buildCounterEnum++; if (buildCounterEnum < 3) { - o.enumvalue = buildUnnamed1083(); + o.enumvalue = buildUnnamed1090(); o.name = "foo"; - o.options = buildUnnamed1084(); + o.options = buildUnnamed1091(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -1187,23 +1189,23 @@ checkEnum(api.Enum o) { buildCounterEnum++; if (buildCounterEnum < 3) { - checkUnnamed1083(o.enumvalue); + checkUnnamed1090(o.enumvalue); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1084(o.options); + checkUnnamed1091(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } buildCounterEnum--; } -buildUnnamed1085() { +buildUnnamed1092() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1085(core.List<api.Option> o) { +checkUnnamed1092(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1216,7 +1218,7 @@ if (buildCounterEnumValue < 3) { o.name = "foo"; o.number = 42; - o.options = buildUnnamed1085(); + o.options = buildUnnamed1092(); } buildCounterEnumValue--; return o; @@ -1227,7 +1229,7 @@ if (buildCounterEnumValue < 3) { unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); - checkUnnamed1085(o.options); + checkUnnamed1092(o.options); } buildCounterEnumValue--; } @@ -1251,14 +1253,39 @@ buildCounterExperimental--; } -buildUnnamed1086() { +core.int buildCounterExpr = 0; +buildExpr() { + var o = new api.Expr(); + buildCounterExpr++; + if (buildCounterExpr < 3) { + o.description = "foo"; + o.expression = "foo"; + o.location = "foo"; + o.title = "foo"; + } + buildCounterExpr--; + return o; +} + +checkExpr(api.Expr o) { + buildCounterExpr++; + if (buildCounterExpr < 3) { + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.expression, unittest.equals('foo')); + unittest.expect(o.location, unittest.equals('foo')); + unittest.expect(o.title, unittest.equals('foo')); + } + buildCounterExpr--; +} + +buildUnnamed1093() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1086(core.List<api.Option> o) { +checkUnnamed1093(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1276,7 +1303,7 @@ o.name = "foo"; o.number = 42; o.oneofIndex = 42; - o.options = buildUnnamed1086(); + o.options = buildUnnamed1093(); o.packed = true; o.typeUrl = "foo"; } @@ -1294,21 +1321,21 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); unittest.expect(o.oneofIndex, unittest.equals(42)); - checkUnnamed1086(o.options); + checkUnnamed1093(o.options); unittest.expect(o.packed, unittest.isTrue); unittest.expect(o.typeUrl, unittest.equals('foo')); } buildCounterField--; } -buildUnnamed1087() { +buildUnnamed1094() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1087(core.List<core.String> o) { +checkUnnamed1094(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1322,7 +1349,7 @@ o.cancelState = "foo"; o.deadline = "foo"; o.flowName = "foo"; - o.resourceNames = buildUnnamed1087(); + o.resourceNames = buildUnnamed1094(); o.startTime = "foo"; } buildCounterFlowOperationMetadata--; @@ -1335,33 +1362,33 @@ unittest.expect(o.cancelState, unittest.equals('foo')); unittest.expect(o.deadline, unittest.equals('foo')); unittest.expect(o.flowName, unittest.equals('foo')); - checkUnnamed1087(o.resourceNames); + checkUnnamed1094(o.resourceNames); unittest.expect(o.startTime, unittest.equals('foo')); } buildCounterFlowOperationMetadata--; } -buildUnnamed1088() { +buildUnnamed1095() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1088(core.Map<core.String, core.Object> o) { +checkUnnamed1095(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1089() { +buildUnnamed1096() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1089(core.Map<core.String, core.Object> o) { +checkUnnamed1096(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -1372,8 +1399,8 @@ var o = new api.GenerateConfigReportRequest(); buildCounterGenerateConfigReportRequest++; if (buildCounterGenerateConfigReportRequest < 3) { - o.newConfig = buildUnnamed1088(); - o.oldConfig = buildUnnamed1089(); + o.newConfig = buildUnnamed1095(); + o.oldConfig = buildUnnamed1096(); } buildCounterGenerateConfigReportRequest--; return o; @@ -1382,33 +1409,33 @@ checkGenerateConfigReportRequest(api.GenerateConfigReportRequest o) { buildCounterGenerateConfigReportRequest++; if (buildCounterGenerateConfigReportRequest < 3) { - checkUnnamed1088(o.newConfig); - checkUnnamed1089(o.oldConfig); + checkUnnamed1095(o.newConfig); + checkUnnamed1096(o.oldConfig); } buildCounterGenerateConfigReportRequest--; } -buildUnnamed1090() { +buildUnnamed1097() { var o = new core.List<api.ChangeReport>(); o.add(buildChangeReport()); o.add(buildChangeReport()); return o; } -checkUnnamed1090(core.List<api.ChangeReport> o) { +checkUnnamed1097(core.List<api.ChangeReport> o) { unittest.expect(o, unittest.hasLength(2)); checkChangeReport(o[0]); checkChangeReport(o[1]); } -buildUnnamed1091() { +buildUnnamed1098() { var o = new core.List<api.Diagnostic>(); o.add(buildDiagnostic()); o.add(buildDiagnostic()); return o; } -checkUnnamed1091(core.List<api.Diagnostic> o) { +checkUnnamed1098(core.List<api.Diagnostic> o) { unittest.expect(o, unittest.hasLength(2)); checkDiagnostic(o[0]); checkDiagnostic(o[1]); @@ -1419,8 +1446,8 @@ var o = new api.GenerateConfigReportResponse(); buildCounterGenerateConfigReportResponse++; if (buildCounterGenerateConfigReportResponse < 3) { - o.changeReports = buildUnnamed1090(); - o.diagnostics = buildUnnamed1091(); + o.changeReports = buildUnnamed1097(); + o.diagnostics = buildUnnamed1098(); o.id = "foo"; o.serviceName = "foo"; } @@ -1431,8 +1458,8 @@ checkGenerateConfigReportResponse(api.GenerateConfigReportResponse o) { buildCounterGenerateConfigReportResponse++; if (buildCounterGenerateConfigReportResponse < 3) { - checkUnnamed1090(o.changeReports); - checkUnnamed1091(o.diagnostics); + checkUnnamed1097(o.changeReports); + checkUnnamed1098(o.diagnostics); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.serviceName, unittest.equals('foo')); } @@ -1456,14 +1483,14 @@ buildCounterGetIamPolicyRequest--; } -buildUnnamed1092() { +buildUnnamed1099() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed1092(core.List<api.HttpRule> o) { +checkUnnamed1099(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -1475,7 +1502,7 @@ buildCounterHttp++; if (buildCounterHttp < 3) { o.fullyDecodeReservedExpansion = true; - o.rules = buildUnnamed1092(); + o.rules = buildUnnamed1099(); } buildCounterHttp--; return o; @@ -1485,19 +1512,19 @@ buildCounterHttp++; if (buildCounterHttp < 3) { unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue); - checkUnnamed1092(o.rules); + checkUnnamed1099(o.rules); } buildCounterHttp--; } -buildUnnamed1093() { +buildUnnamed1100() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed1093(core.List<api.HttpRule> o) { +checkUnnamed1100(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -1508,7 +1535,7 @@ var o = new api.HttpRule(); buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - o.additionalBindings = buildUnnamed1093(); + o.additionalBindings = buildUnnamed1100(); o.body = "foo"; o.custom = buildCustomHttpPattern(); o.delete = "foo"; @@ -1520,6 +1547,7 @@ o.put = "foo"; o.responseBody = "foo"; o.restCollection = "foo"; + o.restMethodName = "foo"; o.selector = "foo"; } buildCounterHttpRule--; @@ -1529,7 +1557,7 @@ checkHttpRule(api.HttpRule o) { buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - checkUnnamed1093(o.additionalBindings); + checkUnnamed1100(o.additionalBindings); unittest.expect(o.body, unittest.equals('foo')); checkCustomHttpPattern(o.custom); unittest.expect(o.delete, unittest.equals('foo')); @@ -1541,6 +1569,7 @@ unittest.expect(o.put, unittest.equals('foo')); unittest.expect(o.responseBody, unittest.equals('foo')); unittest.expect(o.restCollection, unittest.equals('foo')); + unittest.expect(o.restMethodName, unittest.equals('foo')); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterHttpRule--; @@ -1569,14 +1598,14 @@ buildCounterLabelDescriptor--; } -buildUnnamed1094() { +buildUnnamed1101() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1094(core.List<api.Operation> o) { +checkUnnamed1101(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1588,7 +1617,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1094(); + o.operations = buildUnnamed1101(); } buildCounterListOperationsResponse--; return o; @@ -1598,19 +1627,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1094(o.operations); + checkUnnamed1101(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1095() { +buildUnnamed1102() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed1095(core.List<api.Service> o) { +checkUnnamed1102(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -1622,7 +1651,7 @@ buildCounterListServiceConfigsResponse++; if (buildCounterListServiceConfigsResponse < 3) { o.nextPageToken = "foo"; - o.serviceConfigs = buildUnnamed1095(); + o.serviceConfigs = buildUnnamed1102(); } buildCounterListServiceConfigsResponse--; return o; @@ -1632,19 +1661,19 @@ buildCounterListServiceConfigsResponse++; if (buildCounterListServiceConfigsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1095(o.serviceConfigs); + checkUnnamed1102(o.serviceConfigs); } buildCounterListServiceConfigsResponse--; } -buildUnnamed1096() { +buildUnnamed1103() { var o = new core.List<api.Rollout>(); o.add(buildRollout()); o.add(buildRollout()); return o; } -checkUnnamed1096(core.List<api.Rollout> o) { +checkUnnamed1103(core.List<api.Rollout> o) { unittest.expect(o, unittest.hasLength(2)); checkRollout(o[0]); checkRollout(o[1]); @@ -1656,7 +1685,7 @@ buildCounterListServiceRolloutsResponse++; if (buildCounterListServiceRolloutsResponse < 3) { o.nextPageToken = "foo"; - o.rollouts = buildUnnamed1096(); + o.rollouts = buildUnnamed1103(); } buildCounterListServiceRolloutsResponse--; return o; @@ -1666,19 +1695,19 @@ buildCounterListServiceRolloutsResponse++; if (buildCounterListServiceRolloutsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1096(o.rollouts); + checkUnnamed1103(o.rollouts); } buildCounterListServiceRolloutsResponse--; } -buildUnnamed1097() { +buildUnnamed1104() { var o = new core.List<api.ManagedService>(); o.add(buildManagedService()); o.add(buildManagedService()); return o; } -checkUnnamed1097(core.List<api.ManagedService> o) { +checkUnnamed1104(core.List<api.ManagedService> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedService(o[0]); checkManagedService(o[1]); @@ -1690,7 +1719,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed1097(); + o.services = buildUnnamed1104(); } buildCounterListServicesResponse--; return o; @@ -1700,7 +1729,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1097(o.services); + checkUnnamed1104(o.services); } buildCounterListServicesResponse--; } @@ -1728,14 +1757,14 @@ buildCounterLogConfig--; } -buildUnnamed1098() { +buildUnnamed1105() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1098(core.List<api.LabelDescriptor> o) { +checkUnnamed1105(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1748,7 +1777,7 @@ if (buildCounterLogDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1098(); + o.labels = buildUnnamed1105(); o.name = "foo"; } buildCounterLogDescriptor--; @@ -1760,33 +1789,33 @@ if (buildCounterLogDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1098(o.labels); + checkUnnamed1105(o.labels); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLogDescriptor--; } -buildUnnamed1099() { +buildUnnamed1106() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed1099(core.List<api.LoggingDestination> o) { +checkUnnamed1106(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); } -buildUnnamed1100() { +buildUnnamed1107() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed1100(core.List<api.LoggingDestination> o) { +checkUnnamed1107(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); @@ -1797,8 +1826,8 @@ var o = new api.Logging(); buildCounterLogging++; if (buildCounterLogging < 3) { - o.consumerDestinations = buildUnnamed1099(); - o.producerDestinations = buildUnnamed1100(); + o.consumerDestinations = buildUnnamed1106(); + o.producerDestinations = buildUnnamed1107(); } buildCounterLogging--; return o; @@ -1807,20 +1836,20 @@ checkLogging(api.Logging o) { buildCounterLogging++; if (buildCounterLogging < 3) { - checkUnnamed1099(o.consumerDestinations); - checkUnnamed1100(o.producerDestinations); + checkUnnamed1106(o.consumerDestinations); + checkUnnamed1107(o.producerDestinations); } buildCounterLogging--; } -buildUnnamed1101() { +buildUnnamed1108() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1101(core.List<core.String> o) { +checkUnnamed1108(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1831,7 +1860,7 @@ var o = new api.LoggingDestination(); buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - o.logs = buildUnnamed1101(); + o.logs = buildUnnamed1108(); o.monitoredResource = "foo"; } buildCounterLoggingDestination--; @@ -1841,7 +1870,7 @@ checkLoggingDestination(api.LoggingDestination o) { buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - checkUnnamed1101(o.logs); + checkUnnamed1108(o.logs); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterLoggingDestination--; @@ -1897,14 +1926,14 @@ buildCounterMediaDownload--; } -buildUnnamed1102() { +buildUnnamed1109() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1102(core.List<core.String> o) { +checkUnnamed1109(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1919,7 +1948,7 @@ o.dropzone = "foo"; o.enabled = true; o.maxSize = "foo"; - o.mimeTypes = buildUnnamed1102(); + o.mimeTypes = buildUnnamed1109(); o.progressNotification = true; o.startNotification = true; o.uploadService = "foo"; @@ -1935,7 +1964,7 @@ unittest.expect(o.dropzone, unittest.equals('foo')); unittest.expect(o.enabled, unittest.isTrue); unittest.expect(o.maxSize, unittest.equals('foo')); - checkUnnamed1102(o.mimeTypes); + checkUnnamed1109(o.mimeTypes); unittest.expect(o.progressNotification, unittest.isTrue); unittest.expect(o.startNotification, unittest.isTrue); unittest.expect(o.uploadService, unittest.equals('foo')); @@ -1943,14 +1972,14 @@ buildCounterMediaUpload--; } -buildUnnamed1103() { +buildUnnamed1110() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1103(core.List<api.Option> o) { +checkUnnamed1110(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1962,7 +1991,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { o.name = "foo"; - o.options = buildUnnamed1103(); + o.options = buildUnnamed1110(); o.requestStreaming = true; o.requestTypeUrl = "foo"; o.responseStreaming = true; @@ -1977,7 +2006,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1103(o.options); + checkUnnamed1110(o.options); unittest.expect(o.requestStreaming, unittest.isTrue); unittest.expect(o.requestTypeUrl, unittest.equals('foo')); unittest.expect(o.responseStreaming, unittest.isTrue); @@ -1987,14 +2016,14 @@ buildCounterMethod--; } -buildUnnamed1104() { +buildUnnamed1111() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1104(core.List<api.LabelDescriptor> o) { +checkUnnamed1111(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -2007,7 +2036,7 @@ if (buildCounterMetricDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1104(); + o.labels = buildUnnamed1111(); o.metricKind = "foo"; o.name = "foo"; o.type = "foo"; @@ -2023,7 +2052,7 @@ if (buildCounterMetricDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1104(o.labels); + checkUnnamed1111(o.labels); unittest.expect(o.metricKind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -2033,14 +2062,14 @@ buildCounterMetricDescriptor--; } -buildUnnamed1105() { +buildUnnamed1112() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1105(core.Map<core.String, core.String> o) { +checkUnnamed1112(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -2051,7 +2080,7 @@ var o = new api.MetricRule(); buildCounterMetricRule++; if (buildCounterMetricRule < 3) { - o.metricCosts = buildUnnamed1105(); + o.metricCosts = buildUnnamed1112(); o.selector = "foo"; } buildCounterMetricRule--; @@ -2061,7 +2090,7 @@ checkMetricRule(api.MetricRule o) { buildCounterMetricRule++; if (buildCounterMetricRule < 3) { - checkUnnamed1105(o.metricCosts); + checkUnnamed1112(o.metricCosts); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterMetricRule--; @@ -2088,14 +2117,14 @@ buildCounterMixin--; } -buildUnnamed1106() { +buildUnnamed1113() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1106(core.List<api.LabelDescriptor> o) { +checkUnnamed1113(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -2108,7 +2137,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1106(); + o.labels = buildUnnamed1113(); o.name = "foo"; o.type = "foo"; } @@ -2121,34 +2150,34 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1106(o.labels); + checkUnnamed1113(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResourceDescriptor--; } -buildUnnamed1107() { +buildUnnamed1114() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed1107(core.List<api.MonitoringDestination> o) { +checkUnnamed1114(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); } -buildUnnamed1108() { +buildUnnamed1115() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed1108(core.List<api.MonitoringDestination> o) { +checkUnnamed1115(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); @@ -2159,8 +2188,8 @@ var o = new api.Monitoring(); buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - o.consumerDestinations = buildUnnamed1107(); - o.producerDestinations = buildUnnamed1108(); + o.consumerDestinations = buildUnnamed1114(); + o.producerDestinations = buildUnnamed1115(); } buildCounterMonitoring--; return o; @@ -2169,20 +2198,20 @@ checkMonitoring(api.Monitoring o) { buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - checkUnnamed1107(o.consumerDestinations); - checkUnnamed1108(o.producerDestinations); + checkUnnamed1114(o.consumerDestinations); + checkUnnamed1115(o.producerDestinations); } buildCounterMonitoring--; } -buildUnnamed1109() { +buildUnnamed1116() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1109(core.List<core.String> o) { +checkUnnamed1116(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2193,7 +2222,7 @@ var o = new api.MonitoringDestination(); buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - o.metrics = buildUnnamed1109(); + o.metrics = buildUnnamed1116(); o.monitoredResource = "foo"; } buildCounterMonitoringDestination--; @@ -2203,7 +2232,7 @@ checkMonitoringDestination(api.MonitoringDestination o) { buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - checkUnnamed1109(o.metrics); + checkUnnamed1116(o.metrics); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterMonitoringDestination--; @@ -2228,27 +2257,27 @@ buildCounterOAuthRequirements--; } -buildUnnamed1110() { +buildUnnamed1117() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1110(core.Map<core.String, core.Object> o) { +checkUnnamed1117(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1111() { +buildUnnamed1118() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1111(core.Map<core.String, core.Object> o) { +checkUnnamed1118(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); @@ -2261,9 +2290,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1110(); + o.metadata = buildUnnamed1117(); o.name = "foo"; - o.response = buildUnnamed1111(); + o.response = buildUnnamed1118(); } buildCounterOperation--; return o; @@ -2274,34 +2303,34 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1110(o.metadata); + checkUnnamed1117(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1111(o.response); + checkUnnamed1118(o.response); } buildCounterOperation--; } -buildUnnamed1112() { +buildUnnamed1119() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1112(core.List<core.String> o) { +checkUnnamed1119(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1113() { +buildUnnamed1120() { var o = new core.List<api.Step>(); o.add(buildStep()); o.add(buildStep()); return o; } -checkUnnamed1113(core.List<api.Step> o) { +checkUnnamed1120(core.List<api.Step> o) { unittest.expect(o, unittest.hasLength(2)); checkStep(o[0]); checkStep(o[1]); @@ -2313,9 +2342,9 @@ buildCounterOperationMetadata++; if (buildCounterOperationMetadata < 3) { o.progressPercentage = 42; - o.resourceNames = buildUnnamed1112(); + o.resourceNames = buildUnnamed1119(); o.startTime = "foo"; - o.steps = buildUnnamed1113(); + o.steps = buildUnnamed1120(); } buildCounterOperationMetadata--; return o; @@ -2325,21 +2354,21 @@ buildCounterOperationMetadata++; if (buildCounterOperationMetadata < 3) { unittest.expect(o.progressPercentage, unittest.equals(42)); - checkUnnamed1112(o.resourceNames); + checkUnnamed1119(o.resourceNames); unittest.expect(o.startTime, unittest.equals('foo')); - checkUnnamed1113(o.steps); + checkUnnamed1120(o.steps); } buildCounterOperationMetadata--; } -buildUnnamed1114() { +buildUnnamed1121() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1114(core.Map<core.String, core.Object> o) { +checkUnnamed1121(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted9 = (o["x"]) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo')); var casted10 = (o["y"]) as core.Map; unittest.expect(casted10, unittest.hasLength(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["string"], unittest.equals('foo')); @@ -2351,7 +2380,7 @@ buildCounterOption++; if (buildCounterOption < 3) { o.name = "foo"; - o.value = buildUnnamed1114(); + o.value = buildUnnamed1121(); } buildCounterOption--; return o; @@ -2361,19 +2390,19 @@ buildCounterOption++; if (buildCounterOption < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1114(o.value); + checkUnnamed1121(o.value); } buildCounterOption--; } -buildUnnamed1115() { +buildUnnamed1122() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1115(core.List<api.Page> o) { +checkUnnamed1122(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -2386,7 +2415,7 @@ if (buildCounterPage < 3) { o.content = "foo"; o.name = "foo"; - o.subpages = buildUnnamed1115(); + o.subpages = buildUnnamed1122(); } buildCounterPage--; return o; @@ -2397,45 +2426,45 @@ if (buildCounterPage < 3) { unittest.expect(o.content, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1115(o.subpages); + checkUnnamed1122(o.subpages); } buildCounterPage--; } -buildUnnamed1116() { +buildUnnamed1123() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed1116(core.List<api.AuditConfig> o) { +checkUnnamed1123(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed1117() { +buildUnnamed1124() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1117(core.List<api.Binding> o) { +checkUnnamed1124(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); } -buildUnnamed1118() { +buildUnnamed1125() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed1118(core.List<api.Rule> o) { +checkUnnamed1125(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); @@ -2446,11 +2475,11 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed1116(); - o.bindings = buildUnnamed1117(); + o.auditConfigs = buildUnnamed1123(); + o.bindings = buildUnnamed1124(); o.etag = "foo"; o.iamOwned = true; - o.rules = buildUnnamed1118(); + o.rules = buildUnnamed1125(); o.version = 42; } buildCounterPolicy--; @@ -2460,37 +2489,37 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1116(o.auditConfigs); - checkUnnamed1117(o.bindings); + checkUnnamed1123(o.auditConfigs); + checkUnnamed1124(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.iamOwned, unittest.isTrue); - checkUnnamed1118(o.rules); + checkUnnamed1125(o.rules); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed1119() { +buildUnnamed1126() { var o = new core.List<api.QuotaLimit>(); o.add(buildQuotaLimit()); o.add(buildQuotaLimit()); return o; } -checkUnnamed1119(core.List<api.QuotaLimit> o) { +checkUnnamed1126(core.List<api.QuotaLimit> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaLimit(o[0]); checkQuotaLimit(o[1]); } -buildUnnamed1120() { +buildUnnamed1127() { var o = new core.List<api.MetricRule>(); o.add(buildMetricRule()); o.add(buildMetricRule()); return o; } -checkUnnamed1120(core.List<api.MetricRule> o) { +checkUnnamed1127(core.List<api.MetricRule> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricRule(o[0]); checkMetricRule(o[1]); @@ -2501,8 +2530,8 @@ var o = new api.Quota(); buildCounterQuota++; if (buildCounterQuota < 3) { - o.limits = buildUnnamed1119(); - o.metricRules = buildUnnamed1120(); + o.limits = buildUnnamed1126(); + o.metricRules = buildUnnamed1127(); } buildCounterQuota--; return o; @@ -2511,20 +2540,20 @@ checkQuota(api.Quota o) { buildCounterQuota++; if (buildCounterQuota < 3) { - checkUnnamed1119(o.limits); - checkUnnamed1120(o.metricRules); + checkUnnamed1126(o.limits); + checkUnnamed1127(o.metricRules); } buildCounterQuota--; } -buildUnnamed1121() { +buildUnnamed1128() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1121(core.Map<core.String, core.String> o) { +checkUnnamed1128(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -2544,7 +2573,7 @@ o.metric = "foo"; o.name = "foo"; o.unit = "foo"; - o.values = buildUnnamed1121(); + o.values = buildUnnamed1128(); } buildCounterQuotaLimit--; return o; @@ -2562,7 +2591,7 @@ unittest.expect(o.metric, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.unit, unittest.equals('foo')); - checkUnnamed1121(o.values); + checkUnnamed1128(o.values); } buildCounterQuotaLimit--; } @@ -2598,66 +2627,66 @@ buildCounterRollout--; } -buildUnnamed1122() { +buildUnnamed1129() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed1122(core.List<api.Condition> o) { +checkUnnamed1129(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed1123() { +buildUnnamed1130() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1123(core.List<core.String> o) { +checkUnnamed1130(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1124() { +buildUnnamed1131() { var o = new core.List<api.LogConfig>(); o.add(buildLogConfig()); o.add(buildLogConfig()); return o; } -checkUnnamed1124(core.List<api.LogConfig> o) { +checkUnnamed1131(core.List<api.LogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkLogConfig(o[0]); checkLogConfig(o[1]); } -buildUnnamed1125() { +buildUnnamed1132() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1125(core.List<core.String> o) { +checkUnnamed1132(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1126() { +buildUnnamed1133() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1126(core.List<core.String> o) { +checkUnnamed1133(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2669,12 +2698,12 @@ buildCounterRule++; if (buildCounterRule < 3) { o.action = "foo"; - o.conditions = buildUnnamed1122(); + o.conditions = buildUnnamed1129(); o.description = "foo"; - o.in_ = buildUnnamed1123(); - o.logConfig = buildUnnamed1124(); - o.notIn = buildUnnamed1125(); - o.permissions = buildUnnamed1126(); + o.in_ = buildUnnamed1130(); + o.logConfig = buildUnnamed1131(); + o.notIn = buildUnnamed1132(); + o.permissions = buildUnnamed1133(); } buildCounterRule--; return o; @@ -2684,115 +2713,115 @@ buildCounterRule++; if (buildCounterRule < 3) { unittest.expect(o.action, unittest.equals('foo')); - checkUnnamed1122(o.conditions); + checkUnnamed1129(o.conditions); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1123(o.in_); - checkUnnamed1124(o.logConfig); - checkUnnamed1125(o.notIn); - checkUnnamed1126(o.permissions); + checkUnnamed1130(o.in_); + checkUnnamed1131(o.logConfig); + checkUnnamed1132(o.notIn); + checkUnnamed1133(o.permissions); } buildCounterRule--; } -buildUnnamed1127() { +buildUnnamed1134() { var o = new core.List<api.Api>(); o.add(buildApi()); o.add(buildApi()); return o; } -checkUnnamed1127(core.List<api.Api> o) { +checkUnnamed1134(core.List<api.Api> o) { unittest.expect(o, unittest.hasLength(2)); checkApi(o[0]); checkApi(o[1]); } -buildUnnamed1128() { +buildUnnamed1135() { var o = new core.List<api.Endpoint>(); o.add(buildEndpoint()); o.add(buildEndpoint()); return o; } -checkUnnamed1128(core.List<api.Endpoint> o) { +checkUnnamed1135(core.List<api.Endpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkEndpoint(o[0]); checkEndpoint(o[1]); } -buildUnnamed1129() { +buildUnnamed1136() { var o = new core.List<api.Enum>(); o.add(buildEnum()); o.add(buildEnum()); return o; } -checkUnnamed1129(core.List<api.Enum> o) { +checkUnnamed1136(core.List<api.Enum> o) { unittest.expect(o, unittest.hasLength(2)); checkEnum(o[0]); checkEnum(o[1]); } -buildUnnamed1130() { +buildUnnamed1137() { var o = new core.List<api.LogDescriptor>(); o.add(buildLogDescriptor()); o.add(buildLogDescriptor()); return o; } -checkUnnamed1130(core.List<api.LogDescriptor> o) { +checkUnnamed1137(core.List<api.LogDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLogDescriptor(o[0]); checkLogDescriptor(o[1]); } -buildUnnamed1131() { +buildUnnamed1138() { var o = new core.List<api.MetricDescriptor>(); o.add(buildMetricDescriptor()); o.add(buildMetricDescriptor()); return o; } -checkUnnamed1131(core.List<api.MetricDescriptor> o) { +checkUnnamed1138(core.List<api.MetricDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricDescriptor(o[0]); checkMetricDescriptor(o[1]); } -buildUnnamed1132() { +buildUnnamed1139() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed1132(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed1139(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); } -buildUnnamed1133() { +buildUnnamed1140() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed1133(core.List<api.Type> o) { +checkUnnamed1140(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); } -buildUnnamed1134() { +buildUnnamed1141() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed1134(core.List<api.Type> o) { +checkUnnamed1141(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); @@ -2803,7 +2832,7 @@ var o = new api.Service(); buildCounterService++; if (buildCounterService < 3) { - o.apis = buildUnnamed1127(); + o.apis = buildUnnamed1134(); o.authentication = buildAuthentication(); o.backend = buildBackend(); o.configVersion = 42; @@ -2811,24 +2840,24 @@ o.control = buildControl(); o.customError = buildCustomError(); o.documentation = buildDocumentation(); - o.endpoints = buildUnnamed1128(); - o.enums = buildUnnamed1129(); + o.endpoints = buildUnnamed1135(); + o.enums = buildUnnamed1136(); o.experimental = buildExperimental(); o.http = buildHttp(); o.id = "foo"; o.logging = buildLogging(); - o.logs = buildUnnamed1130(); - o.metrics = buildUnnamed1131(); - o.monitoredResources = buildUnnamed1132(); + o.logs = buildUnnamed1137(); + o.metrics = buildUnnamed1138(); + o.monitoredResources = buildUnnamed1139(); o.monitoring = buildMonitoring(); o.name = "foo"; o.producerProjectId = "foo"; o.quota = buildQuota(); o.sourceInfo = buildSourceInfo(); o.systemParameters = buildSystemParameters(); - o.systemTypes = buildUnnamed1133(); + o.systemTypes = buildUnnamed1140(); o.title = "foo"; - o.types = buildUnnamed1134(); + o.types = buildUnnamed1141(); o.usage = buildUsage(); o.visibility = buildVisibility(); } @@ -2839,7 +2868,7 @@ checkService(api.Service o) { buildCounterService++; if (buildCounterService < 3) { - checkUnnamed1127(o.apis); + checkUnnamed1134(o.apis); checkAuthentication(o.authentication); checkBackend(o.backend); unittest.expect(o.configVersion, unittest.equals(42)); @@ -2847,24 +2876,24 @@ checkControl(o.control); checkCustomError(o.customError); checkDocumentation(o.documentation); - checkUnnamed1128(o.endpoints); - checkUnnamed1129(o.enums); + checkUnnamed1135(o.endpoints); + checkUnnamed1136(o.enums); checkExperimental(o.experimental); checkHttp(o.http); unittest.expect(o.id, unittest.equals('foo')); checkLogging(o.logging); - checkUnnamed1130(o.logs); - checkUnnamed1131(o.metrics); - checkUnnamed1132(o.monitoredResources); + checkUnnamed1137(o.logs); + checkUnnamed1138(o.metrics); + checkUnnamed1139(o.monitoredResources); checkMonitoring(o.monitoring); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.producerProjectId, unittest.equals('foo')); checkQuota(o.quota); checkSourceInfo(o.sourceInfo); checkSystemParameters(o.systemParameters); - checkUnnamed1133(o.systemTypes); + checkUnnamed1140(o.systemTypes); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed1134(o.types); + checkUnnamed1141(o.types); checkUsage(o.usage); checkVisibility(o.visibility); } @@ -2911,30 +2940,30 @@ buildCounterSourceContext--; } -buildUnnamed1135() { +buildUnnamed1142() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1135(core.Map<core.String, core.Object> o) { +checkUnnamed1142(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted11 = (o["x"]) as core.Map; unittest.expect(casted11, unittest.hasLength(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["string"], unittest.equals('foo')); var casted12 = (o["y"]) as core.Map; unittest.expect(casted12, unittest.hasLength(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["string"], unittest.equals('foo')); } -buildUnnamed1136() { +buildUnnamed1143() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1135()); - o.add(buildUnnamed1135()); + o.add(buildUnnamed1142()); + o.add(buildUnnamed1142()); return o; } -checkUnnamed1136(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1143(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1135(o[0]); - checkUnnamed1135(o[1]); + checkUnnamed1142(o[0]); + checkUnnamed1142(o[1]); } core.int buildCounterSourceInfo = 0; @@ -2942,7 +2971,7 @@ var o = new api.SourceInfo(); buildCounterSourceInfo++; if (buildCounterSourceInfo < 3) { - o.sourceFiles = buildUnnamed1136(); + o.sourceFiles = buildUnnamed1143(); } buildCounterSourceInfo--; return o; @@ -2951,35 +2980,35 @@ checkSourceInfo(api.SourceInfo o) { buildCounterSourceInfo++; if (buildCounterSourceInfo < 3) { - checkUnnamed1136(o.sourceFiles); + checkUnnamed1143(o.sourceFiles); } buildCounterSourceInfo--; } -buildUnnamed1137() { +buildUnnamed1144() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1137(core.Map<core.String, core.Object> o) { +checkUnnamed1144(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted13 = (o["x"]) as core.Map; unittest.expect(casted13, unittest.hasLength(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittest.expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["string"], unittest.equals('foo')); var casted14 = (o["y"]) as core.Map; unittest.expect(casted14, unittest.hasLength(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest.expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["string"], unittest.equals('foo')); } -buildUnnamed1138() { +buildUnnamed1145() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1137()); - o.add(buildUnnamed1137()); + o.add(buildUnnamed1144()); + o.add(buildUnnamed1144()); return o; } -checkUnnamed1138(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1145(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1137(o[0]); - checkUnnamed1137(o[1]); + checkUnnamed1144(o[0]); + checkUnnamed1144(o[1]); } core.int buildCounterStatus = 0; @@ -2988,7 +3017,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1138(); + o.details = buildUnnamed1145(); o.message = "foo"; } buildCounterStatus--; @@ -2999,7 +3028,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1138(o.details); + checkUnnamed1145(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -3089,14 +3118,14 @@ buildCounterSystemParameter--; } -buildUnnamed1139() { +buildUnnamed1146() { var o = new core.List<api.SystemParameter>(); o.add(buildSystemParameter()); o.add(buildSystemParameter()); return o; } -checkUnnamed1139(core.List<api.SystemParameter> o) { +checkUnnamed1146(core.List<api.SystemParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameter(o[0]); checkSystemParameter(o[1]); @@ -3107,7 +3136,7 @@ var o = new api.SystemParameterRule(); buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - o.parameters = buildUnnamed1139(); + o.parameters = buildUnnamed1146(); o.selector = "foo"; } buildCounterSystemParameterRule--; @@ -3117,20 +3146,20 @@ checkSystemParameterRule(api.SystemParameterRule o) { buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - checkUnnamed1139(o.parameters); + checkUnnamed1146(o.parameters); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterSystemParameterRule--; } -buildUnnamed1140() { +buildUnnamed1147() { var o = new core.List<api.SystemParameterRule>(); o.add(buildSystemParameterRule()); o.add(buildSystemParameterRule()); return o; } -checkUnnamed1140(core.List<api.SystemParameterRule> o) { +checkUnnamed1147(core.List<api.SystemParameterRule> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameterRule(o[0]); checkSystemParameterRule(o[1]); @@ -3141,7 +3170,7 @@ var o = new api.SystemParameters(); buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - o.rules = buildUnnamed1140(); + o.rules = buildUnnamed1147(); } buildCounterSystemParameters--; return o; @@ -3150,19 +3179,19 @@ checkSystemParameters(api.SystemParameters o) { buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - checkUnnamed1140(o.rules); + checkUnnamed1147(o.rules); } buildCounterSystemParameters--; } -buildUnnamed1141() { +buildUnnamed1148() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1141(core.List<core.String> o) { +checkUnnamed1148(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3173,7 +3202,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1141(); + o.permissions = buildUnnamed1148(); } buildCounterTestIamPermissionsRequest--; return o; @@ -3182,19 +3211,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1141(o.permissions); + checkUnnamed1148(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1142() { +buildUnnamed1149() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1142(core.List<core.String> o) { +checkUnnamed1149(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3205,7 +3234,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1142(); + o.permissions = buildUnnamed1149(); } buildCounterTestIamPermissionsResponse--; return o; @@ -3214,19 +3243,19 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1142(o.permissions); + checkUnnamed1149(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed1143() { +buildUnnamed1150() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed1143(core.Map<core.String, core.double> o) { +checkUnnamed1150(core.Map<core.String, core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals(42.0)); unittest.expect(o["y"], unittest.equals(42.0)); @@ -3237,7 +3266,7 @@ var o = new api.TrafficPercentStrategy(); buildCounterTrafficPercentStrategy++; if (buildCounterTrafficPercentStrategy < 3) { - o.percentages = buildUnnamed1143(); + o.percentages = buildUnnamed1150(); } buildCounterTrafficPercentStrategy--; return o; @@ -3246,45 +3275,45 @@ checkTrafficPercentStrategy(api.TrafficPercentStrategy o) { buildCounterTrafficPercentStrategy++; if (buildCounterTrafficPercentStrategy < 3) { - checkUnnamed1143(o.percentages); + checkUnnamed1150(o.percentages); } buildCounterTrafficPercentStrategy--; } -buildUnnamed1144() { +buildUnnamed1151() { var o = new core.List<api.Field>(); o.add(buildField()); o.add(buildField()); return o; } -checkUnnamed1144(core.List<api.Field> o) { +checkUnnamed1151(core.List<api.Field> o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); } -buildUnnamed1145() { +buildUnnamed1152() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1145(core.List<core.String> o) { +checkUnnamed1152(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1146() { +buildUnnamed1153() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1146(core.List<api.Option> o) { +checkUnnamed1153(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -3295,10 +3324,10 @@ var o = new api.Type(); buildCounterType++; if (buildCounterType < 3) { - o.fields = buildUnnamed1144(); + o.fields = buildUnnamed1151(); o.name = "foo"; - o.oneofs = buildUnnamed1145(); - o.options = buildUnnamed1146(); + o.oneofs = buildUnnamed1152(); + o.options = buildUnnamed1153(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -3309,10 +3338,10 @@ checkType(api.Type o) { buildCounterType++; if (buildCounterType < 3) { - checkUnnamed1144(o.fields); + checkUnnamed1151(o.fields); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1145(o.oneofs); - checkUnnamed1146(o.options); + checkUnnamed1152(o.oneofs); + checkUnnamed1153(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } @@ -3338,27 +3367,27 @@ buildCounterUndeleteServiceResponse--; } -buildUnnamed1147() { +buildUnnamed1154() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1147(core.List<core.String> o) { +checkUnnamed1154(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1148() { +buildUnnamed1155() { var o = new core.List<api.UsageRule>(); o.add(buildUsageRule()); o.add(buildUsageRule()); return o; } -checkUnnamed1148(core.List<api.UsageRule> o) { +checkUnnamed1155(core.List<api.UsageRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageRule(o[0]); checkUsageRule(o[1]); @@ -3370,8 +3399,8 @@ buildCounterUsage++; if (buildCounterUsage < 3) { o.producerNotificationChannel = "foo"; - o.requirements = buildUnnamed1147(); - o.rules = buildUnnamed1148(); + o.requirements = buildUnnamed1154(); + o.rules = buildUnnamed1155(); } buildCounterUsage--; return o; @@ -3381,8 +3410,8 @@ buildCounterUsage++; if (buildCounterUsage < 3) { unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); - checkUnnamed1147(o.requirements); - checkUnnamed1148(o.rules); + checkUnnamed1154(o.requirements); + checkUnnamed1155(o.rules); } buildCounterUsage--; } @@ -3408,14 +3437,14 @@ buildCounterUsageRule--; } -buildUnnamed1149() { +buildUnnamed1156() { var o = new core.List<api.VisibilityRule>(); o.add(buildVisibilityRule()); o.add(buildVisibilityRule()); return o; } -checkUnnamed1149(core.List<api.VisibilityRule> o) { +checkUnnamed1156(core.List<api.VisibilityRule> o) { unittest.expect(o, unittest.hasLength(2)); checkVisibilityRule(o[0]); checkVisibilityRule(o[1]); @@ -3426,7 +3455,7 @@ var o = new api.Visibility(); buildCounterVisibility++; if (buildCounterVisibility < 3) { - o.rules = buildUnnamed1149(); + o.rules = buildUnnamed1156(); } buildCounterVisibility--; return o; @@ -3435,7 +3464,7 @@ checkVisibility(api.Visibility o) { buildCounterVisibility++; if (buildCounterVisibility < 3) { - checkUnnamed1149(o.rules); + checkUnnamed1156(o.rules); } buildCounterVisibility--; } @@ -3805,6 +3834,15 @@ }); + unittest.group("obj-schema-Expr", () { + unittest.test("to-json--from-json", () { + var o = buildExpr(); + var od = new api.Expr.fromJson(o.toJson()); + checkExpr(od); + }); + }); + + unittest.group("obj-schema-Field", () { unittest.test("to-json--from-json", () { var o = buildField(); @@ -4315,7 +4353,7 @@ var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.ServicemanagementApi(mock).operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4350,7 +4388,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -4363,7 +4401,7 @@ var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_filter = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4401,7 +4439,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(name: arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListOperationsResponse response) { + res.list(name: arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); }); @@ -4415,7 +4453,7 @@ var mock = new HttpServerMock(); api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; var arg_request = buildManagedService(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ManagedService.fromJson(json); checkManagedService(obj); @@ -4452,7 +4490,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request).then(unittest.expectAsync(((api.Operation response) { + res.create(arg_request).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -4462,7 +4500,7 @@ var mock = new HttpServerMock(); api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; var arg_serviceName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4499,7 +4537,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_serviceName).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_serviceName).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -4510,7 +4548,7 @@ api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; var arg_request = buildDisableServiceRequest(); var arg_serviceName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DisableServiceRequest.fromJson(json); checkDisableServiceRequest(obj); @@ -4554,7 +4592,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.disable(arg_request, arg_serviceName).then(unittest.expectAsync(((api.Operation response) { + res.disable(arg_request, arg_serviceName).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -4565,7 +4603,7 @@ api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; var arg_request = buildEnableServiceRequest(); var arg_serviceName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.EnableServiceRequest.fromJson(json); checkEnableServiceRequest(obj); @@ -4609,7 +4647,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.enable(arg_request, arg_serviceName).then(unittest.expectAsync(((api.Operation response) { + res.enable(arg_request, arg_serviceName).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -4619,7 +4657,7 @@ var mock = new HttpServerMock(); api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; var arg_request = buildGenerateConfigReportRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GenerateConfigReportRequest.fromJson(json); checkGenerateConfigReportRequest(obj); @@ -4656,7 +4694,7 @@ var resp = convert.JSON.encode(buildGenerateConfigReportResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.generateConfigReport(arg_request).then(unittest.expectAsync(((api.GenerateConfigReportResponse response) { + res.generateConfigReport(arg_request).then(unittest.expectAsync1(((api.GenerateConfigReportResponse response) { checkGenerateConfigReportResponse(response); }))); }); @@ -4666,7 +4704,7 @@ var mock = new HttpServerMock(); api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; var arg_serviceName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4703,7 +4741,7 @@ var resp = convert.JSON.encode(buildManagedService()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_serviceName).then(unittest.expectAsync(((api.ManagedService response) { + res.get(arg_serviceName).then(unittest.expectAsync1(((api.ManagedService response) { checkManagedService(response); }))); }); @@ -4715,7 +4753,7 @@ var arg_serviceName = "foo"; var arg_configId = "foo"; var arg_view = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4758,7 +4796,7 @@ var resp = convert.JSON.encode(buildService()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getConfig(arg_serviceName, configId: arg_configId, view: arg_view).then(unittest.expectAsync(((api.Service response) { + res.getConfig(arg_serviceName, configId: arg_configId, view: arg_view).then(unittest.expectAsync1(((api.Service response) { checkService(response); }))); }); @@ -4769,7 +4807,7 @@ api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; var arg_request = buildGetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GetIamPolicyRequest.fromJson(json); checkGetIamPolicyRequest(obj); @@ -4807,7 +4845,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -4820,7 +4858,7 @@ var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_producerProjectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4858,7 +4896,7 @@ var resp = convert.JSON.encode(buildListServicesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(consumerId: arg_consumerId, pageToken: arg_pageToken, pageSize: arg_pageSize, producerProjectId: arg_producerProjectId).then(unittest.expectAsync(((api.ListServicesResponse response) { + res.list(consumerId: arg_consumerId, pageToken: arg_pageToken, pageSize: arg_pageSize, producerProjectId: arg_producerProjectId).then(unittest.expectAsync1(((api.ListServicesResponse response) { checkListServicesResponse(response); }))); }); @@ -4869,7 +4907,7 @@ api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; var arg_request = buildSetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetIamPolicyRequest.fromJson(json); checkSetIamPolicyRequest(obj); @@ -4907,7 +4945,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -4918,7 +4956,7 @@ api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; var arg_request = buildTestIamPermissionsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TestIamPermissionsRequest.fromJson(json); checkTestIamPermissionsRequest(obj); @@ -4956,7 +4994,7 @@ var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { checkTestIamPermissionsResponse(response); }))); }); @@ -4966,7 +5004,7 @@ var mock = new HttpServerMock(); api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; var arg_serviceName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5007,7 +5045,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.undelete(arg_serviceName).then(unittest.expectAsync(((api.Operation response) { + res.undelete(arg_serviceName).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -5022,7 +5060,7 @@ api.ServicesConfigsResourceApi res = new api.ServicemanagementApi(mock).services.configs; var arg_request = buildService(); var arg_serviceName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Service.fromJson(json); checkService(obj); @@ -5066,7 +5104,7 @@ var resp = convert.JSON.encode(buildService()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_serviceName).then(unittest.expectAsync(((api.Service response) { + res.create(arg_request, arg_serviceName).then(unittest.expectAsync1(((api.Service response) { checkService(response); }))); }); @@ -5078,7 +5116,7 @@ var arg_serviceName = "foo"; var arg_configId = "foo"; var arg_view = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5123,7 +5161,7 @@ var resp = convert.JSON.encode(buildService()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_serviceName, arg_configId, view: arg_view).then(unittest.expectAsync(((api.Service response) { + res.get(arg_serviceName, arg_configId, view: arg_view).then(unittest.expectAsync1(((api.Service response) { checkService(response); }))); }); @@ -5135,7 +5173,7 @@ var arg_serviceName = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5178,7 +5216,7 @@ var resp = convert.JSON.encode(buildListServiceConfigsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_serviceName, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListServiceConfigsResponse response) { + res.list(arg_serviceName, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListServiceConfigsResponse response) { checkListServiceConfigsResponse(response); }))); }); @@ -5189,7 +5227,7 @@ api.ServicesConfigsResourceApi res = new api.ServicemanagementApi(mock).services.configs; var arg_request = buildSubmitConfigSourceRequest(); var arg_serviceName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SubmitConfigSourceRequest.fromJson(json); checkSubmitConfigSourceRequest(obj); @@ -5233,7 +5271,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.submit(arg_request, arg_serviceName).then(unittest.expectAsync(((api.Operation response) { + res.submit(arg_request, arg_serviceName).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -5248,7 +5286,7 @@ api.ServicesConsumersResourceApi res = new api.ServicemanagementApi(mock).services.consumers; var arg_request = buildGetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GetIamPolicyRequest.fromJson(json); checkGetIamPolicyRequest(obj); @@ -5286,7 +5324,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -5297,7 +5335,7 @@ api.ServicesConsumersResourceApi res = new api.ServicemanagementApi(mock).services.consumers; var arg_request = buildSetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetIamPolicyRequest.fromJson(json); checkSetIamPolicyRequest(obj); @@ -5335,7 +5373,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -5346,7 +5384,7 @@ api.ServicesConsumersResourceApi res = new api.ServicemanagementApi(mock).services.consumers; var arg_request = buildTestIamPermissionsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TestIamPermissionsRequest.fromJson(json); checkTestIamPermissionsRequest(obj); @@ -5384,7 +5422,7 @@ var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { checkTestIamPermissionsResponse(response); }))); }); @@ -5399,7 +5437,7 @@ api.ServicesRolloutsResourceApi res = new api.ServicemanagementApi(mock).services.rollouts; var arg_request = buildRollout(); var arg_serviceName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Rollout.fromJson(json); checkRollout(obj); @@ -5443,7 +5481,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_serviceName).then(unittest.expectAsync(((api.Operation response) { + res.create(arg_request, arg_serviceName).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -5454,7 +5492,7 @@ api.ServicesRolloutsResourceApi res = new api.ServicemanagementApi(mock).services.rollouts; var arg_serviceName = "foo"; var arg_rolloutId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5498,7 +5536,7 @@ var resp = convert.JSON.encode(buildRollout()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_serviceName, arg_rolloutId).then(unittest.expectAsync(((api.Rollout response) { + res.get(arg_serviceName, arg_rolloutId).then(unittest.expectAsync1(((api.Rollout response) { checkRollout(response); }))); }); @@ -5511,7 +5549,7 @@ var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_filter = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5555,7 +5593,7 @@ var resp = convert.JSON.encode(buildListServiceRolloutsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_serviceName, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListServiceRolloutsResponse response) { + res.list(arg_serviceName, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListServiceRolloutsResponse response) { checkListServiceRolloutsResponse(response); }))); });
diff --git a/generated/googleapis/test/serviceuser/v1_test.dart b/generated/googleapis/test/serviceuser/v1_test.dart index 5612ca3..457c219 100644 --- a/generated/googleapis/test/serviceuser/v1_test.dart +++ b/generated/googleapis/test/serviceuser/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/serviceuser/v1.dart' as api; @@ -46,45 +46,45 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1623() { +buildUnnamed1633() { var o = new core.List<api.Method>(); o.add(buildMethod()); o.add(buildMethod()); return o; } -checkUnnamed1623(core.List<api.Method> o) { +checkUnnamed1633(core.List<api.Method> o) { unittest.expect(o, unittest.hasLength(2)); checkMethod(o[0]); checkMethod(o[1]); } -buildUnnamed1624() { +buildUnnamed1634() { var o = new core.List<api.Mixin>(); o.add(buildMixin()); o.add(buildMixin()); return o; } -checkUnnamed1624(core.List<api.Mixin> o) { +checkUnnamed1634(core.List<api.Mixin> o) { unittest.expect(o, unittest.hasLength(2)); checkMixin(o[0]); checkMixin(o[1]); } -buildUnnamed1625() { +buildUnnamed1635() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1625(core.List<api.Option> o) { +checkUnnamed1635(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -95,10 +95,10 @@ var o = new api.Api(); buildCounterApi++; if (buildCounterApi < 3) { - o.methods = buildUnnamed1623(); - o.mixins = buildUnnamed1624(); + o.methods = buildUnnamed1633(); + o.mixins = buildUnnamed1634(); o.name = "foo"; - o.options = buildUnnamed1625(); + o.options = buildUnnamed1635(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; o.version = "foo"; @@ -110,10 +110,10 @@ checkApi(api.Api o) { buildCounterApi++; if (buildCounterApi < 3) { - checkUnnamed1623(o.methods); - checkUnnamed1624(o.mixins); + checkUnnamed1633(o.methods); + checkUnnamed1634(o.mixins); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1625(o.options); + checkUnnamed1635(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -167,27 +167,27 @@ buildCounterAuthRequirement--; } -buildUnnamed1626() { +buildUnnamed1636() { var o = new core.List<api.AuthProvider>(); o.add(buildAuthProvider()); o.add(buildAuthProvider()); return o; } -checkUnnamed1626(core.List<api.AuthProvider> o) { +checkUnnamed1636(core.List<api.AuthProvider> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthProvider(o[0]); checkAuthProvider(o[1]); } -buildUnnamed1627() { +buildUnnamed1637() { var o = new core.List<api.AuthenticationRule>(); o.add(buildAuthenticationRule()); o.add(buildAuthenticationRule()); return o; } -checkUnnamed1627(core.List<api.AuthenticationRule> o) { +checkUnnamed1637(core.List<api.AuthenticationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthenticationRule(o[0]); checkAuthenticationRule(o[1]); @@ -198,8 +198,8 @@ var o = new api.Authentication(); buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - o.providers = buildUnnamed1626(); - o.rules = buildUnnamed1627(); + o.providers = buildUnnamed1636(); + o.rules = buildUnnamed1637(); } buildCounterAuthentication--; return o; @@ -208,20 +208,20 @@ checkAuthentication(api.Authentication o) { buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - checkUnnamed1626(o.providers); - checkUnnamed1627(o.rules); + checkUnnamed1636(o.providers); + checkUnnamed1637(o.rules); } buildCounterAuthentication--; } -buildUnnamed1628() { +buildUnnamed1638() { var o = new core.List<api.AuthRequirement>(); o.add(buildAuthRequirement()); o.add(buildAuthRequirement()); return o; } -checkUnnamed1628(core.List<api.AuthRequirement> o) { +checkUnnamed1638(core.List<api.AuthRequirement> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthRequirement(o[0]); checkAuthRequirement(o[1]); @@ -235,7 +235,7 @@ o.allowWithoutCredential = true; o.customAuth = buildCustomAuthRequirements(); o.oauth = buildOAuthRequirements(); - o.requirements = buildUnnamed1628(); + o.requirements = buildUnnamed1638(); o.selector = "foo"; } buildCounterAuthenticationRule--; @@ -248,7 +248,7 @@ unittest.expect(o.allowWithoutCredential, unittest.isTrue); checkCustomAuthRequirements(o.customAuth); checkOAuthRequirements(o.oauth); - checkUnnamed1628(o.requirements); + checkUnnamed1638(o.requirements); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterAuthenticationRule--; @@ -273,14 +273,14 @@ buildCounterAuthorizationConfig--; } -buildUnnamed1629() { +buildUnnamed1639() { var o = new core.List<api.BackendRule>(); o.add(buildBackendRule()); o.add(buildBackendRule()); return o; } -checkUnnamed1629(core.List<api.BackendRule> o) { +checkUnnamed1639(core.List<api.BackendRule> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendRule(o[0]); checkBackendRule(o[1]); @@ -291,7 +291,7 @@ var o = new api.Backend(); buildCounterBackend++; if (buildCounterBackend < 3) { - o.rules = buildUnnamed1629(); + o.rules = buildUnnamed1639(); } buildCounterBackend--; return o; @@ -300,7 +300,7 @@ checkBackend(api.Backend o) { buildCounterBackend++; if (buildCounterBackend < 3) { - checkUnnamed1629(o.rules); + checkUnnamed1639(o.rules); } buildCounterBackend--; } @@ -330,14 +330,14 @@ buildCounterBackendRule--; } -buildUnnamed1630() { +buildUnnamed1640() { var o = new core.List<api.ContextRule>(); o.add(buildContextRule()); o.add(buildContextRule()); return o; } -checkUnnamed1630(core.List<api.ContextRule> o) { +checkUnnamed1640(core.List<api.ContextRule> o) { unittest.expect(o, unittest.hasLength(2)); checkContextRule(o[0]); checkContextRule(o[1]); @@ -348,7 +348,7 @@ var o = new api.Context(); buildCounterContext++; if (buildCounterContext < 3) { - o.rules = buildUnnamed1630(); + o.rules = buildUnnamed1640(); } buildCounterContext--; return o; @@ -357,32 +357,32 @@ checkContext(api.Context o) { buildCounterContext++; if (buildCounterContext < 3) { - checkUnnamed1630(o.rules); + checkUnnamed1640(o.rules); } buildCounterContext--; } -buildUnnamed1631() { +buildUnnamed1641() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1631(core.List<core.String> o) { +checkUnnamed1641(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1632() { +buildUnnamed1642() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1632(core.List<core.String> o) { +checkUnnamed1642(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -393,8 +393,8 @@ var o = new api.ContextRule(); buildCounterContextRule++; if (buildCounterContextRule < 3) { - o.provided = buildUnnamed1631(); - o.requested = buildUnnamed1632(); + o.provided = buildUnnamed1641(); + o.requested = buildUnnamed1642(); o.selector = "foo"; } buildCounterContextRule--; @@ -404,8 +404,8 @@ checkContextRule(api.ContextRule o) { buildCounterContextRule++; if (buildCounterContextRule < 3) { - checkUnnamed1631(o.provided); - checkUnnamed1632(o.requested); + checkUnnamed1641(o.provided); + checkUnnamed1642(o.requested); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterContextRule--; @@ -449,27 +449,27 @@ buildCounterCustomAuthRequirements--; } -buildUnnamed1633() { +buildUnnamed1643() { var o = new core.List<api.CustomErrorRule>(); o.add(buildCustomErrorRule()); o.add(buildCustomErrorRule()); return o; } -checkUnnamed1633(core.List<api.CustomErrorRule> o) { +checkUnnamed1643(core.List<api.CustomErrorRule> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomErrorRule(o[0]); checkCustomErrorRule(o[1]); } -buildUnnamed1634() { +buildUnnamed1644() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1634(core.List<core.String> o) { +checkUnnamed1644(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -480,8 +480,8 @@ var o = new api.CustomError(); buildCounterCustomError++; if (buildCounterCustomError < 3) { - o.rules = buildUnnamed1633(); - o.types = buildUnnamed1634(); + o.rules = buildUnnamed1643(); + o.types = buildUnnamed1644(); } buildCounterCustomError--; return o; @@ -490,8 +490,8 @@ checkCustomError(api.CustomError o) { buildCounterCustomError++; if (buildCounterCustomError < 3) { - checkUnnamed1633(o.rules); - checkUnnamed1634(o.types); + checkUnnamed1643(o.rules); + checkUnnamed1644(o.types); } buildCounterCustomError--; } @@ -555,27 +555,27 @@ buildCounterDisableServiceRequest--; } -buildUnnamed1635() { +buildUnnamed1645() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1635(core.List<api.Page> o) { +checkUnnamed1645(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); } -buildUnnamed1636() { +buildUnnamed1646() { var o = new core.List<api.DocumentationRule>(); o.add(buildDocumentationRule()); o.add(buildDocumentationRule()); return o; } -checkUnnamed1636(core.List<api.DocumentationRule> o) { +checkUnnamed1646(core.List<api.DocumentationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkDocumentationRule(o[0]); checkDocumentationRule(o[1]); @@ -588,8 +588,8 @@ if (buildCounterDocumentation < 3) { o.documentationRootUrl = "foo"; o.overview = "foo"; - o.pages = buildUnnamed1635(); - o.rules = buildUnnamed1636(); + o.pages = buildUnnamed1645(); + o.rules = buildUnnamed1646(); o.summary = "foo"; } buildCounterDocumentation--; @@ -601,8 +601,8 @@ if (buildCounterDocumentation < 3) { unittest.expect(o.documentationRootUrl, unittest.equals('foo')); unittest.expect(o.overview, unittest.equals('foo')); - checkUnnamed1635(o.pages); - checkUnnamed1636(o.rules); + checkUnnamed1645(o.pages); + checkUnnamed1646(o.rules); unittest.expect(o.summary, unittest.equals('foo')); } buildCounterDocumentation--; @@ -648,40 +648,40 @@ buildCounterEnableServiceRequest--; } -buildUnnamed1637() { +buildUnnamed1647() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1637(core.List<core.String> o) { +checkUnnamed1647(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1638() { +buildUnnamed1648() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1638(core.List<core.String> o) { +checkUnnamed1648(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1639() { +buildUnnamed1649() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1639(core.List<core.String> o) { +checkUnnamed1649(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -692,10 +692,10 @@ var o = new api.Endpoint(); buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - o.aliases = buildUnnamed1637(); + o.aliases = buildUnnamed1647(); o.allowCors = true; - o.apis = buildUnnamed1638(); - o.features = buildUnnamed1639(); + o.apis = buildUnnamed1648(); + o.features = buildUnnamed1649(); o.name = "foo"; o.target = "foo"; } @@ -706,37 +706,37 @@ checkEndpoint(api.Endpoint o) { buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - checkUnnamed1637(o.aliases); + checkUnnamed1647(o.aliases); unittest.expect(o.allowCors, unittest.isTrue); - checkUnnamed1638(o.apis); - checkUnnamed1639(o.features); + checkUnnamed1648(o.apis); + checkUnnamed1649(o.features); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); } buildCounterEndpoint--; } -buildUnnamed1640() { +buildUnnamed1650() { var o = new core.List<api.EnumValue>(); o.add(buildEnumValue()); o.add(buildEnumValue()); return o; } -checkUnnamed1640(core.List<api.EnumValue> o) { +checkUnnamed1650(core.List<api.EnumValue> o) { unittest.expect(o, unittest.hasLength(2)); checkEnumValue(o[0]); checkEnumValue(o[1]); } -buildUnnamed1641() { +buildUnnamed1651() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1641(core.List<api.Option> o) { +checkUnnamed1651(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -747,9 +747,9 @@ var o = new api.Enum(); buildCounterEnum++; if (buildCounterEnum < 3) { - o.enumvalue = buildUnnamed1640(); + o.enumvalue = buildUnnamed1650(); o.name = "foo"; - o.options = buildUnnamed1641(); + o.options = buildUnnamed1651(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -760,23 +760,23 @@ checkEnum(api.Enum o) { buildCounterEnum++; if (buildCounterEnum < 3) { - checkUnnamed1640(o.enumvalue); + checkUnnamed1650(o.enumvalue); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1641(o.options); + checkUnnamed1651(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } buildCounterEnum--; } -buildUnnamed1642() { +buildUnnamed1652() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1642(core.List<api.Option> o) { +checkUnnamed1652(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -789,7 +789,7 @@ if (buildCounterEnumValue < 3) { o.name = "foo"; o.number = 42; - o.options = buildUnnamed1642(); + o.options = buildUnnamed1652(); } buildCounterEnumValue--; return o; @@ -800,7 +800,7 @@ if (buildCounterEnumValue < 3) { unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); - checkUnnamed1642(o.options); + checkUnnamed1652(o.options); } buildCounterEnumValue--; } @@ -824,14 +824,14 @@ buildCounterExperimental--; } -buildUnnamed1643() { +buildUnnamed1653() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1643(core.List<api.Option> o) { +checkUnnamed1653(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -849,7 +849,7 @@ o.name = "foo"; o.number = 42; o.oneofIndex = 42; - o.options = buildUnnamed1643(); + o.options = buildUnnamed1653(); o.packed = true; o.typeUrl = "foo"; } @@ -867,21 +867,21 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); unittest.expect(o.oneofIndex, unittest.equals(42)); - checkUnnamed1643(o.options); + checkUnnamed1653(o.options); unittest.expect(o.packed, unittest.isTrue); unittest.expect(o.typeUrl, unittest.equals('foo')); } buildCounterField--; } -buildUnnamed1644() { +buildUnnamed1654() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed1644(core.List<api.HttpRule> o) { +checkUnnamed1654(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -893,7 +893,7 @@ buildCounterHttp++; if (buildCounterHttp < 3) { o.fullyDecodeReservedExpansion = true; - o.rules = buildUnnamed1644(); + o.rules = buildUnnamed1654(); } buildCounterHttp--; return o; @@ -903,19 +903,19 @@ buildCounterHttp++; if (buildCounterHttp < 3) { unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue); - checkUnnamed1644(o.rules); + checkUnnamed1654(o.rules); } buildCounterHttp--; } -buildUnnamed1645() { +buildUnnamed1655() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed1645(core.List<api.HttpRule> o) { +checkUnnamed1655(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -926,7 +926,7 @@ var o = new api.HttpRule(); buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - o.additionalBindings = buildUnnamed1645(); + o.additionalBindings = buildUnnamed1655(); o.body = "foo"; o.custom = buildCustomHttpPattern(); o.delete = "foo"; @@ -938,6 +938,7 @@ o.put = "foo"; o.responseBody = "foo"; o.restCollection = "foo"; + o.restMethodName = "foo"; o.selector = "foo"; } buildCounterHttpRule--; @@ -947,7 +948,7 @@ checkHttpRule(api.HttpRule o) { buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - checkUnnamed1645(o.additionalBindings); + checkUnnamed1655(o.additionalBindings); unittest.expect(o.body, unittest.equals('foo')); checkCustomHttpPattern(o.custom); unittest.expect(o.delete, unittest.equals('foo')); @@ -959,6 +960,7 @@ unittest.expect(o.put, unittest.equals('foo')); unittest.expect(o.responseBody, unittest.equals('foo')); unittest.expect(o.restCollection, unittest.equals('foo')); + unittest.expect(o.restMethodName, unittest.equals('foo')); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterHttpRule--; @@ -987,14 +989,14 @@ buildCounterLabelDescriptor--; } -buildUnnamed1646() { +buildUnnamed1656() { var o = new core.List<api.PublishedService>(); o.add(buildPublishedService()); o.add(buildPublishedService()); return o; } -checkUnnamed1646(core.List<api.PublishedService> o) { +checkUnnamed1656(core.List<api.PublishedService> o) { unittest.expect(o, unittest.hasLength(2)); checkPublishedService(o[0]); checkPublishedService(o[1]); @@ -1006,7 +1008,7 @@ buildCounterListEnabledServicesResponse++; if (buildCounterListEnabledServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed1646(); + o.services = buildUnnamed1656(); } buildCounterListEnabledServicesResponse--; return o; @@ -1016,19 +1018,19 @@ buildCounterListEnabledServicesResponse++; if (buildCounterListEnabledServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1646(o.services); + checkUnnamed1656(o.services); } buildCounterListEnabledServicesResponse--; } -buildUnnamed1647() { +buildUnnamed1657() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1647(core.List<api.LabelDescriptor> o) { +checkUnnamed1657(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1041,7 +1043,7 @@ if (buildCounterLogDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1647(); + o.labels = buildUnnamed1657(); o.name = "foo"; } buildCounterLogDescriptor--; @@ -1053,33 +1055,33 @@ if (buildCounterLogDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1647(o.labels); + checkUnnamed1657(o.labels); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLogDescriptor--; } -buildUnnamed1648() { +buildUnnamed1658() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed1648(core.List<api.LoggingDestination> o) { +checkUnnamed1658(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); } -buildUnnamed1649() { +buildUnnamed1659() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed1649(core.List<api.LoggingDestination> o) { +checkUnnamed1659(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); @@ -1090,8 +1092,8 @@ var o = new api.Logging(); buildCounterLogging++; if (buildCounterLogging < 3) { - o.consumerDestinations = buildUnnamed1648(); - o.producerDestinations = buildUnnamed1649(); + o.consumerDestinations = buildUnnamed1658(); + o.producerDestinations = buildUnnamed1659(); } buildCounterLogging--; return o; @@ -1100,20 +1102,20 @@ checkLogging(api.Logging o) { buildCounterLogging++; if (buildCounterLogging < 3) { - checkUnnamed1648(o.consumerDestinations); - checkUnnamed1649(o.producerDestinations); + checkUnnamed1658(o.consumerDestinations); + checkUnnamed1659(o.producerDestinations); } buildCounterLogging--; } -buildUnnamed1650() { +buildUnnamed1660() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1650(core.List<core.String> o) { +checkUnnamed1660(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1124,7 +1126,7 @@ var o = new api.LoggingDestination(); buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - o.logs = buildUnnamed1650(); + o.logs = buildUnnamed1660(); o.monitoredResource = "foo"; } buildCounterLoggingDestination--; @@ -1134,7 +1136,7 @@ checkLoggingDestination(api.LoggingDestination o) { buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - checkUnnamed1650(o.logs); + checkUnnamed1660(o.logs); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterLoggingDestination--; @@ -1169,14 +1171,14 @@ buildCounterMediaDownload--; } -buildUnnamed1651() { +buildUnnamed1661() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1651(core.List<core.String> o) { +checkUnnamed1661(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1191,7 +1193,7 @@ o.dropzone = "foo"; o.enabled = true; o.maxSize = "foo"; - o.mimeTypes = buildUnnamed1651(); + o.mimeTypes = buildUnnamed1661(); o.progressNotification = true; o.startNotification = true; o.uploadService = "foo"; @@ -1207,7 +1209,7 @@ unittest.expect(o.dropzone, unittest.equals('foo')); unittest.expect(o.enabled, unittest.isTrue); unittest.expect(o.maxSize, unittest.equals('foo')); - checkUnnamed1651(o.mimeTypes); + checkUnnamed1661(o.mimeTypes); unittest.expect(o.progressNotification, unittest.isTrue); unittest.expect(o.startNotification, unittest.isTrue); unittest.expect(o.uploadService, unittest.equals('foo')); @@ -1215,14 +1217,14 @@ buildCounterMediaUpload--; } -buildUnnamed1652() { +buildUnnamed1662() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1652(core.List<api.Option> o) { +checkUnnamed1662(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1234,7 +1236,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { o.name = "foo"; - o.options = buildUnnamed1652(); + o.options = buildUnnamed1662(); o.requestStreaming = true; o.requestTypeUrl = "foo"; o.responseStreaming = true; @@ -1249,7 +1251,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1652(o.options); + checkUnnamed1662(o.options); unittest.expect(o.requestStreaming, unittest.isTrue); unittest.expect(o.requestTypeUrl, unittest.equals('foo')); unittest.expect(o.responseStreaming, unittest.isTrue); @@ -1259,14 +1261,14 @@ buildCounterMethod--; } -buildUnnamed1653() { +buildUnnamed1663() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1653(core.List<api.LabelDescriptor> o) { +checkUnnamed1663(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1279,7 +1281,7 @@ if (buildCounterMetricDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1653(); + o.labels = buildUnnamed1663(); o.metricKind = "foo"; o.name = "foo"; o.type = "foo"; @@ -1295,7 +1297,7 @@ if (buildCounterMetricDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1653(o.labels); + checkUnnamed1663(o.labels); unittest.expect(o.metricKind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -1305,14 +1307,14 @@ buildCounterMetricDescriptor--; } -buildUnnamed1654() { +buildUnnamed1664() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1654(core.Map<core.String, core.String> o) { +checkUnnamed1664(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1323,7 +1325,7 @@ var o = new api.MetricRule(); buildCounterMetricRule++; if (buildCounterMetricRule < 3) { - o.metricCosts = buildUnnamed1654(); + o.metricCosts = buildUnnamed1664(); o.selector = "foo"; } buildCounterMetricRule--; @@ -1333,7 +1335,7 @@ checkMetricRule(api.MetricRule o) { buildCounterMetricRule++; if (buildCounterMetricRule < 3) { - checkUnnamed1654(o.metricCosts); + checkUnnamed1664(o.metricCosts); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterMetricRule--; @@ -1360,14 +1362,14 @@ buildCounterMixin--; } -buildUnnamed1655() { +buildUnnamed1665() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1655(core.List<api.LabelDescriptor> o) { +checkUnnamed1665(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1380,7 +1382,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1655(); + o.labels = buildUnnamed1665(); o.name = "foo"; o.type = "foo"; } @@ -1393,34 +1395,34 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1655(o.labels); + checkUnnamed1665(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResourceDescriptor--; } -buildUnnamed1656() { +buildUnnamed1666() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed1656(core.List<api.MonitoringDestination> o) { +checkUnnamed1666(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); } -buildUnnamed1657() { +buildUnnamed1667() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed1657(core.List<api.MonitoringDestination> o) { +checkUnnamed1667(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); @@ -1431,8 +1433,8 @@ var o = new api.Monitoring(); buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - o.consumerDestinations = buildUnnamed1656(); - o.producerDestinations = buildUnnamed1657(); + o.consumerDestinations = buildUnnamed1666(); + o.producerDestinations = buildUnnamed1667(); } buildCounterMonitoring--; return o; @@ -1441,20 +1443,20 @@ checkMonitoring(api.Monitoring o) { buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - checkUnnamed1656(o.consumerDestinations); - checkUnnamed1657(o.producerDestinations); + checkUnnamed1666(o.consumerDestinations); + checkUnnamed1667(o.producerDestinations); } buildCounterMonitoring--; } -buildUnnamed1658() { +buildUnnamed1668() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1658(core.List<core.String> o) { +checkUnnamed1668(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1465,7 +1467,7 @@ var o = new api.MonitoringDestination(); buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - o.metrics = buildUnnamed1658(); + o.metrics = buildUnnamed1668(); o.monitoredResource = "foo"; } buildCounterMonitoringDestination--; @@ -1475,7 +1477,7 @@ checkMonitoringDestination(api.MonitoringDestination o) { buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - checkUnnamed1658(o.metrics); + checkUnnamed1668(o.metrics); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterMonitoringDestination--; @@ -1500,27 +1502,27 @@ buildCounterOAuthRequirements--; } -buildUnnamed1659() { +buildUnnamed1669() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1659(core.Map<core.String, core.Object> o) { +checkUnnamed1669(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1660() { +buildUnnamed1670() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1660(core.Map<core.String, core.Object> o) { +checkUnnamed1670(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -1533,9 +1535,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1659(); + o.metadata = buildUnnamed1669(); o.name = "foo"; - o.response = buildUnnamed1660(); + o.response = buildUnnamed1670(); } buildCounterOperation--; return o; @@ -1546,34 +1548,34 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1659(o.metadata); + checkUnnamed1669(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1660(o.response); + checkUnnamed1670(o.response); } buildCounterOperation--; } -buildUnnamed1661() { +buildUnnamed1671() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1661(core.List<core.String> o) { +checkUnnamed1671(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1662() { +buildUnnamed1672() { var o = new core.List<api.Step>(); o.add(buildStep()); o.add(buildStep()); return o; } -checkUnnamed1662(core.List<api.Step> o) { +checkUnnamed1672(core.List<api.Step> o) { unittest.expect(o, unittest.hasLength(2)); checkStep(o[0]); checkStep(o[1]); @@ -1585,9 +1587,9 @@ buildCounterOperationMetadata++; if (buildCounterOperationMetadata < 3) { o.progressPercentage = 42; - o.resourceNames = buildUnnamed1661(); + o.resourceNames = buildUnnamed1671(); o.startTime = "foo"; - o.steps = buildUnnamed1662(); + o.steps = buildUnnamed1672(); } buildCounterOperationMetadata--; return o; @@ -1597,21 +1599,21 @@ buildCounterOperationMetadata++; if (buildCounterOperationMetadata < 3) { unittest.expect(o.progressPercentage, unittest.equals(42)); - checkUnnamed1661(o.resourceNames); + checkUnnamed1671(o.resourceNames); unittest.expect(o.startTime, unittest.equals('foo')); - checkUnnamed1662(o.steps); + checkUnnamed1672(o.steps); } buildCounterOperationMetadata--; } -buildUnnamed1663() { +buildUnnamed1673() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1663(core.Map<core.String, core.Object> o) { +checkUnnamed1673(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); @@ -1623,7 +1625,7 @@ buildCounterOption++; if (buildCounterOption < 3) { o.name = "foo"; - o.value = buildUnnamed1663(); + o.value = buildUnnamed1673(); } buildCounterOption--; return o; @@ -1633,19 +1635,19 @@ buildCounterOption++; if (buildCounterOption < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1663(o.value); + checkUnnamed1673(o.value); } buildCounterOption--; } -buildUnnamed1664() { +buildUnnamed1674() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1664(core.List<api.Page> o) { +checkUnnamed1674(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -1658,7 +1660,7 @@ if (buildCounterPage < 3) { o.content = "foo"; o.name = "foo"; - o.subpages = buildUnnamed1664(); + o.subpages = buildUnnamed1674(); } buildCounterPage--; return o; @@ -1669,7 +1671,7 @@ if (buildCounterPage < 3) { unittest.expect(o.content, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1664(o.subpages); + checkUnnamed1674(o.subpages); } buildCounterPage--; } @@ -1695,27 +1697,27 @@ buildCounterPublishedService--; } -buildUnnamed1665() { +buildUnnamed1675() { var o = new core.List<api.QuotaLimit>(); o.add(buildQuotaLimit()); o.add(buildQuotaLimit()); return o; } -checkUnnamed1665(core.List<api.QuotaLimit> o) { +checkUnnamed1675(core.List<api.QuotaLimit> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaLimit(o[0]); checkQuotaLimit(o[1]); } -buildUnnamed1666() { +buildUnnamed1676() { var o = new core.List<api.MetricRule>(); o.add(buildMetricRule()); o.add(buildMetricRule()); return o; } -checkUnnamed1666(core.List<api.MetricRule> o) { +checkUnnamed1676(core.List<api.MetricRule> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricRule(o[0]); checkMetricRule(o[1]); @@ -1726,8 +1728,8 @@ var o = new api.Quota(); buildCounterQuota++; if (buildCounterQuota < 3) { - o.limits = buildUnnamed1665(); - o.metricRules = buildUnnamed1666(); + o.limits = buildUnnamed1675(); + o.metricRules = buildUnnamed1676(); } buildCounterQuota--; return o; @@ -1736,20 +1738,20 @@ checkQuota(api.Quota o) { buildCounterQuota++; if (buildCounterQuota < 3) { - checkUnnamed1665(o.limits); - checkUnnamed1666(o.metricRules); + checkUnnamed1675(o.limits); + checkUnnamed1676(o.metricRules); } buildCounterQuota--; } -buildUnnamed1667() { +buildUnnamed1677() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1667(core.Map<core.String, core.String> o) { +checkUnnamed1677(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1769,7 +1771,7 @@ o.metric = "foo"; o.name = "foo"; o.unit = "foo"; - o.values = buildUnnamed1667(); + o.values = buildUnnamed1677(); } buildCounterQuotaLimit--; return o; @@ -1787,19 +1789,19 @@ unittest.expect(o.metric, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.unit, unittest.equals('foo')); - checkUnnamed1667(o.values); + checkUnnamed1677(o.values); } buildCounterQuotaLimit--; } -buildUnnamed1668() { +buildUnnamed1678() { var o = new core.List<api.PublishedService>(); o.add(buildPublishedService()); o.add(buildPublishedService()); return o; } -checkUnnamed1668(core.List<api.PublishedService> o) { +checkUnnamed1678(core.List<api.PublishedService> o) { unittest.expect(o, unittest.hasLength(2)); checkPublishedService(o[0]); checkPublishedService(o[1]); @@ -1811,7 +1813,7 @@ buildCounterSearchServicesResponse++; if (buildCounterSearchServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed1668(); + o.services = buildUnnamed1678(); } buildCounterSearchServicesResponse--; return o; @@ -1821,110 +1823,110 @@ buildCounterSearchServicesResponse++; if (buildCounterSearchServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1668(o.services); + checkUnnamed1678(o.services); } buildCounterSearchServicesResponse--; } -buildUnnamed1669() { +buildUnnamed1679() { var o = new core.List<api.Api>(); o.add(buildApi()); o.add(buildApi()); return o; } -checkUnnamed1669(core.List<api.Api> o) { +checkUnnamed1679(core.List<api.Api> o) { unittest.expect(o, unittest.hasLength(2)); checkApi(o[0]); checkApi(o[1]); } -buildUnnamed1670() { +buildUnnamed1680() { var o = new core.List<api.Endpoint>(); o.add(buildEndpoint()); o.add(buildEndpoint()); return o; } -checkUnnamed1670(core.List<api.Endpoint> o) { +checkUnnamed1680(core.List<api.Endpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkEndpoint(o[0]); checkEndpoint(o[1]); } -buildUnnamed1671() { +buildUnnamed1681() { var o = new core.List<api.Enum>(); o.add(buildEnum()); o.add(buildEnum()); return o; } -checkUnnamed1671(core.List<api.Enum> o) { +checkUnnamed1681(core.List<api.Enum> o) { unittest.expect(o, unittest.hasLength(2)); checkEnum(o[0]); checkEnum(o[1]); } -buildUnnamed1672() { +buildUnnamed1682() { var o = new core.List<api.LogDescriptor>(); o.add(buildLogDescriptor()); o.add(buildLogDescriptor()); return o; } -checkUnnamed1672(core.List<api.LogDescriptor> o) { +checkUnnamed1682(core.List<api.LogDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLogDescriptor(o[0]); checkLogDescriptor(o[1]); } -buildUnnamed1673() { +buildUnnamed1683() { var o = new core.List<api.MetricDescriptor>(); o.add(buildMetricDescriptor()); o.add(buildMetricDescriptor()); return o; } -checkUnnamed1673(core.List<api.MetricDescriptor> o) { +checkUnnamed1683(core.List<api.MetricDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricDescriptor(o[0]); checkMetricDescriptor(o[1]); } -buildUnnamed1674() { +buildUnnamed1684() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed1674(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed1684(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); } -buildUnnamed1675() { +buildUnnamed1685() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed1675(core.List<api.Type> o) { +checkUnnamed1685(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); } -buildUnnamed1676() { +buildUnnamed1686() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed1676(core.List<api.Type> o) { +checkUnnamed1686(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); @@ -1935,7 +1937,7 @@ var o = new api.Service(); buildCounterService++; if (buildCounterService < 3) { - o.apis = buildUnnamed1669(); + o.apis = buildUnnamed1679(); o.authentication = buildAuthentication(); o.backend = buildBackend(); o.configVersion = 42; @@ -1943,24 +1945,24 @@ o.control = buildControl(); o.customError = buildCustomError(); o.documentation = buildDocumentation(); - o.endpoints = buildUnnamed1670(); - o.enums = buildUnnamed1671(); + o.endpoints = buildUnnamed1680(); + o.enums = buildUnnamed1681(); o.experimental = buildExperimental(); o.http = buildHttp(); o.id = "foo"; o.logging = buildLogging(); - o.logs = buildUnnamed1672(); - o.metrics = buildUnnamed1673(); - o.monitoredResources = buildUnnamed1674(); + o.logs = buildUnnamed1682(); + o.metrics = buildUnnamed1683(); + o.monitoredResources = buildUnnamed1684(); o.monitoring = buildMonitoring(); o.name = "foo"; o.producerProjectId = "foo"; o.quota = buildQuota(); o.sourceInfo = buildSourceInfo(); o.systemParameters = buildSystemParameters(); - o.systemTypes = buildUnnamed1675(); + o.systemTypes = buildUnnamed1685(); o.title = "foo"; - o.types = buildUnnamed1676(); + o.types = buildUnnamed1686(); o.usage = buildUsage(); o.visibility = buildVisibility(); } @@ -1971,7 +1973,7 @@ checkService(api.Service o) { buildCounterService++; if (buildCounterService < 3) { - checkUnnamed1669(o.apis); + checkUnnamed1679(o.apis); checkAuthentication(o.authentication); checkBackend(o.backend); unittest.expect(o.configVersion, unittest.equals(42)); @@ -1979,24 +1981,24 @@ checkControl(o.control); checkCustomError(o.customError); checkDocumentation(o.documentation); - checkUnnamed1670(o.endpoints); - checkUnnamed1671(o.enums); + checkUnnamed1680(o.endpoints); + checkUnnamed1681(o.enums); checkExperimental(o.experimental); checkHttp(o.http); unittest.expect(o.id, unittest.equals('foo')); checkLogging(o.logging); - checkUnnamed1672(o.logs); - checkUnnamed1673(o.metrics); - checkUnnamed1674(o.monitoredResources); + checkUnnamed1682(o.logs); + checkUnnamed1683(o.metrics); + checkUnnamed1684(o.monitoredResources); checkMonitoring(o.monitoring); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.producerProjectId, unittest.equals('foo')); checkQuota(o.quota); checkSourceInfo(o.sourceInfo); checkSystemParameters(o.systemParameters); - checkUnnamed1675(o.systemTypes); + checkUnnamed1685(o.systemTypes); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed1676(o.types); + checkUnnamed1686(o.types); checkUsage(o.usage); checkVisibility(o.visibility); } @@ -2022,30 +2024,30 @@ buildCounterSourceContext--; } -buildUnnamed1677() { +buildUnnamed1687() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1677(core.Map<core.String, core.Object> o) { +checkUnnamed1687(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed1678() { +buildUnnamed1688() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1677()); - o.add(buildUnnamed1677()); + o.add(buildUnnamed1687()); + o.add(buildUnnamed1687()); return o; } -checkUnnamed1678(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1688(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1677(o[0]); - checkUnnamed1677(o[1]); + checkUnnamed1687(o[0]); + checkUnnamed1687(o[1]); } core.int buildCounterSourceInfo = 0; @@ -2053,7 +2055,7 @@ var o = new api.SourceInfo(); buildCounterSourceInfo++; if (buildCounterSourceInfo < 3) { - o.sourceFiles = buildUnnamed1678(); + o.sourceFiles = buildUnnamed1688(); } buildCounterSourceInfo--; return o; @@ -2062,35 +2064,35 @@ checkSourceInfo(api.SourceInfo o) { buildCounterSourceInfo++; if (buildCounterSourceInfo < 3) { - checkUnnamed1678(o.sourceFiles); + checkUnnamed1688(o.sourceFiles); } buildCounterSourceInfo--; } -buildUnnamed1679() { +buildUnnamed1689() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1679(core.Map<core.String, core.Object> o) { +checkUnnamed1689(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted9 = (o["x"]) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo')); var casted10 = (o["y"]) as core.Map; unittest.expect(casted10, unittest.hasLength(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["string"], unittest.equals('foo')); } -buildUnnamed1680() { +buildUnnamed1690() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1679()); - o.add(buildUnnamed1679()); + o.add(buildUnnamed1689()); + o.add(buildUnnamed1689()); return o; } -checkUnnamed1680(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1690(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1679(o[0]); - checkUnnamed1679(o[1]); + checkUnnamed1689(o[0]); + checkUnnamed1689(o[1]); } core.int buildCounterStatus = 0; @@ -2099,7 +2101,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1680(); + o.details = buildUnnamed1690(); o.message = "foo"; } buildCounterStatus--; @@ -2110,7 +2112,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1680(o.details); + checkUnnamed1690(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -2160,14 +2162,14 @@ buildCounterSystemParameter--; } -buildUnnamed1681() { +buildUnnamed1691() { var o = new core.List<api.SystemParameter>(); o.add(buildSystemParameter()); o.add(buildSystemParameter()); return o; } -checkUnnamed1681(core.List<api.SystemParameter> o) { +checkUnnamed1691(core.List<api.SystemParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameter(o[0]); checkSystemParameter(o[1]); @@ -2178,7 +2180,7 @@ var o = new api.SystemParameterRule(); buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - o.parameters = buildUnnamed1681(); + o.parameters = buildUnnamed1691(); o.selector = "foo"; } buildCounterSystemParameterRule--; @@ -2188,20 +2190,20 @@ checkSystemParameterRule(api.SystemParameterRule o) { buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - checkUnnamed1681(o.parameters); + checkUnnamed1691(o.parameters); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterSystemParameterRule--; } -buildUnnamed1682() { +buildUnnamed1692() { var o = new core.List<api.SystemParameterRule>(); o.add(buildSystemParameterRule()); o.add(buildSystemParameterRule()); return o; } -checkUnnamed1682(core.List<api.SystemParameterRule> o) { +checkUnnamed1692(core.List<api.SystemParameterRule> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameterRule(o[0]); checkSystemParameterRule(o[1]); @@ -2212,7 +2214,7 @@ var o = new api.SystemParameters(); buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - o.rules = buildUnnamed1682(); + o.rules = buildUnnamed1692(); } buildCounterSystemParameters--; return o; @@ -2221,45 +2223,45 @@ checkSystemParameters(api.SystemParameters o) { buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - checkUnnamed1682(o.rules); + checkUnnamed1692(o.rules); } buildCounterSystemParameters--; } -buildUnnamed1683() { +buildUnnamed1693() { var o = new core.List<api.Field>(); o.add(buildField()); o.add(buildField()); return o; } -checkUnnamed1683(core.List<api.Field> o) { +checkUnnamed1693(core.List<api.Field> o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); } -buildUnnamed1684() { +buildUnnamed1694() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1684(core.List<core.String> o) { +checkUnnamed1694(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1685() { +buildUnnamed1695() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1685(core.List<api.Option> o) { +checkUnnamed1695(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -2270,10 +2272,10 @@ var o = new api.Type(); buildCounterType++; if (buildCounterType < 3) { - o.fields = buildUnnamed1683(); + o.fields = buildUnnamed1693(); o.name = "foo"; - o.oneofs = buildUnnamed1684(); - o.options = buildUnnamed1685(); + o.oneofs = buildUnnamed1694(); + o.options = buildUnnamed1695(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -2284,37 +2286,37 @@ checkType(api.Type o) { buildCounterType++; if (buildCounterType < 3) { - checkUnnamed1683(o.fields); + checkUnnamed1693(o.fields); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1684(o.oneofs); - checkUnnamed1685(o.options); + checkUnnamed1694(o.oneofs); + checkUnnamed1695(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } buildCounterType--; } -buildUnnamed1686() { +buildUnnamed1696() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1686(core.List<core.String> o) { +checkUnnamed1696(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1687() { +buildUnnamed1697() { var o = new core.List<api.UsageRule>(); o.add(buildUsageRule()); o.add(buildUsageRule()); return o; } -checkUnnamed1687(core.List<api.UsageRule> o) { +checkUnnamed1697(core.List<api.UsageRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageRule(o[0]); checkUsageRule(o[1]); @@ -2326,8 +2328,8 @@ buildCounterUsage++; if (buildCounterUsage < 3) { o.producerNotificationChannel = "foo"; - o.requirements = buildUnnamed1686(); - o.rules = buildUnnamed1687(); + o.requirements = buildUnnamed1696(); + o.rules = buildUnnamed1697(); } buildCounterUsage--; return o; @@ -2337,8 +2339,8 @@ buildCounterUsage++; if (buildCounterUsage < 3) { unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); - checkUnnamed1686(o.requirements); - checkUnnamed1687(o.rules); + checkUnnamed1696(o.requirements); + checkUnnamed1697(o.rules); } buildCounterUsage--; } @@ -2364,14 +2366,14 @@ buildCounterUsageRule--; } -buildUnnamed1688() { +buildUnnamed1698() { var o = new core.List<api.VisibilityRule>(); o.add(buildVisibilityRule()); o.add(buildVisibilityRule()); return o; } -checkUnnamed1688(core.List<api.VisibilityRule> o) { +checkUnnamed1698(core.List<api.VisibilityRule> o) { unittest.expect(o, unittest.hasLength(2)); checkVisibilityRule(o[0]); checkVisibilityRule(o[1]); @@ -2382,7 +2384,7 @@ var o = new api.Visibility(); buildCounterVisibility++; if (buildCounterVisibility < 3) { - o.rules = buildUnnamed1688(); + o.rules = buildUnnamed1698(); } buildCounterVisibility--; return o; @@ -2391,7 +2393,7 @@ checkVisibility(api.Visibility o) { buildCounterVisibility++; if (buildCounterVisibility < 3) { - checkUnnamed1688(o.rules); + checkUnnamed1698(o.rules); } buildCounterVisibility--; } @@ -2984,7 +2986,7 @@ api.ProjectsServicesResourceApi res = new api.ServiceuserApi(mock).projects.services; var arg_request = buildDisableServiceRequest(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DisableServiceRequest.fromJson(json); checkDisableServiceRequest(obj); @@ -3022,7 +3024,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.disable(arg_request, arg_name).then(unittest.expectAsync(((api.Operation response) { + res.disable(arg_request, arg_name).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3033,7 +3035,7 @@ api.ProjectsServicesResourceApi res = new api.ServiceuserApi(mock).projects.services; var arg_request = buildEnableServiceRequest(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.EnableServiceRequest.fromJson(json); checkEnableServiceRequest(obj); @@ -3071,7 +3073,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.enable(arg_request, arg_name).then(unittest.expectAsync(((api.Operation response) { + res.enable(arg_request, arg_name).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3083,7 +3085,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3120,7 +3122,7 @@ var resp = convert.JSON.encode(buildListEnabledServicesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListEnabledServicesResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListEnabledServicesResponse response) { checkListEnabledServicesResponse(response); }))); }); @@ -3135,7 +3137,7 @@ api.ServicesResourceApi res = new api.ServiceuserApi(mock).services; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3171,7 +3173,7 @@ var resp = convert.JSON.encode(buildSearchServicesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.search(pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.SearchServicesResponse response) { + res.search(pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.SearchServicesResponse response) { checkSearchServicesResponse(response); }))); });
diff --git a/generated/googleapis/test/siteverification/v1_test.dart b/generated/googleapis/test/siteverification/v1_test.dart index 046ca61..5aa4d2b 100644 --- a/generated/googleapis/test/siteverification/v1_test.dart +++ b/generated/googleapis/test/siteverification/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/siteverification/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -114,14 +114,14 @@ buildCounterSiteVerificationWebResourceGettokenResponse--; } -buildUnnamed109() { +buildUnnamed111() { var o = new core.List<api.SiteVerificationWebResourceResource>(); o.add(buildSiteVerificationWebResourceResource()); o.add(buildSiteVerificationWebResourceResource()); return o; } -checkUnnamed109(core.List<api.SiteVerificationWebResourceResource> o) { +checkUnnamed111(core.List<api.SiteVerificationWebResourceResource> o) { unittest.expect(o, unittest.hasLength(2)); checkSiteVerificationWebResourceResource(o[0]); checkSiteVerificationWebResourceResource(o[1]); @@ -132,7 +132,7 @@ var o = new api.SiteVerificationWebResourceListResponse(); buildCounterSiteVerificationWebResourceListResponse++; if (buildCounterSiteVerificationWebResourceListResponse < 3) { - o.items = buildUnnamed109(); + o.items = buildUnnamed111(); } buildCounterSiteVerificationWebResourceListResponse--; return o; @@ -141,19 +141,19 @@ checkSiteVerificationWebResourceListResponse(api.SiteVerificationWebResourceListResponse o) { buildCounterSiteVerificationWebResourceListResponse++; if (buildCounterSiteVerificationWebResourceListResponse < 3) { - checkUnnamed109(o.items); + checkUnnamed111(o.items); } buildCounterSiteVerificationWebResourceListResponse--; } -buildUnnamed110() { +buildUnnamed112() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed110(core.List<core.String> o) { +checkUnnamed112(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -186,7 +186,7 @@ buildCounterSiteVerificationWebResourceResource++; if (buildCounterSiteVerificationWebResourceResource < 3) { o.id = "foo"; - o.owners = buildUnnamed110(); + o.owners = buildUnnamed112(); o.site = buildSiteVerificationWebResourceResourceSite(); } buildCounterSiteVerificationWebResourceResource--; @@ -197,7 +197,7 @@ buildCounterSiteVerificationWebResourceResource++; if (buildCounterSiteVerificationWebResourceResource < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed110(o.owners); + checkUnnamed112(o.owners); checkSiteVerificationWebResourceResourceSite(o.site); } buildCounterSiteVerificationWebResourceResource--; @@ -265,7 +265,7 @@ var mock = new HttpServerMock(); api.WebResourceResourceApi res = new api.SiteVerificationApi(mock).webResource; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -304,7 +304,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_id).then(unittest.expectAsync((_) {})); + res.delete(arg_id).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -312,7 +312,7 @@ var mock = new HttpServerMock(); api.WebResourceResourceApi res = new api.SiteVerificationApi(mock).webResource; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -351,7 +351,7 @@ var resp = convert.JSON.encode(buildSiteVerificationWebResourceResource()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_id).then(unittest.expectAsync(((api.SiteVerificationWebResourceResource response) { + res.get(arg_id).then(unittest.expectAsync1(((api.SiteVerificationWebResourceResource response) { checkSiteVerificationWebResourceResource(response); }))); }); @@ -361,7 +361,7 @@ var mock = new HttpServerMock(); api.WebResourceResourceApi res = new api.SiteVerificationApi(mock).webResource; var arg_request = buildSiteVerificationWebResourceGettokenRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SiteVerificationWebResourceGettokenRequest.fromJson(json); checkSiteVerificationWebResourceGettokenRequest(obj); @@ -400,7 +400,7 @@ var resp = convert.JSON.encode(buildSiteVerificationWebResourceGettokenResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getToken(arg_request).then(unittest.expectAsync(((api.SiteVerificationWebResourceGettokenResponse response) { + res.getToken(arg_request).then(unittest.expectAsync1(((api.SiteVerificationWebResourceGettokenResponse response) { checkSiteVerificationWebResourceGettokenResponse(response); }))); }); @@ -411,7 +411,7 @@ api.WebResourceResourceApi res = new api.SiteVerificationApi(mock).webResource; var arg_request = buildSiteVerificationWebResourceResource(); var arg_verificationMethod = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SiteVerificationWebResourceResource.fromJson(json); checkSiteVerificationWebResourceResource(obj); @@ -451,7 +451,7 @@ var resp = convert.JSON.encode(buildSiteVerificationWebResourceResource()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_verificationMethod).then(unittest.expectAsync(((api.SiteVerificationWebResourceResource response) { + res.insert(arg_request, arg_verificationMethod).then(unittest.expectAsync1(((api.SiteVerificationWebResourceResource response) { checkSiteVerificationWebResourceResource(response); }))); }); @@ -460,7 +460,7 @@ var mock = new HttpServerMock(); api.WebResourceResourceApi res = new api.SiteVerificationApi(mock).webResource; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -496,7 +496,7 @@ var resp = convert.JSON.encode(buildSiteVerificationWebResourceListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list().then(unittest.expectAsync(((api.SiteVerificationWebResourceListResponse response) { + res.list().then(unittest.expectAsync1(((api.SiteVerificationWebResourceListResponse response) { checkSiteVerificationWebResourceListResponse(response); }))); }); @@ -507,7 +507,7 @@ api.WebResourceResourceApi res = new api.SiteVerificationApi(mock).webResource; var arg_request = buildSiteVerificationWebResourceResource(); var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SiteVerificationWebResourceResource.fromJson(json); checkSiteVerificationWebResourceResource(obj); @@ -549,7 +549,7 @@ var resp = convert.JSON.encode(buildSiteVerificationWebResourceResource()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_id).then(unittest.expectAsync(((api.SiteVerificationWebResourceResource response) { + res.patch(arg_request, arg_id).then(unittest.expectAsync1(((api.SiteVerificationWebResourceResource response) { checkSiteVerificationWebResourceResource(response); }))); }); @@ -560,7 +560,7 @@ api.WebResourceResourceApi res = new api.SiteVerificationApi(mock).webResource; var arg_request = buildSiteVerificationWebResourceResource(); var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SiteVerificationWebResourceResource.fromJson(json); checkSiteVerificationWebResourceResource(obj); @@ -602,7 +602,7 @@ var resp = convert.JSON.encode(buildSiteVerificationWebResourceResource()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_id).then(unittest.expectAsync(((api.SiteVerificationWebResourceResource response) { + res.update(arg_request, arg_id).then(unittest.expectAsync1(((api.SiteVerificationWebResourceResource response) { checkSiteVerificationWebResourceResource(response); }))); });
diff --git a/generated/googleapis/test/slides/v1_test.dart b/generated/googleapis/test/slides/v1_test.dart index 2b1aa8c..d62c3d2 100644 --- a/generated/googleapis/test/slides/v1_test.dart +++ b/generated/googleapis/test/slides/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/slides/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -105,14 +105,14 @@ buildCounterAutoText--; } -buildUnnamed1582() { +buildUnnamed1589() { var o = new core.List<api.Request>(); o.add(buildRequest()); o.add(buildRequest()); return o; } -checkUnnamed1582(core.List<api.Request> o) { +checkUnnamed1589(core.List<api.Request> o) { unittest.expect(o, unittest.hasLength(2)); checkRequest(o[0]); checkRequest(o[1]); @@ -123,7 +123,7 @@ var o = new api.BatchUpdatePresentationRequest(); buildCounterBatchUpdatePresentationRequest++; if (buildCounterBatchUpdatePresentationRequest < 3) { - o.requests = buildUnnamed1582(); + o.requests = buildUnnamed1589(); o.writeControl = buildWriteControl(); } buildCounterBatchUpdatePresentationRequest--; @@ -133,20 +133,20 @@ checkBatchUpdatePresentationRequest(api.BatchUpdatePresentationRequest o) { buildCounterBatchUpdatePresentationRequest++; if (buildCounterBatchUpdatePresentationRequest < 3) { - checkUnnamed1582(o.requests); + checkUnnamed1589(o.requests); checkWriteControl(o.writeControl); } buildCounterBatchUpdatePresentationRequest--; } -buildUnnamed1583() { +buildUnnamed1590() { var o = new core.List<api.Response>(); o.add(buildResponse()); o.add(buildResponse()); return o; } -checkUnnamed1583(core.List<api.Response> o) { +checkUnnamed1590(core.List<api.Response> o) { unittest.expect(o, unittest.hasLength(2)); checkResponse(o[0]); checkResponse(o[1]); @@ -158,7 +158,7 @@ buildCounterBatchUpdatePresentationResponse++; if (buildCounterBatchUpdatePresentationResponse < 3) { o.presentationId = "foo"; - o.replies = buildUnnamed1583(); + o.replies = buildUnnamed1590(); } buildCounterBatchUpdatePresentationResponse--; return o; @@ -168,7 +168,7 @@ buildCounterBatchUpdatePresentationResponse++; if (buildCounterBatchUpdatePresentationResponse < 3) { unittest.expect(o.presentationId, unittest.equals('foo')); - checkUnnamed1583(o.replies); + checkUnnamed1590(o.replies); } buildCounterBatchUpdatePresentationResponse--; } @@ -198,14 +198,14 @@ buildCounterBullet--; } -buildUnnamed1584() { +buildUnnamed1591() { var o = new core.List<api.ThemeColorPair>(); o.add(buildThemeColorPair()); o.add(buildThemeColorPair()); return o; } -checkUnnamed1584(core.List<api.ThemeColorPair> o) { +checkUnnamed1591(core.List<api.ThemeColorPair> o) { unittest.expect(o, unittest.hasLength(2)); checkThemeColorPair(o[0]); checkThemeColorPair(o[1]); @@ -216,7 +216,7 @@ var o = new api.ColorScheme(); buildCounterColorScheme++; if (buildCounterColorScheme < 3) { - o.colors = buildUnnamed1584(); + o.colors = buildUnnamed1591(); } buildCounterColorScheme--; return o; @@ -225,7 +225,7 @@ checkColorScheme(api.ColorScheme o) { buildCounterColorScheme++; if (buildCounterColorScheme < 3) { - checkUnnamed1584(o.colors); + checkUnnamed1591(o.colors); } buildCounterColorScheme--; } @@ -450,14 +450,14 @@ buildCounterCreateSheetsChartResponse--; } -buildUnnamed1585() { +buildUnnamed1592() { var o = new core.List<api.LayoutPlaceholderIdMapping>(); o.add(buildLayoutPlaceholderIdMapping()); o.add(buildLayoutPlaceholderIdMapping()); return o; } -checkUnnamed1585(core.List<api.LayoutPlaceholderIdMapping> o) { +checkUnnamed1592(core.List<api.LayoutPlaceholderIdMapping> o) { unittest.expect(o, unittest.hasLength(2)); checkLayoutPlaceholderIdMapping(o[0]); checkLayoutPlaceholderIdMapping(o[1]); @@ -470,7 +470,7 @@ if (buildCounterCreateSlideRequest < 3) { o.insertionIndex = 42; o.objectId = "foo"; - o.placeholderIdMappings = buildUnnamed1585(); + o.placeholderIdMappings = buildUnnamed1592(); o.slideLayoutReference = buildLayoutReference(); } buildCounterCreateSlideRequest--; @@ -482,7 +482,7 @@ if (buildCounterCreateSlideRequest < 3) { unittest.expect(o.insertionIndex, unittest.equals(42)); unittest.expect(o.objectId, unittest.equals('foo')); - checkUnnamed1585(o.placeholderIdMappings); + checkUnnamed1592(o.placeholderIdMappings); checkLayoutReference(o.slideLayoutReference); } buildCounterCreateSlideRequest--; @@ -750,14 +750,14 @@ buildCounterDimension--; } -buildUnnamed1586() { +buildUnnamed1593() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1586(core.Map<core.String, core.String> o) { +checkUnnamed1593(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -769,7 +769,7 @@ buildCounterDuplicateObjectRequest++; if (buildCounterDuplicateObjectRequest < 3) { o.objectId = "foo"; - o.objectIds = buildUnnamed1586(); + o.objectIds = buildUnnamed1593(); } buildCounterDuplicateObjectRequest--; return o; @@ -779,7 +779,7 @@ buildCounterDuplicateObjectRequest++; if (buildCounterDuplicateObjectRequest < 3) { unittest.expect(o.objectId, unittest.equals('foo')); - checkUnnamed1586(o.objectIds); + checkUnnamed1593(o.objectIds); } buildCounterDuplicateObjectRequest--; } @@ -803,14 +803,14 @@ buildCounterDuplicateObjectResponse--; } -buildUnnamed1587() { +buildUnnamed1594() { var o = new core.List<api.PageElement>(); o.add(buildPageElement()); o.add(buildPageElement()); return o; } -checkUnnamed1587(core.List<api.PageElement> o) { +checkUnnamed1594(core.List<api.PageElement> o) { unittest.expect(o, unittest.hasLength(2)); checkPageElement(o[0]); checkPageElement(o[1]); @@ -821,7 +821,7 @@ var o = new api.Group(); buildCounterGroup++; if (buildCounterGroup < 3) { - o.children = buildUnnamed1587(); + o.children = buildUnnamed1594(); } buildCounterGroup--; return o; @@ -830,7 +830,7 @@ checkGroup(api.Group o) { buildCounterGroup++; if (buildCounterGroup < 3) { - checkUnnamed1587(o.children); + checkUnnamed1594(o.children); } buildCounterGroup--; } @@ -1125,14 +1125,14 @@ buildCounterLink--; } -buildUnnamed1588() { +buildUnnamed1595() { var o = new core.Map<core.String, api.NestingLevel>(); o["x"] = buildNestingLevel(); o["y"] = buildNestingLevel(); return o; } -checkUnnamed1588(core.Map<core.String, api.NestingLevel> o) { +checkUnnamed1595(core.Map<core.String, api.NestingLevel> o) { unittest.expect(o, unittest.hasLength(2)); checkNestingLevel(o["x"]); checkNestingLevel(o["y"]); @@ -1144,7 +1144,7 @@ buildCounterList++; if (buildCounterList < 3) { o.listId = "foo"; - o.nestingLevel = buildUnnamed1588(); + o.nestingLevel = buildUnnamed1595(); } buildCounterList--; return o; @@ -1154,7 +1154,7 @@ buildCounterList++; if (buildCounterList < 3) { unittest.expect(o.listId, unittest.equals('foo')); - checkUnnamed1588(o.nestingLevel); + checkUnnamed1595(o.nestingLevel); } buildCounterList--; } @@ -1281,14 +1281,14 @@ buildCounterOutlineFill--; } -buildUnnamed1589() { +buildUnnamed1596() { var o = new core.List<api.PageElement>(); o.add(buildPageElement()); o.add(buildPageElement()); return o; } -checkUnnamed1589(core.List<api.PageElement> o) { +checkUnnamed1596(core.List<api.PageElement> o) { unittest.expect(o, unittest.hasLength(2)); checkPageElement(o[0]); checkPageElement(o[1]); @@ -1302,7 +1302,7 @@ o.layoutProperties = buildLayoutProperties(); o.notesProperties = buildNotesProperties(); o.objectId = "foo"; - o.pageElements = buildUnnamed1589(); + o.pageElements = buildUnnamed1596(); o.pageProperties = buildPageProperties(); o.pageType = "foo"; o.revisionId = "foo"; @@ -1318,7 +1318,7 @@ checkLayoutProperties(o.layoutProperties); checkNotesProperties(o.notesProperties); unittest.expect(o.objectId, unittest.equals('foo')); - checkUnnamed1589(o.pageElements); + checkUnnamed1596(o.pageElements); checkPageProperties(o.pageProperties); unittest.expect(o.pageType, unittest.equals('foo')); unittest.expect(o.revisionId, unittest.equals('foo')); @@ -1516,40 +1516,40 @@ buildCounterPlaceholder--; } -buildUnnamed1590() { +buildUnnamed1597() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1590(core.List<api.Page> o) { +checkUnnamed1597(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); } -buildUnnamed1591() { +buildUnnamed1598() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1591(core.List<api.Page> o) { +checkUnnamed1598(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); } -buildUnnamed1592() { +buildUnnamed1599() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1592(core.List<api.Page> o) { +checkUnnamed1599(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -1560,14 +1560,14 @@ var o = new api.Presentation(); buildCounterPresentation++; if (buildCounterPresentation < 3) { - o.layouts = buildUnnamed1590(); + o.layouts = buildUnnamed1597(); o.locale = "foo"; - o.masters = buildUnnamed1591(); + o.masters = buildUnnamed1598(); o.notesMaster = buildPage(); o.pageSize = buildSize(); o.presentationId = "foo"; o.revisionId = "foo"; - o.slides = buildUnnamed1592(); + o.slides = buildUnnamed1599(); o.title = "foo"; } buildCounterPresentation--; @@ -1577,14 +1577,14 @@ checkPresentation(api.Presentation o) { buildCounterPresentation++; if (buildCounterPresentation < 3) { - checkUnnamed1590(o.layouts); + checkUnnamed1597(o.layouts); unittest.expect(o.locale, unittest.equals('foo')); - checkUnnamed1591(o.masters); + checkUnnamed1598(o.masters); checkPage(o.notesMaster); checkSize(o.pageSize); unittest.expect(o.presentationId, unittest.equals('foo')); unittest.expect(o.revisionId, unittest.equals('foo')); - checkUnnamed1592(o.slides); + checkUnnamed1599(o.slides); unittest.expect(o.title, unittest.equals('foo')); } buildCounterPresentation--; @@ -1613,14 +1613,14 @@ buildCounterRange--; } -buildUnnamed1593() { +buildUnnamed1600() { var o = new core.List<api.ColorStop>(); o.add(buildColorStop()); o.add(buildColorStop()); return o; } -checkUnnamed1593(core.List<api.ColorStop> o) { +checkUnnamed1600(core.List<api.ColorStop> o) { unittest.expect(o, unittest.hasLength(2)); checkColorStop(o[0]); checkColorStop(o[1]); @@ -1632,7 +1632,7 @@ buildCounterRecolor++; if (buildCounterRecolor < 3) { o.name = "foo"; - o.recolorStops = buildUnnamed1593(); + o.recolorStops = buildUnnamed1600(); } buildCounterRecolor--; return o; @@ -1642,7 +1642,7 @@ buildCounterRecolor++; if (buildCounterRecolor < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1593(o.recolorStops); + checkUnnamed1600(o.recolorStops); } buildCounterRecolor--; } @@ -1666,6 +1666,19 @@ buildCounterRefreshSheetsChartRequest--; } +buildUnnamed1601() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1601(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterReplaceAllShapesWithImageRequest = 0; buildReplaceAllShapesWithImageRequest() { var o = new api.ReplaceAllShapesWithImageRequest(); @@ -1673,6 +1686,7 @@ if (buildCounterReplaceAllShapesWithImageRequest < 3) { o.containsText = buildSubstringMatchCriteria(); o.imageUrl = "foo"; + o.pageObjectIds = buildUnnamed1601(); o.replaceMethod = "foo"; } buildCounterReplaceAllShapesWithImageRequest--; @@ -1684,6 +1698,7 @@ if (buildCounterReplaceAllShapesWithImageRequest < 3) { checkSubstringMatchCriteria(o.containsText); unittest.expect(o.imageUrl, unittest.equals('foo')); + checkUnnamed1601(o.pageObjectIds); unittest.expect(o.replaceMethod, unittest.equals('foo')); } buildCounterReplaceAllShapesWithImageRequest--; @@ -1708,6 +1723,19 @@ buildCounterReplaceAllShapesWithImageResponse--; } +buildUnnamed1602() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1602(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterReplaceAllShapesWithSheetsChartRequest = 0; buildReplaceAllShapesWithSheetsChartRequest() { var o = new api.ReplaceAllShapesWithSheetsChartRequest(); @@ -1716,6 +1744,7 @@ o.chartId = 42; o.containsText = buildSubstringMatchCriteria(); o.linkingMode = "foo"; + o.pageObjectIds = buildUnnamed1602(); o.spreadsheetId = "foo"; } buildCounterReplaceAllShapesWithSheetsChartRequest--; @@ -1728,6 +1757,7 @@ unittest.expect(o.chartId, unittest.equals(42)); checkSubstringMatchCriteria(o.containsText); unittest.expect(o.linkingMode, unittest.equals('foo')); + checkUnnamed1602(o.pageObjectIds); unittest.expect(o.spreadsheetId, unittest.equals('foo')); } buildCounterReplaceAllShapesWithSheetsChartRequest--; @@ -1752,12 +1782,26 @@ buildCounterReplaceAllShapesWithSheetsChartResponse--; } +buildUnnamed1603() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1603(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterReplaceAllTextRequest = 0; buildReplaceAllTextRequest() { var o = new api.ReplaceAllTextRequest(); buildCounterReplaceAllTextRequest++; if (buildCounterReplaceAllTextRequest < 3) { o.containsText = buildSubstringMatchCriteria(); + o.pageObjectIds = buildUnnamed1603(); o.replaceText = "foo"; } buildCounterReplaceAllTextRequest--; @@ -1768,6 +1812,7 @@ buildCounterReplaceAllTextRequest++; if (buildCounterReplaceAllTextRequest < 3) { checkSubstringMatchCriteria(o.containsText); + checkUnnamed1603(o.pageObjectIds); unittest.expect(o.replaceText, unittest.equals('foo')); } buildCounterReplaceAllTextRequest--; @@ -2188,27 +2233,27 @@ buildCounterSubstringMatchCriteria--; } -buildUnnamed1594() { +buildUnnamed1604() { var o = new core.List<api.TableColumnProperties>(); o.add(buildTableColumnProperties()); o.add(buildTableColumnProperties()); return o; } -checkUnnamed1594(core.List<api.TableColumnProperties> o) { +checkUnnamed1604(core.List<api.TableColumnProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkTableColumnProperties(o[0]); checkTableColumnProperties(o[1]); } -buildUnnamed1595() { +buildUnnamed1605() { var o = new core.List<api.TableRow>(); o.add(buildTableRow()); o.add(buildTableRow()); return o; } -checkUnnamed1595(core.List<api.TableRow> o) { +checkUnnamed1605(core.List<api.TableRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTableRow(o[0]); checkTableRow(o[1]); @@ -2221,8 +2266,8 @@ if (buildCounterTable < 3) { o.columns = 42; o.rows = 42; - o.tableColumns = buildUnnamed1594(); - o.tableRows = buildUnnamed1595(); + o.tableColumns = buildUnnamed1604(); + o.tableRows = buildUnnamed1605(); } buildCounterTable--; return o; @@ -2233,8 +2278,8 @@ if (buildCounterTable < 3) { unittest.expect(o.columns, unittest.equals(42)); unittest.expect(o.rows, unittest.equals(42)); - checkUnnamed1594(o.tableColumns); - checkUnnamed1595(o.tableRows); + checkUnnamed1604(o.tableColumns); + checkUnnamed1605(o.tableRows); } buildCounterTable--; } @@ -2369,14 +2414,14 @@ buildCounterTableRange--; } -buildUnnamed1596() { +buildUnnamed1606() { var o = new core.List<api.TableCell>(); o.add(buildTableCell()); o.add(buildTableCell()); return o; } -checkUnnamed1596(core.List<api.TableCell> o) { +checkUnnamed1606(core.List<api.TableCell> o) { unittest.expect(o, unittest.hasLength(2)); checkTableCell(o[0]); checkTableCell(o[1]); @@ -2388,7 +2433,7 @@ buildCounterTableRow++; if (buildCounterTableRow < 3) { o.rowHeight = buildDimension(); - o.tableCells = buildUnnamed1596(); + o.tableCells = buildUnnamed1606(); } buildCounterTableRow--; return o; @@ -2398,32 +2443,32 @@ buildCounterTableRow++; if (buildCounterTableRow < 3) { checkDimension(o.rowHeight); - checkUnnamed1596(o.tableCells); + checkUnnamed1606(o.tableCells); } buildCounterTableRow--; } -buildUnnamed1597() { +buildUnnamed1607() { var o = new core.Map<core.String, api.List>(); o["x"] = buildList(); o["y"] = buildList(); return o; } -checkUnnamed1597(core.Map<core.String, api.List> o) { +checkUnnamed1607(core.Map<core.String, api.List> o) { unittest.expect(o, unittest.hasLength(2)); checkList(o["x"]); checkList(o["y"]); } -buildUnnamed1598() { +buildUnnamed1608() { var o = new core.List<api.TextElement>(); o.add(buildTextElement()); o.add(buildTextElement()); return o; } -checkUnnamed1598(core.List<api.TextElement> o) { +checkUnnamed1608(core.List<api.TextElement> o) { unittest.expect(o, unittest.hasLength(2)); checkTextElement(o[0]); checkTextElement(o[1]); @@ -2434,8 +2479,8 @@ var o = new api.TextContent(); buildCounterTextContent++; if (buildCounterTextContent < 3) { - o.lists = buildUnnamed1597(); - o.textElements = buildUnnamed1598(); + o.lists = buildUnnamed1607(); + o.textElements = buildUnnamed1608(); } buildCounterTextContent--; return o; @@ -2444,8 +2489,8 @@ checkTextContent(api.TextContent o) { buildCounterTextContent++; if (buildCounterTextContent < 3) { - checkUnnamed1597(o.lists); - checkUnnamed1598(o.textElements); + checkUnnamed1607(o.lists); + checkUnnamed1608(o.textElements); } buildCounterTextContent--; } @@ -2725,14 +2770,14 @@ buildCounterUpdateShapePropertiesRequest--; } -buildUnnamed1599() { +buildUnnamed1609() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1599(core.List<core.String> o) { +checkUnnamed1609(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2744,7 +2789,7 @@ buildCounterUpdateSlidesPositionRequest++; if (buildCounterUpdateSlidesPositionRequest < 3) { o.insertionIndex = 42; - o.slideObjectIds = buildUnnamed1599(); + o.slideObjectIds = buildUnnamed1609(); } buildCounterUpdateSlidesPositionRequest--; return o; @@ -2754,7 +2799,7 @@ buildCounterUpdateSlidesPositionRequest++; if (buildCounterUpdateSlidesPositionRequest < 3) { unittest.expect(o.insertionIndex, unittest.equals(42)); - checkUnnamed1599(o.slideObjectIds); + checkUnnamed1609(o.slideObjectIds); } buildCounterUpdateSlidesPositionRequest--; } @@ -3954,7 +3999,7 @@ api.PresentationsResourceApi res = new api.SlidesApi(mock).presentations; var arg_request = buildBatchUpdatePresentationRequest(); var arg_presentationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.BatchUpdatePresentationRequest.fromJson(json); checkBatchUpdatePresentationRequest(obj); @@ -3998,7 +4043,7 @@ var resp = convert.JSON.encode(buildBatchUpdatePresentationResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.batchUpdate(arg_request, arg_presentationId).then(unittest.expectAsync(((api.BatchUpdatePresentationResponse response) { + res.batchUpdate(arg_request, arg_presentationId).then(unittest.expectAsync1(((api.BatchUpdatePresentationResponse response) { checkBatchUpdatePresentationResponse(response); }))); }); @@ -4008,7 +4053,7 @@ var mock = new HttpServerMock(); api.PresentationsResourceApi res = new api.SlidesApi(mock).presentations; var arg_request = buildPresentation(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Presentation.fromJson(json); checkPresentation(obj); @@ -4045,7 +4090,7 @@ var resp = convert.JSON.encode(buildPresentation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request).then(unittest.expectAsync(((api.Presentation response) { + res.create(arg_request).then(unittest.expectAsync1(((api.Presentation response) { checkPresentation(response); }))); }); @@ -4055,7 +4100,7 @@ var mock = new HttpServerMock(); api.PresentationsResourceApi res = new api.SlidesApi(mock).presentations; var arg_presentationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4090,7 +4135,7 @@ var resp = convert.JSON.encode(buildPresentation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_presentationId).then(unittest.expectAsync(((api.Presentation response) { + res.get(arg_presentationId).then(unittest.expectAsync1(((api.Presentation response) { checkPresentation(response); }))); }); @@ -4105,7 +4150,7 @@ api.PresentationsPagesResourceApi res = new api.SlidesApi(mock).presentations.pages; var arg_presentationId = "foo"; var arg_pageObjectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4149,7 +4194,7 @@ var resp = convert.JSON.encode(buildPage()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_presentationId, arg_pageObjectId).then(unittest.expectAsync(((api.Page response) { + res.get(arg_presentationId, arg_pageObjectId).then(unittest.expectAsync1(((api.Page response) { checkPage(response); }))); }); @@ -4162,7 +4207,7 @@ var arg_pageObjectId = "foo"; var arg_thumbnailProperties_mimeType = "foo"; var arg_thumbnailProperties_thumbnailSize = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4212,7 +4257,7 @@ var resp = convert.JSON.encode(buildThumbnail()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getThumbnail(arg_presentationId, arg_pageObjectId, thumbnailProperties_mimeType: arg_thumbnailProperties_mimeType, thumbnailProperties_thumbnailSize: arg_thumbnailProperties_thumbnailSize).then(unittest.expectAsync(((api.Thumbnail response) { + res.getThumbnail(arg_presentationId, arg_pageObjectId, thumbnailProperties_mimeType: arg_thumbnailProperties_mimeType, thumbnailProperties_thumbnailSize: arg_thumbnailProperties_thumbnailSize).then(unittest.expectAsync1(((api.Thumbnail response) { checkThumbnail(response); }))); });
diff --git a/generated/googleapis/test/sourcerepo/v1_test.dart b/generated/googleapis/test/sourcerepo/v1_test.dart index 847d62a..76ba6df 100644 --- a/generated/googleapis/test/sourcerepo/v1_test.dart +++ b/generated/googleapis/test/sourcerepo/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/sourcerepo/v1.dart' as api; @@ -46,32 +46,32 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed436() { +buildUnnamed440() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed436(core.List<api.AuditLogConfig> o) { +checkUnnamed440(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); } -buildUnnamed437() { +buildUnnamed441() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed437(core.List<core.String> o) { +checkUnnamed441(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -82,8 +82,8 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed436(); - o.exemptedMembers = buildUnnamed437(); + o.auditLogConfigs = buildUnnamed440(); + o.exemptedMembers = buildUnnamed441(); o.service = "foo"; } buildCounterAuditConfig--; @@ -93,21 +93,21 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed436(o.auditLogConfigs); - checkUnnamed437(o.exemptedMembers); + checkUnnamed440(o.auditLogConfigs); + checkUnnamed441(o.exemptedMembers); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed438() { +buildUnnamed442() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed438(core.List<core.String> o) { +checkUnnamed442(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -118,7 +118,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed438(); + o.exemptedMembers = buildUnnamed442(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -128,20 +128,20 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed438(o.exemptedMembers); + checkUnnamed442(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed439() { +buildUnnamed443() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed439(core.List<core.String> o) { +checkUnnamed443(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -152,7 +152,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed439(); + o.members = buildUnnamed443(); o.role = "foo"; } buildCounterBinding--; @@ -162,7 +162,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed439(o.members); + checkUnnamed443(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -173,6 +173,7 @@ var o = new api.CloudAuditOptions(); buildCounterCloudAuditOptions++; if (buildCounterCloudAuditOptions < 3) { + o.logName = "foo"; } buildCounterCloudAuditOptions--; return o; @@ -181,18 +182,19 @@ checkCloudAuditOptions(api.CloudAuditOptions o) { buildCounterCloudAuditOptions++; if (buildCounterCloudAuditOptions < 3) { + unittest.expect(o.logName, unittest.equals('foo')); } buildCounterCloudAuditOptions--; } -buildUnnamed440() { +buildUnnamed444() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed440(core.List<core.String> o) { +checkUnnamed444(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -208,7 +210,7 @@ o.svc = "foo"; o.sys = "foo"; o.value = "foo"; - o.values = buildUnnamed440(); + o.values = buildUnnamed444(); } buildCounterCondition--; return o; @@ -222,7 +224,7 @@ unittest.expect(o.svc, unittest.equals('foo')); unittest.expect(o.sys, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); - checkUnnamed440(o.values); + checkUnnamed444(o.values); } buildCounterCondition--; } @@ -282,14 +284,14 @@ buildCounterEmpty--; } -buildUnnamed441() { +buildUnnamed445() { var o = new core.List<api.Repo>(); o.add(buildRepo()); o.add(buildRepo()); return o; } -checkUnnamed441(core.List<api.Repo> o) { +checkUnnamed445(core.List<api.Repo> o) { unittest.expect(o, unittest.hasLength(2)); checkRepo(o[0]); checkRepo(o[1]); @@ -301,7 +303,7 @@ buildCounterListReposResponse++; if (buildCounterListReposResponse < 3) { o.nextPageToken = "foo"; - o.repos = buildUnnamed441(); + o.repos = buildUnnamed445(); } buildCounterListReposResponse--; return o; @@ -311,7 +313,7 @@ buildCounterListReposResponse++; if (buildCounterListReposResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed441(o.repos); + checkUnnamed445(o.repos); } buildCounterListReposResponse--; } @@ -362,40 +364,40 @@ buildCounterMirrorConfig--; } -buildUnnamed442() { +buildUnnamed446() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed442(core.List<api.AuditConfig> o) { +checkUnnamed446(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed443() { +buildUnnamed447() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed443(core.List<api.Binding> o) { +checkUnnamed447(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); } -buildUnnamed444() { +buildUnnamed448() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed444(core.List<api.Rule> o) { +checkUnnamed448(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); @@ -406,11 +408,11 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed442(); - o.bindings = buildUnnamed443(); + o.auditConfigs = buildUnnamed446(); + o.bindings = buildUnnamed447(); o.etag = "foo"; o.iamOwned = true; - o.rules = buildUnnamed444(); + o.rules = buildUnnamed448(); o.version = 42; } buildCounterPolicy--; @@ -420,11 +422,11 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed442(o.auditConfigs); - checkUnnamed443(o.bindings); + checkUnnamed446(o.auditConfigs); + checkUnnamed447(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.iamOwned, unittest.isTrue); - checkUnnamed444(o.rules); + checkUnnamed448(o.rules); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; @@ -455,66 +457,66 @@ buildCounterRepo--; } -buildUnnamed445() { +buildUnnamed449() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed445(core.List<api.Condition> o) { +checkUnnamed449(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed446() { +buildUnnamed450() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed446(core.List<core.String> o) { +checkUnnamed450(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed447() { +buildUnnamed451() { var o = new core.List<api.LogConfig>(); o.add(buildLogConfig()); o.add(buildLogConfig()); return o; } -checkUnnamed447(core.List<api.LogConfig> o) { +checkUnnamed451(core.List<api.LogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkLogConfig(o[0]); checkLogConfig(o[1]); } -buildUnnamed448() { +buildUnnamed452() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed448(core.List<core.String> o) { +checkUnnamed452(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed449() { +buildUnnamed453() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed449(core.List<core.String> o) { +checkUnnamed453(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -526,12 +528,12 @@ buildCounterRule++; if (buildCounterRule < 3) { o.action = "foo"; - o.conditions = buildUnnamed445(); + o.conditions = buildUnnamed449(); o.description = "foo"; - o.in_ = buildUnnamed446(); - o.logConfig = buildUnnamed447(); - o.notIn = buildUnnamed448(); - o.permissions = buildUnnamed449(); + o.in_ = buildUnnamed450(); + o.logConfig = buildUnnamed451(); + o.notIn = buildUnnamed452(); + o.permissions = buildUnnamed453(); } buildCounterRule--; return o; @@ -541,12 +543,12 @@ buildCounterRule++; if (buildCounterRule < 3) { unittest.expect(o.action, unittest.equals('foo')); - checkUnnamed445(o.conditions); + checkUnnamed449(o.conditions); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed446(o.in_); - checkUnnamed447(o.logConfig); - checkUnnamed448(o.notIn); - checkUnnamed449(o.permissions); + checkUnnamed450(o.in_); + checkUnnamed451(o.logConfig); + checkUnnamed452(o.notIn); + checkUnnamed453(o.permissions); } buildCounterRule--; } @@ -572,14 +574,14 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed450() { +buildUnnamed454() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed450(core.List<core.String> o) { +checkUnnamed454(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -590,7 +592,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed450(); + o.permissions = buildUnnamed454(); } buildCounterTestIamPermissionsRequest--; return o; @@ -599,19 +601,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed450(o.permissions); + checkUnnamed454(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed451() { +buildUnnamed455() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed451(core.List<core.String> o) { +checkUnnamed455(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -622,7 +624,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed451(); + o.permissions = buildUnnamed455(); } buildCounterTestIamPermissionsResponse--; return o; @@ -631,7 +633,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed451(o.permissions); + checkUnnamed455(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -798,7 +800,7 @@ api.ProjectsReposResourceApi res = new api.SourcerepoApi(mock).projects.repos; var arg_request = buildRepo(); var arg_parent = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Repo.fromJson(json); checkRepo(obj); @@ -836,7 +838,7 @@ var resp = convert.JSON.encode(buildRepo()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_parent).then(unittest.expectAsync(((api.Repo response) { + res.create(arg_request, arg_parent).then(unittest.expectAsync1(((api.Repo response) { checkRepo(response); }))); }); @@ -846,7 +848,7 @@ var mock = new HttpServerMock(); api.ProjectsReposResourceApi res = new api.SourcerepoApi(mock).projects.repos; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -881,7 +883,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -891,7 +893,7 @@ var mock = new HttpServerMock(); api.ProjectsReposResourceApi res = new api.SourcerepoApi(mock).projects.repos; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -926,7 +928,7 @@ var resp = convert.JSON.encode(buildRepo()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.Repo response) { + res.get(arg_name).then(unittest.expectAsync1(((api.Repo response) { checkRepo(response); }))); }); @@ -936,7 +938,7 @@ var mock = new HttpServerMock(); api.ProjectsReposResourceApi res = new api.SourcerepoApi(mock).projects.repos; var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -971,7 +973,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getIamPolicy(arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.getIamPolicy(arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -983,7 +985,7 @@ var arg_name = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1020,7 +1022,7 @@ var resp = convert.JSON.encode(buildListReposResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListReposResponse response) { + res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListReposResponse response) { checkListReposResponse(response); }))); }); @@ -1031,7 +1033,7 @@ api.ProjectsReposResourceApi res = new api.SourcerepoApi(mock).projects.repos; var arg_request = buildSetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetIamPolicyRequest.fromJson(json); checkSetIamPolicyRequest(obj); @@ -1069,7 +1071,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -1080,7 +1082,7 @@ api.ProjectsReposResourceApi res = new api.SourcerepoApi(mock).projects.repos; var arg_request = buildTestIamPermissionsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TestIamPermissionsRequest.fromJson(json); checkTestIamPermissionsRequest(obj); @@ -1118,7 +1120,7 @@ var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { checkTestIamPermissionsResponse(response); }))); });
diff --git a/generated/googleapis/test/spanner/v1_test.dart b/generated/googleapis/test/spanner/v1_test.dart index fa67575..d931b63 100644 --- a/generated/googleapis/test/spanner/v1_test.dart +++ b/generated/googleapis/test/spanner/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/spanner/v1.dart' as api; @@ -46,32 +46,32 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1957() { +buildUnnamed1967() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed1957(core.List<api.AuditLogConfig> o) { +checkUnnamed1967(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); } -buildUnnamed1958() { +buildUnnamed1968() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1958(core.List<core.String> o) { +checkUnnamed1968(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -82,8 +82,8 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed1957(); - o.exemptedMembers = buildUnnamed1958(); + o.auditLogConfigs = buildUnnamed1967(); + o.exemptedMembers = buildUnnamed1968(); o.service = "foo"; } buildCounterAuditConfig--; @@ -93,21 +93,21 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed1957(o.auditLogConfigs); - checkUnnamed1958(o.exemptedMembers); + checkUnnamed1967(o.auditLogConfigs); + checkUnnamed1968(o.exemptedMembers); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed1959() { +buildUnnamed1969() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1959(core.List<core.String> o) { +checkUnnamed1969(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -118,7 +118,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed1959(); + o.exemptedMembers = buildUnnamed1969(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -128,7 +128,7 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed1959(o.exemptedMembers); + checkUnnamed1969(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; @@ -153,14 +153,14 @@ buildCounterBeginTransactionRequest--; } -buildUnnamed1960() { +buildUnnamed1970() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1960(core.List<core.String> o) { +checkUnnamed1970(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -171,7 +171,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed1960(); + o.members = buildUnnamed1970(); o.role = "foo"; } buildCounterBinding--; @@ -181,7 +181,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed1960(o.members); + checkUnnamed1970(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -227,14 +227,14 @@ buildCounterCloudAuditOptions--; } -buildUnnamed1961() { +buildUnnamed1971() { var o = new core.List<api.Mutation>(); o.add(buildMutation()); o.add(buildMutation()); return o; } -checkUnnamed1961(core.List<api.Mutation> o) { +checkUnnamed1971(core.List<api.Mutation> o) { unittest.expect(o, unittest.hasLength(2)); checkMutation(o[0]); checkMutation(o[1]); @@ -245,7 +245,7 @@ var o = new api.CommitRequest(); buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { - o.mutations = buildUnnamed1961(); + o.mutations = buildUnnamed1971(); o.singleUseTransaction = buildTransactionOptions(); o.transactionId = "foo"; } @@ -256,7 +256,7 @@ checkCommitRequest(api.CommitRequest o) { buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { - checkUnnamed1961(o.mutations); + checkUnnamed1971(o.mutations); checkTransactionOptions(o.singleUseTransaction); unittest.expect(o.transactionId, unittest.equals('foo')); } @@ -282,14 +282,14 @@ buildCounterCommitResponse--; } -buildUnnamed1962() { +buildUnnamed1972() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1962(core.List<core.String> o) { +checkUnnamed1972(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -305,7 +305,7 @@ o.svc = "foo"; o.sys = "foo"; o.value = "foo"; - o.values = buildUnnamed1962(); + o.values = buildUnnamed1972(); } buildCounterCondition--; return o; @@ -319,7 +319,7 @@ unittest.expect(o.svc, unittest.equals('foo')); unittest.expect(o.sys, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); - checkUnnamed1962(o.values); + checkUnnamed1972(o.values); } buildCounterCondition--; } @@ -364,14 +364,14 @@ buildCounterCreateDatabaseMetadata--; } -buildUnnamed1963() { +buildUnnamed1973() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1963(core.List<core.String> o) { +checkUnnamed1973(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -383,7 +383,7 @@ buildCounterCreateDatabaseRequest++; if (buildCounterCreateDatabaseRequest < 3) { o.createStatement = "foo"; - o.extraStatements = buildUnnamed1963(); + o.extraStatements = buildUnnamed1973(); } buildCounterCreateDatabaseRequest--; return o; @@ -393,7 +393,7 @@ buildCounterCreateDatabaseRequest++; if (buildCounterCreateDatabaseRequest < 3) { unittest.expect(o.createStatement, unittest.equals('foo')); - checkUnnamed1963(o.extraStatements); + checkUnnamed1973(o.extraStatements); } buildCounterCreateDatabaseRequest--; } @@ -520,27 +520,27 @@ buildCounterEmpty--; } -buildUnnamed1964() { +buildUnnamed1974() { var o = new core.Map<core.String, api.Type>(); o["x"] = buildType(); o["y"] = buildType(); return o; } -checkUnnamed1964(core.Map<core.String, api.Type> o) { +checkUnnamed1974(core.Map<core.String, api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o["x"]); checkType(o["y"]); } -buildUnnamed1965() { +buildUnnamed1975() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1965(core.Map<core.String, core.Object> o) { +checkUnnamed1975(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -551,8 +551,8 @@ var o = new api.ExecuteSqlRequest(); buildCounterExecuteSqlRequest++; if (buildCounterExecuteSqlRequest < 3) { - o.paramTypes = buildUnnamed1964(); - o.params = buildUnnamed1965(); + o.paramTypes = buildUnnamed1974(); + o.params = buildUnnamed1975(); o.queryMode = "foo"; o.resumeToken = "foo"; o.sql = "foo"; @@ -565,8 +565,8 @@ checkExecuteSqlRequest(api.ExecuteSqlRequest o) { buildCounterExecuteSqlRequest++; if (buildCounterExecuteSqlRequest < 3) { - checkUnnamed1964(o.paramTypes); - checkUnnamed1965(o.params); + checkUnnamed1974(o.paramTypes); + checkUnnamed1975(o.params); unittest.expect(o.queryMode, unittest.equals('foo')); unittest.expect(o.resumeToken, unittest.equals('foo')); unittest.expect(o.sql, unittest.equals('foo')); @@ -596,14 +596,14 @@ buildCounterField--; } -buildUnnamed1966() { +buildUnnamed1976() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1966(core.List<core.String> o) { +checkUnnamed1976(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -614,7 +614,7 @@ var o = new api.GetDatabaseDdlResponse(); buildCounterGetDatabaseDdlResponse++; if (buildCounterGetDatabaseDdlResponse < 3) { - o.statements = buildUnnamed1966(); + o.statements = buildUnnamed1976(); } buildCounterGetDatabaseDdlResponse--; return o; @@ -623,7 +623,7 @@ checkGetDatabaseDdlResponse(api.GetDatabaseDdlResponse o) { buildCounterGetDatabaseDdlResponse++; if (buildCounterGetDatabaseDdlResponse < 3) { - checkUnnamed1966(o.statements); + checkUnnamed1976(o.statements); } buildCounterGetDatabaseDdlResponse--; } @@ -645,14 +645,14 @@ buildCounterGetIamPolicyRequest--; } -buildUnnamed1967() { +buildUnnamed1977() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1967(core.Map<core.String, core.String> o) { +checkUnnamed1977(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -665,7 +665,7 @@ if (buildCounterInstance < 3) { o.config = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1967(); + o.labels = buildUnnamed1977(); o.name = "foo"; o.nodeCount = 42; o.state = "foo"; @@ -679,7 +679,7 @@ if (buildCounterInstance < 3) { unittest.expect(o.config, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1967(o.labels); + checkUnnamed1977(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.nodeCount, unittest.equals(42)); unittest.expect(o.state, unittest.equals('foo')); @@ -708,53 +708,53 @@ buildCounterInstanceConfig--; } -buildUnnamed1968() { +buildUnnamed1978() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1968(core.List<core.Object> o) { +checkUnnamed1978(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed1969() { +buildUnnamed1979() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1969(core.List<core.Object> o) { +checkUnnamed1979(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1970() { +buildUnnamed1980() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1970(core.List<core.Object> o) { +checkUnnamed1980(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o[0]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); var casted8 = (o[1]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed1971() { +buildUnnamed1981() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1971(core.List<core.Object> o) { +checkUnnamed1981(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted9 = (o[0]) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo')); var casted10 = (o[1]) as core.Map; unittest.expect(casted10, unittest.hasLength(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["string"], unittest.equals('foo')); @@ -765,10 +765,10 @@ var o = new api.KeyRange(); buildCounterKeyRange++; if (buildCounterKeyRange < 3) { - o.endClosed = buildUnnamed1968(); - o.endOpen = buildUnnamed1969(); - o.startClosed = buildUnnamed1970(); - o.startOpen = buildUnnamed1971(); + o.endClosed = buildUnnamed1978(); + o.endOpen = buildUnnamed1979(); + o.startClosed = buildUnnamed1980(); + o.startOpen = buildUnnamed1981(); } buildCounterKeyRange--; return o; @@ -777,48 +777,48 @@ checkKeyRange(api.KeyRange o) { buildCounterKeyRange++; if (buildCounterKeyRange < 3) { - checkUnnamed1968(o.endClosed); - checkUnnamed1969(o.endOpen); - checkUnnamed1970(o.startClosed); - checkUnnamed1971(o.startOpen); + checkUnnamed1978(o.endClosed); + checkUnnamed1979(o.endOpen); + checkUnnamed1980(o.startClosed); + checkUnnamed1981(o.startOpen); } buildCounterKeyRange--; } -buildUnnamed1972() { +buildUnnamed1982() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1972(core.List<core.Object> o) { +checkUnnamed1982(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted11 = (o[0]) as core.Map; unittest.expect(casted11, unittest.hasLength(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["string"], unittest.equals('foo')); var casted12 = (o[1]) as core.Map; unittest.expect(casted12, unittest.hasLength(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["string"], unittest.equals('foo')); } -buildUnnamed1973() { +buildUnnamed1983() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed1972()); - o.add(buildUnnamed1972()); + o.add(buildUnnamed1982()); + o.add(buildUnnamed1982()); return o; } -checkUnnamed1973(core.List<core.List<core.Object>> o) { +checkUnnamed1983(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1972(o[0]); - checkUnnamed1972(o[1]); + checkUnnamed1982(o[0]); + checkUnnamed1982(o[1]); } -buildUnnamed1974() { +buildUnnamed1984() { var o = new core.List<api.KeyRange>(); o.add(buildKeyRange()); o.add(buildKeyRange()); return o; } -checkUnnamed1974(core.List<api.KeyRange> o) { +checkUnnamed1984(core.List<api.KeyRange> o) { unittest.expect(o, unittest.hasLength(2)); checkKeyRange(o[0]); checkKeyRange(o[1]); @@ -830,8 +830,8 @@ buildCounterKeySet++; if (buildCounterKeySet < 3) { o.all = true; - o.keys = buildUnnamed1973(); - o.ranges = buildUnnamed1974(); + o.keys = buildUnnamed1983(); + o.ranges = buildUnnamed1984(); } buildCounterKeySet--; return o; @@ -841,20 +841,20 @@ buildCounterKeySet++; if (buildCounterKeySet < 3) { unittest.expect(o.all, unittest.isTrue); - checkUnnamed1973(o.keys); - checkUnnamed1974(o.ranges); + checkUnnamed1983(o.keys); + checkUnnamed1984(o.ranges); } buildCounterKeySet--; } -buildUnnamed1975() { +buildUnnamed1985() { var o = new core.List<api.Database>(); o.add(buildDatabase()); o.add(buildDatabase()); return o; } -checkUnnamed1975(core.List<api.Database> o) { +checkUnnamed1985(core.List<api.Database> o) { unittest.expect(o, unittest.hasLength(2)); checkDatabase(o[0]); checkDatabase(o[1]); @@ -865,7 +865,7 @@ var o = new api.ListDatabasesResponse(); buildCounterListDatabasesResponse++; if (buildCounterListDatabasesResponse < 3) { - o.databases = buildUnnamed1975(); + o.databases = buildUnnamed1985(); o.nextPageToken = "foo"; } buildCounterListDatabasesResponse--; @@ -875,20 +875,20 @@ checkListDatabasesResponse(api.ListDatabasesResponse o) { buildCounterListDatabasesResponse++; if (buildCounterListDatabasesResponse < 3) { - checkUnnamed1975(o.databases); + checkUnnamed1985(o.databases); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDatabasesResponse--; } -buildUnnamed1976() { +buildUnnamed1986() { var o = new core.List<api.InstanceConfig>(); o.add(buildInstanceConfig()); o.add(buildInstanceConfig()); return o; } -checkUnnamed1976(core.List<api.InstanceConfig> o) { +checkUnnamed1986(core.List<api.InstanceConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceConfig(o[0]); checkInstanceConfig(o[1]); @@ -899,7 +899,7 @@ var o = new api.ListInstanceConfigsResponse(); buildCounterListInstanceConfigsResponse++; if (buildCounterListInstanceConfigsResponse < 3) { - o.instanceConfigs = buildUnnamed1976(); + o.instanceConfigs = buildUnnamed1986(); o.nextPageToken = "foo"; } buildCounterListInstanceConfigsResponse--; @@ -909,20 +909,20 @@ checkListInstanceConfigsResponse(api.ListInstanceConfigsResponse o) { buildCounterListInstanceConfigsResponse++; if (buildCounterListInstanceConfigsResponse < 3) { - checkUnnamed1976(o.instanceConfigs); + checkUnnamed1986(o.instanceConfigs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstanceConfigsResponse--; } -buildUnnamed1977() { +buildUnnamed1987() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed1977(core.List<api.Instance> o) { +checkUnnamed1987(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -933,7 +933,7 @@ var o = new api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.instances = buildUnnamed1977(); + o.instances = buildUnnamed1987(); o.nextPageToken = "foo"; } buildCounterListInstancesResponse--; @@ -943,20 +943,20 @@ checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed1977(o.instances); + checkUnnamed1987(o.instances); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstancesResponse--; } -buildUnnamed1978() { +buildUnnamed1988() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1978(core.List<api.Operation> o) { +checkUnnamed1988(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -968,7 +968,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1978(); + o.operations = buildUnnamed1988(); } buildCounterListOperationsResponse--; return o; @@ -978,7 +978,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1978(o.operations); + checkUnnamed1988(o.operations); } buildCounterListOperationsResponse--; } @@ -1033,27 +1033,27 @@ buildCounterMutation--; } -buildUnnamed1979() { +buildUnnamed1989() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1979(core.Map<core.String, core.Object> o) { +checkUnnamed1989(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted13 = (o["x"]) as core.Map; unittest.expect(casted13, unittest.hasLength(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittest.expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["string"], unittest.equals('foo')); var casted14 = (o["y"]) as core.Map; unittest.expect(casted14, unittest.hasLength(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest.expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["string"], unittest.equals('foo')); } -buildUnnamed1980() { +buildUnnamed1990() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1980(core.Map<core.String, core.Object> o) { +checkUnnamed1990(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted15 = (o["x"]) as core.Map; unittest.expect(casted15, unittest.hasLength(3)); unittest.expect(casted15["list"], unittest.equals([1, 2, 3])); unittest.expect(casted15["bool"], unittest.equals(true)); unittest.expect(casted15["string"], unittest.equals('foo')); var casted16 = (o["y"]) as core.Map; unittest.expect(casted16, unittest.hasLength(3)); unittest.expect(casted16["list"], unittest.equals([1, 2, 3])); unittest.expect(casted16["bool"], unittest.equals(true)); unittest.expect(casted16["string"], unittest.equals('foo')); @@ -1066,9 +1066,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1979(); + o.metadata = buildUnnamed1989(); o.name = "foo"; - o.response = buildUnnamed1980(); + o.response = buildUnnamed1990(); } buildCounterOperation--; return o; @@ -1079,21 +1079,21 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1979(o.metadata); + checkUnnamed1989(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1980(o.response); + checkUnnamed1990(o.response); } buildCounterOperation--; } -buildUnnamed1981() { +buildUnnamed1991() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1981(core.List<core.Object> o) { +checkUnnamed1991(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted17 = (o[0]) as core.Map; unittest.expect(casted17, unittest.hasLength(3)); unittest.expect(casted17["list"], unittest.equals([1, 2, 3])); unittest.expect(casted17["bool"], unittest.equals(true)); unittest.expect(casted17["string"], unittest.equals('foo')); var casted18 = (o[1]) as core.Map; unittest.expect(casted18, unittest.hasLength(3)); unittest.expect(casted18["list"], unittest.equals([1, 2, 3])); unittest.expect(casted18["bool"], unittest.equals(true)); unittest.expect(casted18["string"], unittest.equals('foo')); @@ -1108,7 +1108,7 @@ o.metadata = buildResultSetMetadata(); o.resumeToken = "foo"; o.stats = buildResultSetStats(); - o.values = buildUnnamed1981(); + o.values = buildUnnamed1991(); } buildCounterPartialResultSet--; return o; @@ -1121,45 +1121,45 @@ checkResultSetMetadata(o.metadata); unittest.expect(o.resumeToken, unittest.equals('foo')); checkResultSetStats(o.stats); - checkUnnamed1981(o.values); + checkUnnamed1991(o.values); } buildCounterPartialResultSet--; } -buildUnnamed1982() { +buildUnnamed1992() { var o = new core.List<api.ChildLink>(); o.add(buildChildLink()); o.add(buildChildLink()); return o; } -checkUnnamed1982(core.List<api.ChildLink> o) { +checkUnnamed1992(core.List<api.ChildLink> o) { unittest.expect(o, unittest.hasLength(2)); checkChildLink(o[0]); checkChildLink(o[1]); } -buildUnnamed1983() { +buildUnnamed1993() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1983(core.Map<core.String, core.Object> o) { +checkUnnamed1993(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted19 = (o["x"]) as core.Map; unittest.expect(casted19, unittest.hasLength(3)); unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); unittest.expect(casted19["bool"], unittest.equals(true)); unittest.expect(casted19["string"], unittest.equals('foo')); var casted20 = (o["y"]) as core.Map; unittest.expect(casted20, unittest.hasLength(3)); unittest.expect(casted20["list"], unittest.equals([1, 2, 3])); unittest.expect(casted20["bool"], unittest.equals(true)); unittest.expect(casted20["string"], unittest.equals('foo')); } -buildUnnamed1984() { +buildUnnamed1994() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1984(core.Map<core.String, core.Object> o) { +checkUnnamed1994(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted21 = (o["x"]) as core.Map; unittest.expect(casted21, unittest.hasLength(3)); unittest.expect(casted21["list"], unittest.equals([1, 2, 3])); unittest.expect(casted21["bool"], unittest.equals(true)); unittest.expect(casted21["string"], unittest.equals('foo')); var casted22 = (o["y"]) as core.Map; unittest.expect(casted22, unittest.hasLength(3)); unittest.expect(casted22["list"], unittest.equals([1, 2, 3])); unittest.expect(casted22["bool"], unittest.equals(true)); unittest.expect(casted22["string"], unittest.equals('foo')); @@ -1170,12 +1170,12 @@ var o = new api.PlanNode(); buildCounterPlanNode++; if (buildCounterPlanNode < 3) { - o.childLinks = buildUnnamed1982(); + o.childLinks = buildUnnamed1992(); o.displayName = "foo"; - o.executionStats = buildUnnamed1983(); + o.executionStats = buildUnnamed1993(); o.index = 42; o.kind = "foo"; - o.metadata = buildUnnamed1984(); + o.metadata = buildUnnamed1994(); o.shortRepresentation = buildShortRepresentation(); } buildCounterPlanNode--; @@ -1185,51 +1185,51 @@ checkPlanNode(api.PlanNode o) { buildCounterPlanNode++; if (buildCounterPlanNode < 3) { - checkUnnamed1982(o.childLinks); + checkUnnamed1992(o.childLinks); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1983(o.executionStats); + checkUnnamed1993(o.executionStats); unittest.expect(o.index, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1984(o.metadata); + checkUnnamed1994(o.metadata); checkShortRepresentation(o.shortRepresentation); } buildCounterPlanNode--; } -buildUnnamed1985() { +buildUnnamed1995() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed1985(core.List<api.AuditConfig> o) { +checkUnnamed1995(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed1986() { +buildUnnamed1996() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1986(core.List<api.Binding> o) { +checkUnnamed1996(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); } -buildUnnamed1987() { +buildUnnamed1997() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed1987(core.List<api.Rule> o) { +checkUnnamed1997(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); @@ -1240,11 +1240,11 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed1985(); - o.bindings = buildUnnamed1986(); + o.auditConfigs = buildUnnamed1995(); + o.bindings = buildUnnamed1996(); o.etag = "foo"; o.iamOwned = true; - o.rules = buildUnnamed1987(); + o.rules = buildUnnamed1997(); o.version = 42; } buildCounterPolicy--; @@ -1254,24 +1254,24 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1985(o.auditConfigs); - checkUnnamed1986(o.bindings); + checkUnnamed1995(o.auditConfigs); + checkUnnamed1996(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.iamOwned, unittest.isTrue); - checkUnnamed1987(o.rules); + checkUnnamed1997(o.rules); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed1988() { +buildUnnamed1998() { var o = new core.List<api.PlanNode>(); o.add(buildPlanNode()); o.add(buildPlanNode()); return o; } -checkUnnamed1988(core.List<api.PlanNode> o) { +checkUnnamed1998(core.List<api.PlanNode> o) { unittest.expect(o, unittest.hasLength(2)); checkPlanNode(o[0]); checkPlanNode(o[1]); @@ -1282,7 +1282,7 @@ var o = new api.QueryPlan(); buildCounterQueryPlan++; if (buildCounterQueryPlan < 3) { - o.planNodes = buildUnnamed1988(); + o.planNodes = buildUnnamed1998(); } buildCounterQueryPlan--; return o; @@ -1291,7 +1291,7 @@ checkQueryPlan(api.QueryPlan o) { buildCounterQueryPlan++; if (buildCounterQueryPlan < 3) { - checkUnnamed1988(o.planNodes); + checkUnnamed1998(o.planNodes); } buildCounterQueryPlan--; } @@ -1325,14 +1325,14 @@ buildCounterReadOnly--; } -buildUnnamed1989() { +buildUnnamed1999() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1989(core.List<core.String> o) { +checkUnnamed1999(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1343,7 +1343,7 @@ var o = new api.ReadRequest(); buildCounterReadRequest++; if (buildCounterReadRequest < 3) { - o.columns = buildUnnamed1989(); + o.columns = buildUnnamed1999(); o.index = "foo"; o.keySet = buildKeySet(); o.limit = "foo"; @@ -1358,7 +1358,7 @@ checkReadRequest(api.ReadRequest o) { buildCounterReadRequest++; if (buildCounterReadRequest < 3) { - checkUnnamed1989(o.columns); + checkUnnamed1999(o.columns); unittest.expect(o.index, unittest.equals('foo')); checkKeySet(o.keySet); unittest.expect(o.limit, unittest.equals('foo')); @@ -1386,30 +1386,30 @@ buildCounterReadWrite--; } -buildUnnamed1990() { +buildUnnamed2000() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1990(core.List<core.Object> o) { +checkUnnamed2000(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted23 = (o[0]) as core.Map; unittest.expect(casted23, unittest.hasLength(3)); unittest.expect(casted23["list"], unittest.equals([1, 2, 3])); unittest.expect(casted23["bool"], unittest.equals(true)); unittest.expect(casted23["string"], unittest.equals('foo')); var casted24 = (o[1]) as core.Map; unittest.expect(casted24, unittest.hasLength(3)); unittest.expect(casted24["list"], unittest.equals([1, 2, 3])); unittest.expect(casted24["bool"], unittest.equals(true)); unittest.expect(casted24["string"], unittest.equals('foo')); } -buildUnnamed1991() { +buildUnnamed2001() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed1990()); - o.add(buildUnnamed1990()); + o.add(buildUnnamed2000()); + o.add(buildUnnamed2000()); return o; } -checkUnnamed1991(core.List<core.List<core.Object>> o) { +checkUnnamed2001(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1990(o[0]); - checkUnnamed1990(o[1]); + checkUnnamed2000(o[0]); + checkUnnamed2000(o[1]); } core.int buildCounterResultSet = 0; @@ -1418,7 +1418,7 @@ buildCounterResultSet++; if (buildCounterResultSet < 3) { o.metadata = buildResultSetMetadata(); - o.rows = buildUnnamed1991(); + o.rows = buildUnnamed2001(); o.stats = buildResultSetStats(); } buildCounterResultSet--; @@ -1429,7 +1429,7 @@ buildCounterResultSet++; if (buildCounterResultSet < 3) { checkResultSetMetadata(o.metadata); - checkUnnamed1991(o.rows); + checkUnnamed2001(o.rows); checkResultSetStats(o.stats); } buildCounterResultSet--; @@ -1456,14 +1456,14 @@ buildCounterResultSetMetadata--; } -buildUnnamed1992() { +buildUnnamed2002() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1992(core.Map<core.String, core.Object> o) { +checkUnnamed2002(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted25 = (o["x"]) as core.Map; unittest.expect(casted25, unittest.hasLength(3)); unittest.expect(casted25["list"], unittest.equals([1, 2, 3])); unittest.expect(casted25["bool"], unittest.equals(true)); unittest.expect(casted25["string"], unittest.equals('foo')); var casted26 = (o["y"]) as core.Map; unittest.expect(casted26, unittest.hasLength(3)); unittest.expect(casted26["list"], unittest.equals([1, 2, 3])); unittest.expect(casted26["bool"], unittest.equals(true)); unittest.expect(casted26["string"], unittest.equals('foo')); @@ -1475,7 +1475,7 @@ buildCounterResultSetStats++; if (buildCounterResultSetStats < 3) { o.queryPlan = buildQueryPlan(); - o.queryStats = buildUnnamed1992(); + o.queryStats = buildUnnamed2002(); } buildCounterResultSetStats--; return o; @@ -1485,7 +1485,7 @@ buildCounterResultSetStats++; if (buildCounterResultSetStats < 3) { checkQueryPlan(o.queryPlan); - checkUnnamed1992(o.queryStats); + checkUnnamed2002(o.queryStats); } buildCounterResultSetStats--; } @@ -1509,66 +1509,66 @@ buildCounterRollbackRequest--; } -buildUnnamed1993() { +buildUnnamed2003() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed1993(core.List<api.Condition> o) { +checkUnnamed2003(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed1994() { +buildUnnamed2004() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1994(core.List<core.String> o) { +checkUnnamed2004(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1995() { +buildUnnamed2005() { var o = new core.List<api.LogConfig>(); o.add(buildLogConfig()); o.add(buildLogConfig()); return o; } -checkUnnamed1995(core.List<api.LogConfig> o) { +checkUnnamed2005(core.List<api.LogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkLogConfig(o[0]); checkLogConfig(o[1]); } -buildUnnamed1996() { +buildUnnamed2006() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1996(core.List<core.String> o) { +checkUnnamed2006(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1997() { +buildUnnamed2007() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1997(core.List<core.String> o) { +checkUnnamed2007(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1580,12 +1580,12 @@ buildCounterRule++; if (buildCounterRule < 3) { o.action = "foo"; - o.conditions = buildUnnamed1993(); + o.conditions = buildUnnamed2003(); o.description = "foo"; - o.in_ = buildUnnamed1994(); - o.logConfig = buildUnnamed1995(); - o.notIn = buildUnnamed1996(); - o.permissions = buildUnnamed1997(); + o.in_ = buildUnnamed2004(); + o.logConfig = buildUnnamed2005(); + o.notIn = buildUnnamed2006(); + o.permissions = buildUnnamed2007(); } buildCounterRule--; return o; @@ -1595,12 +1595,12 @@ buildCounterRule++; if (buildCounterRule < 3) { unittest.expect(o.action, unittest.equals('foo')); - checkUnnamed1993(o.conditions); + checkUnnamed2003(o.conditions); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1994(o.in_); - checkUnnamed1995(o.logConfig); - checkUnnamed1996(o.notIn); - checkUnnamed1997(o.permissions); + checkUnnamed2004(o.in_); + checkUnnamed2005(o.logConfig); + checkUnnamed2006(o.notIn); + checkUnnamed2007(o.permissions); } buildCounterRule--; } @@ -1645,14 +1645,14 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed1998() { +buildUnnamed2008() { var o = new core.Map<core.String, core.int>(); o["x"] = 42; o["y"] = 42; return o; } -checkUnnamed1998(core.Map<core.String, core.int> o) { +checkUnnamed2008(core.Map<core.String, core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals(42)); unittest.expect(o["y"], unittest.equals(42)); @@ -1664,7 +1664,7 @@ buildCounterShortRepresentation++; if (buildCounterShortRepresentation < 3) { o.description = "foo"; - o.subqueries = buildUnnamed1998(); + o.subqueries = buildUnnamed2008(); } buildCounterShortRepresentation--; return o; @@ -1674,35 +1674,35 @@ buildCounterShortRepresentation++; if (buildCounterShortRepresentation < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1998(o.subqueries); + checkUnnamed2008(o.subqueries); } buildCounterShortRepresentation--; } -buildUnnamed1999() { +buildUnnamed2009() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1999(core.Map<core.String, core.Object> o) { +checkUnnamed2009(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted27 = (o["x"]) as core.Map; unittest.expect(casted27, unittest.hasLength(3)); unittest.expect(casted27["list"], unittest.equals([1, 2, 3])); unittest.expect(casted27["bool"], unittest.equals(true)); unittest.expect(casted27["string"], unittest.equals('foo')); var casted28 = (o["y"]) as core.Map; unittest.expect(casted28, unittest.hasLength(3)); unittest.expect(casted28["list"], unittest.equals([1, 2, 3])); unittest.expect(casted28["bool"], unittest.equals(true)); unittest.expect(casted28["string"], unittest.equals('foo')); } -buildUnnamed2000() { +buildUnnamed2010() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1999()); - o.add(buildUnnamed1999()); + o.add(buildUnnamed2009()); + o.add(buildUnnamed2009()); return o; } -checkUnnamed2000(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2010(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1999(o[0]); - checkUnnamed1999(o[1]); + checkUnnamed2009(o[0]); + checkUnnamed2009(o[1]); } core.int buildCounterStatus = 0; @@ -1711,7 +1711,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2000(); + o.details = buildUnnamed2010(); o.message = "foo"; } buildCounterStatus--; @@ -1722,20 +1722,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2000(o.details); + checkUnnamed2010(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed2001() { +buildUnnamed2011() { var o = new core.List<api.Field>(); o.add(buildField()); o.add(buildField()); return o; } -checkUnnamed2001(core.List<api.Field> o) { +checkUnnamed2011(core.List<api.Field> o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); @@ -1746,7 +1746,7 @@ var o = new api.StructType(); buildCounterStructType++; if (buildCounterStructType < 3) { - o.fields = buildUnnamed2001(); + o.fields = buildUnnamed2011(); } buildCounterStructType--; return o; @@ -1755,19 +1755,19 @@ checkStructType(api.StructType o) { buildCounterStructType++; if (buildCounterStructType < 3) { - checkUnnamed2001(o.fields); + checkUnnamed2011(o.fields); } buildCounterStructType--; } -buildUnnamed2002() { +buildUnnamed2012() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2002(core.List<core.String> o) { +checkUnnamed2012(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1778,7 +1778,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed2002(); + o.permissions = buildUnnamed2012(); } buildCounterTestIamPermissionsRequest--; return o; @@ -1787,19 +1787,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed2002(o.permissions); + checkUnnamed2012(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed2003() { +buildUnnamed2013() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2003(core.List<core.String> o) { +checkUnnamed2013(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1810,7 +1810,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed2003(); + o.permissions = buildUnnamed2013(); } buildCounterTestIamPermissionsResponse--; return o; @@ -1819,7 +1819,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed2003(o.permissions); + checkUnnamed2013(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -1912,27 +1912,27 @@ buildCounterType--; } -buildUnnamed2004() { +buildUnnamed2014() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2004(core.List<core.String> o) { +checkUnnamed2014(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2005() { +buildUnnamed2015() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2005(core.List<core.String> o) { +checkUnnamed2015(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1943,9 +1943,9 @@ var o = new api.UpdateDatabaseDdlMetadata(); buildCounterUpdateDatabaseDdlMetadata++; if (buildCounterUpdateDatabaseDdlMetadata < 3) { - o.commitTimestamps = buildUnnamed2004(); + o.commitTimestamps = buildUnnamed2014(); o.database = "foo"; - o.statements = buildUnnamed2005(); + o.statements = buildUnnamed2015(); } buildCounterUpdateDatabaseDdlMetadata--; return o; @@ -1954,21 +1954,21 @@ checkUpdateDatabaseDdlMetadata(api.UpdateDatabaseDdlMetadata o) { buildCounterUpdateDatabaseDdlMetadata++; if (buildCounterUpdateDatabaseDdlMetadata < 3) { - checkUnnamed2004(o.commitTimestamps); + checkUnnamed2014(o.commitTimestamps); unittest.expect(o.database, unittest.equals('foo')); - checkUnnamed2005(o.statements); + checkUnnamed2015(o.statements); } buildCounterUpdateDatabaseDdlMetadata--; } -buildUnnamed2006() { +buildUnnamed2016() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2006(core.List<core.String> o) { +checkUnnamed2016(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1980,7 +1980,7 @@ buildCounterUpdateDatabaseDdlRequest++; if (buildCounterUpdateDatabaseDdlRequest < 3) { o.operationId = "foo"; - o.statements = buildUnnamed2006(); + o.statements = buildUnnamed2016(); } buildCounterUpdateDatabaseDdlRequest--; return o; @@ -1990,7 +1990,7 @@ buildCounterUpdateDatabaseDdlRequest++; if (buildCounterUpdateDatabaseDdlRequest < 3) { unittest.expect(o.operationId, unittest.equals('foo')); - checkUnnamed2006(o.statements); + checkUnnamed2016(o.statements); } buildCounterUpdateDatabaseDdlRequest--; } @@ -2041,43 +2041,43 @@ buildCounterUpdateInstanceRequest--; } -buildUnnamed2007() { +buildUnnamed2017() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2007(core.List<core.String> o) { +checkUnnamed2017(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2008() { +buildUnnamed2018() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2008(core.List<core.Object> o) { +checkUnnamed2018(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted29 = (o[0]) as core.Map; unittest.expect(casted29, unittest.hasLength(3)); unittest.expect(casted29["list"], unittest.equals([1, 2, 3])); unittest.expect(casted29["bool"], unittest.equals(true)); unittest.expect(casted29["string"], unittest.equals('foo')); var casted30 = (o[1]) as core.Map; unittest.expect(casted30, unittest.hasLength(3)); unittest.expect(casted30["list"], unittest.equals([1, 2, 3])); unittest.expect(casted30["bool"], unittest.equals(true)); unittest.expect(casted30["string"], unittest.equals('foo')); } -buildUnnamed2009() { +buildUnnamed2019() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed2008()); - o.add(buildUnnamed2008()); + o.add(buildUnnamed2018()); + o.add(buildUnnamed2018()); return o; } -checkUnnamed2009(core.List<core.List<core.Object>> o) { +checkUnnamed2019(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2008(o[0]); - checkUnnamed2008(o[1]); + checkUnnamed2018(o[0]); + checkUnnamed2018(o[1]); } core.int buildCounterWrite = 0; @@ -2085,9 +2085,9 @@ var o = new api.Write(); buildCounterWrite++; if (buildCounterWrite < 3) { - o.columns = buildUnnamed2007(); + o.columns = buildUnnamed2017(); o.table = "foo"; - o.values = buildUnnamed2009(); + o.values = buildUnnamed2019(); } buildCounterWrite--; return o; @@ -2096,9 +2096,9 @@ checkWrite(api.Write o) { buildCounterWrite++; if (buildCounterWrite < 3) { - checkUnnamed2007(o.columns); + checkUnnamed2017(o.columns); unittest.expect(o.table, unittest.equals('foo')); - checkUnnamed2009(o.values); + checkUnnamed2019(o.values); } buildCounterWrite--; } @@ -2660,7 +2660,7 @@ var mock = new HttpServerMock(); api.ProjectsInstanceConfigsResourceApi res = new api.SpannerApi(mock).projects.instanceConfigs; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2695,7 +2695,7 @@ var resp = convert.JSON.encode(buildInstanceConfig()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.InstanceConfig response) { + res.get(arg_name).then(unittest.expectAsync1(((api.InstanceConfig response) { checkInstanceConfig(response); }))); }); @@ -2707,7 +2707,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2744,7 +2744,7 @@ var resp = convert.JSON.encode(buildListInstanceConfigsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListInstanceConfigsResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListInstanceConfigsResponse response) { checkListInstanceConfigsResponse(response); }))); }); @@ -2759,7 +2759,7 @@ api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.instances; var arg_request = buildCreateInstanceRequest(); var arg_parent = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CreateInstanceRequest.fromJson(json); checkCreateInstanceRequest(obj); @@ -2797,7 +2797,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_parent).then(unittest.expectAsync(((api.Operation response) { + res.create(arg_request, arg_parent).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2807,7 +2807,7 @@ var mock = new HttpServerMock(); api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.instances; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2842,7 +2842,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -2852,7 +2852,7 @@ var mock = new HttpServerMock(); api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.instances; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2887,7 +2887,7 @@ var resp = convert.JSON.encode(buildInstance()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.Instance response) { + res.get(arg_name).then(unittest.expectAsync1(((api.Instance response) { checkInstance(response); }))); }); @@ -2898,7 +2898,7 @@ api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.instances; var arg_request = buildGetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GetIamPolicyRequest.fromJson(json); checkGetIamPolicyRequest(obj); @@ -2936,7 +2936,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -2946,10 +2946,10 @@ var mock = new HttpServerMock(); api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.instances; var arg_parent = "foo"; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2976,9 +2976,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); var h = { @@ -2987,7 +2987,7 @@ var resp = convert.JSON.encode(buildListInstancesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListInstancesResponse response) { + res.list(arg_parent, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListInstancesResponse response) { checkListInstancesResponse(response); }))); }); @@ -2998,7 +2998,7 @@ api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.instances; var arg_request = buildUpdateInstanceRequest(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UpdateInstanceRequest.fromJson(json); checkUpdateInstanceRequest(obj); @@ -3036,7 +3036,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_name).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_name).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3047,7 +3047,7 @@ api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.instances; var arg_request = buildSetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetIamPolicyRequest.fromJson(json); checkSetIamPolicyRequest(obj); @@ -3085,7 +3085,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -3096,7 +3096,7 @@ api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.instances; var arg_request = buildTestIamPermissionsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TestIamPermissionsRequest.fromJson(json); checkTestIamPermissionsRequest(obj); @@ -3134,7 +3134,7 @@ var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { checkTestIamPermissionsResponse(response); }))); }); @@ -3149,7 +3149,7 @@ api.ProjectsInstancesDatabasesResourceApi res = new api.SpannerApi(mock).projects.instances.databases; var arg_request = buildCreateDatabaseRequest(); var arg_parent = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CreateDatabaseRequest.fromJson(json); checkCreateDatabaseRequest(obj); @@ -3187,7 +3187,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_parent).then(unittest.expectAsync(((api.Operation response) { + res.create(arg_request, arg_parent).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3197,7 +3197,7 @@ var mock = new HttpServerMock(); api.ProjectsInstancesDatabasesResourceApi res = new api.SpannerApi(mock).projects.instances.databases; var arg_database = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3232,7 +3232,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.dropDatabase(arg_database).then(unittest.expectAsync(((api.Empty response) { + res.dropDatabase(arg_database).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -3242,7 +3242,7 @@ var mock = new HttpServerMock(); api.ProjectsInstancesDatabasesResourceApi res = new api.SpannerApi(mock).projects.instances.databases; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3277,7 +3277,7 @@ var resp = convert.JSON.encode(buildDatabase()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.Database response) { + res.get(arg_name).then(unittest.expectAsync1(((api.Database response) { checkDatabase(response); }))); }); @@ -3287,7 +3287,7 @@ var mock = new HttpServerMock(); api.ProjectsInstancesDatabasesResourceApi res = new api.SpannerApi(mock).projects.instances.databases; var arg_database = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3322,7 +3322,7 @@ var resp = convert.JSON.encode(buildGetDatabaseDdlResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getDdl(arg_database).then(unittest.expectAsync(((api.GetDatabaseDdlResponse response) { + res.getDdl(arg_database).then(unittest.expectAsync1(((api.GetDatabaseDdlResponse response) { checkGetDatabaseDdlResponse(response); }))); }); @@ -3333,7 +3333,7 @@ api.ProjectsInstancesDatabasesResourceApi res = new api.SpannerApi(mock).projects.instances.databases; var arg_request = buildGetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GetIamPolicyRequest.fromJson(json); checkGetIamPolicyRequest(obj); @@ -3371,7 +3371,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -3383,7 +3383,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3420,7 +3420,7 @@ var resp = convert.JSON.encode(buildListDatabasesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListDatabasesResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListDatabasesResponse response) { checkListDatabasesResponse(response); }))); }); @@ -3431,7 +3431,7 @@ api.ProjectsInstancesDatabasesResourceApi res = new api.SpannerApi(mock).projects.instances.databases; var arg_request = buildSetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetIamPolicyRequest.fromJson(json); checkSetIamPolicyRequest(obj); @@ -3469,7 +3469,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -3480,7 +3480,7 @@ api.ProjectsInstancesDatabasesResourceApi res = new api.SpannerApi(mock).projects.instances.databases; var arg_request = buildTestIamPermissionsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TestIamPermissionsRequest.fromJson(json); checkTestIamPermissionsRequest(obj); @@ -3518,7 +3518,7 @@ var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { checkTestIamPermissionsResponse(response); }))); }); @@ -3529,7 +3529,7 @@ api.ProjectsInstancesDatabasesResourceApi res = new api.SpannerApi(mock).projects.instances.databases; var arg_request = buildUpdateDatabaseDdlRequest(); var arg_database = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UpdateDatabaseDdlRequest.fromJson(json); checkUpdateDatabaseDdlRequest(obj); @@ -3567,7 +3567,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.updateDdl(arg_request, arg_database).then(unittest.expectAsync(((api.Operation response) { + res.updateDdl(arg_request, arg_database).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3581,7 +3581,7 @@ var mock = new HttpServerMock(); api.ProjectsInstancesDatabasesOperationsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3616,7 +3616,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.cancel(arg_name).then(unittest.expectAsync(((api.Empty response) { + res.cancel(arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -3626,7 +3626,7 @@ var mock = new HttpServerMock(); api.ProjectsInstancesDatabasesOperationsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3661,7 +3661,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -3671,7 +3671,7 @@ var mock = new HttpServerMock(); api.ProjectsInstancesDatabasesOperationsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3706,7 +3706,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3716,10 +3716,10 @@ var mock = new HttpServerMock(); api.ProjectsInstancesDatabasesOperationsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.operations; var arg_name = "foo"; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3746,9 +3746,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); var h = { @@ -3757,7 +3757,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListOperationsResponse response) { + res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); }); @@ -3772,7 +3772,7 @@ api.ProjectsInstancesDatabasesSessionsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.sessions; var arg_request = buildBeginTransactionRequest(); var arg_session = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.BeginTransactionRequest.fromJson(json); checkBeginTransactionRequest(obj); @@ -3810,7 +3810,7 @@ var resp = convert.JSON.encode(buildTransaction()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.beginTransaction(arg_request, arg_session).then(unittest.expectAsync(((api.Transaction response) { + res.beginTransaction(arg_request, arg_session).then(unittest.expectAsync1(((api.Transaction response) { checkTransaction(response); }))); }); @@ -3821,7 +3821,7 @@ api.ProjectsInstancesDatabasesSessionsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.sessions; var arg_request = buildCommitRequest(); var arg_session = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CommitRequest.fromJson(json); checkCommitRequest(obj); @@ -3859,7 +3859,7 @@ var resp = convert.JSON.encode(buildCommitResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.commit(arg_request, arg_session).then(unittest.expectAsync(((api.CommitResponse response) { + res.commit(arg_request, arg_session).then(unittest.expectAsync1(((api.CommitResponse response) { checkCommitResponse(response); }))); }); @@ -3869,7 +3869,7 @@ var mock = new HttpServerMock(); api.ProjectsInstancesDatabasesSessionsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.sessions; var arg_database = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3904,7 +3904,7 @@ var resp = convert.JSON.encode(buildSession()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_database).then(unittest.expectAsync(((api.Session response) { + res.create(arg_database).then(unittest.expectAsync1(((api.Session response) { checkSession(response); }))); }); @@ -3914,7 +3914,7 @@ var mock = new HttpServerMock(); api.ProjectsInstancesDatabasesSessionsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.sessions; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3949,7 +3949,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -3960,7 +3960,7 @@ api.ProjectsInstancesDatabasesSessionsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.sessions; var arg_request = buildExecuteSqlRequest(); var arg_session = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ExecuteSqlRequest.fromJson(json); checkExecuteSqlRequest(obj); @@ -3998,7 +3998,7 @@ var resp = convert.JSON.encode(buildResultSet()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.executeSql(arg_request, arg_session).then(unittest.expectAsync(((api.ResultSet response) { + res.executeSql(arg_request, arg_session).then(unittest.expectAsync1(((api.ResultSet response) { checkResultSet(response); }))); }); @@ -4009,7 +4009,7 @@ api.ProjectsInstancesDatabasesSessionsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.sessions; var arg_request = buildExecuteSqlRequest(); var arg_session = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ExecuteSqlRequest.fromJson(json); checkExecuteSqlRequest(obj); @@ -4047,7 +4047,7 @@ var resp = convert.JSON.encode(buildPartialResultSet()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.executeStreamingSql(arg_request, arg_session).then(unittest.expectAsync(((api.PartialResultSet response) { + res.executeStreamingSql(arg_request, arg_session).then(unittest.expectAsync1(((api.PartialResultSet response) { checkPartialResultSet(response); }))); }); @@ -4057,7 +4057,7 @@ var mock = new HttpServerMock(); api.ProjectsInstancesDatabasesSessionsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.sessions; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4092,7 +4092,7 @@ var resp = convert.JSON.encode(buildSession()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.Session response) { + res.get(arg_name).then(unittest.expectAsync1(((api.Session response) { checkSession(response); }))); }); @@ -4103,7 +4103,7 @@ api.ProjectsInstancesDatabasesSessionsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.sessions; var arg_request = buildReadRequest(); var arg_session = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ReadRequest.fromJson(json); checkReadRequest(obj); @@ -4141,7 +4141,7 @@ var resp = convert.JSON.encode(buildResultSet()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.read(arg_request, arg_session).then(unittest.expectAsync(((api.ResultSet response) { + res.read(arg_request, arg_session).then(unittest.expectAsync1(((api.ResultSet response) { checkResultSet(response); }))); }); @@ -4152,7 +4152,7 @@ api.ProjectsInstancesDatabasesSessionsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.sessions; var arg_request = buildRollbackRequest(); var arg_session = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RollbackRequest.fromJson(json); checkRollbackRequest(obj); @@ -4190,7 +4190,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.rollback(arg_request, arg_session).then(unittest.expectAsync(((api.Empty response) { + res.rollback(arg_request, arg_session).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -4201,7 +4201,7 @@ api.ProjectsInstancesDatabasesSessionsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.sessions; var arg_request = buildReadRequest(); var arg_session = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ReadRequest.fromJson(json); checkReadRequest(obj); @@ -4239,7 +4239,7 @@ var resp = convert.JSON.encode(buildPartialResultSet()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.streamingRead(arg_request, arg_session).then(unittest.expectAsync(((api.PartialResultSet response) { + res.streamingRead(arg_request, arg_session).then(unittest.expectAsync1(((api.PartialResultSet response) { checkPartialResultSet(response); }))); }); @@ -4253,7 +4253,7 @@ var mock = new HttpServerMock(); api.ProjectsInstancesOperationsResourceApi res = new api.SpannerApi(mock).projects.instances.operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4288,7 +4288,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.cancel(arg_name).then(unittest.expectAsync(((api.Empty response) { + res.cancel(arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -4298,7 +4298,7 @@ var mock = new HttpServerMock(); api.ProjectsInstancesOperationsResourceApi res = new api.SpannerApi(mock).projects.instances.operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4333,7 +4333,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -4343,7 +4343,7 @@ var mock = new HttpServerMock(); api.ProjectsInstancesOperationsResourceApi res = new api.SpannerApi(mock).projects.instances.operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4378,7 +4378,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -4388,10 +4388,10 @@ var mock = new HttpServerMock(); api.ProjectsInstancesOperationsResourceApi res = new api.SpannerApi(mock).projects.instances.operations; var arg_name = "foo"; + var arg_pageSize = 42; var arg_filter = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4418,9 +4418,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); var h = { @@ -4429,7 +4429,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListOperationsResponse response) { + res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); });
diff --git a/generated/googleapis/test/speech/v1_test.dart b/generated/googleapis/test/speech/v1_test.dart index a781d45..b4344ee 100644 --- a/generated/googleapis/test/speech/v1_test.dart +++ b/generated/googleapis/test/speech/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/speech/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -85,14 +85,14 @@ buildCounterEmpty--; } -buildUnnamed3079() { +buildUnnamed2550() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3079(core.List<api.Operation> o) { +checkUnnamed2550(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -104,7 +104,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3079(); + o.operations = buildUnnamed2550(); } buildCounterListOperationsResponse--; return o; @@ -114,7 +114,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3079(o.operations); + checkUnnamed2550(o.operations); } buildCounterListOperationsResponse--; } @@ -140,27 +140,27 @@ buildCounterLongRunningRecognizeRequest--; } -buildUnnamed3080() { +buildUnnamed2551() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3080(core.Map<core.String, core.Object> o) { +checkUnnamed2551(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3081() { +buildUnnamed2552() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3081(core.Map<core.String, core.Object> o) { +checkUnnamed2552(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -173,9 +173,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3080(); + o.metadata = buildUnnamed2551(); o.name = "foo"; - o.response = buildUnnamed3081(); + o.response = buildUnnamed2552(); } buildCounterOperation--; return o; @@ -186,9 +186,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3080(o.metadata); + checkUnnamed2551(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3081(o.response); + checkUnnamed2552(o.response); } buildCounterOperation--; } @@ -214,14 +214,14 @@ buildCounterRecognitionAudio--; } -buildUnnamed3082() { +buildUnnamed2553() { var o = new core.List<api.SpeechContext>(); o.add(buildSpeechContext()); o.add(buildSpeechContext()); return o; } -checkUnnamed3082(core.List<api.SpeechContext> o) { +checkUnnamed2553(core.List<api.SpeechContext> o) { unittest.expect(o, unittest.hasLength(2)); checkSpeechContext(o[0]); checkSpeechContext(o[1]); @@ -237,7 +237,7 @@ o.maxAlternatives = 42; o.profanityFilter = true; o.sampleRateHertz = 42; - o.speechContexts = buildUnnamed3082(); + o.speechContexts = buildUnnamed2553(); } buildCounterRecognitionConfig--; return o; @@ -251,7 +251,7 @@ unittest.expect(o.maxAlternatives, unittest.equals(42)); unittest.expect(o.profanityFilter, unittest.isTrue); unittest.expect(o.sampleRateHertz, unittest.equals(42)); - checkUnnamed3082(o.speechContexts); + checkUnnamed2553(o.speechContexts); } buildCounterRecognitionConfig--; } @@ -277,14 +277,14 @@ buildCounterRecognizeRequest--; } -buildUnnamed3083() { +buildUnnamed2554() { var o = new core.List<api.SpeechRecognitionResult>(); o.add(buildSpeechRecognitionResult()); o.add(buildSpeechRecognitionResult()); return o; } -checkUnnamed3083(core.List<api.SpeechRecognitionResult> o) { +checkUnnamed2554(core.List<api.SpeechRecognitionResult> o) { unittest.expect(o, unittest.hasLength(2)); checkSpeechRecognitionResult(o[0]); checkSpeechRecognitionResult(o[1]); @@ -295,7 +295,7 @@ var o = new api.RecognizeResponse(); buildCounterRecognizeResponse++; if (buildCounterRecognizeResponse < 3) { - o.results = buildUnnamed3083(); + o.results = buildUnnamed2554(); } buildCounterRecognizeResponse--; return o; @@ -304,19 +304,19 @@ checkRecognizeResponse(api.RecognizeResponse o) { buildCounterRecognizeResponse++; if (buildCounterRecognizeResponse < 3) { - checkUnnamed3083(o.results); + checkUnnamed2554(o.results); } buildCounterRecognizeResponse--; } -buildUnnamed3084() { +buildUnnamed2555() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3084(core.List<core.String> o) { +checkUnnamed2555(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -327,7 +327,7 @@ var o = new api.SpeechContext(); buildCounterSpeechContext++; if (buildCounterSpeechContext < 3) { - o.phrases = buildUnnamed3084(); + o.phrases = buildUnnamed2555(); } buildCounterSpeechContext--; return o; @@ -336,7 +336,7 @@ checkSpeechContext(api.SpeechContext o) { buildCounterSpeechContext++; if (buildCounterSpeechContext < 3) { - checkUnnamed3084(o.phrases); + checkUnnamed2555(o.phrases); } buildCounterSpeechContext--; } @@ -362,14 +362,14 @@ buildCounterSpeechRecognitionAlternative--; } -buildUnnamed3085() { +buildUnnamed2556() { var o = new core.List<api.SpeechRecognitionAlternative>(); o.add(buildSpeechRecognitionAlternative()); o.add(buildSpeechRecognitionAlternative()); return o; } -checkUnnamed3085(core.List<api.SpeechRecognitionAlternative> o) { +checkUnnamed2556(core.List<api.SpeechRecognitionAlternative> o) { unittest.expect(o, unittest.hasLength(2)); checkSpeechRecognitionAlternative(o[0]); checkSpeechRecognitionAlternative(o[1]); @@ -380,7 +380,7 @@ var o = new api.SpeechRecognitionResult(); buildCounterSpeechRecognitionResult++; if (buildCounterSpeechRecognitionResult < 3) { - o.alternatives = buildUnnamed3085(); + o.alternatives = buildUnnamed2556(); } buildCounterSpeechRecognitionResult--; return o; @@ -389,35 +389,35 @@ checkSpeechRecognitionResult(api.SpeechRecognitionResult o) { buildCounterSpeechRecognitionResult++; if (buildCounterSpeechRecognitionResult < 3) { - checkUnnamed3085(o.alternatives); + checkUnnamed2556(o.alternatives); } buildCounterSpeechRecognitionResult--; } -buildUnnamed3086() { +buildUnnamed2557() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3086(core.Map<core.String, core.Object> o) { +checkUnnamed2557(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed3087() { +buildUnnamed2558() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3086()); - o.add(buildUnnamed3086()); + o.add(buildUnnamed2557()); + o.add(buildUnnamed2557()); return o; } -checkUnnamed3087(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2558(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3086(o[0]); - checkUnnamed3086(o[1]); + checkUnnamed2557(o[0]); + checkUnnamed2557(o[1]); } core.int buildCounterStatus = 0; @@ -426,7 +426,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3087(); + o.details = buildUnnamed2558(); o.message = "foo"; } buildCounterStatus--; @@ -437,7 +437,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3087(o.details); + checkUnnamed2558(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -569,7 +569,7 @@ api.OperationsResourceApi res = new api.SpeechApi(mock).operations; var arg_request = buildCancelOperationRequest(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CancelOperationRequest.fromJson(json); checkCancelOperationRequest(obj); @@ -607,7 +607,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.cancel(arg_request, arg_name).then(unittest.expectAsync(((api.Empty response) { + res.cancel(arg_request, arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -617,7 +617,7 @@ var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.SpeechApi(mock).operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -652,7 +652,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -662,7 +662,7 @@ var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.SpeechApi(mock).operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -697,7 +697,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -706,11 +706,11 @@ var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.SpeechApi(mock).operations; - var arg_pageSize = 42; - var arg_filter = "foo"; var arg_name = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_pageSize = 42; + var arg_filter = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -736,10 +736,10 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); var h = { @@ -748,7 +748,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(pageSize: arg_pageSize, filter: arg_filter, name: arg_name, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response) { + res.list(name: arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); }); @@ -762,7 +762,7 @@ var mock = new HttpServerMock(); api.SpeechResourceApi res = new api.SpeechApi(mock).speech; var arg_request = buildLongRunningRecognizeRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LongRunningRecognizeRequest.fromJson(json); checkLongRunningRecognizeRequest(obj); @@ -799,7 +799,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.longrunningrecognize(arg_request).then(unittest.expectAsync(((api.Operation response) { + res.longrunningrecognize(arg_request).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -809,7 +809,7 @@ var mock = new HttpServerMock(); api.SpeechResourceApi res = new api.SpeechApi(mock).speech; var arg_request = buildRecognizeRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RecognizeRequest.fromJson(json); checkRecognizeRequest(obj); @@ -846,7 +846,7 @@ var resp = convert.JSON.encode(buildRecognizeResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.recognize(arg_request).then(unittest.expectAsync(((api.RecognizeResponse response) { + res.recognize(arg_request).then(unittest.expectAsync1(((api.RecognizeResponse response) { checkRecognizeResponse(response); }))); });
diff --git a/generated/googleapis/test/storagetransfer/v1_test.dart b/generated/googleapis/test/storagetransfer/v1_test.dart index 35d3159..70c4501 100644 --- a/generated/googleapis/test/storagetransfer/v1_test.dart +++ b/generated/googleapis/test/storagetransfer/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/storagetransfer/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -133,14 +133,14 @@ buildCounterEmpty--; } -buildUnnamed1322() { +buildUnnamed1329() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1322(core.List<core.String> o) { +checkUnnamed1329(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -151,7 +151,7 @@ var o = new api.ErrorLogEntry(); buildCounterErrorLogEntry++; if (buildCounterErrorLogEntry < 3) { - o.errorDetails = buildUnnamed1322(); + o.errorDetails = buildUnnamed1329(); o.url = "foo"; } buildCounterErrorLogEntry--; @@ -161,20 +161,20 @@ checkErrorLogEntry(api.ErrorLogEntry o) { buildCounterErrorLogEntry++; if (buildCounterErrorLogEntry < 3) { - checkUnnamed1322(o.errorDetails); + checkUnnamed1329(o.errorDetails); unittest.expect(o.url, unittest.equals('foo')); } buildCounterErrorLogEntry--; } -buildUnnamed1323() { +buildUnnamed1330() { var o = new core.List<api.ErrorLogEntry>(); o.add(buildErrorLogEntry()); o.add(buildErrorLogEntry()); return o; } -checkUnnamed1323(core.List<api.ErrorLogEntry> o) { +checkUnnamed1330(core.List<api.ErrorLogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorLogEntry(o[0]); checkErrorLogEntry(o[1]); @@ -187,7 +187,7 @@ if (buildCounterErrorSummary < 3) { o.errorCode = "foo"; o.errorCount = "foo"; - o.errorLogEntries = buildUnnamed1323(); + o.errorLogEntries = buildUnnamed1330(); } buildCounterErrorSummary--; return o; @@ -198,7 +198,7 @@ if (buildCounterErrorSummary < 3) { unittest.expect(o.errorCode, unittest.equals('foo')); unittest.expect(o.errorCount, unittest.equals('foo')); - checkUnnamed1323(o.errorLogEntries); + checkUnnamed1330(o.errorLogEntries); } buildCounterErrorSummary--; } @@ -260,14 +260,14 @@ buildCounterHttpData--; } -buildUnnamed1324() { +buildUnnamed1331() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1324(core.List<api.Operation> o) { +checkUnnamed1331(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -279,7 +279,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1324(); + o.operations = buildUnnamed1331(); } buildCounterListOperationsResponse--; return o; @@ -289,19 +289,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1324(o.operations); + checkUnnamed1331(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1325() { +buildUnnamed1332() { var o = new core.List<api.TransferJob>(); o.add(buildTransferJob()); o.add(buildTransferJob()); return o; } -checkUnnamed1325(core.List<api.TransferJob> o) { +checkUnnamed1332(core.List<api.TransferJob> o) { unittest.expect(o, unittest.hasLength(2)); checkTransferJob(o[0]); checkTransferJob(o[1]); @@ -313,7 +313,7 @@ buildCounterListTransferJobsResponse++; if (buildCounterListTransferJobsResponse < 3) { o.nextPageToken = "foo"; - o.transferJobs = buildUnnamed1325(); + o.transferJobs = buildUnnamed1332(); } buildCounterListTransferJobsResponse--; return o; @@ -323,32 +323,32 @@ buildCounterListTransferJobsResponse++; if (buildCounterListTransferJobsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1325(o.transferJobs); + checkUnnamed1332(o.transferJobs); } buildCounterListTransferJobsResponse--; } -buildUnnamed1326() { +buildUnnamed1333() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1326(core.List<core.String> o) { +checkUnnamed1333(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1327() { +buildUnnamed1334() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1327(core.List<core.String> o) { +checkUnnamed1334(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -359,8 +359,8 @@ var o = new api.ObjectConditions(); buildCounterObjectConditions++; if (buildCounterObjectConditions < 3) { - o.excludePrefixes = buildUnnamed1326(); - o.includePrefixes = buildUnnamed1327(); + o.excludePrefixes = buildUnnamed1333(); + o.includePrefixes = buildUnnamed1334(); o.maxTimeElapsedSinceLastModification = "foo"; o.minTimeElapsedSinceLastModification = "foo"; } @@ -371,35 +371,35 @@ checkObjectConditions(api.ObjectConditions o) { buildCounterObjectConditions++; if (buildCounterObjectConditions < 3) { - checkUnnamed1326(o.excludePrefixes); - checkUnnamed1327(o.includePrefixes); + checkUnnamed1333(o.excludePrefixes); + checkUnnamed1334(o.includePrefixes); unittest.expect(o.maxTimeElapsedSinceLastModification, unittest.equals('foo')); unittest.expect(o.minTimeElapsedSinceLastModification, unittest.equals('foo')); } buildCounterObjectConditions--; } -buildUnnamed1328() { +buildUnnamed1335() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1328(core.Map<core.String, core.Object> o) { +checkUnnamed1335(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1329() { +buildUnnamed1336() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1329(core.Map<core.String, core.Object> o) { +checkUnnamed1336(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -412,9 +412,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1328(); + o.metadata = buildUnnamed1335(); o.name = "foo"; - o.response = buildUnnamed1329(); + o.response = buildUnnamed1336(); } buildCounterOperation--; return o; @@ -425,9 +425,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1328(o.metadata); + checkUnnamed1335(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1329(o.response); + checkUnnamed1336(o.response); } buildCounterOperation--; } @@ -489,30 +489,30 @@ buildCounterSchedule--; } -buildUnnamed1330() { +buildUnnamed1337() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1330(core.Map<core.String, core.Object> o) { +checkUnnamed1337(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1331() { +buildUnnamed1338() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1330()); - o.add(buildUnnamed1330()); + o.add(buildUnnamed1337()); + o.add(buildUnnamed1337()); return o; } -checkUnnamed1331(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1338(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1330(o[0]); - checkUnnamed1330(o[1]); + checkUnnamed1337(o[0]); + checkUnnamed1337(o[1]); } core.int buildCounterStatus = 0; @@ -521,7 +521,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1331(); + o.details = buildUnnamed1338(); o.message = "foo"; } buildCounterStatus--; @@ -532,7 +532,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1331(o.details); + checkUnnamed1338(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -647,14 +647,14 @@ buildCounterTransferJob--; } -buildUnnamed1332() { +buildUnnamed1339() { var o = new core.List<api.ErrorSummary>(); o.add(buildErrorSummary()); o.add(buildErrorSummary()); return o; } -checkUnnamed1332(core.List<api.ErrorSummary> o) { +checkUnnamed1339(core.List<api.ErrorSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorSummary(o[0]); checkErrorSummary(o[1]); @@ -667,7 +667,7 @@ if (buildCounterTransferOperation < 3) { o.counters = buildTransferCounters(); o.endTime = "foo"; - o.errorBreakdowns = buildUnnamed1332(); + o.errorBreakdowns = buildUnnamed1339(); o.name = "foo"; o.projectId = "foo"; o.startTime = "foo"; @@ -684,7 +684,7 @@ if (buildCounterTransferOperation < 3) { checkTransferCounters(o.counters); unittest.expect(o.endTime, unittest.equals('foo')); - checkUnnamed1332(o.errorBreakdowns); + checkUnnamed1339(o.errorBreakdowns); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.startTime, unittest.equals('foo')); @@ -994,7 +994,7 @@ var mock = new HttpServerMock(); api.GoogleServiceAccountsResourceApi res = new api.StoragetransferApi(mock).googleServiceAccounts; var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1031,7 +1031,7 @@ var resp = convert.JSON.encode(buildGoogleServiceAccount()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_projectId).then(unittest.expectAsync(((api.GoogleServiceAccount response) { + res.get(arg_projectId).then(unittest.expectAsync1(((api.GoogleServiceAccount response) { checkGoogleServiceAccount(response); }))); }); @@ -1045,7 +1045,7 @@ var mock = new HttpServerMock(); api.TransferJobsResourceApi res = new api.StoragetransferApi(mock).transferJobs; var arg_request = buildTransferJob(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TransferJob.fromJson(json); checkTransferJob(obj); @@ -1082,7 +1082,7 @@ var resp = convert.JSON.encode(buildTransferJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request).then(unittest.expectAsync(((api.TransferJob response) { + res.create(arg_request).then(unittest.expectAsync1(((api.TransferJob response) { checkTransferJob(response); }))); }); @@ -1093,7 +1093,7 @@ api.TransferJobsResourceApi res = new api.StoragetransferApi(mock).transferJobs; var arg_jobName = "foo"; var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1129,7 +1129,7 @@ var resp = convert.JSON.encode(buildTransferJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_jobName, projectId: arg_projectId).then(unittest.expectAsync(((api.TransferJob response) { + res.get(arg_jobName, projectId: arg_projectId).then(unittest.expectAsync1(((api.TransferJob response) { checkTransferJob(response); }))); }); @@ -1141,7 +1141,7 @@ var arg_pageSize = 42; var arg_filter = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1178,7 +1178,7 @@ var resp = convert.JSON.encode(buildListTransferJobsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListTransferJobsResponse response) { + res.list(pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListTransferJobsResponse response) { checkListTransferJobsResponse(response); }))); }); @@ -1189,7 +1189,7 @@ api.TransferJobsResourceApi res = new api.StoragetransferApi(mock).transferJobs; var arg_request = buildUpdateTransferJobRequest(); var arg_jobName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UpdateTransferJobRequest.fromJson(json); checkUpdateTransferJobRequest(obj); @@ -1227,7 +1227,7 @@ var resp = convert.JSON.encode(buildTransferJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_jobName).then(unittest.expectAsync(((api.TransferJob response) { + res.patch(arg_request, arg_jobName).then(unittest.expectAsync1(((api.TransferJob response) { checkTransferJob(response); }))); }); @@ -1241,7 +1241,7 @@ var mock = new HttpServerMock(); api.TransferOperationsResourceApi res = new api.StoragetransferApi(mock).transferOperations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1276,7 +1276,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.cancel(arg_name).then(unittest.expectAsync(((api.Empty response) { + res.cancel(arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1286,7 +1286,7 @@ var mock = new HttpServerMock(); api.TransferOperationsResourceApi res = new api.StoragetransferApi(mock).transferOperations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1321,7 +1321,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1331,7 +1331,7 @@ var mock = new HttpServerMock(); api.TransferOperationsResourceApi res = new api.StoragetransferApi(mock).transferOperations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1366,7 +1366,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1376,10 +1376,10 @@ var mock = new HttpServerMock(); api.TransferOperationsResourceApi res = new api.StoragetransferApi(mock).transferOperations; var arg_name = "foo"; + var arg_pageSize = 42; var arg_filter = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1406,9 +1406,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); var h = { @@ -1417,7 +1417,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListOperationsResponse response) { + res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); }); @@ -1428,7 +1428,7 @@ api.TransferOperationsResourceApi res = new api.StoragetransferApi(mock).transferOperations; var arg_request = buildPauseTransferOperationRequest(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.PauseTransferOperationRequest.fromJson(json); checkPauseTransferOperationRequest(obj); @@ -1466,7 +1466,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.pause(arg_request, arg_name).then(unittest.expectAsync(((api.Empty response) { + res.pause(arg_request, arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1477,7 +1477,7 @@ api.TransferOperationsResourceApi res = new api.StoragetransferApi(mock).transferOperations; var arg_request = buildResumeTransferOperationRequest(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ResumeTransferOperationRequest.fromJson(json); checkResumeTransferOperationRequest(obj); @@ -1515,7 +1515,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resume(arg_request, arg_name).then(unittest.expectAsync(((api.Empty response) { + res.resume(arg_request, arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); });
diff --git a/generated/googleapis/test/surveys/v2_test.dart b/generated/googleapis/test/surveys/v2_test.dart index 7c5b9ac..48178ac 100644 --- a/generated/googleapis/test/surveys/v2_test.dart +++ b/generated/googleapis/test/surveys/v2_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/surveys/v2.dart' as api; @@ -46,19 +46,19 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2077() { +buildUnnamed2088() { var o = new core.List<api.FieldMask>(); o.add(buildFieldMask()); o.add(buildFieldMask()); return o; } -checkUnnamed2077(core.List<api.FieldMask> o) { +checkUnnamed2088(core.List<api.FieldMask> o) { unittest.expect(o, unittest.hasLength(2)); checkFieldMask(o[0]); checkFieldMask(o[1]); @@ -69,7 +69,7 @@ var o = new api.FieldMask(); buildCounterFieldMask++; if (buildCounterFieldMask < 3) { - o.fields = buildUnnamed2077(); + o.fields = buildUnnamed2088(); o.id = 42; } buildCounterFieldMask--; @@ -79,20 +79,20 @@ checkFieldMask(api.FieldMask o) { buildCounterFieldMask++; if (buildCounterFieldMask < 3) { - checkUnnamed2077(o.fields); + checkUnnamed2088(o.fields); unittest.expect(o.id, unittest.equals(42)); } buildCounterFieldMask--; } -buildUnnamed2078() { +buildUnnamed2089() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2078(core.List<core.String> o) { +checkUnnamed2089(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -108,7 +108,7 @@ o.language = "foo"; o.mobileAppPanelId = "foo"; o.name = "foo"; - o.owners = buildUnnamed2078(); + o.owners = buildUnnamed2089(); } buildCounterMobileAppPanel--; return o; @@ -122,19 +122,19 @@ unittest.expect(o.language, unittest.equals('foo')); unittest.expect(o.mobileAppPanelId, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2078(o.owners); + checkUnnamed2089(o.owners); } buildCounterMobileAppPanel--; } -buildUnnamed2079() { +buildUnnamed2090() { var o = new core.List<api.MobileAppPanel>(); o.add(buildMobileAppPanel()); o.add(buildMobileAppPanel()); return o; } -checkUnnamed2079(core.List<api.MobileAppPanel> o) { +checkUnnamed2090(core.List<api.MobileAppPanel> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileAppPanel(o[0]); checkMobileAppPanel(o[1]); @@ -147,7 +147,7 @@ if (buildCounterMobileAppPanelsListResponse < 3) { o.pageInfo = buildPageInfo(); o.requestId = "foo"; - o.resources = buildUnnamed2079(); + o.resources = buildUnnamed2090(); o.tokenPagination = buildTokenPagination(); } buildCounterMobileAppPanelsListResponse--; @@ -159,7 +159,7 @@ if (buildCounterMobileAppPanelsListResponse < 3) { checkPageInfo(o.pageInfo); unittest.expect(o.requestId, unittest.equals('foo')); - checkUnnamed2079(o.resources); + checkUnnamed2090(o.resources); checkTokenPagination(o.tokenPagination); } buildCounterMobileAppPanelsListResponse--; @@ -207,14 +207,14 @@ buildCounterResultsGetRequest--; } -buildUnnamed2080() { +buildUnnamed2091() { var o = new core.List<api.FieldMask>(); o.add(buildFieldMask()); o.add(buildFieldMask()); return o; } -checkUnnamed2080(core.List<api.FieldMask> o) { +checkUnnamed2091(core.List<api.FieldMask> o) { unittest.expect(o, unittest.hasLength(2)); checkFieldMask(o[0]); checkFieldMask(o[1]); @@ -225,7 +225,7 @@ var o = new api.ResultsMask(); buildCounterResultsMask++; if (buildCounterResultsMask < 3) { - o.fields = buildUnnamed2080(); + o.fields = buildUnnamed2091(); o.projection = "foo"; } buildCounterResultsMask--; @@ -235,33 +235,33 @@ checkResultsMask(api.ResultsMask o) { buildCounterResultsMask++; if (buildCounterResultsMask < 3) { - checkUnnamed2080(o.fields); + checkUnnamed2091(o.fields); unittest.expect(o.projection, unittest.equals('foo')); } buildCounterResultsMask--; } -buildUnnamed2081() { +buildUnnamed2092() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2081(core.List<core.String> o) { +checkUnnamed2092(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2082() { +buildUnnamed2093() { var o = new core.List<api.SurveyQuestion>(); o.add(buildSurveyQuestion()); o.add(buildSurveyQuestion()); return o; } -checkUnnamed2082(core.List<api.SurveyQuestion> o) { +checkUnnamed2093(core.List<api.SurveyQuestion> o) { unittest.expect(o, unittest.hasLength(2)); checkSurveyQuestion(o[0]); checkSurveyQuestion(o[1]); @@ -276,8 +276,8 @@ o.cost = buildSurveyCost(); o.customerData = "foo"; o.description = "foo"; - o.owners = buildUnnamed2081(); - o.questions = buildUnnamed2082(); + o.owners = buildUnnamed2092(); + o.questions = buildUnnamed2093(); o.rejectionReason = buildSurveyRejection(); o.state = "foo"; o.surveyUrlId = "foo"; @@ -295,8 +295,8 @@ checkSurveyCost(o.cost); unittest.expect(o.customerData, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2081(o.owners); - checkUnnamed2082(o.questions); + checkUnnamed2092(o.owners); + checkUnnamed2093(o.questions); checkSurveyRejection(o.rejectionReason); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.surveyUrlId, unittest.equals('foo')); @@ -306,27 +306,27 @@ buildCounterSurvey--; } -buildUnnamed2083() { +buildUnnamed2094() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2083(core.List<core.String> o) { +checkUnnamed2094(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2084() { +buildUnnamed2095() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2084(core.List<core.String> o) { +checkUnnamed2095(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -337,11 +337,11 @@ var o = new api.SurveyAudience(); buildCounterSurveyAudience++; if (buildCounterSurveyAudience < 3) { - o.ages = buildUnnamed2083(); + o.ages = buildUnnamed2094(); o.country = "foo"; o.countrySubdivision = "foo"; o.gender = "foo"; - o.languages = buildUnnamed2084(); + o.languages = buildUnnamed2095(); o.mobileAppPanelId = "foo"; o.populationSource = "foo"; } @@ -352,11 +352,11 @@ checkSurveyAudience(api.SurveyAudience o) { buildCounterSurveyAudience++; if (buildCounterSurveyAudience < 3) { - checkUnnamed2083(o.ages); + checkUnnamed2094(o.ages); unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.countrySubdivision, unittest.equals('foo')); unittest.expect(o.gender, unittest.equals('foo')); - checkUnnamed2084(o.languages); + checkUnnamed2095(o.languages); unittest.expect(o.mobileAppPanelId, unittest.equals('foo')); unittest.expect(o.populationSource, unittest.equals('foo')); } @@ -388,53 +388,53 @@ buildCounterSurveyCost--; } -buildUnnamed2085() { +buildUnnamed2096() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2085(core.List<core.String> o) { +checkUnnamed2096(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2086() { +buildUnnamed2097() { var o = new core.List<api.SurveyQuestionImage>(); o.add(buildSurveyQuestionImage()); o.add(buildSurveyQuestionImage()); return o; } -checkUnnamed2086(core.List<api.SurveyQuestionImage> o) { +checkUnnamed2097(core.List<api.SurveyQuestionImage> o) { unittest.expect(o, unittest.hasLength(2)); checkSurveyQuestionImage(o[0]); checkSurveyQuestionImage(o[1]); } -buildUnnamed2087() { +buildUnnamed2098() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2087(core.List<core.String> o) { +checkUnnamed2098(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2088() { +buildUnnamed2099() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2088(core.List<core.String> o) { +checkUnnamed2099(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -446,20 +446,20 @@ buildCounterSurveyQuestion++; if (buildCounterSurveyQuestion < 3) { o.answerOrder = "foo"; - o.answers = buildUnnamed2085(); + o.answers = buildUnnamed2096(); o.hasOther = true; o.highValueLabel = "foo"; - o.images = buildUnnamed2086(); + o.images = buildUnnamed2097(); o.lastAnswerPositionPinned = true; o.lowValueLabel = "foo"; o.mustPickSuggestion = true; o.numStars = "foo"; o.openTextPlaceholder = "foo"; - o.openTextSuggestions = buildUnnamed2087(); + o.openTextSuggestions = buildUnnamed2098(); o.question = "foo"; o.sentimentText = "foo"; o.singleLineResponse = true; - o.thresholdAnswers = buildUnnamed2088(); + o.thresholdAnswers = buildUnnamed2099(); o.type = "foo"; o.unitOfMeasurementLabel = "foo"; o.videoId = "foo"; @@ -472,20 +472,20 @@ buildCounterSurveyQuestion++; if (buildCounterSurveyQuestion < 3) { unittest.expect(o.answerOrder, unittest.equals('foo')); - checkUnnamed2085(o.answers); + checkUnnamed2096(o.answers); unittest.expect(o.hasOther, unittest.isTrue); unittest.expect(o.highValueLabel, unittest.equals('foo')); - checkUnnamed2086(o.images); + checkUnnamed2097(o.images); unittest.expect(o.lastAnswerPositionPinned, unittest.isTrue); unittest.expect(o.lowValueLabel, unittest.equals('foo')); unittest.expect(o.mustPickSuggestion, unittest.isTrue); unittest.expect(o.numStars, unittest.equals('foo')); unittest.expect(o.openTextPlaceholder, unittest.equals('foo')); - checkUnnamed2087(o.openTextSuggestions); + checkUnnamed2098(o.openTextSuggestions); unittest.expect(o.question, unittest.equals('foo')); unittest.expect(o.sentimentText, unittest.equals('foo')); unittest.expect(o.singleLineResponse, unittest.isTrue); - checkUnnamed2088(o.thresholdAnswers); + checkUnnamed2099(o.thresholdAnswers); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.unitOfMeasurementLabel, unittest.equals('foo')); unittest.expect(o.videoId, unittest.equals('foo')); @@ -577,14 +577,14 @@ buildCounterSurveysDeleteResponse--; } -buildUnnamed2089() { +buildUnnamed2100() { var o = new core.List<api.Survey>(); o.add(buildSurvey()); o.add(buildSurvey()); return o; } -checkUnnamed2089(core.List<api.Survey> o) { +checkUnnamed2100(core.List<api.Survey> o) { unittest.expect(o, unittest.hasLength(2)); checkSurvey(o[0]); checkSurvey(o[1]); @@ -597,7 +597,7 @@ if (buildCounterSurveysListResponse < 3) { o.pageInfo = buildPageInfo(); o.requestId = "foo"; - o.resources = buildUnnamed2089(); + o.resources = buildUnnamed2100(); o.tokenPagination = buildTokenPagination(); } buildCounterSurveysListResponse--; @@ -609,7 +609,7 @@ if (buildCounterSurveysListResponse < 3) { checkPageInfo(o.pageInfo); unittest.expect(o.requestId, unittest.equals('foo')); - checkUnnamed2089(o.resources); + checkUnnamed2100(o.resources); checkTokenPagination(o.tokenPagination); } buildCounterSurveysListResponse--; @@ -872,7 +872,7 @@ var mock = new HttpServerMock(); api.MobileapppanelsResourceApi res = new api.SurveysApi(mock).mobileapppanels; var arg_panelId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -911,7 +911,7 @@ var resp = convert.JSON.encode(buildMobileAppPanel()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_panelId).then(unittest.expectAsync(((api.MobileAppPanel response) { + res.get(arg_panelId).then(unittest.expectAsync1(((api.MobileAppPanel response) { checkMobileAppPanel(response); }))); }); @@ -923,7 +923,7 @@ var arg_maxResults = 42; var arg_startIndex = 42; var arg_token = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -962,7 +962,7 @@ var resp = convert.JSON.encode(buildMobileAppPanelsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(maxResults: arg_maxResults, startIndex: arg_startIndex, token: arg_token).then(unittest.expectAsync(((api.MobileAppPanelsListResponse response) { + res.list(maxResults: arg_maxResults, startIndex: arg_startIndex, token: arg_token).then(unittest.expectAsync1(((api.MobileAppPanelsListResponse response) { checkMobileAppPanelsListResponse(response); }))); }); @@ -973,7 +973,7 @@ api.MobileapppanelsResourceApi res = new api.SurveysApi(mock).mobileapppanels; var arg_request = buildMobileAppPanel(); var arg_panelId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.MobileAppPanel.fromJson(json); checkMobileAppPanel(obj); @@ -1015,7 +1015,7 @@ var resp = convert.JSON.encode(buildMobileAppPanel()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_panelId).then(unittest.expectAsync(((api.MobileAppPanel response) { + res.update(arg_request, arg_panelId).then(unittest.expectAsync1(((api.MobileAppPanel response) { checkMobileAppPanel(response); }))); }); @@ -1032,7 +1032,7 @@ api.ResultsResourceApi res = new api.SurveysApi(mock).results; var arg_request = buildResultsGetRequest(); var arg_surveyUrlId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ResultsGetRequest.fromJson(json); checkResultsGetRequest(obj); @@ -1078,7 +1078,7 @@ var resp = convert.JSON.encode(buildSurveyResults()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_request, arg_surveyUrlId).then(unittest.expectAsync(((api.SurveyResults response) { + res.get(arg_request, arg_surveyUrlId).then(unittest.expectAsync1(((api.SurveyResults response) { checkSurveyResults(response); }))); }); @@ -1092,7 +1092,7 @@ var mock = new HttpServerMock(); api.SurveysResourceApi res = new api.SurveysApi(mock).surveys; var arg_surveyUrlId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1131,7 +1131,7 @@ var resp = convert.JSON.encode(buildSurveysDeleteResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_surveyUrlId).then(unittest.expectAsync(((api.SurveysDeleteResponse response) { + res.delete(arg_surveyUrlId).then(unittest.expectAsync1(((api.SurveysDeleteResponse response) { checkSurveysDeleteResponse(response); }))); }); @@ -1141,7 +1141,7 @@ var mock = new HttpServerMock(); api.SurveysResourceApi res = new api.SurveysApi(mock).surveys; var arg_surveyUrlId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1180,7 +1180,7 @@ var resp = convert.JSON.encode(buildSurvey()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_surveyUrlId).then(unittest.expectAsync(((api.Survey response) { + res.get(arg_surveyUrlId).then(unittest.expectAsync1(((api.Survey response) { checkSurvey(response); }))); }); @@ -1190,7 +1190,7 @@ var mock = new HttpServerMock(); api.SurveysResourceApi res = new api.SurveysApi(mock).surveys; var arg_request = buildSurvey(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Survey.fromJson(json); checkSurvey(obj); @@ -1229,7 +1229,7 @@ var resp = convert.JSON.encode(buildSurvey()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request).then(unittest.expectAsync(((api.Survey response) { + res.insert(arg_request).then(unittest.expectAsync1(((api.Survey response) { checkSurvey(response); }))); }); @@ -1241,7 +1241,7 @@ var arg_maxResults = 42; var arg_startIndex = 42; var arg_token = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1280,7 +1280,7 @@ var resp = convert.JSON.encode(buildSurveysListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(maxResults: arg_maxResults, startIndex: arg_startIndex, token: arg_token).then(unittest.expectAsync(((api.SurveysListResponse response) { + res.list(maxResults: arg_maxResults, startIndex: arg_startIndex, token: arg_token).then(unittest.expectAsync1(((api.SurveysListResponse response) { checkSurveysListResponse(response); }))); }); @@ -1291,7 +1291,7 @@ api.SurveysResourceApi res = new api.SurveysApi(mock).surveys; var arg_request = buildSurveysStartRequest(); var arg_resourceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SurveysStartRequest.fromJson(json); checkSurveysStartRequest(obj); @@ -1337,7 +1337,7 @@ var resp = convert.JSON.encode(buildSurveysStartResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.start(arg_request, arg_resourceId).then(unittest.expectAsync(((api.SurveysStartResponse response) { + res.start(arg_request, arg_resourceId).then(unittest.expectAsync1(((api.SurveysStartResponse response) { checkSurveysStartResponse(response); }))); }); @@ -1347,7 +1347,7 @@ var mock = new HttpServerMock(); api.SurveysResourceApi res = new api.SurveysApi(mock).surveys; var arg_resourceId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1390,7 +1390,7 @@ var resp = convert.JSON.encode(buildSurveysStopResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.stop(arg_resourceId).then(unittest.expectAsync(((api.SurveysStopResponse response) { + res.stop(arg_resourceId).then(unittest.expectAsync1(((api.SurveysStopResponse response) { checkSurveysStopResponse(response); }))); }); @@ -1401,7 +1401,7 @@ api.SurveysResourceApi res = new api.SurveysApi(mock).surveys; var arg_request = buildSurvey(); var arg_surveyUrlId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Survey.fromJson(json); checkSurvey(obj); @@ -1443,7 +1443,7 @@ var resp = convert.JSON.encode(buildSurvey()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_surveyUrlId).then(unittest.expectAsync(((api.Survey response) { + res.update(arg_request, arg_surveyUrlId).then(unittest.expectAsync1(((api.Survey response) { checkSurvey(response); }))); });
diff --git a/generated/googleapis/test/tasks/v1_test.dart b/generated/googleapis/test/tasks/v1_test.dart index 65d75fa..18499cf 100644 --- a/generated/googleapis/test/tasks/v1_test.dart +++ b/generated/googleapis/test/tasks/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/tasks/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -74,14 +74,14 @@ buildCounterTaskLinks--; } -buildUnnamed3088() { +buildUnnamed2559() { var o = new core.List<api.TaskLinks>(); o.add(buildTaskLinks()); o.add(buildTaskLinks()); return o; } -checkUnnamed3088(core.List<api.TaskLinks> o) { +checkUnnamed2559(core.List<api.TaskLinks> o) { unittest.expect(o, unittest.hasLength(2)); checkTaskLinks(o[0]); checkTaskLinks(o[1]); @@ -99,7 +99,7 @@ o.hidden = true; o.id = "foo"; o.kind = "foo"; - o.links = buildUnnamed3088(); + o.links = buildUnnamed2559(); o.notes = "foo"; o.parent = "foo"; o.position = "foo"; @@ -122,7 +122,7 @@ unittest.expect(o.hidden, unittest.isTrue); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3088(o.links); + checkUnnamed2559(o.links); unittest.expect(o.notes, unittest.equals('foo')); unittest.expect(o.parent, unittest.equals('foo')); unittest.expect(o.position, unittest.equals('foo')); @@ -163,14 +163,14 @@ buildCounterTaskList--; } -buildUnnamed3089() { +buildUnnamed2560() { var o = new core.List<api.TaskList>(); o.add(buildTaskList()); o.add(buildTaskList()); return o; } -checkUnnamed3089(core.List<api.TaskList> o) { +checkUnnamed2560(core.List<api.TaskList> o) { unittest.expect(o, unittest.hasLength(2)); checkTaskList(o[0]); checkTaskList(o[1]); @@ -182,7 +182,7 @@ buildCounterTaskLists++; if (buildCounterTaskLists < 3) { o.etag = "foo"; - o.items = buildUnnamed3089(); + o.items = buildUnnamed2560(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -194,21 +194,21 @@ buildCounterTaskLists++; if (buildCounterTaskLists < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3089(o.items); + checkUnnamed2560(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterTaskLists--; } -buildUnnamed3090() { +buildUnnamed2561() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed3090(core.List<api.Task> o) { +checkUnnamed2561(core.List<api.Task> o) { unittest.expect(o, unittest.hasLength(2)); checkTask(o[0]); checkTask(o[1]); @@ -220,7 +220,7 @@ buildCounterTasks++; if (buildCounterTasks < 3) { o.etag = "foo"; - o.items = buildUnnamed3090(); + o.items = buildUnnamed2561(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -232,7 +232,7 @@ buildCounterTasks++; if (buildCounterTasks < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3090(o.items); + checkUnnamed2561(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -292,7 +292,7 @@ var mock = new HttpServerMock(); api.TasklistsResourceApi res = new api.TasksApi(mock).tasklists; var arg_tasklist = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -331,7 +331,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_tasklist).then(unittest.expectAsync((_) {})); + res.delete(arg_tasklist).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -339,7 +339,7 @@ var mock = new HttpServerMock(); api.TasklistsResourceApi res = new api.TasksApi(mock).tasklists; var arg_tasklist = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -378,7 +378,7 @@ var resp = convert.JSON.encode(buildTaskList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_tasklist).then(unittest.expectAsync(((api.TaskList response) { + res.get(arg_tasklist).then(unittest.expectAsync1(((api.TaskList response) { checkTaskList(response); }))); }); @@ -388,7 +388,7 @@ var mock = new HttpServerMock(); api.TasklistsResourceApi res = new api.TasksApi(mock).tasklists; var arg_request = buildTaskList(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TaskList.fromJson(json); checkTaskList(obj); @@ -427,7 +427,7 @@ var resp = convert.JSON.encode(buildTaskList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request).then(unittest.expectAsync(((api.TaskList response) { + res.insert(arg_request).then(unittest.expectAsync1(((api.TaskList response) { checkTaskList(response); }))); }); @@ -438,7 +438,7 @@ api.TasklistsResourceApi res = new api.TasksApi(mock).tasklists; var arg_maxResults = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -476,7 +476,7 @@ var resp = convert.JSON.encode(buildTaskLists()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TaskLists response) { + res.list(maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.TaskLists response) { checkTaskLists(response); }))); }); @@ -487,7 +487,7 @@ api.TasklistsResourceApi res = new api.TasksApi(mock).tasklists; var arg_request = buildTaskList(); var arg_tasklist = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TaskList.fromJson(json); checkTaskList(obj); @@ -529,7 +529,7 @@ var resp = convert.JSON.encode(buildTaskList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_tasklist).then(unittest.expectAsync(((api.TaskList response) { + res.patch(arg_request, arg_tasklist).then(unittest.expectAsync1(((api.TaskList response) { checkTaskList(response); }))); }); @@ -540,7 +540,7 @@ api.TasklistsResourceApi res = new api.TasksApi(mock).tasklists; var arg_request = buildTaskList(); var arg_tasklist = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TaskList.fromJson(json); checkTaskList(obj); @@ -582,7 +582,7 @@ var resp = convert.JSON.encode(buildTaskList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_tasklist).then(unittest.expectAsync(((api.TaskList response) { + res.update(arg_request, arg_tasklist).then(unittest.expectAsync1(((api.TaskList response) { checkTaskList(response); }))); }); @@ -596,7 +596,7 @@ var mock = new HttpServerMock(); api.TasksResourceApi res = new api.TasksApi(mock).tasks; var arg_tasklist = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -639,7 +639,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.clear(arg_tasklist).then(unittest.expectAsync((_) {})); + res.clear(arg_tasklist).then(unittest.expectAsync1((_) {})); }); unittest.test("method--delete", () { @@ -648,7 +648,7 @@ api.TasksResourceApi res = new api.TasksApi(mock).tasks; var arg_tasklist = "foo"; var arg_task = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -694,7 +694,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_tasklist, arg_task).then(unittest.expectAsync((_) {})); + res.delete(arg_tasklist, arg_task).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -703,7 +703,7 @@ api.TasksResourceApi res = new api.TasksApi(mock).tasks; var arg_tasklist = "foo"; var arg_task = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -749,7 +749,7 @@ var resp = convert.JSON.encode(buildTask()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_tasklist, arg_task).then(unittest.expectAsync(((api.Task response) { + res.get(arg_tasklist, arg_task).then(unittest.expectAsync1(((api.Task response) { checkTask(response); }))); }); @@ -762,7 +762,7 @@ var arg_tasklist = "foo"; var arg_parent = "foo"; var arg_previous = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Task.fromJson(json); checkTask(obj); @@ -810,7 +810,7 @@ var resp = convert.JSON.encode(buildTask()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_tasklist, parent: arg_parent, previous: arg_previous).then(unittest.expectAsync(((api.Task response) { + res.insert(arg_request, arg_tasklist, parent: arg_parent, previous: arg_previous).then(unittest.expectAsync1(((api.Task response) { checkTask(response); }))); }); @@ -830,7 +830,7 @@ var arg_showDeleted = true; var arg_showHidden = true; var arg_updatedMin = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -883,7 +883,7 @@ var resp = convert.JSON.encode(buildTasks()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_tasklist, completedMax: arg_completedMax, completedMin: arg_completedMin, dueMax: arg_dueMax, dueMin: arg_dueMin, maxResults: arg_maxResults, pageToken: arg_pageToken, showCompleted: arg_showCompleted, showDeleted: arg_showDeleted, showHidden: arg_showHidden, updatedMin: arg_updatedMin).then(unittest.expectAsync(((api.Tasks response) { + res.list(arg_tasklist, completedMax: arg_completedMax, completedMin: arg_completedMin, dueMax: arg_dueMax, dueMin: arg_dueMin, maxResults: arg_maxResults, pageToken: arg_pageToken, showCompleted: arg_showCompleted, showDeleted: arg_showDeleted, showHidden: arg_showHidden, updatedMin: arg_updatedMin).then(unittest.expectAsync1(((api.Tasks response) { checkTasks(response); }))); }); @@ -896,7 +896,7 @@ var arg_task = "foo"; var arg_parent = "foo"; var arg_previous = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -948,7 +948,7 @@ var resp = convert.JSON.encode(buildTask()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.move(arg_tasklist, arg_task, parent: arg_parent, previous: arg_previous).then(unittest.expectAsync(((api.Task response) { + res.move(arg_tasklist, arg_task, parent: arg_parent, previous: arg_previous).then(unittest.expectAsync1(((api.Task response) { checkTask(response); }))); }); @@ -960,7 +960,7 @@ var arg_request = buildTask(); var arg_tasklist = "foo"; var arg_task = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Task.fromJson(json); checkTask(obj); @@ -1009,7 +1009,7 @@ var resp = convert.JSON.encode(buildTask()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_tasklist, arg_task).then(unittest.expectAsync(((api.Task response) { + res.patch(arg_request, arg_tasklist, arg_task).then(unittest.expectAsync1(((api.Task response) { checkTask(response); }))); }); @@ -1021,7 +1021,7 @@ var arg_request = buildTask(); var arg_tasklist = "foo"; var arg_task = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Task.fromJson(json); checkTask(obj); @@ -1070,7 +1070,7 @@ var resp = convert.JSON.encode(buildTask()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_tasklist, arg_task).then(unittest.expectAsync(((api.Task response) { + res.update(arg_request, arg_tasklist, arg_task).then(unittest.expectAsync1(((api.Task response) { checkTask(response); }))); });
diff --git a/generated/googleapis/test/tracing/v2_test.dart b/generated/googleapis/test/tracing/v2_test.dart index a2983f7..96babfc 100644 --- a/generated/googleapis/test/tracing/v2_test.dart +++ b/generated/googleapis/test/tracing/v2_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/tracing/v2.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -95,14 +95,14 @@ buildCounterAttributeValue--; } -buildUnnamed1729() { +buildUnnamed1739() { var o = new core.Map<core.String, api.AttributeValue>(); o["x"] = buildAttributeValue(); o["y"] = buildAttributeValue(); return o; } -checkUnnamed1729(core.Map<core.String, api.AttributeValue> o) { +checkUnnamed1739(core.Map<core.String, api.AttributeValue> o) { unittest.expect(o, unittest.hasLength(2)); checkAttributeValue(o["x"]); checkAttributeValue(o["y"]); @@ -113,7 +113,7 @@ var o = new api.Attributes(); buildCounterAttributes++; if (buildCounterAttributes < 3) { - o.attributeMap = buildUnnamed1729(); + o.attributeMap = buildUnnamed1739(); o.droppedAttributesCount = 42; } buildCounterAttributes--; @@ -123,20 +123,20 @@ checkAttributes(api.Attributes o) { buildCounterAttributes++; if (buildCounterAttributes < 3) { - checkUnnamed1729(o.attributeMap); + checkUnnamed1739(o.attributeMap); unittest.expect(o.droppedAttributesCount, unittest.equals(42)); } buildCounterAttributes--; } -buildUnnamed1730() { +buildUnnamed1740() { var o = new core.List<api.Span>(); o.add(buildSpan()); o.add(buildSpan()); return o; } -checkUnnamed1730(core.List<api.Span> o) { +checkUnnamed1740(core.List<api.Span> o) { unittest.expect(o, unittest.hasLength(2)); checkSpan(o[0]); checkSpan(o[1]); @@ -147,7 +147,7 @@ var o = new api.BatchWriteSpansRequest(); buildCounterBatchWriteSpansRequest++; if (buildCounterBatchWriteSpansRequest < 3) { - o.spans = buildUnnamed1730(); + o.spans = buildUnnamed1740(); } buildCounterBatchWriteSpansRequest--; return o; @@ -156,7 +156,7 @@ checkBatchWriteSpansRequest(api.BatchWriteSpansRequest o) { buildCounterBatchWriteSpansRequest++; if (buildCounterBatchWriteSpansRequest < 3) { - checkUnnamed1730(o.spans); + checkUnnamed1740(o.spans); } buildCounterBatchWriteSpansRequest--; } @@ -201,14 +201,14 @@ buildCounterLink--; } -buildUnnamed1731() { +buildUnnamed1741() { var o = new core.List<api.Link>(); o.add(buildLink()); o.add(buildLink()); return o; } -checkUnnamed1731(core.List<api.Link> o) { +checkUnnamed1741(core.List<api.Link> o) { unittest.expect(o, unittest.hasLength(2)); checkLink(o[0]); checkLink(o[1]); @@ -220,7 +220,7 @@ buildCounterLinks++; if (buildCounterLinks < 3) { o.droppedLinksCount = 42; - o.link = buildUnnamed1731(); + o.link = buildUnnamed1741(); } buildCounterLinks--; return o; @@ -230,19 +230,19 @@ buildCounterLinks++; if (buildCounterLinks < 3) { unittest.expect(o.droppedLinksCount, unittest.equals(42)); - checkUnnamed1731(o.link); + checkUnnamed1741(o.link); } buildCounterLinks--; } -buildUnnamed1732() { +buildUnnamed1742() { var o = new core.List<api.Span>(); o.add(buildSpan()); o.add(buildSpan()); return o; } -checkUnnamed1732(core.List<api.Span> o) { +checkUnnamed1742(core.List<api.Span> o) { unittest.expect(o, unittest.hasLength(2)); checkSpan(o[0]); checkSpan(o[1]); @@ -254,7 +254,7 @@ buildCounterListSpansResponse++; if (buildCounterListSpansResponse < 3) { o.nextPageToken = "foo"; - o.spans = buildUnnamed1732(); + o.spans = buildUnnamed1742(); } buildCounterListSpansResponse--; return o; @@ -264,19 +264,19 @@ buildCounterListSpansResponse++; if (buildCounterListSpansResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1732(o.spans); + checkUnnamed1742(o.spans); } buildCounterListSpansResponse--; } -buildUnnamed1733() { +buildUnnamed1743() { var o = new core.List<api.Trace>(); o.add(buildTrace()); o.add(buildTrace()); return o; } -checkUnnamed1733(core.List<api.Trace> o) { +checkUnnamed1743(core.List<api.Trace> o) { unittest.expect(o, unittest.hasLength(2)); checkTrace(o[0]); checkTrace(o[1]); @@ -288,7 +288,7 @@ buildCounterListTracesResponse++; if (buildCounterListTracesResponse < 3) { o.nextPageToken = "foo"; - o.traces = buildUnnamed1733(); + o.traces = buildUnnamed1743(); } buildCounterListTracesResponse--; return o; @@ -298,7 +298,7 @@ buildCounterListTracesResponse++; if (buildCounterListTracesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1733(o.traces); + checkUnnamed1743(o.traces); } buildCounterListTracesResponse--; } @@ -419,14 +419,14 @@ buildCounterStackFrame--; } -buildUnnamed1734() { +buildUnnamed1744() { var o = new core.List<api.StackFrame>(); o.add(buildStackFrame()); o.add(buildStackFrame()); return o; } -checkUnnamed1734(core.List<api.StackFrame> o) { +checkUnnamed1744(core.List<api.StackFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkStackFrame(o[0]); checkStackFrame(o[1]); @@ -438,7 +438,7 @@ buildCounterStackFrames++; if (buildCounterStackFrames < 3) { o.droppedFramesCount = 42; - o.frame = buildUnnamed1734(); + o.frame = buildUnnamed1744(); } buildCounterStackFrames--; return o; @@ -448,7 +448,7 @@ buildCounterStackFrames++; if (buildCounterStackFrames < 3) { unittest.expect(o.droppedFramesCount, unittest.equals(42)); - checkUnnamed1734(o.frame); + checkUnnamed1744(o.frame); } buildCounterStackFrames--; } @@ -474,30 +474,30 @@ buildCounterStackTrace--; } -buildUnnamed1735() { +buildUnnamed1745() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1735(core.Map<core.String, core.Object> o) { +checkUnnamed1745(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1736() { +buildUnnamed1746() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1735()); - o.add(buildUnnamed1735()); + o.add(buildUnnamed1745()); + o.add(buildUnnamed1745()); return o; } -checkUnnamed1736(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1746(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1735(o[0]); - checkUnnamed1735(o[1]); + checkUnnamed1745(o[0]); + checkUnnamed1745(o[1]); } core.int buildCounterStatus = 0; @@ -506,7 +506,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1736(); + o.details = buildUnnamed1746(); o.message = "foo"; } buildCounterStatus--; @@ -517,7 +517,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1736(o.details); + checkUnnamed1746(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -546,14 +546,14 @@ buildCounterTimeEvent--; } -buildUnnamed1737() { +buildUnnamed1747() { var o = new core.List<api.TimeEvent>(); o.add(buildTimeEvent()); o.add(buildTimeEvent()); return o; } -checkUnnamed1737(core.List<api.TimeEvent> o) { +checkUnnamed1747(core.List<api.TimeEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkTimeEvent(o[0]); checkTimeEvent(o[1]); @@ -566,7 +566,7 @@ if (buildCounterTimeEvents < 3) { o.droppedAnnotationsCount = 42; o.droppedNetworkEventsCount = 42; - o.timeEvent = buildUnnamed1737(); + o.timeEvent = buildUnnamed1747(); } buildCounterTimeEvents--; return o; @@ -577,7 +577,7 @@ if (buildCounterTimeEvents < 3) { unittest.expect(o.droppedAnnotationsCount, unittest.equals(42)); unittest.expect(o.droppedNetworkEventsCount, unittest.equals(42)); - checkUnnamed1737(o.timeEvent); + checkUnnamed1747(o.timeEvent); } buildCounterTimeEvents--; } @@ -811,7 +811,7 @@ api.ProjectsTracesResourceApi res = new api.TracingApi(mock).projects.traces; var arg_request = buildBatchWriteSpansRequest(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.BatchWriteSpansRequest.fromJson(json); checkBatchWriteSpansRequest(obj); @@ -849,7 +849,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.batchWrite(arg_request, arg_name).then(unittest.expectAsync(((api.Empty response) { + res.batchWrite(arg_request, arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -859,13 +859,13 @@ var mock = new HttpServerMock(); api.ProjectsTracesResourceApi res = new api.TracingApi(mock).projects.traces; var arg_parent = "foo"; + var arg_orderBy = "foo"; var arg_filter = "foo"; var arg_endTime = "foo"; var arg_pageToken = "foo"; var arg_startTime = "foo"; var arg_pageSize = 42; - var arg_orderBy = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -892,12 +892,12 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTime)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); var h = { @@ -906,7 +906,7 @@ var resp = convert.JSON.encode(buildListTracesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, filter: arg_filter, endTime: arg_endTime, pageToken: arg_pageToken, startTime: arg_startTime, pageSize: arg_pageSize, orderBy: arg_orderBy).then(unittest.expectAsync(((api.ListTracesResponse response) { + res.list(arg_parent, orderBy: arg_orderBy, filter: arg_filter, endTime: arg_endTime, pageToken: arg_pageToken, startTime: arg_startTime, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListTracesResponse response) { checkListTracesResponse(response); }))); }); @@ -917,7 +917,7 @@ api.ProjectsTracesResourceApi res = new api.TracingApi(mock).projects.traces; var arg_parent = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -953,7 +953,7 @@ var resp = convert.JSON.encode(buildListSpansResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listSpans(arg_parent, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListSpansResponse response) { + res.listSpans(arg_parent, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListSpansResponse response) { checkListSpansResponse(response); }))); }); @@ -968,7 +968,7 @@ api.ProjectsTracesSpansResourceApi res = new api.TracingApi(mock).projects.traces.spans; var arg_request = buildSpan(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Span.fromJson(json); checkSpan(obj); @@ -1006,7 +1006,7 @@ var resp = convert.JSON.encode(buildSpan()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_name).then(unittest.expectAsync(((api.Span response) { + res.create(arg_request, arg_name).then(unittest.expectAsync1(((api.Span response) { checkSpan(response); }))); });
diff --git a/generated/googleapis/test/urlshortener/v1_test.dart b/generated/googleapis/test/urlshortener/v1_test.dart index be8e3ac..2b722c1 100644 --- a/generated/googleapis/test/urlshortener/v1_test.dart +++ b/generated/googleapis/test/urlshortener/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/urlshortener/v1.dart' as api; @@ -46,58 +46,58 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed712() { +buildUnnamed719() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed712(core.List<api.StringCount> o) { +checkUnnamed719(core.List<api.StringCount> o) { unittest.expect(o, unittest.hasLength(2)); checkStringCount(o[0]); checkStringCount(o[1]); } -buildUnnamed713() { +buildUnnamed720() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed713(core.List<api.StringCount> o) { +checkUnnamed720(core.List<api.StringCount> o) { unittest.expect(o, unittest.hasLength(2)); checkStringCount(o[0]); checkStringCount(o[1]); } -buildUnnamed714() { +buildUnnamed721() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed714(core.List<api.StringCount> o) { +checkUnnamed721(core.List<api.StringCount> o) { unittest.expect(o, unittest.hasLength(2)); checkStringCount(o[0]); checkStringCount(o[1]); } -buildUnnamed715() { +buildUnnamed722() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed715(core.List<api.StringCount> o) { +checkUnnamed722(core.List<api.StringCount> o) { unittest.expect(o, unittest.hasLength(2)); checkStringCount(o[0]); checkStringCount(o[1]); @@ -108,11 +108,11 @@ var o = new api.AnalyticsSnapshot(); buildCounterAnalyticsSnapshot++; if (buildCounterAnalyticsSnapshot < 3) { - o.browsers = buildUnnamed712(); - o.countries = buildUnnamed713(); + o.browsers = buildUnnamed719(); + o.countries = buildUnnamed720(); o.longUrlClicks = "foo"; - o.platforms = buildUnnamed714(); - o.referrers = buildUnnamed715(); + o.platforms = buildUnnamed721(); + o.referrers = buildUnnamed722(); o.shortUrlClicks = "foo"; } buildCounterAnalyticsSnapshot--; @@ -122,11 +122,11 @@ checkAnalyticsSnapshot(api.AnalyticsSnapshot o) { buildCounterAnalyticsSnapshot++; if (buildCounterAnalyticsSnapshot < 3) { - checkUnnamed712(o.browsers); - checkUnnamed713(o.countries); + checkUnnamed719(o.browsers); + checkUnnamed720(o.countries); unittest.expect(o.longUrlClicks, unittest.equals('foo')); - checkUnnamed714(o.platforms); - checkUnnamed715(o.referrers); + checkUnnamed721(o.platforms); + checkUnnamed722(o.referrers); unittest.expect(o.shortUrlClicks, unittest.equals('foo')); } buildCounterAnalyticsSnapshot--; @@ -209,14 +209,14 @@ buildCounterUrl--; } -buildUnnamed716() { +buildUnnamed723() { var o = new core.List<api.Url>(); o.add(buildUrl()); o.add(buildUrl()); return o; } -checkUnnamed716(core.List<api.Url> o) { +checkUnnamed723(core.List<api.Url> o) { unittest.expect(o, unittest.hasLength(2)); checkUrl(o[0]); checkUrl(o[1]); @@ -227,7 +227,7 @@ var o = new api.UrlHistory(); buildCounterUrlHistory++; if (buildCounterUrlHistory < 3) { - o.items = buildUnnamed716(); + o.items = buildUnnamed723(); o.itemsPerPage = 42; o.kind = "foo"; o.nextPageToken = "foo"; @@ -240,7 +240,7 @@ checkUrlHistory(api.UrlHistory o) { buildCounterUrlHistory++; if (buildCounterUrlHistory < 3) { - checkUnnamed716(o.items); + checkUnnamed723(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -303,7 +303,7 @@ api.UrlResourceApi res = new api.UrlshortenerApi(mock).url; var arg_shortUrl = "foo"; var arg_projection = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -341,7 +341,7 @@ var resp = convert.JSON.encode(buildUrl()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_shortUrl, projection: arg_projection).then(unittest.expectAsync(((api.Url response) { + res.get(arg_shortUrl, projection: arg_projection).then(unittest.expectAsync1(((api.Url response) { checkUrl(response); }))); }); @@ -351,7 +351,7 @@ var mock = new HttpServerMock(); api.UrlResourceApi res = new api.UrlshortenerApi(mock).url; var arg_request = buildUrl(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Url.fromJson(json); checkUrl(obj); @@ -390,7 +390,7 @@ var resp = convert.JSON.encode(buildUrl()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request).then(unittest.expectAsync(((api.Url response) { + res.insert(arg_request).then(unittest.expectAsync1(((api.Url response) { checkUrl(response); }))); }); @@ -401,7 +401,7 @@ api.UrlResourceApi res = new api.UrlshortenerApi(mock).url; var arg_projection = "foo"; var arg_start_token = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -439,7 +439,7 @@ var resp = convert.JSON.encode(buildUrlHistory()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(projection: arg_projection, start_token: arg_start_token).then(unittest.expectAsync(((api.UrlHistory response) { + res.list(projection: arg_projection, start_token: arg_start_token).then(unittest.expectAsync1(((api.UrlHistory response) { checkUrlHistory(response); }))); });
diff --git a/generated/googleapis/test/vision/v1_test.dart b/generated/googleapis/test/vision/v1_test.dart index ae9b9a6..df2bea6 100644 --- a/generated/googleapis/test/vision/v1_test.dart +++ b/generated/googleapis/test/vision/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/vision/v1.dart' as api; @@ -46,19 +46,19 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1220() { +buildUnnamed1227() { var o = new core.List<api.Feature>(); o.add(buildFeature()); o.add(buildFeature()); return o; } -checkUnnamed1220(core.List<api.Feature> o) { +checkUnnamed1227(core.List<api.Feature> o) { unittest.expect(o, unittest.hasLength(2)); checkFeature(o[0]); checkFeature(o[1]); @@ -69,7 +69,7 @@ var o = new api.AnnotateImageRequest(); buildCounterAnnotateImageRequest++; if (buildCounterAnnotateImageRequest < 3) { - o.features = buildUnnamed1220(); + o.features = buildUnnamed1227(); o.image = buildImage(); o.imageContext = buildImageContext(); } @@ -80,73 +80,73 @@ checkAnnotateImageRequest(api.AnnotateImageRequest o) { buildCounterAnnotateImageRequest++; if (buildCounterAnnotateImageRequest < 3) { - checkUnnamed1220(o.features); + checkUnnamed1227(o.features); checkImage(o.image); checkImageContext(o.imageContext); } buildCounterAnnotateImageRequest--; } -buildUnnamed1221() { +buildUnnamed1228() { var o = new core.List<api.FaceAnnotation>(); o.add(buildFaceAnnotation()); o.add(buildFaceAnnotation()); return o; } -checkUnnamed1221(core.List<api.FaceAnnotation> o) { +checkUnnamed1228(core.List<api.FaceAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkFaceAnnotation(o[0]); checkFaceAnnotation(o[1]); } -buildUnnamed1222() { +buildUnnamed1229() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1222(core.List<api.EntityAnnotation> o) { +checkUnnamed1229(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); } -buildUnnamed1223() { +buildUnnamed1230() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1223(core.List<api.EntityAnnotation> o) { +checkUnnamed1230(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); } -buildUnnamed1224() { +buildUnnamed1231() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1224(core.List<api.EntityAnnotation> o) { +checkUnnamed1231(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); } -buildUnnamed1225() { +buildUnnamed1232() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1225(core.List<api.EntityAnnotation> o) { +checkUnnamed1232(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); @@ -159,14 +159,14 @@ if (buildCounterAnnotateImageResponse < 3) { o.cropHintsAnnotation = buildCropHintsAnnotation(); o.error = buildStatus(); - o.faceAnnotations = buildUnnamed1221(); + o.faceAnnotations = buildUnnamed1228(); o.fullTextAnnotation = buildTextAnnotation(); o.imagePropertiesAnnotation = buildImageProperties(); - o.labelAnnotations = buildUnnamed1222(); - o.landmarkAnnotations = buildUnnamed1223(); - o.logoAnnotations = buildUnnamed1224(); + o.labelAnnotations = buildUnnamed1229(); + o.landmarkAnnotations = buildUnnamed1230(); + o.logoAnnotations = buildUnnamed1231(); o.safeSearchAnnotation = buildSafeSearchAnnotation(); - o.textAnnotations = buildUnnamed1225(); + o.textAnnotations = buildUnnamed1232(); o.webDetection = buildWebDetection(); } buildCounterAnnotateImageResponse--; @@ -178,27 +178,27 @@ if (buildCounterAnnotateImageResponse < 3) { checkCropHintsAnnotation(o.cropHintsAnnotation); checkStatus(o.error); - checkUnnamed1221(o.faceAnnotations); + checkUnnamed1228(o.faceAnnotations); checkTextAnnotation(o.fullTextAnnotation); checkImageProperties(o.imagePropertiesAnnotation); - checkUnnamed1222(o.labelAnnotations); - checkUnnamed1223(o.landmarkAnnotations); - checkUnnamed1224(o.logoAnnotations); + checkUnnamed1229(o.labelAnnotations); + checkUnnamed1230(o.landmarkAnnotations); + checkUnnamed1231(o.logoAnnotations); checkSafeSearchAnnotation(o.safeSearchAnnotation); - checkUnnamed1225(o.textAnnotations); + checkUnnamed1232(o.textAnnotations); checkWebDetection(o.webDetection); } buildCounterAnnotateImageResponse--; } -buildUnnamed1226() { +buildUnnamed1233() { var o = new core.List<api.AnnotateImageRequest>(); o.add(buildAnnotateImageRequest()); o.add(buildAnnotateImageRequest()); return o; } -checkUnnamed1226(core.List<api.AnnotateImageRequest> o) { +checkUnnamed1233(core.List<api.AnnotateImageRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotateImageRequest(o[0]); checkAnnotateImageRequest(o[1]); @@ -209,7 +209,7 @@ var o = new api.BatchAnnotateImagesRequest(); buildCounterBatchAnnotateImagesRequest++; if (buildCounterBatchAnnotateImagesRequest < 3) { - o.requests = buildUnnamed1226(); + o.requests = buildUnnamed1233(); } buildCounterBatchAnnotateImagesRequest--; return o; @@ -218,19 +218,19 @@ checkBatchAnnotateImagesRequest(api.BatchAnnotateImagesRequest o) { buildCounterBatchAnnotateImagesRequest++; if (buildCounterBatchAnnotateImagesRequest < 3) { - checkUnnamed1226(o.requests); + checkUnnamed1233(o.requests); } buildCounterBatchAnnotateImagesRequest--; } -buildUnnamed1227() { +buildUnnamed1234() { var o = new core.List<api.AnnotateImageResponse>(); o.add(buildAnnotateImageResponse()); o.add(buildAnnotateImageResponse()); return o; } -checkUnnamed1227(core.List<api.AnnotateImageResponse> o) { +checkUnnamed1234(core.List<api.AnnotateImageResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotateImageResponse(o[0]); checkAnnotateImageResponse(o[1]); @@ -241,7 +241,7 @@ var o = new api.BatchAnnotateImagesResponse(); buildCounterBatchAnnotateImagesResponse++; if (buildCounterBatchAnnotateImagesResponse < 3) { - o.responses = buildUnnamed1227(); + o.responses = buildUnnamed1234(); } buildCounterBatchAnnotateImagesResponse--; return o; @@ -250,19 +250,19 @@ checkBatchAnnotateImagesResponse(api.BatchAnnotateImagesResponse o) { buildCounterBatchAnnotateImagesResponse++; if (buildCounterBatchAnnotateImagesResponse < 3) { - checkUnnamed1227(o.responses); + checkUnnamed1234(o.responses); } buildCounterBatchAnnotateImagesResponse--; } -buildUnnamed1228() { +buildUnnamed1235() { var o = new core.List<api.Paragraph>(); o.add(buildParagraph()); o.add(buildParagraph()); return o; } -checkUnnamed1228(core.List<api.Paragraph> o) { +checkUnnamed1235(core.List<api.Paragraph> o) { unittest.expect(o, unittest.hasLength(2)); checkParagraph(o[0]); checkParagraph(o[1]); @@ -275,7 +275,7 @@ if (buildCounterBlock < 3) { o.blockType = "foo"; o.boundingBox = buildBoundingPoly(); - o.paragraphs = buildUnnamed1228(); + o.paragraphs = buildUnnamed1235(); o.property = buildTextProperty(); } buildCounterBlock--; @@ -287,20 +287,20 @@ if (buildCounterBlock < 3) { unittest.expect(o.blockType, unittest.equals('foo')); checkBoundingPoly(o.boundingBox); - checkUnnamed1228(o.paragraphs); + checkUnnamed1235(o.paragraphs); checkTextProperty(o.property); } buildCounterBlock--; } -buildUnnamed1229() { +buildUnnamed1236() { var o = new core.List<api.Vertex>(); o.add(buildVertex()); o.add(buildVertex()); return o; } -checkUnnamed1229(core.List<api.Vertex> o) { +checkUnnamed1236(core.List<api.Vertex> o) { unittest.expect(o, unittest.hasLength(2)); checkVertex(o[0]); checkVertex(o[1]); @@ -311,7 +311,7 @@ var o = new api.BoundingPoly(); buildCounterBoundingPoly++; if (buildCounterBoundingPoly < 3) { - o.vertices = buildUnnamed1229(); + o.vertices = buildUnnamed1236(); } buildCounterBoundingPoly--; return o; @@ -320,7 +320,7 @@ checkBoundingPoly(api.BoundingPoly o) { buildCounterBoundingPoly++; if (buildCounterBoundingPoly < 3) { - checkUnnamed1229(o.vertices); + checkUnnamed1236(o.vertices); } buildCounterBoundingPoly--; } @@ -396,14 +396,14 @@ buildCounterCropHint--; } -buildUnnamed1230() { +buildUnnamed1237() { var o = new core.List<api.CropHint>(); o.add(buildCropHint()); o.add(buildCropHint()); return o; } -checkUnnamed1230(core.List<api.CropHint> o) { +checkUnnamed1237(core.List<api.CropHint> o) { unittest.expect(o, unittest.hasLength(2)); checkCropHint(o[0]); checkCropHint(o[1]); @@ -414,7 +414,7 @@ var o = new api.CropHintsAnnotation(); buildCounterCropHintsAnnotation++; if (buildCounterCropHintsAnnotation < 3) { - o.cropHints = buildUnnamed1230(); + o.cropHints = buildUnnamed1237(); } buildCounterCropHintsAnnotation--; return o; @@ -423,19 +423,19 @@ checkCropHintsAnnotation(api.CropHintsAnnotation o) { buildCounterCropHintsAnnotation++; if (buildCounterCropHintsAnnotation < 3) { - checkUnnamed1230(o.cropHints); + checkUnnamed1237(o.cropHints); } buildCounterCropHintsAnnotation--; } -buildUnnamed1231() { +buildUnnamed1238() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed1231(core.List<core.double> o) { +checkUnnamed1238(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); @@ -446,7 +446,7 @@ var o = new api.CropHintsParams(); buildCounterCropHintsParams++; if (buildCounterCropHintsParams < 3) { - o.aspectRatios = buildUnnamed1231(); + o.aspectRatios = buildUnnamed1238(); } buildCounterCropHintsParams--; return o; @@ -455,7 +455,7 @@ checkCropHintsParams(api.CropHintsParams o) { buildCounterCropHintsParams++; if (buildCounterCropHintsParams < 3) { - checkUnnamed1231(o.aspectRatios); + checkUnnamed1238(o.aspectRatios); } buildCounterCropHintsParams--; } @@ -502,14 +502,14 @@ buildCounterDetectedLanguage--; } -buildUnnamed1232() { +buildUnnamed1239() { var o = new core.List<api.ColorInfo>(); o.add(buildColorInfo()); o.add(buildColorInfo()); return o; } -checkUnnamed1232(core.List<api.ColorInfo> o) { +checkUnnamed1239(core.List<api.ColorInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkColorInfo(o[0]); checkColorInfo(o[1]); @@ -520,7 +520,7 @@ var o = new api.DominantColorsAnnotation(); buildCounterDominantColorsAnnotation++; if (buildCounterDominantColorsAnnotation < 3) { - o.colors = buildUnnamed1232(); + o.colors = buildUnnamed1239(); } buildCounterDominantColorsAnnotation--; return o; @@ -529,32 +529,32 @@ checkDominantColorsAnnotation(api.DominantColorsAnnotation o) { buildCounterDominantColorsAnnotation++; if (buildCounterDominantColorsAnnotation < 3) { - checkUnnamed1232(o.colors); + checkUnnamed1239(o.colors); } buildCounterDominantColorsAnnotation--; } -buildUnnamed1233() { +buildUnnamed1240() { var o = new core.List<api.LocationInfo>(); o.add(buildLocationInfo()); o.add(buildLocationInfo()); return o; } -checkUnnamed1233(core.List<api.LocationInfo> o) { +checkUnnamed1240(core.List<api.LocationInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkLocationInfo(o[0]); checkLocationInfo(o[1]); } -buildUnnamed1234() { +buildUnnamed1241() { var o = new core.List<api.Property>(); o.add(buildProperty()); o.add(buildProperty()); return o; } -checkUnnamed1234(core.List<api.Property> o) { +checkUnnamed1241(core.List<api.Property> o) { unittest.expect(o, unittest.hasLength(2)); checkProperty(o[0]); checkProperty(o[1]); @@ -569,9 +569,9 @@ o.confidence = 42.0; o.description = "foo"; o.locale = "foo"; - o.locations = buildUnnamed1233(); + o.locations = buildUnnamed1240(); o.mid = "foo"; - o.properties = buildUnnamed1234(); + o.properties = buildUnnamed1241(); o.score = 42.0; o.topicality = 42.0; } @@ -586,23 +586,23 @@ unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.locale, unittest.equals('foo')); - checkUnnamed1233(o.locations); + checkUnnamed1240(o.locations); unittest.expect(o.mid, unittest.equals('foo')); - checkUnnamed1234(o.properties); + checkUnnamed1241(o.properties); unittest.expect(o.score, unittest.equals(42.0)); unittest.expect(o.topicality, unittest.equals(42.0)); } buildCounterEntityAnnotation--; } -buildUnnamed1235() { +buildUnnamed1242() { var o = new core.List<api.Landmark>(); o.add(buildLandmark()); o.add(buildLandmark()); return o; } -checkUnnamed1235(core.List<api.Landmark> o) { +checkUnnamed1242(core.List<api.Landmark> o) { unittest.expect(o, unittest.hasLength(2)); checkLandmark(o[0]); checkLandmark(o[1]); @@ -621,7 +621,7 @@ o.headwearLikelihood = "foo"; o.joyLikelihood = "foo"; o.landmarkingConfidence = 42.0; - o.landmarks = buildUnnamed1235(); + o.landmarks = buildUnnamed1242(); o.panAngle = 42.0; o.rollAngle = 42.0; o.sorrowLikelihood = "foo"; @@ -644,7 +644,7 @@ unittest.expect(o.headwearLikelihood, unittest.equals('foo')); unittest.expect(o.joyLikelihood, unittest.equals('foo')); unittest.expect(o.landmarkingConfidence, unittest.equals(42.0)); - checkUnnamed1235(o.landmarks); + checkUnnamed1242(o.landmarks); unittest.expect(o.panAngle, unittest.equals(42.0)); unittest.expect(o.rollAngle, unittest.equals(42.0)); unittest.expect(o.sorrowLikelihood, unittest.equals('foo')); @@ -697,14 +697,14 @@ buildCounterImage--; } -buildUnnamed1236() { +buildUnnamed1243() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1236(core.List<core.String> o) { +checkUnnamed1243(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -716,7 +716,7 @@ buildCounterImageContext++; if (buildCounterImageContext < 3) { o.cropHintsParams = buildCropHintsParams(); - o.languageHints = buildUnnamed1236(); + o.languageHints = buildUnnamed1243(); o.latLongRect = buildLatLongRect(); } buildCounterImageContext--; @@ -727,7 +727,7 @@ buildCounterImageContext++; if (buildCounterImageContext < 3) { checkCropHintsParams(o.cropHintsParams); - checkUnnamed1236(o.languageHints); + checkUnnamed1243(o.languageHints); checkLatLongRect(o.latLongRect); } buildCounterImageContext--; @@ -855,14 +855,14 @@ buildCounterLocationInfo--; } -buildUnnamed1237() { +buildUnnamed1244() { var o = new core.List<api.Block>(); o.add(buildBlock()); o.add(buildBlock()); return o; } -checkUnnamed1237(core.List<api.Block> o) { +checkUnnamed1244(core.List<api.Block> o) { unittest.expect(o, unittest.hasLength(2)); checkBlock(o[0]); checkBlock(o[1]); @@ -873,7 +873,7 @@ var o = new api.Page(); buildCounterPage++; if (buildCounterPage < 3) { - o.blocks = buildUnnamed1237(); + o.blocks = buildUnnamed1244(); o.height = 42; o.property = buildTextProperty(); o.width = 42; @@ -885,7 +885,7 @@ checkPage(api.Page o) { buildCounterPage++; if (buildCounterPage < 3) { - checkUnnamed1237(o.blocks); + checkUnnamed1244(o.blocks); unittest.expect(o.height, unittest.equals(42)); checkTextProperty(o.property); unittest.expect(o.width, unittest.equals(42)); @@ -893,14 +893,14 @@ buildCounterPage--; } -buildUnnamed1238() { +buildUnnamed1245() { var o = new core.List<api.Word>(); o.add(buildWord()); o.add(buildWord()); return o; } -checkUnnamed1238(core.List<api.Word> o) { +checkUnnamed1245(core.List<api.Word> o) { unittest.expect(o, unittest.hasLength(2)); checkWord(o[0]); checkWord(o[1]); @@ -913,7 +913,7 @@ if (buildCounterParagraph < 3) { o.boundingBox = buildBoundingPoly(); o.property = buildTextProperty(); - o.words = buildUnnamed1238(); + o.words = buildUnnamed1245(); } buildCounterParagraph--; return o; @@ -924,7 +924,7 @@ if (buildCounterParagraph < 3) { checkBoundingPoly(o.boundingBox); checkTextProperty(o.property); - checkUnnamed1238(o.words); + checkUnnamed1245(o.words); } buildCounterParagraph--; } @@ -1000,30 +1000,30 @@ buildCounterSafeSearchAnnotation--; } -buildUnnamed1239() { +buildUnnamed1246() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1239(core.Map<core.String, core.Object> o) { +checkUnnamed1246(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1240() { +buildUnnamed1247() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1239()); - o.add(buildUnnamed1239()); + o.add(buildUnnamed1246()); + o.add(buildUnnamed1246()); return o; } -checkUnnamed1240(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1247(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1239(o[0]); - checkUnnamed1239(o[1]); + checkUnnamed1246(o[0]); + checkUnnamed1246(o[1]); } core.int buildCounterStatus = 0; @@ -1032,7 +1032,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1240(); + o.details = buildUnnamed1247(); o.message = "foo"; } buildCounterStatus--; @@ -1043,7 +1043,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1240(o.details); + checkUnnamed1247(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1072,14 +1072,14 @@ buildCounterSymbol--; } -buildUnnamed1241() { +buildUnnamed1248() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1241(core.List<api.Page> o) { +checkUnnamed1248(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -1090,7 +1090,7 @@ var o = new api.TextAnnotation(); buildCounterTextAnnotation++; if (buildCounterTextAnnotation < 3) { - o.pages = buildUnnamed1241(); + o.pages = buildUnnamed1248(); o.text = "foo"; } buildCounterTextAnnotation--; @@ -1100,20 +1100,20 @@ checkTextAnnotation(api.TextAnnotation o) { buildCounterTextAnnotation++; if (buildCounterTextAnnotation < 3) { - checkUnnamed1241(o.pages); + checkUnnamed1248(o.pages); unittest.expect(o.text, unittest.equals('foo')); } buildCounterTextAnnotation--; } -buildUnnamed1242() { +buildUnnamed1249() { var o = new core.List<api.DetectedLanguage>(); o.add(buildDetectedLanguage()); o.add(buildDetectedLanguage()); return o; } -checkUnnamed1242(core.List<api.DetectedLanguage> o) { +checkUnnamed1249(core.List<api.DetectedLanguage> o) { unittest.expect(o, unittest.hasLength(2)); checkDetectedLanguage(o[0]); checkDetectedLanguage(o[1]); @@ -1125,7 +1125,7 @@ buildCounterTextProperty++; if (buildCounterTextProperty < 3) { o.detectedBreak = buildDetectedBreak(); - o.detectedLanguages = buildUnnamed1242(); + o.detectedLanguages = buildUnnamed1249(); } buildCounterTextProperty--; return o; @@ -1135,7 +1135,7 @@ buildCounterTextProperty++; if (buildCounterTextProperty < 3) { checkDetectedBreak(o.detectedBreak); - checkUnnamed1242(o.detectedLanguages); + checkUnnamed1249(o.detectedLanguages); } buildCounterTextProperty--; } @@ -1161,66 +1161,66 @@ buildCounterVertex--; } -buildUnnamed1243() { +buildUnnamed1250() { var o = new core.List<api.WebImage>(); o.add(buildWebImage()); o.add(buildWebImage()); return o; } -checkUnnamed1243(core.List<api.WebImage> o) { +checkUnnamed1250(core.List<api.WebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkWebImage(o[0]); checkWebImage(o[1]); } -buildUnnamed1244() { +buildUnnamed1251() { var o = new core.List<api.WebPage>(); o.add(buildWebPage()); o.add(buildWebPage()); return o; } -checkUnnamed1244(core.List<api.WebPage> o) { +checkUnnamed1251(core.List<api.WebPage> o) { unittest.expect(o, unittest.hasLength(2)); checkWebPage(o[0]); checkWebPage(o[1]); } -buildUnnamed1245() { +buildUnnamed1252() { var o = new core.List<api.WebImage>(); o.add(buildWebImage()); o.add(buildWebImage()); return o; } -checkUnnamed1245(core.List<api.WebImage> o) { +checkUnnamed1252(core.List<api.WebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkWebImage(o[0]); checkWebImage(o[1]); } -buildUnnamed1246() { +buildUnnamed1253() { var o = new core.List<api.WebImage>(); o.add(buildWebImage()); o.add(buildWebImage()); return o; } -checkUnnamed1246(core.List<api.WebImage> o) { +checkUnnamed1253(core.List<api.WebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkWebImage(o[0]); checkWebImage(o[1]); } -buildUnnamed1247() { +buildUnnamed1254() { var o = new core.List<api.WebEntity>(); o.add(buildWebEntity()); o.add(buildWebEntity()); return o; } -checkUnnamed1247(core.List<api.WebEntity> o) { +checkUnnamed1254(core.List<api.WebEntity> o) { unittest.expect(o, unittest.hasLength(2)); checkWebEntity(o[0]); checkWebEntity(o[1]); @@ -1231,11 +1231,11 @@ var o = new api.WebDetection(); buildCounterWebDetection++; if (buildCounterWebDetection < 3) { - o.fullMatchingImages = buildUnnamed1243(); - o.pagesWithMatchingImages = buildUnnamed1244(); - o.partialMatchingImages = buildUnnamed1245(); - o.visuallySimilarImages = buildUnnamed1246(); - o.webEntities = buildUnnamed1247(); + o.fullMatchingImages = buildUnnamed1250(); + o.pagesWithMatchingImages = buildUnnamed1251(); + o.partialMatchingImages = buildUnnamed1252(); + o.visuallySimilarImages = buildUnnamed1253(); + o.webEntities = buildUnnamed1254(); } buildCounterWebDetection--; return o; @@ -1244,11 +1244,11 @@ checkWebDetection(api.WebDetection o) { buildCounterWebDetection++; if (buildCounterWebDetection < 3) { - checkUnnamed1243(o.fullMatchingImages); - checkUnnamed1244(o.pagesWithMatchingImages); - checkUnnamed1245(o.partialMatchingImages); - checkUnnamed1246(o.visuallySimilarImages); - checkUnnamed1247(o.webEntities); + checkUnnamed1250(o.fullMatchingImages); + checkUnnamed1251(o.pagesWithMatchingImages); + checkUnnamed1252(o.partialMatchingImages); + checkUnnamed1253(o.visuallySimilarImages); + checkUnnamed1254(o.webEntities); } buildCounterWebDetection--; } @@ -1318,14 +1318,14 @@ buildCounterWebPage--; } -buildUnnamed1248() { +buildUnnamed1255() { var o = new core.List<api.Symbol>(); o.add(buildSymbol()); o.add(buildSymbol()); return o; } -checkUnnamed1248(core.List<api.Symbol> o) { +checkUnnamed1255(core.List<api.Symbol> o) { unittest.expect(o, unittest.hasLength(2)); checkSymbol(o[0]); checkSymbol(o[1]); @@ -1338,7 +1338,7 @@ if (buildCounterWord < 3) { o.boundingBox = buildBoundingPoly(); o.property = buildTextProperty(); - o.symbols = buildUnnamed1248(); + o.symbols = buildUnnamed1255(); } buildCounterWord--; return o; @@ -1349,7 +1349,7 @@ if (buildCounterWord < 3) { checkBoundingPoly(o.boundingBox); checkTextProperty(o.property); - checkUnnamed1248(o.symbols); + checkUnnamed1255(o.symbols); } buildCounterWord--; } @@ -1722,7 +1722,7 @@ var mock = new HttpServerMock(); api.ImagesResourceApi res = new api.VisionApi(mock).images; var arg_request = buildBatchAnnotateImagesRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.BatchAnnotateImagesRequest.fromJson(json); checkBatchAnnotateImagesRequest(obj); @@ -1759,7 +1759,7 @@ var resp = convert.JSON.encode(buildBatchAnnotateImagesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.annotate(arg_request).then(unittest.expectAsync(((api.BatchAnnotateImagesResponse response) { + res.annotate(arg_request).then(unittest.expectAsync1(((api.BatchAnnotateImagesResponse response) { checkBatchAnnotateImagesResponse(response); }))); });
diff --git a/generated/googleapis/test/webfonts/v1_test.dart b/generated/googleapis/test/webfonts/v1_test.dart index 89d0dfe..7b2cbcb 100644 --- a/generated/googleapis/test/webfonts/v1_test.dart +++ b/generated/googleapis/test/webfonts/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/webfonts/v1.dart' as api; @@ -46,45 +46,45 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1542() { +buildUnnamed1549() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1542(core.Map<core.String, core.String> o) { +checkUnnamed1549(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1543() { +buildUnnamed1550() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1543(core.List<core.String> o) { +checkUnnamed1550(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1544() { +buildUnnamed1551() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1544(core.List<core.String> o) { +checkUnnamed1551(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -97,11 +97,11 @@ if (buildCounterWebfont < 3) { o.category = "foo"; o.family = "foo"; - o.files = buildUnnamed1542(); + o.files = buildUnnamed1549(); o.kind = "foo"; o.lastModified = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.subsets = buildUnnamed1543(); - o.variants = buildUnnamed1544(); + o.subsets = buildUnnamed1550(); + o.variants = buildUnnamed1551(); o.version = "foo"; } buildCounterWebfont--; @@ -113,24 +113,24 @@ if (buildCounterWebfont < 3) { unittest.expect(o.category, unittest.equals('foo')); unittest.expect(o.family, unittest.equals('foo')); - checkUnnamed1542(o.files); + checkUnnamed1549(o.files); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastModified, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed1543(o.subsets); - checkUnnamed1544(o.variants); + checkUnnamed1550(o.subsets); + checkUnnamed1551(o.variants); unittest.expect(o.version, unittest.equals('foo')); } buildCounterWebfont--; } -buildUnnamed1545() { +buildUnnamed1552() { var o = new core.List<api.Webfont>(); o.add(buildWebfont()); o.add(buildWebfont()); return o; } -checkUnnamed1545(core.List<api.Webfont> o) { +checkUnnamed1552(core.List<api.Webfont> o) { unittest.expect(o, unittest.hasLength(2)); checkWebfont(o[0]); checkWebfont(o[1]); @@ -141,7 +141,7 @@ var o = new api.WebfontList(); buildCounterWebfontList++; if (buildCounterWebfontList < 3) { - o.items = buildUnnamed1545(); + o.items = buildUnnamed1552(); o.kind = "foo"; } buildCounterWebfontList--; @@ -151,7 +151,7 @@ checkWebfontList(api.WebfontList o) { buildCounterWebfontList++; if (buildCounterWebfontList < 3) { - checkUnnamed1545(o.items); + checkUnnamed1552(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterWebfontList--; @@ -183,7 +183,7 @@ var mock = new HttpServerMock(); api.WebfontsResourceApi res = new api.WebfontsApi(mock).webfonts; var arg_sort = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -220,7 +220,7 @@ var resp = convert.JSON.encode(buildWebfontList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(sort: arg_sort).then(unittest.expectAsync(((api.WebfontList response) { + res.list(sort: arg_sort).then(unittest.expectAsync1(((api.WebfontList response) { checkWebfontList(response); }))); });
diff --git a/generated/googleapis/test/webmasters/v3_test.dart b/generated/googleapis/test/webmasters/v3_test.dart index b84a12c..6d719c1 100644 --- a/generated/googleapis/test/webmasters/v3_test.dart +++ b/generated/googleapis/test/webmasters/v3_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/webmasters/v3.dart' as api; @@ -46,19 +46,19 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed606() { +buildUnnamed611() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed606(core.List<core.String> o) { +checkUnnamed611(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -72,7 +72,7 @@ o.clicks = 42.0; o.ctr = 42.0; o.impressions = 42.0; - o.keys = buildUnnamed606(); + o.keys = buildUnnamed611(); o.position = 42.0; } buildCounterApiDataRow--; @@ -85,7 +85,7 @@ unittest.expect(o.clicks, unittest.equals(42.0)); unittest.expect(o.ctr, unittest.equals(42.0)); unittest.expect(o.impressions, unittest.equals(42.0)); - checkUnnamed606(o.keys); + checkUnnamed611(o.keys); unittest.expect(o.position, unittest.equals(42.0)); } buildCounterApiDataRow--; @@ -114,14 +114,14 @@ buildCounterApiDimensionFilter--; } -buildUnnamed607() { +buildUnnamed612() { var o = new core.List<api.ApiDimensionFilter>(); o.add(buildApiDimensionFilter()); o.add(buildApiDimensionFilter()); return o; } -checkUnnamed607(core.List<api.ApiDimensionFilter> o) { +checkUnnamed612(core.List<api.ApiDimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkApiDimensionFilter(o[0]); checkApiDimensionFilter(o[1]); @@ -132,7 +132,7 @@ var o = new api.ApiDimensionFilterGroup(); buildCounterApiDimensionFilterGroup++; if (buildCounterApiDimensionFilterGroup < 3) { - o.filters = buildUnnamed607(); + o.filters = buildUnnamed612(); o.groupType = "foo"; } buildCounterApiDimensionFilterGroup--; @@ -142,33 +142,33 @@ checkApiDimensionFilterGroup(api.ApiDimensionFilterGroup o) { buildCounterApiDimensionFilterGroup++; if (buildCounterApiDimensionFilterGroup < 3) { - checkUnnamed607(o.filters); + checkUnnamed612(o.filters); unittest.expect(o.groupType, unittest.equals('foo')); } buildCounterApiDimensionFilterGroup--; } -buildUnnamed608() { +buildUnnamed613() { var o = new core.List<api.ApiDimensionFilterGroup>(); o.add(buildApiDimensionFilterGroup()); o.add(buildApiDimensionFilterGroup()); return o; } -checkUnnamed608(core.List<api.ApiDimensionFilterGroup> o) { +checkUnnamed613(core.List<api.ApiDimensionFilterGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkApiDimensionFilterGroup(o[0]); checkApiDimensionFilterGroup(o[1]); } -buildUnnamed609() { +buildUnnamed614() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed609(core.List<core.String> o) { +checkUnnamed614(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -180,8 +180,8 @@ buildCounterSearchAnalyticsQueryRequest++; if (buildCounterSearchAnalyticsQueryRequest < 3) { o.aggregationType = "foo"; - o.dimensionFilterGroups = buildUnnamed608(); - o.dimensions = buildUnnamed609(); + o.dimensionFilterGroups = buildUnnamed613(); + o.dimensions = buildUnnamed614(); o.endDate = "foo"; o.rowLimit = 42; o.searchType = "foo"; @@ -196,8 +196,8 @@ buildCounterSearchAnalyticsQueryRequest++; if (buildCounterSearchAnalyticsQueryRequest < 3) { unittest.expect(o.aggregationType, unittest.equals('foo')); - checkUnnamed608(o.dimensionFilterGroups); - checkUnnamed609(o.dimensions); + checkUnnamed613(o.dimensionFilterGroups); + checkUnnamed614(o.dimensions); unittest.expect(o.endDate, unittest.equals('foo')); unittest.expect(o.rowLimit, unittest.equals(42)); unittest.expect(o.searchType, unittest.equals('foo')); @@ -207,14 +207,14 @@ buildCounterSearchAnalyticsQueryRequest--; } -buildUnnamed610() { +buildUnnamed615() { var o = new core.List<api.ApiDataRow>(); o.add(buildApiDataRow()); o.add(buildApiDataRow()); return o; } -checkUnnamed610(core.List<api.ApiDataRow> o) { +checkUnnamed615(core.List<api.ApiDataRow> o) { unittest.expect(o, unittest.hasLength(2)); checkApiDataRow(o[0]); checkApiDataRow(o[1]); @@ -226,7 +226,7 @@ buildCounterSearchAnalyticsQueryResponse++; if (buildCounterSearchAnalyticsQueryResponse < 3) { o.responseAggregationType = "foo"; - o.rows = buildUnnamed610(); + o.rows = buildUnnamed615(); } buildCounterSearchAnalyticsQueryResponse--; return o; @@ -236,19 +236,19 @@ buildCounterSearchAnalyticsQueryResponse++; if (buildCounterSearchAnalyticsQueryResponse < 3) { unittest.expect(o.responseAggregationType, unittest.equals('foo')); - checkUnnamed610(o.rows); + checkUnnamed615(o.rows); } buildCounterSearchAnalyticsQueryResponse--; } -buildUnnamed611() { +buildUnnamed616() { var o = new core.List<api.WmxSitemap>(); o.add(buildWmxSitemap()); o.add(buildWmxSitemap()); return o; } -checkUnnamed611(core.List<api.WmxSitemap> o) { +checkUnnamed616(core.List<api.WmxSitemap> o) { unittest.expect(o, unittest.hasLength(2)); checkWmxSitemap(o[0]); checkWmxSitemap(o[1]); @@ -259,7 +259,7 @@ var o = new api.SitemapsListResponse(); buildCounterSitemapsListResponse++; if (buildCounterSitemapsListResponse < 3) { - o.sitemap = buildUnnamed611(); + o.sitemap = buildUnnamed616(); } buildCounterSitemapsListResponse--; return o; @@ -268,19 +268,19 @@ checkSitemapsListResponse(api.SitemapsListResponse o) { buildCounterSitemapsListResponse++; if (buildCounterSitemapsListResponse < 3) { - checkUnnamed611(o.sitemap); + checkUnnamed616(o.sitemap); } buildCounterSitemapsListResponse--; } -buildUnnamed612() { +buildUnnamed617() { var o = new core.List<api.WmxSite>(); o.add(buildWmxSite()); o.add(buildWmxSite()); return o; } -checkUnnamed612(core.List<api.WmxSite> o) { +checkUnnamed617(core.List<api.WmxSite> o) { unittest.expect(o, unittest.hasLength(2)); checkWmxSite(o[0]); checkWmxSite(o[1]); @@ -291,7 +291,7 @@ var o = new api.SitesListResponse(); buildCounterSitesListResponse++; if (buildCounterSitesListResponse < 3) { - o.siteEntry = buildUnnamed612(); + o.siteEntry = buildUnnamed617(); } buildCounterSitesListResponse--; return o; @@ -300,7 +300,7 @@ checkSitesListResponse(api.SitesListResponse o) { buildCounterSitesListResponse++; if (buildCounterSitesListResponse < 3) { - checkUnnamed612(o.siteEntry); + checkUnnamed617(o.siteEntry); } buildCounterSitesListResponse--; } @@ -326,14 +326,14 @@ buildCounterUrlCrawlErrorCount--; } -buildUnnamed613() { +buildUnnamed618() { var o = new core.List<api.UrlCrawlErrorCount>(); o.add(buildUrlCrawlErrorCount()); o.add(buildUrlCrawlErrorCount()); return o; } -checkUnnamed613(core.List<api.UrlCrawlErrorCount> o) { +checkUnnamed618(core.List<api.UrlCrawlErrorCount> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlCrawlErrorCount(o[0]); checkUrlCrawlErrorCount(o[1]); @@ -345,7 +345,7 @@ buildCounterUrlCrawlErrorCountsPerType++; if (buildCounterUrlCrawlErrorCountsPerType < 3) { o.category = "foo"; - o.entries = buildUnnamed613(); + o.entries = buildUnnamed618(); o.platform = "foo"; } buildCounterUrlCrawlErrorCountsPerType--; @@ -356,20 +356,20 @@ buildCounterUrlCrawlErrorCountsPerType++; if (buildCounterUrlCrawlErrorCountsPerType < 3) { unittest.expect(o.category, unittest.equals('foo')); - checkUnnamed613(o.entries); + checkUnnamed618(o.entries); unittest.expect(o.platform, unittest.equals('foo')); } buildCounterUrlCrawlErrorCountsPerType--; } -buildUnnamed614() { +buildUnnamed619() { var o = new core.List<api.UrlCrawlErrorCountsPerType>(); o.add(buildUrlCrawlErrorCountsPerType()); o.add(buildUrlCrawlErrorCountsPerType()); return o; } -checkUnnamed614(core.List<api.UrlCrawlErrorCountsPerType> o) { +checkUnnamed619(core.List<api.UrlCrawlErrorCountsPerType> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlCrawlErrorCountsPerType(o[0]); checkUrlCrawlErrorCountsPerType(o[1]); @@ -380,7 +380,7 @@ var o = new api.UrlCrawlErrorsCountsQueryResponse(); buildCounterUrlCrawlErrorsCountsQueryResponse++; if (buildCounterUrlCrawlErrorsCountsQueryResponse < 3) { - o.countPerTypes = buildUnnamed614(); + o.countPerTypes = buildUnnamed619(); } buildCounterUrlCrawlErrorsCountsQueryResponse--; return o; @@ -389,7 +389,7 @@ checkUrlCrawlErrorsCountsQueryResponse(api.UrlCrawlErrorsCountsQueryResponse o) { buildCounterUrlCrawlErrorsCountsQueryResponse++; if (buildCounterUrlCrawlErrorsCountsQueryResponse < 3) { - checkUnnamed614(o.countPerTypes); + checkUnnamed619(o.countPerTypes); } buildCounterUrlCrawlErrorsCountsQueryResponse--; } @@ -421,14 +421,14 @@ buildCounterUrlCrawlErrorsSample--; } -buildUnnamed615() { +buildUnnamed620() { var o = new core.List<api.UrlCrawlErrorsSample>(); o.add(buildUrlCrawlErrorsSample()); o.add(buildUrlCrawlErrorsSample()); return o; } -checkUnnamed615(core.List<api.UrlCrawlErrorsSample> o) { +checkUnnamed620(core.List<api.UrlCrawlErrorsSample> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlCrawlErrorsSample(o[0]); checkUrlCrawlErrorsSample(o[1]); @@ -439,7 +439,7 @@ var o = new api.UrlCrawlErrorsSamplesListResponse(); buildCounterUrlCrawlErrorsSamplesListResponse++; if (buildCounterUrlCrawlErrorsSamplesListResponse < 3) { - o.urlCrawlErrorSample = buildUnnamed615(); + o.urlCrawlErrorSample = buildUnnamed620(); } buildCounterUrlCrawlErrorsSamplesListResponse--; return o; @@ -448,32 +448,32 @@ checkUrlCrawlErrorsSamplesListResponse(api.UrlCrawlErrorsSamplesListResponse o) { buildCounterUrlCrawlErrorsSamplesListResponse++; if (buildCounterUrlCrawlErrorsSamplesListResponse < 3) { - checkUnnamed615(o.urlCrawlErrorSample); + checkUnnamed620(o.urlCrawlErrorSample); } buildCounterUrlCrawlErrorsSamplesListResponse--; } -buildUnnamed616() { +buildUnnamed621() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed616(core.List<core.String> o) { +checkUnnamed621(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed617() { +buildUnnamed622() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed617(core.List<core.String> o) { +checkUnnamed622(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -484,8 +484,8 @@ var o = new api.UrlSampleDetails(); buildCounterUrlSampleDetails++; if (buildCounterUrlSampleDetails < 3) { - o.containingSitemaps = buildUnnamed616(); - o.linkedFromUrls = buildUnnamed617(); + o.containingSitemaps = buildUnnamed621(); + o.linkedFromUrls = buildUnnamed622(); } buildCounterUrlSampleDetails--; return o; @@ -494,8 +494,8 @@ checkUrlSampleDetails(api.UrlSampleDetails o) { buildCounterUrlSampleDetails++; if (buildCounterUrlSampleDetails < 3) { - checkUnnamed616(o.containingSitemaps); - checkUnnamed617(o.linkedFromUrls); + checkUnnamed621(o.containingSitemaps); + checkUnnamed622(o.linkedFromUrls); } buildCounterUrlSampleDetails--; } @@ -521,14 +521,14 @@ buildCounterWmxSite--; } -buildUnnamed618() { +buildUnnamed623() { var o = new core.List<api.WmxSitemapContent>(); o.add(buildWmxSitemapContent()); o.add(buildWmxSitemapContent()); return o; } -checkUnnamed618(core.List<api.WmxSitemapContent> o) { +checkUnnamed623(core.List<api.WmxSitemapContent> o) { unittest.expect(o, unittest.hasLength(2)); checkWmxSitemapContent(o[0]); checkWmxSitemapContent(o[1]); @@ -539,7 +539,7 @@ var o = new api.WmxSitemap(); buildCounterWmxSitemap++; if (buildCounterWmxSitemap < 3) { - o.contents = buildUnnamed618(); + o.contents = buildUnnamed623(); o.errors = "foo"; o.isPending = true; o.isSitemapsIndex = true; @@ -556,7 +556,7 @@ checkWmxSitemap(api.WmxSitemap o) { buildCounterWmxSitemap++; if (buildCounterWmxSitemap < 3) { - checkUnnamed618(o.contents); + checkUnnamed623(o.contents); unittest.expect(o.errors, unittest.equals('foo')); unittest.expect(o.isPending, unittest.isTrue); unittest.expect(o.isSitemapsIndex, unittest.isTrue); @@ -745,7 +745,7 @@ api.SearchanalyticsResourceApi res = new api.WebmastersApi(mock).searchanalytics; var arg_request = buildSearchAnalyticsQueryRequest(); var arg_siteUrl = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SearchAnalyticsQueryRequest.fromJson(json); checkSearchAnalyticsQueryRequest(obj); @@ -791,7 +791,7 @@ var resp = convert.JSON.encode(buildSearchAnalyticsQueryResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.query(arg_request, arg_siteUrl).then(unittest.expectAsync(((api.SearchAnalyticsQueryResponse response) { + res.query(arg_request, arg_siteUrl).then(unittest.expectAsync1(((api.SearchAnalyticsQueryResponse response) { checkSearchAnalyticsQueryResponse(response); }))); }); @@ -806,7 +806,7 @@ api.SitemapsResourceApi res = new api.WebmastersApi(mock).sitemaps; var arg_siteUrl = "foo"; var arg_feedpath = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -852,7 +852,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_siteUrl, arg_feedpath).then(unittest.expectAsync((_) {})); + res.delete(arg_siteUrl, arg_feedpath).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -861,7 +861,7 @@ api.SitemapsResourceApi res = new api.WebmastersApi(mock).sitemaps; var arg_siteUrl = "foo"; var arg_feedpath = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -907,7 +907,7 @@ var resp = convert.JSON.encode(buildWmxSitemap()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_siteUrl, arg_feedpath).then(unittest.expectAsync(((api.WmxSitemap response) { + res.get(arg_siteUrl, arg_feedpath).then(unittest.expectAsync1(((api.WmxSitemap response) { checkWmxSitemap(response); }))); }); @@ -918,7 +918,7 @@ api.SitemapsResourceApi res = new api.WebmastersApi(mock).sitemaps; var arg_siteUrl = "foo"; var arg_sitemapIndex = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -962,7 +962,7 @@ var resp = convert.JSON.encode(buildSitemapsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_siteUrl, sitemapIndex: arg_sitemapIndex).then(unittest.expectAsync(((api.SitemapsListResponse response) { + res.list(arg_siteUrl, sitemapIndex: arg_sitemapIndex).then(unittest.expectAsync1(((api.SitemapsListResponse response) { checkSitemapsListResponse(response); }))); }); @@ -973,7 +973,7 @@ api.SitemapsResourceApi res = new api.WebmastersApi(mock).sitemaps; var arg_siteUrl = "foo"; var arg_feedpath = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1019,7 +1019,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.submit(arg_siteUrl, arg_feedpath).then(unittest.expectAsync((_) {})); + res.submit(arg_siteUrl, arg_feedpath).then(unittest.expectAsync1((_) {})); }); }); @@ -1031,7 +1031,7 @@ var mock = new HttpServerMock(); api.SitesResourceApi res = new api.WebmastersApi(mock).sites; var arg_siteUrl = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1070,7 +1070,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.add(arg_siteUrl).then(unittest.expectAsync((_) {})); + res.add(arg_siteUrl).then(unittest.expectAsync1((_) {})); }); unittest.test("method--delete", () { @@ -1078,7 +1078,7 @@ var mock = new HttpServerMock(); api.SitesResourceApi res = new api.WebmastersApi(mock).sites; var arg_siteUrl = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1117,7 +1117,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_siteUrl).then(unittest.expectAsync((_) {})); + res.delete(arg_siteUrl).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -1125,7 +1125,7 @@ var mock = new HttpServerMock(); api.SitesResourceApi res = new api.WebmastersApi(mock).sites; var arg_siteUrl = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1164,7 +1164,7 @@ var resp = convert.JSON.encode(buildWmxSite()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_siteUrl).then(unittest.expectAsync(((api.WmxSite response) { + res.get(arg_siteUrl).then(unittest.expectAsync1(((api.WmxSite response) { checkWmxSite(response); }))); }); @@ -1173,7 +1173,7 @@ var mock = new HttpServerMock(); api.SitesResourceApi res = new api.WebmastersApi(mock).sites; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1209,7 +1209,7 @@ var resp = convert.JSON.encode(buildSitesListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list().then(unittest.expectAsync(((api.SitesListResponse response) { + res.list().then(unittest.expectAsync1(((api.SitesListResponse response) { checkSitesListResponse(response); }))); }); @@ -1226,7 +1226,7 @@ var arg_category = "foo"; var arg_latestCountsOnly = true; var arg_platform = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1272,7 +1272,7 @@ var resp = convert.JSON.encode(buildUrlCrawlErrorsCountsQueryResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.query(arg_siteUrl, category: arg_category, latestCountsOnly: arg_latestCountsOnly, platform: arg_platform).then(unittest.expectAsync(((api.UrlCrawlErrorsCountsQueryResponse response) { + res.query(arg_siteUrl, category: arg_category, latestCountsOnly: arg_latestCountsOnly, platform: arg_platform).then(unittest.expectAsync1(((api.UrlCrawlErrorsCountsQueryResponse response) { checkUrlCrawlErrorsCountsQueryResponse(response); }))); }); @@ -1289,7 +1289,7 @@ var arg_url = "foo"; var arg_category = "foo"; var arg_platform = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1337,7 +1337,7 @@ var resp = convert.JSON.encode(buildUrlCrawlErrorsSample()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_siteUrl, arg_url, arg_category, arg_platform).then(unittest.expectAsync(((api.UrlCrawlErrorsSample response) { + res.get(arg_siteUrl, arg_url, arg_category, arg_platform).then(unittest.expectAsync1(((api.UrlCrawlErrorsSample response) { checkUrlCrawlErrorsSample(response); }))); }); @@ -1349,7 +1349,7 @@ var arg_siteUrl = "foo"; var arg_category = "foo"; var arg_platform = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1394,7 +1394,7 @@ var resp = convert.JSON.encode(buildUrlCrawlErrorsSamplesListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_siteUrl, arg_category, arg_platform).then(unittest.expectAsync(((api.UrlCrawlErrorsSamplesListResponse response) { + res.list(arg_siteUrl, arg_category, arg_platform).then(unittest.expectAsync1(((api.UrlCrawlErrorsSamplesListResponse response) { checkUrlCrawlErrorsSamplesListResponse(response); }))); }); @@ -1407,7 +1407,7 @@ var arg_url = "foo"; var arg_category = "foo"; var arg_platform = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1455,7 +1455,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.markAsFixed(arg_siteUrl, arg_url, arg_category, arg_platform).then(unittest.expectAsync((_) {})); + res.markAsFixed(arg_siteUrl, arg_url, arg_category, arg_platform).then(unittest.expectAsync1((_) {})); }); });
diff --git a/generated/googleapis/test/youtube/v3_test.dart b/generated/googleapis/test/youtube/v3_test.dart index 9f8bbac..dece99c 100644 --- a/generated/googleapis/test/youtube/v3_test.dart +++ b/generated/googleapis/test/youtube/v3_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/youtube/v3.dart' as api; @@ -46,19 +46,19 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed505() { +buildUnnamed507() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed505(core.List<core.String> o) { +checkUnnamed507(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -70,7 +70,7 @@ buildCounterAccessPolicy++; if (buildCounterAccessPolicy < 3) { o.allowed = true; - o.exception = buildUnnamed505(); + o.exception = buildUnnamed507(); } buildCounterAccessPolicy--; return o; @@ -80,7 +80,7 @@ buildCounterAccessPolicy++; if (buildCounterAccessPolicy < 3) { unittest.expect(o.allowed, unittest.isTrue); - checkUnnamed505(o.exception); + checkUnnamed507(o.exception); } buildCounterAccessPolicy--; } @@ -269,27 +269,27 @@ buildCounterActivityContentDetailsPlaylistItem--; } -buildUnnamed506() { +buildUnnamed508() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed506(core.List<core.String> o) { +checkUnnamed508(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed507() { +buildUnnamed509() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed507(core.List<core.String> o) { +checkUnnamed509(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -307,8 +307,8 @@ o.customCtaButtonText = "foo"; o.descriptionText = "foo"; o.destinationUrl = "foo"; - o.forecastingUrl = buildUnnamed506(); - o.impressionUrl = buildUnnamed507(); + o.forecastingUrl = buildUnnamed508(); + o.impressionUrl = buildUnnamed509(); o.videoId = "foo"; } buildCounterActivityContentDetailsPromotedItem--; @@ -325,8 +325,8 @@ unittest.expect(o.customCtaButtonText, unittest.equals('foo')); unittest.expect(o.descriptionText, unittest.equals('foo')); unittest.expect(o.destinationUrl, unittest.equals('foo')); - checkUnnamed506(o.forecastingUrl); - checkUnnamed507(o.impressionUrl); + checkUnnamed508(o.forecastingUrl); + checkUnnamed509(o.impressionUrl); unittest.expect(o.videoId, unittest.equals('foo')); } buildCounterActivityContentDetailsPromotedItem--; @@ -420,14 +420,14 @@ buildCounterActivityContentDetailsUpload--; } -buildUnnamed508() { +buildUnnamed510() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed508(core.List<api.Activity> o) { +checkUnnamed510(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -440,7 +440,7 @@ if (buildCounterActivityListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed508(); + o.items = buildUnnamed510(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -457,7 +457,7 @@ if (buildCounterActivityListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed508(o.items); + checkUnnamed510(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -526,14 +526,14 @@ buildCounterCaption--; } -buildUnnamed509() { +buildUnnamed511() { var o = new core.List<api.Caption>(); o.add(buildCaption()); o.add(buildCaption()); return o; } -checkUnnamed509(core.List<api.Caption> o) { +checkUnnamed511(core.List<api.Caption> o) { unittest.expect(o, unittest.hasLength(2)); checkCaption(o[0]); checkCaption(o[1]); @@ -546,7 +546,7 @@ if (buildCounterCaptionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed509(); + o.items = buildUnnamed511(); o.kind = "foo"; o.visitorId = "foo"; } @@ -559,7 +559,7 @@ if (buildCounterCaptionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed509(o.items); + checkUnnamed511(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -636,14 +636,14 @@ buildCounterCdnSettings--; } -buildUnnamed510() { +buildUnnamed512() { var o = new core.Map<core.String, api.ChannelLocalization>(); o["x"] = buildChannelLocalization(); o["y"] = buildChannelLocalization(); return o; } -checkUnnamed510(core.Map<core.String, api.ChannelLocalization> o) { +checkUnnamed512(core.Map<core.String, api.ChannelLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelLocalization(o["x"]); checkChannelLocalization(o["y"]); @@ -663,7 +663,7 @@ o.id = "foo"; o.invideoPromotion = buildInvideoPromotion(); o.kind = "foo"; - o.localizations = buildUnnamed510(); + o.localizations = buildUnnamed512(); o.snippet = buildChannelSnippet(); o.statistics = buildChannelStatistics(); o.status = buildChannelStatus(); @@ -685,7 +685,7 @@ unittest.expect(o.id, unittest.equals('foo')); checkInvideoPromotion(o.invideoPromotion); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed510(o.localizations); + checkUnnamed512(o.localizations); checkChannelSnippet(o.snippet); checkChannelStatistics(o.statistics); checkChannelStatus(o.status); @@ -742,14 +742,14 @@ buildCounterChannelBannerResource--; } -buildUnnamed511() { +buildUnnamed513() { var o = new core.List<api.PropertyValue>(); o.add(buildPropertyValue()); o.add(buildPropertyValue()); return o; } -checkUnnamed511(core.List<api.PropertyValue> o) { +checkUnnamed513(core.List<api.PropertyValue> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyValue(o[0]); checkPropertyValue(o[1]); @@ -761,7 +761,7 @@ buildCounterChannelBrandingSettings++; if (buildCounterChannelBrandingSettings < 3) { o.channel = buildChannelSettings(); - o.hints = buildUnnamed511(); + o.hints = buildUnnamed513(); o.image = buildImageSettings(); o.watch = buildWatchSettings(); } @@ -773,7 +773,7 @@ buildCounterChannelBrandingSettings++; if (buildCounterChannelBrandingSettings < 3) { checkChannelSettings(o.channel); - checkUnnamed511(o.hints); + checkUnnamed513(o.hints); checkImageSettings(o.image); checkWatchSettings(o.watch); } @@ -868,14 +868,14 @@ buildCounterChannelConversionPing--; } -buildUnnamed512() { +buildUnnamed514() { var o = new core.List<api.ChannelConversionPing>(); o.add(buildChannelConversionPing()); o.add(buildChannelConversionPing()); return o; } -checkUnnamed512(core.List<api.ChannelConversionPing> o) { +checkUnnamed514(core.List<api.ChannelConversionPing> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelConversionPing(o[0]); checkChannelConversionPing(o[1]); @@ -886,7 +886,7 @@ var o = new api.ChannelConversionPings(); buildCounterChannelConversionPings++; if (buildCounterChannelConversionPings < 3) { - o.pings = buildUnnamed512(); + o.pings = buildUnnamed514(); } buildCounterChannelConversionPings--; return o; @@ -895,19 +895,19 @@ checkChannelConversionPings(api.ChannelConversionPings o) { buildCounterChannelConversionPings++; if (buildCounterChannelConversionPings < 3) { - checkUnnamed512(o.pings); + checkUnnamed514(o.pings); } buildCounterChannelConversionPings--; } -buildUnnamed513() { +buildUnnamed515() { var o = new core.List<api.Channel>(); o.add(buildChannel()); o.add(buildChannel()); return o; } -checkUnnamed513(core.List<api.Channel> o) { +checkUnnamed515(core.List<api.Channel> o) { unittest.expect(o, unittest.hasLength(2)); checkChannel(o[0]); checkChannel(o[1]); @@ -920,7 +920,7 @@ if (buildCounterChannelListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed513(); + o.items = buildUnnamed515(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -937,7 +937,7 @@ if (buildCounterChannelListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed513(o.items); + checkUnnamed515(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -994,14 +994,14 @@ buildCounterChannelProfileDetails--; } -buildUnnamed514() { +buildUnnamed516() { var o = new core.Map<core.String, api.ChannelSectionLocalization>(); o["x"] = buildChannelSectionLocalization(); o["y"] = buildChannelSectionLocalization(); return o; } -checkUnnamed514(core.Map<core.String, api.ChannelSectionLocalization> o) { +checkUnnamed516(core.Map<core.String, api.ChannelSectionLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelSectionLocalization(o["x"]); checkChannelSectionLocalization(o["y"]); @@ -1016,7 +1016,7 @@ o.etag = "foo"; o.id = "foo"; o.kind = "foo"; - o.localizations = buildUnnamed514(); + o.localizations = buildUnnamed516(); o.snippet = buildChannelSectionSnippet(); o.targeting = buildChannelSectionTargeting(); } @@ -1031,34 +1031,34 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed514(o.localizations); + checkUnnamed516(o.localizations); checkChannelSectionSnippet(o.snippet); checkChannelSectionTargeting(o.targeting); } buildCounterChannelSection--; } -buildUnnamed515() { +buildUnnamed517() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed515(core.List<core.String> o) { +checkUnnamed517(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed516() { +buildUnnamed518() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed516(core.List<core.String> o) { +checkUnnamed518(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1069,8 +1069,8 @@ var o = new api.ChannelSectionContentDetails(); buildCounterChannelSectionContentDetails++; if (buildCounterChannelSectionContentDetails < 3) { - o.channels = buildUnnamed515(); - o.playlists = buildUnnamed516(); + o.channels = buildUnnamed517(); + o.playlists = buildUnnamed518(); } buildCounterChannelSectionContentDetails--; return o; @@ -1079,20 +1079,20 @@ checkChannelSectionContentDetails(api.ChannelSectionContentDetails o) { buildCounterChannelSectionContentDetails++; if (buildCounterChannelSectionContentDetails < 3) { - checkUnnamed515(o.channels); - checkUnnamed516(o.playlists); + checkUnnamed517(o.channels); + checkUnnamed518(o.playlists); } buildCounterChannelSectionContentDetails--; } -buildUnnamed517() { +buildUnnamed519() { var o = new core.List<api.ChannelSection>(); o.add(buildChannelSection()); o.add(buildChannelSection()); return o; } -checkUnnamed517(core.List<api.ChannelSection> o) { +checkUnnamed519(core.List<api.ChannelSection> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelSection(o[0]); checkChannelSection(o[1]); @@ -1105,7 +1105,7 @@ if (buildCounterChannelSectionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed517(); + o.items = buildUnnamed519(); o.kind = "foo"; o.visitorId = "foo"; } @@ -1118,7 +1118,7 @@ if (buildCounterChannelSectionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed517(o.items); + checkUnnamed519(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -1175,32 +1175,6 @@ buildCounterChannelSectionSnippet--; } -buildUnnamed518() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed518(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed519() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed519(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - buildUnnamed520() { var o = new core.List<core.String>(); o.add("foo"); @@ -1214,29 +1188,6 @@ unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterChannelSectionTargeting = 0; -buildChannelSectionTargeting() { - var o = new api.ChannelSectionTargeting(); - buildCounterChannelSectionTargeting++; - if (buildCounterChannelSectionTargeting < 3) { - o.countries = buildUnnamed518(); - o.languages = buildUnnamed519(); - o.regions = buildUnnamed520(); - } - buildCounterChannelSectionTargeting--; - return o; -} - -checkChannelSectionTargeting(api.ChannelSectionTargeting o) { - buildCounterChannelSectionTargeting++; - if (buildCounterChannelSectionTargeting < 3) { - checkUnnamed518(o.countries); - checkUnnamed519(o.languages); - checkUnnamed520(o.regions); - } - buildCounterChannelSectionTargeting--; -} - buildUnnamed521() { var o = new core.List<core.String>(); o.add("foo"); @@ -1250,6 +1201,55 @@ unittest.expect(o[1], unittest.equals('foo')); } +buildUnnamed522() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed522(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterChannelSectionTargeting = 0; +buildChannelSectionTargeting() { + var o = new api.ChannelSectionTargeting(); + buildCounterChannelSectionTargeting++; + if (buildCounterChannelSectionTargeting < 3) { + o.countries = buildUnnamed520(); + o.languages = buildUnnamed521(); + o.regions = buildUnnamed522(); + } + buildCounterChannelSectionTargeting--; + return o; +} + +checkChannelSectionTargeting(api.ChannelSectionTargeting o) { + buildCounterChannelSectionTargeting++; + if (buildCounterChannelSectionTargeting < 3) { + checkUnnamed520(o.countries); + checkUnnamed521(o.languages); + checkUnnamed522(o.regions); + } + buildCounterChannelSectionTargeting--; +} + +buildUnnamed523() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed523(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterChannelSettings = 0; buildChannelSettings() { var o = new api.ChannelSettings(); @@ -1260,7 +1260,7 @@ o.defaultTab = "foo"; o.description = "foo"; o.featuredChannelsTitle = "foo"; - o.featuredChannelsUrls = buildUnnamed521(); + o.featuredChannelsUrls = buildUnnamed523(); o.keywords = "foo"; o.moderateComments = true; o.profileColor = "foo"; @@ -1282,7 +1282,7 @@ unittest.expect(o.defaultTab, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.featuredChannelsTitle, unittest.equals('foo')); - checkUnnamed521(o.featuredChannelsUrls); + checkUnnamed523(o.featuredChannelsUrls); unittest.expect(o.keywords, unittest.equals('foo')); unittest.expect(o.moderateComments, unittest.isTrue); unittest.expect(o.profileColor, unittest.equals('foo')); @@ -1378,27 +1378,27 @@ buildCounterChannelStatus--; } -buildUnnamed522() { +buildUnnamed524() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed522(core.List<core.String> o) { +checkUnnamed524(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed523() { +buildUnnamed525() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed523(core.List<core.String> o) { +checkUnnamed525(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1409,8 +1409,8 @@ var o = new api.ChannelTopicDetails(); buildCounterChannelTopicDetails++; if (buildCounterChannelTopicDetails < 3) { - o.topicCategories = buildUnnamed522(); - o.topicIds = buildUnnamed523(); + o.topicCategories = buildUnnamed524(); + o.topicIds = buildUnnamed525(); } buildCounterChannelTopicDetails--; return o; @@ -1419,8 +1419,8 @@ checkChannelTopicDetails(api.ChannelTopicDetails o) { buildCounterChannelTopicDetails++; if (buildCounterChannelTopicDetails < 3) { - checkUnnamed522(o.topicCategories); - checkUnnamed523(o.topicIds); + checkUnnamed524(o.topicCategories); + checkUnnamed525(o.topicIds); } buildCounterChannelTopicDetails--; } @@ -1450,14 +1450,14 @@ buildCounterComment--; } -buildUnnamed524() { +buildUnnamed526() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed524(core.List<api.Comment> o) { +checkUnnamed526(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1470,7 +1470,7 @@ if (buildCounterCommentListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed524(); + o.items = buildUnnamed526(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -1486,7 +1486,7 @@ if (buildCounterCommentListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed524(o.items); + checkUnnamed526(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -1570,14 +1570,14 @@ buildCounterCommentThread--; } -buildUnnamed525() { +buildUnnamed527() { var o = new core.List<api.CommentThread>(); o.add(buildCommentThread()); o.add(buildCommentThread()); return o; } -checkUnnamed525(core.List<api.CommentThread> o) { +checkUnnamed527(core.List<api.CommentThread> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentThread(o[0]); checkCommentThread(o[1]); @@ -1590,7 +1590,7 @@ if (buildCounterCommentThreadListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed525(); + o.items = buildUnnamed527(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -1606,7 +1606,7 @@ if (buildCounterCommentThreadListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed525(o.items); + checkUnnamed527(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -1616,14 +1616,14 @@ buildCounterCommentThreadListResponse--; } -buildUnnamed526() { +buildUnnamed528() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed526(core.List<api.Comment> o) { +checkUnnamed528(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1634,7 +1634,7 @@ var o = new api.CommentThreadReplies(); buildCounterCommentThreadReplies++; if (buildCounterCommentThreadReplies < 3) { - o.comments = buildUnnamed526(); + o.comments = buildUnnamed528(); } buildCounterCommentThreadReplies--; return o; @@ -1643,7 +1643,7 @@ checkCommentThreadReplies(api.CommentThreadReplies o) { buildCounterCommentThreadReplies++; if (buildCounterCommentThreadReplies < 3) { - checkUnnamed526(o.comments); + checkUnnamed528(o.comments); } buildCounterCommentThreadReplies--; } @@ -1677,27 +1677,27 @@ buildCounterCommentThreadSnippet--; } -buildUnnamed527() { +buildUnnamed529() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed527(core.List<core.String> o) { +checkUnnamed529(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed528() { +buildUnnamed530() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed528(core.List<core.String> o) { +checkUnnamed530(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1728,7 +1728,7 @@ o.cscfRating = "foo"; o.czfilmRating = "foo"; o.djctqRating = "foo"; - o.djctqRatingReasons = buildUnnamed527(); + o.djctqRatingReasons = buildUnnamed529(); o.ecbmctRating = "foo"; o.eefilmRating = "foo"; o.egfilmRating = "foo"; @@ -1737,7 +1737,7 @@ o.fcoRating = "foo"; o.fmocRating = "foo"; o.fpbRating = "foo"; - o.fpbRatingReasons = buildUnnamed528(); + o.fpbRatingReasons = buildUnnamed530(); o.fskRating = "foo"; o.grfilmRating = "foo"; o.icaaRating = "foo"; @@ -1804,7 +1804,7 @@ unittest.expect(o.cscfRating, unittest.equals('foo')); unittest.expect(o.czfilmRating, unittest.equals('foo')); unittest.expect(o.djctqRating, unittest.equals('foo')); - checkUnnamed527(o.djctqRatingReasons); + checkUnnamed529(o.djctqRatingReasons); unittest.expect(o.ecbmctRating, unittest.equals('foo')); unittest.expect(o.eefilmRating, unittest.equals('foo')); unittest.expect(o.egfilmRating, unittest.equals('foo')); @@ -1813,7 +1813,7 @@ unittest.expect(o.fcoRating, unittest.equals('foo')); unittest.expect(o.fmocRating, unittest.equals('foo')); unittest.expect(o.fpbRating, unittest.equals('foo')); - checkUnnamed528(o.fpbRatingReasons); + checkUnnamed530(o.fpbRatingReasons); unittest.expect(o.fskRating, unittest.equals('foo')); unittest.expect(o.grfilmRating, unittest.equals('foo')); unittest.expect(o.icaaRating, unittest.equals('foo')); @@ -1881,14 +1881,14 @@ buildCounterFanFundingEvent--; } -buildUnnamed529() { +buildUnnamed531() { var o = new core.List<api.FanFundingEvent>(); o.add(buildFanFundingEvent()); o.add(buildFanFundingEvent()); return o; } -checkUnnamed529(core.List<api.FanFundingEvent> o) { +checkUnnamed531(core.List<api.FanFundingEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkFanFundingEvent(o[0]); checkFanFundingEvent(o[1]); @@ -1901,7 +1901,7 @@ if (buildCounterFanFundingEventListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed529(); + o.items = buildUnnamed531(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -1917,7 +1917,7 @@ if (buildCounterFanFundingEventListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed529(o.items); + checkUnnamed531(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -2006,14 +2006,14 @@ buildCounterGuideCategory--; } -buildUnnamed530() { +buildUnnamed532() { var o = new core.List<api.GuideCategory>(); o.add(buildGuideCategory()); o.add(buildGuideCategory()); return o; } -checkUnnamed530(core.List<api.GuideCategory> o) { +checkUnnamed532(core.List<api.GuideCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkGuideCategory(o[0]); checkGuideCategory(o[1]); @@ -2026,7 +2026,7 @@ if (buildCounterGuideCategoryListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed530(); + o.items = buildUnnamed532(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -2043,7 +2043,7 @@ if (buildCounterGuideCategoryListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed530(o.items); + checkUnnamed532(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -2100,14 +2100,14 @@ buildCounterI18nLanguage--; } -buildUnnamed531() { +buildUnnamed533() { var o = new core.List<api.I18nLanguage>(); o.add(buildI18nLanguage()); o.add(buildI18nLanguage()); return o; } -checkUnnamed531(core.List<api.I18nLanguage> o) { +checkUnnamed533(core.List<api.I18nLanguage> o) { unittest.expect(o, unittest.hasLength(2)); checkI18nLanguage(o[0]); checkI18nLanguage(o[1]); @@ -2120,7 +2120,7 @@ if (buildCounterI18nLanguageListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed531(); + o.items = buildUnnamed533(); o.kind = "foo"; o.visitorId = "foo"; } @@ -2133,7 +2133,7 @@ if (buildCounterI18nLanguageListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed531(o.items); + checkUnnamed533(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -2186,14 +2186,14 @@ buildCounterI18nRegion--; } -buildUnnamed532() { +buildUnnamed534() { var o = new core.List<api.I18nRegion>(); o.add(buildI18nRegion()); o.add(buildI18nRegion()); return o; } -checkUnnamed532(core.List<api.I18nRegion> o) { +checkUnnamed534(core.List<api.I18nRegion> o) { unittest.expect(o, unittest.hasLength(2)); checkI18nRegion(o[0]); checkI18nRegion(o[1]); @@ -2206,7 +2206,7 @@ if (buildCounterI18nRegionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed532(); + o.items = buildUnnamed534(); o.kind = "foo"; o.visitorId = "foo"; } @@ -2219,7 +2219,7 @@ if (buildCounterI18nRegionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed532(o.items); + checkUnnamed534(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -2379,14 +2379,14 @@ buildCounterInvideoPosition--; } -buildUnnamed533() { +buildUnnamed535() { var o = new core.List<api.PromotedItem>(); o.add(buildPromotedItem()); o.add(buildPromotedItem()); return o; } -checkUnnamed533(core.List<api.PromotedItem> o) { +checkUnnamed535(core.List<api.PromotedItem> o) { unittest.expect(o, unittest.hasLength(2)); checkPromotedItem(o[0]); checkPromotedItem(o[1]); @@ -2398,7 +2398,7 @@ buildCounterInvideoPromotion++; if (buildCounterInvideoPromotion < 3) { o.defaultTiming = buildInvideoTiming(); - o.items = buildUnnamed533(); + o.items = buildUnnamed535(); o.position = buildInvideoPosition(); o.useSmartTiming = true; } @@ -2410,7 +2410,7 @@ buildCounterInvideoPromotion++; if (buildCounterInvideoPromotion < 3) { checkInvideoTiming(o.defaultTiming); - checkUnnamed533(o.items); + checkUnnamed535(o.items); checkInvideoPosition(o.position); unittest.expect(o.useSmartTiming, unittest.isTrue); } @@ -2533,14 +2533,14 @@ buildCounterLiveBroadcastContentDetails--; } -buildUnnamed534() { +buildUnnamed536() { var o = new core.List<api.LiveBroadcast>(); o.add(buildLiveBroadcast()); o.add(buildLiveBroadcast()); return o; } -checkUnnamed534(core.List<api.LiveBroadcast> o) { +checkUnnamed536(core.List<api.LiveBroadcast> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveBroadcast(o[0]); checkLiveBroadcast(o[1]); @@ -2553,7 +2553,7 @@ if (buildCounterLiveBroadcastListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed534(); + o.items = buildUnnamed536(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -2570,7 +2570,7 @@ if (buildCounterLiveBroadcastListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed534(o.items); + checkUnnamed536(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -2689,14 +2689,14 @@ buildCounterLiveBroadcastTopic--; } -buildUnnamed535() { +buildUnnamed537() { var o = new core.List<api.LiveBroadcastTopic>(); o.add(buildLiveBroadcastTopic()); o.add(buildLiveBroadcastTopic()); return o; } -checkUnnamed535(core.List<api.LiveBroadcastTopic> o) { +checkUnnamed537(core.List<api.LiveBroadcastTopic> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveBroadcastTopic(o[0]); checkLiveBroadcastTopic(o[1]); @@ -2707,7 +2707,7 @@ var o = new api.LiveBroadcastTopicDetails(); buildCounterLiveBroadcastTopicDetails++; if (buildCounterLiveBroadcastTopicDetails < 3) { - o.topics = buildUnnamed535(); + o.topics = buildUnnamed537(); } buildCounterLiveBroadcastTopicDetails--; return o; @@ -2716,7 +2716,7 @@ checkLiveBroadcastTopicDetails(api.LiveBroadcastTopicDetails o) { buildCounterLiveBroadcastTopicDetails++; if (buildCounterLiveBroadcastTopicDetails < 3) { - checkUnnamed535(o.topics); + checkUnnamed537(o.topics); } buildCounterLiveBroadcastTopicDetails--; } @@ -2896,14 +2896,14 @@ buildCounterLiveChatMessageDeletedDetails--; } -buildUnnamed536() { +buildUnnamed538() { var o = new core.List<api.LiveChatMessage>(); o.add(buildLiveChatMessage()); o.add(buildLiveChatMessage()); return o; } -checkUnnamed536(core.List<api.LiveChatMessage> o) { +checkUnnamed538(core.List<api.LiveChatMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatMessage(o[0]); checkLiveChatMessage(o[1]); @@ -2916,7 +2916,7 @@ if (buildCounterLiveChatMessageListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed536(); + o.items = buildUnnamed538(); o.kind = "foo"; o.nextPageToken = "foo"; o.offlineAt = core.DateTime.parse("2002-02-27T14:01:02"); @@ -2934,7 +2934,7 @@ if (buildCounterLiveChatMessageListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed536(o.items); + checkUnnamed538(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.offlineAt, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -3039,14 +3039,14 @@ buildCounterLiveChatModerator--; } -buildUnnamed537() { +buildUnnamed539() { var o = new core.List<api.LiveChatModerator>(); o.add(buildLiveChatModerator()); o.add(buildLiveChatModerator()); return o; } -checkUnnamed537(core.List<api.LiveChatModerator> o) { +checkUnnamed539(core.List<api.LiveChatModerator> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatModerator(o[0]); checkLiveChatModerator(o[1]); @@ -3059,7 +3059,7 @@ if (buildCounterLiveChatModeratorListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed537(); + o.items = buildUnnamed539(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3076,7 +3076,7 @@ if (buildCounterLiveChatModeratorListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed537(o.items); + checkUnnamed539(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3127,14 +3127,14 @@ buildCounterLiveChatPollClosedDetails--; } -buildUnnamed538() { +buildUnnamed540() { var o = new core.List<api.LiveChatPollItem>(); o.add(buildLiveChatPollItem()); o.add(buildLiveChatPollItem()); return o; } -checkUnnamed538(core.List<api.LiveChatPollItem> o) { +checkUnnamed540(core.List<api.LiveChatPollItem> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatPollItem(o[0]); checkLiveChatPollItem(o[1]); @@ -3146,7 +3146,7 @@ buildCounterLiveChatPollEditedDetails++; if (buildCounterLiveChatPollEditedDetails < 3) { o.id = "foo"; - o.items = buildUnnamed538(); + o.items = buildUnnamed540(); o.prompt = "foo"; } buildCounterLiveChatPollEditedDetails--; @@ -3157,7 +3157,7 @@ buildCounterLiveChatPollEditedDetails++; if (buildCounterLiveChatPollEditedDetails < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed538(o.items); + checkUnnamed540(o.items); unittest.expect(o.prompt, unittest.equals('foo')); } buildCounterLiveChatPollEditedDetails--; @@ -3184,14 +3184,14 @@ buildCounterLiveChatPollItem--; } -buildUnnamed539() { +buildUnnamed541() { var o = new core.List<api.LiveChatPollItem>(); o.add(buildLiveChatPollItem()); o.add(buildLiveChatPollItem()); return o; } -checkUnnamed539(core.List<api.LiveChatPollItem> o) { +checkUnnamed541(core.List<api.LiveChatPollItem> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatPollItem(o[0]); checkLiveChatPollItem(o[1]); @@ -3203,7 +3203,7 @@ buildCounterLiveChatPollOpenedDetails++; if (buildCounterLiveChatPollOpenedDetails < 3) { o.id = "foo"; - o.items = buildUnnamed539(); + o.items = buildUnnamed541(); o.prompt = "foo"; } buildCounterLiveChatPollOpenedDetails--; @@ -3214,7 +3214,7 @@ buildCounterLiveChatPollOpenedDetails++; if (buildCounterLiveChatPollOpenedDetails < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed539(o.items); + checkUnnamed541(o.items); unittest.expect(o.prompt, unittest.equals('foo')); } buildCounterLiveChatPollOpenedDetails--; @@ -3387,14 +3387,14 @@ buildCounterLiveStreamContentDetails--; } -buildUnnamed540() { +buildUnnamed542() { var o = new core.List<api.LiveStreamConfigurationIssue>(); o.add(buildLiveStreamConfigurationIssue()); o.add(buildLiveStreamConfigurationIssue()); return o; } -checkUnnamed540(core.List<api.LiveStreamConfigurationIssue> o) { +checkUnnamed542(core.List<api.LiveStreamConfigurationIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveStreamConfigurationIssue(o[0]); checkLiveStreamConfigurationIssue(o[1]); @@ -3405,7 +3405,7 @@ var o = new api.LiveStreamHealthStatus(); buildCounterLiveStreamHealthStatus++; if (buildCounterLiveStreamHealthStatus < 3) { - o.configurationIssues = buildUnnamed540(); + o.configurationIssues = buildUnnamed542(); o.lastUpdateTimeSeconds = "foo"; o.status = "foo"; } @@ -3416,21 +3416,21 @@ checkLiveStreamHealthStatus(api.LiveStreamHealthStatus o) { buildCounterLiveStreamHealthStatus++; if (buildCounterLiveStreamHealthStatus < 3) { - checkUnnamed540(o.configurationIssues); + checkUnnamed542(o.configurationIssues); unittest.expect(o.lastUpdateTimeSeconds, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); } buildCounterLiveStreamHealthStatus--; } -buildUnnamed541() { +buildUnnamed543() { var o = new core.List<api.LiveStream>(); o.add(buildLiveStream()); o.add(buildLiveStream()); return o; } -checkUnnamed541(core.List<api.LiveStream> o) { +checkUnnamed543(core.List<api.LiveStream> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveStream(o[0]); checkLiveStream(o[1]); @@ -3443,7 +3443,7 @@ if (buildCounterLiveStreamListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed541(); + o.items = buildUnnamed543(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3460,7 +3460,7 @@ if (buildCounterLiveStreamListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed541(o.items); + checkUnnamed543(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3519,14 +3519,14 @@ buildCounterLiveStreamStatus--; } -buildUnnamed542() { +buildUnnamed544() { var o = new core.List<api.LocalizedString>(); o.add(buildLocalizedString()); o.add(buildLocalizedString()); return o; } -checkUnnamed542(core.List<api.LocalizedString> o) { +checkUnnamed544(core.List<api.LocalizedString> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedString(o[0]); checkLocalizedString(o[1]); @@ -3539,7 +3539,7 @@ if (buildCounterLocalizedProperty < 3) { o.default_ = "foo"; o.defaultLanguage = buildLanguageTag(); - o.localized = buildUnnamed542(); + o.localized = buildUnnamed544(); } buildCounterLocalizedProperty--; return o; @@ -3550,7 +3550,7 @@ if (buildCounterLocalizedProperty < 3) { unittest.expect(o.default_, unittest.equals('foo')); checkLanguageTag(o.defaultLanguage); - checkUnnamed542(o.localized); + checkUnnamed544(o.localized); } buildCounterLocalizedProperty--; } @@ -3620,14 +3620,14 @@ buildCounterPageInfo--; } -buildUnnamed543() { +buildUnnamed545() { var o = new core.Map<core.String, api.PlaylistLocalization>(); o["x"] = buildPlaylistLocalization(); o["y"] = buildPlaylistLocalization(); return o; } -checkUnnamed543(core.Map<core.String, api.PlaylistLocalization> o) { +checkUnnamed545(core.Map<core.String, api.PlaylistLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkPlaylistLocalization(o["x"]); checkPlaylistLocalization(o["y"]); @@ -3642,7 +3642,7 @@ o.etag = "foo"; o.id = "foo"; o.kind = "foo"; - o.localizations = buildUnnamed543(); + o.localizations = buildUnnamed545(); o.player = buildPlaylistPlayer(); o.snippet = buildPlaylistSnippet(); o.status = buildPlaylistStatus(); @@ -3658,7 +3658,7 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed543(o.localizations); + checkUnnamed545(o.localizations); checkPlaylistPlayer(o.player); checkPlaylistSnippet(o.snippet); checkPlaylistStatus(o.status); @@ -3741,14 +3741,14 @@ buildCounterPlaylistItemContentDetails--; } -buildUnnamed544() { +buildUnnamed546() { var o = new core.List<api.PlaylistItem>(); o.add(buildPlaylistItem()); o.add(buildPlaylistItem()); return o; } -checkUnnamed544(core.List<api.PlaylistItem> o) { +checkUnnamed546(core.List<api.PlaylistItem> o) { unittest.expect(o, unittest.hasLength(2)); checkPlaylistItem(o[0]); checkPlaylistItem(o[1]); @@ -3761,7 +3761,7 @@ if (buildCounterPlaylistItemListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed544(); + o.items = buildUnnamed546(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3778,7 +3778,7 @@ if (buildCounterPlaylistItemListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed544(o.items); + checkUnnamed546(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3843,14 +3843,14 @@ buildCounterPlaylistItemStatus--; } -buildUnnamed545() { +buildUnnamed547() { var o = new core.List<api.Playlist>(); o.add(buildPlaylist()); o.add(buildPlaylist()); return o; } -checkUnnamed545(core.List<api.Playlist> o) { +checkUnnamed547(core.List<api.Playlist> o) { unittest.expect(o, unittest.hasLength(2)); checkPlaylist(o[0]); checkPlaylist(o[1]); @@ -3863,7 +3863,7 @@ if (buildCounterPlaylistListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed545(); + o.items = buildUnnamed547(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3880,7 +3880,7 @@ if (buildCounterPlaylistListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed545(o.items); + checkUnnamed547(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3931,14 +3931,14 @@ buildCounterPlaylistPlayer--; } -buildUnnamed546() { +buildUnnamed548() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed546(core.List<core.String> o) { +checkUnnamed548(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3955,7 +3955,7 @@ o.description = "foo"; o.localized = buildPlaylistLocalization(); o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); - o.tags = buildUnnamed546(); + o.tags = buildUnnamed548(); o.thumbnails = buildThumbnailDetails(); o.title = "foo"; } @@ -3972,7 +3972,7 @@ unittest.expect(o.description, unittest.equals('foo')); checkPlaylistLocalization(o.localized); unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed546(o.tags); + checkUnnamed548(o.tags); checkThumbnailDetails(o.thumbnails); unittest.expect(o.title, unittest.equals('foo')); } @@ -4094,14 +4094,14 @@ buildCounterResourceId--; } -buildUnnamed547() { +buildUnnamed549() { var o = new core.List<api.SearchResult>(); o.add(buildSearchResult()); o.add(buildSearchResult()); return o; } -checkUnnamed547(core.List<api.SearchResult> o) { +checkUnnamed549(core.List<api.SearchResult> o) { unittest.expect(o, unittest.hasLength(2)); checkSearchResult(o[0]); checkSearchResult(o[1]); @@ -4114,7 +4114,7 @@ if (buildCounterSearchListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed547(); + o.items = buildUnnamed549(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4132,7 +4132,7 @@ if (buildCounterSearchListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed547(o.items); + checkUnnamed549(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4225,14 +4225,14 @@ buildCounterSponsor--; } -buildUnnamed548() { +buildUnnamed550() { var o = new core.List<api.Sponsor>(); o.add(buildSponsor()); o.add(buildSponsor()); return o; } -checkUnnamed548(core.List<api.Sponsor> o) { +checkUnnamed550(core.List<api.Sponsor> o) { unittest.expect(o, unittest.hasLength(2)); checkSponsor(o[0]); checkSponsor(o[1]); @@ -4245,7 +4245,7 @@ if (buildCounterSponsorListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed548(); + o.items = buildUnnamed550(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4261,7 +4261,7 @@ if (buildCounterSponsorListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed548(o.items); + checkUnnamed550(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4346,14 +4346,14 @@ buildCounterSubscriptionContentDetails--; } -buildUnnamed549() { +buildUnnamed551() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed549(core.List<api.Subscription> o) { +checkUnnamed551(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -4366,7 +4366,7 @@ if (buildCounterSubscriptionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed549(); + o.items = buildUnnamed551(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4383,7 +4383,7 @@ if (buildCounterSubscriptionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed549(o.items); + checkUnnamed551(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4475,14 +4475,14 @@ buildCounterSuperChatEvent--; } -buildUnnamed550() { +buildUnnamed552() { var o = new core.List<api.SuperChatEvent>(); o.add(buildSuperChatEvent()); o.add(buildSuperChatEvent()); return o; } -checkUnnamed550(core.List<api.SuperChatEvent> o) { +checkUnnamed552(core.List<api.SuperChatEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkSuperChatEvent(o[0]); checkSuperChatEvent(o[1]); @@ -4495,7 +4495,7 @@ if (buildCounterSuperChatEventListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed550(); + o.items = buildUnnamed552(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4511,7 +4511,7 @@ if (buildCounterSuperChatEventListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed550(o.items); + checkUnnamed552(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4604,14 +4604,14 @@ buildCounterThumbnailDetails--; } -buildUnnamed551() { +buildUnnamed553() { var o = new core.List<api.ThumbnailDetails>(); o.add(buildThumbnailDetails()); o.add(buildThumbnailDetails()); return o; } -checkUnnamed551(core.List<api.ThumbnailDetails> o) { +checkUnnamed553(core.List<api.ThumbnailDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkThumbnailDetails(o[0]); checkThumbnailDetails(o[1]); @@ -4624,7 +4624,7 @@ if (buildCounterThumbnailSetResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed551(); + o.items = buildUnnamed553(); o.kind = "foo"; o.visitorId = "foo"; } @@ -4637,7 +4637,7 @@ if (buildCounterThumbnailSetResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed551(o.items); + checkUnnamed553(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -4661,14 +4661,14 @@ buildCounterTokenPagination--; } -buildUnnamed552() { +buildUnnamed554() { var o = new core.Map<core.String, api.VideoLocalization>(); o["x"] = buildVideoLocalization(); o["y"] = buildVideoLocalization(); return o; } -checkUnnamed552(core.Map<core.String, api.VideoLocalization> o) { +checkUnnamed554(core.Map<core.String, api.VideoLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoLocalization(o["x"]); checkVideoLocalization(o["y"]); @@ -4686,7 +4686,7 @@ o.id = "foo"; o.kind = "foo"; o.liveStreamingDetails = buildVideoLiveStreamingDetails(); - o.localizations = buildUnnamed552(); + o.localizations = buildUnnamed554(); o.monetizationDetails = buildVideoMonetizationDetails(); o.player = buildVideoPlayer(); o.processingDetails = buildVideoProcessingDetails(); @@ -4712,7 +4712,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkVideoLiveStreamingDetails(o.liveStreamingDetails); - checkUnnamed552(o.localizations); + checkUnnamed554(o.localizations); checkVideoMonetizationDetails(o.monetizationDetails); checkVideoPlayer(o.player); checkVideoProcessingDetails(o.processingDetails); @@ -4779,14 +4779,14 @@ buildCounterVideoAbuseReportReason--; } -buildUnnamed553() { +buildUnnamed555() { var o = new core.List<api.VideoAbuseReportReason>(); o.add(buildVideoAbuseReportReason()); o.add(buildVideoAbuseReportReason()); return o; } -checkUnnamed553(core.List<api.VideoAbuseReportReason> o) { +checkUnnamed555(core.List<api.VideoAbuseReportReason> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoAbuseReportReason(o[0]); checkVideoAbuseReportReason(o[1]); @@ -4799,7 +4799,7 @@ if (buildCounterVideoAbuseReportReasonListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed553(); + o.items = buildUnnamed555(); o.kind = "foo"; o.visitorId = "foo"; } @@ -4812,21 +4812,21 @@ if (buildCounterVideoAbuseReportReasonListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed553(o.items); + checkUnnamed555(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } buildCounterVideoAbuseReportReasonListResponse--; } -buildUnnamed554() { +buildUnnamed556() { var o = new core.List<api.VideoAbuseReportSecondaryReason>(); o.add(buildVideoAbuseReportSecondaryReason()); o.add(buildVideoAbuseReportSecondaryReason()); return o; } -checkUnnamed554(core.List<api.VideoAbuseReportSecondaryReason> o) { +checkUnnamed556(core.List<api.VideoAbuseReportSecondaryReason> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoAbuseReportSecondaryReason(o[0]); checkVideoAbuseReportSecondaryReason(o[1]); @@ -4838,7 +4838,7 @@ buildCounterVideoAbuseReportReasonSnippet++; if (buildCounterVideoAbuseReportReasonSnippet < 3) { o.label = "foo"; - o.secondaryReasons = buildUnnamed554(); + o.secondaryReasons = buildUnnamed556(); } buildCounterVideoAbuseReportReasonSnippet--; return o; @@ -4848,7 +4848,7 @@ buildCounterVideoAbuseReportReasonSnippet++; if (buildCounterVideoAbuseReportReasonSnippet < 3) { unittest.expect(o.label, unittest.equals('foo')); - checkUnnamed554(o.secondaryReasons); + checkUnnamed556(o.secondaryReasons); } buildCounterVideoAbuseReportReasonSnippet--; } @@ -4922,14 +4922,14 @@ buildCounterVideoCategory--; } -buildUnnamed555() { +buildUnnamed557() { var o = new core.List<api.VideoCategory>(); o.add(buildVideoCategory()); o.add(buildVideoCategory()); return o; } -checkUnnamed555(core.List<api.VideoCategory> o) { +checkUnnamed557(core.List<api.VideoCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoCategory(o[0]); checkVideoCategory(o[1]); @@ -4942,7 +4942,7 @@ if (buildCounterVideoCategoryListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed555(); + o.items = buildUnnamed557(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4959,7 +4959,7 @@ if (buildCounterVideoCategoryListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed555(o.items); + checkUnnamed557(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -5030,27 +5030,27 @@ buildCounterVideoContentDetails--; } -buildUnnamed556() { +buildUnnamed558() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed556(core.List<core.String> o) { +checkUnnamed558(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed557() { +buildUnnamed559() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed557(core.List<core.String> o) { +checkUnnamed559(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5061,8 +5061,8 @@ var o = new api.VideoContentDetailsRegionRestriction(); buildCounterVideoContentDetailsRegionRestriction++; if (buildCounterVideoContentDetailsRegionRestriction < 3) { - o.allowed = buildUnnamed556(); - o.blocked = buildUnnamed557(); + o.allowed = buildUnnamed558(); + o.blocked = buildUnnamed559(); } buildCounterVideoContentDetailsRegionRestriction--; return o; @@ -5071,33 +5071,33 @@ checkVideoContentDetailsRegionRestriction(api.VideoContentDetailsRegionRestriction o) { buildCounterVideoContentDetailsRegionRestriction++; if (buildCounterVideoContentDetailsRegionRestriction < 3) { - checkUnnamed556(o.allowed); - checkUnnamed557(o.blocked); + checkUnnamed558(o.allowed); + checkUnnamed559(o.blocked); } buildCounterVideoContentDetailsRegionRestriction--; } -buildUnnamed558() { +buildUnnamed560() { var o = new core.List<api.VideoFileDetailsAudioStream>(); o.add(buildVideoFileDetailsAudioStream()); o.add(buildVideoFileDetailsAudioStream()); return o; } -checkUnnamed558(core.List<api.VideoFileDetailsAudioStream> o) { +checkUnnamed560(core.List<api.VideoFileDetailsAudioStream> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoFileDetailsAudioStream(o[0]); checkVideoFileDetailsAudioStream(o[1]); } -buildUnnamed559() { +buildUnnamed561() { var o = new core.List<api.VideoFileDetailsVideoStream>(); o.add(buildVideoFileDetailsVideoStream()); o.add(buildVideoFileDetailsVideoStream()); return o; } -checkUnnamed559(core.List<api.VideoFileDetailsVideoStream> o) { +checkUnnamed561(core.List<api.VideoFileDetailsVideoStream> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoFileDetailsVideoStream(o[0]); checkVideoFileDetailsVideoStream(o[1]); @@ -5108,7 +5108,7 @@ var o = new api.VideoFileDetails(); buildCounterVideoFileDetails++; if (buildCounterVideoFileDetails < 3) { - o.audioStreams = buildUnnamed558(); + o.audioStreams = buildUnnamed560(); o.bitrateBps = "foo"; o.container = "foo"; o.creationTime = "foo"; @@ -5116,7 +5116,7 @@ o.fileName = "foo"; o.fileSize = "foo"; o.fileType = "foo"; - o.videoStreams = buildUnnamed559(); + o.videoStreams = buildUnnamed561(); } buildCounterVideoFileDetails--; return o; @@ -5125,7 +5125,7 @@ checkVideoFileDetails(api.VideoFileDetails o) { buildCounterVideoFileDetails++; if (buildCounterVideoFileDetails < 3) { - checkUnnamed558(o.audioStreams); + checkUnnamed560(o.audioStreams); unittest.expect(o.bitrateBps, unittest.equals('foo')); unittest.expect(o.container, unittest.equals('foo')); unittest.expect(o.creationTime, unittest.equals('foo')); @@ -5133,7 +5133,7 @@ unittest.expect(o.fileName, unittest.equals('foo')); unittest.expect(o.fileSize, unittest.equals('foo')); unittest.expect(o.fileType, unittest.equals('foo')); - checkUnnamed559(o.videoStreams); + checkUnnamed561(o.videoStreams); } buildCounterVideoFileDetails--; } @@ -5196,14 +5196,14 @@ buildCounterVideoFileDetailsVideoStream--; } -buildUnnamed560() { +buildUnnamed562() { var o = new core.List<api.VideoRating>(); o.add(buildVideoRating()); o.add(buildVideoRating()); return o; } -checkUnnamed560(core.List<api.VideoRating> o) { +checkUnnamed562(core.List<api.VideoRating> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoRating(o[0]); checkVideoRating(o[1]); @@ -5216,7 +5216,7 @@ if (buildCounterVideoGetRatingResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed560(); + o.items = buildUnnamed562(); o.kind = "foo"; o.visitorId = "foo"; } @@ -5229,21 +5229,21 @@ if (buildCounterVideoGetRatingResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed560(o.items); + checkUnnamed562(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } buildCounterVideoGetRatingResponse--; } -buildUnnamed561() { +buildUnnamed563() { var o = new core.List<api.Video>(); o.add(buildVideo()); o.add(buildVideo()); return o; } -checkUnnamed561(core.List<api.Video> o) { +checkUnnamed563(core.List<api.Video> o) { unittest.expect(o, unittest.hasLength(2)); checkVideo(o[0]); checkVideo(o[1]); @@ -5256,7 +5256,7 @@ if (buildCounterVideoListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed561(); + o.items = buildUnnamed563(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -5273,7 +5273,7 @@ if (buildCounterVideoListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed561(o.items); + checkUnnamed563(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -5432,14 +5432,14 @@ buildCounterVideoProcessingDetailsProcessingProgress--; } -buildUnnamed562() { +buildUnnamed564() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed562(core.List<core.String> o) { +checkUnnamed564(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5450,7 +5450,7 @@ var o = new api.VideoProjectDetails(); buildCounterVideoProjectDetails++; if (buildCounterVideoProjectDetails < 3) { - o.tags = buildUnnamed562(); + o.tags = buildUnnamed564(); } buildCounterVideoProjectDetails--; return o; @@ -5459,7 +5459,7 @@ checkVideoProjectDetails(api.VideoProjectDetails o) { buildCounterVideoProjectDetails++; if (buildCounterVideoProjectDetails < 3) { - checkUnnamed562(o.tags); + checkUnnamed564(o.tags); } buildCounterVideoProjectDetails--; } @@ -5508,14 +5508,14 @@ buildCounterVideoRecordingDetails--; } -buildUnnamed563() { +buildUnnamed565() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed563(core.List<core.String> o) { +checkUnnamed565(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5535,7 +5535,7 @@ o.liveBroadcastContent = "foo"; o.localized = buildVideoLocalization(); o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); - o.tags = buildUnnamed563(); + o.tags = buildUnnamed565(); o.thumbnails = buildThumbnailDetails(); o.title = "foo"; } @@ -5555,7 +5555,7 @@ unittest.expect(o.liveBroadcastContent, unittest.equals('foo')); checkVideoLocalization(o.localized); unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed563(o.tags); + checkUnnamed565(o.tags); checkThumbnailDetails(o.thumbnails); unittest.expect(o.title, unittest.equals('foo')); } @@ -5622,32 +5622,6 @@ buildCounterVideoStatus--; } -buildUnnamed564() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed564(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed565() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed565(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - buildUnnamed566() { var o = new core.List<core.String>(); o.add("foo"); @@ -5675,43 +5649,16 @@ } buildUnnamed568() { - var o = new core.List<api.VideoSuggestionsTagSuggestion>(); - o.add(buildVideoSuggestionsTagSuggestion()); - o.add(buildVideoSuggestionsTagSuggestion()); + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); return o; } -checkUnnamed568(core.List<api.VideoSuggestionsTagSuggestion> o) { +checkUnnamed568(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); - checkVideoSuggestionsTagSuggestion(o[0]); - checkVideoSuggestionsTagSuggestion(o[1]); -} - -core.int buildCounterVideoSuggestions = 0; -buildVideoSuggestions() { - var o = new api.VideoSuggestions(); - buildCounterVideoSuggestions++; - if (buildCounterVideoSuggestions < 3) { - o.editorSuggestions = buildUnnamed564(); - o.processingErrors = buildUnnamed565(); - o.processingHints = buildUnnamed566(); - o.processingWarnings = buildUnnamed567(); - o.tagSuggestions = buildUnnamed568(); - } - buildCounterVideoSuggestions--; - return o; -} - -checkVideoSuggestions(api.VideoSuggestions o) { - buildCounterVideoSuggestions++; - if (buildCounterVideoSuggestions < 3) { - checkUnnamed564(o.editorSuggestions); - checkUnnamed565(o.processingErrors); - checkUnnamed566(o.processingHints); - checkUnnamed567(o.processingWarnings); - checkUnnamed568(o.tagSuggestions); - } - buildCounterVideoSuggestions--; + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } buildUnnamed569() { @@ -5727,38 +5674,44 @@ unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterVideoSuggestionsTagSuggestion = 0; -buildVideoSuggestionsTagSuggestion() { - var o = new api.VideoSuggestionsTagSuggestion(); - buildCounterVideoSuggestionsTagSuggestion++; - if (buildCounterVideoSuggestionsTagSuggestion < 3) { - o.categoryRestricts = buildUnnamed569(); - o.tag = "foo"; - } - buildCounterVideoSuggestionsTagSuggestion--; - return o; -} - -checkVideoSuggestionsTagSuggestion(api.VideoSuggestionsTagSuggestion o) { - buildCounterVideoSuggestionsTagSuggestion++; - if (buildCounterVideoSuggestionsTagSuggestion < 3) { - checkUnnamed569(o.categoryRestricts); - unittest.expect(o.tag, unittest.equals('foo')); - } - buildCounterVideoSuggestionsTagSuggestion--; -} - buildUnnamed570() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); + var o = new core.List<api.VideoSuggestionsTagSuggestion>(); + o.add(buildVideoSuggestionsTagSuggestion()); + o.add(buildVideoSuggestionsTagSuggestion()); return o; } -checkUnnamed570(core.List<core.String> o) { +checkUnnamed570(core.List<api.VideoSuggestionsTagSuggestion> o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkVideoSuggestionsTagSuggestion(o[0]); + checkVideoSuggestionsTagSuggestion(o[1]); +} + +core.int buildCounterVideoSuggestions = 0; +buildVideoSuggestions() { + var o = new api.VideoSuggestions(); + buildCounterVideoSuggestions++; + if (buildCounterVideoSuggestions < 3) { + o.editorSuggestions = buildUnnamed566(); + o.processingErrors = buildUnnamed567(); + o.processingHints = buildUnnamed568(); + o.processingWarnings = buildUnnamed569(); + o.tagSuggestions = buildUnnamed570(); + } + buildCounterVideoSuggestions--; + return o; +} + +checkVideoSuggestions(api.VideoSuggestions o) { + buildCounterVideoSuggestions++; + if (buildCounterVideoSuggestions < 3) { + checkUnnamed566(o.editorSuggestions); + checkUnnamed567(o.processingErrors); + checkUnnamed568(o.processingHints); + checkUnnamed569(o.processingWarnings); + checkUnnamed570(o.tagSuggestions); + } + buildCounterVideoSuggestions--; } buildUnnamed571() { @@ -5774,6 +5727,27 @@ unittest.expect(o[1], unittest.equals('foo')); } +core.int buildCounterVideoSuggestionsTagSuggestion = 0; +buildVideoSuggestionsTagSuggestion() { + var o = new api.VideoSuggestionsTagSuggestion(); + buildCounterVideoSuggestionsTagSuggestion++; + if (buildCounterVideoSuggestionsTagSuggestion < 3) { + o.categoryRestricts = buildUnnamed571(); + o.tag = "foo"; + } + buildCounterVideoSuggestionsTagSuggestion--; + return o; +} + +checkVideoSuggestionsTagSuggestion(api.VideoSuggestionsTagSuggestion o) { + buildCounterVideoSuggestionsTagSuggestion++; + if (buildCounterVideoSuggestionsTagSuggestion < 3) { + checkUnnamed571(o.categoryRestricts); + unittest.expect(o.tag, unittest.equals('foo')); + } + buildCounterVideoSuggestionsTagSuggestion--; +} + buildUnnamed572() { var o = new core.List<core.String>(); o.add("foo"); @@ -5787,14 +5761,40 @@ unittest.expect(o[1], unittest.equals('foo')); } +buildUnnamed573() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed573(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed574() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed574(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterVideoTopicDetails = 0; buildVideoTopicDetails() { var o = new api.VideoTopicDetails(); buildCounterVideoTopicDetails++; if (buildCounterVideoTopicDetails < 3) { - o.relevantTopicIds = buildUnnamed570(); - o.topicCategories = buildUnnamed571(); - o.topicIds = buildUnnamed572(); + o.relevantTopicIds = buildUnnamed572(); + o.topicCategories = buildUnnamed573(); + o.topicIds = buildUnnamed574(); } buildCounterVideoTopicDetails--; return o; @@ -5803,9 +5803,9 @@ checkVideoTopicDetails(api.VideoTopicDetails o) { buildCounterVideoTopicDetails++; if (buildCounterVideoTopicDetails < 3) { - checkUnnamed570(o.relevantTopicIds); - checkUnnamed571(o.topicCategories); - checkUnnamed572(o.topicIds); + checkUnnamed572(o.relevantTopicIds); + checkUnnamed573(o.topicCategories); + checkUnnamed574(o.topicIds); } buildCounterVideoTopicDetails--; } @@ -7444,7 +7444,7 @@ api.ActivitiesResourceApi res = new api.YoutubeApi(mock).activities; var arg_request = buildActivity(); var arg_part = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Activity.fromJson(json); checkActivity(obj); @@ -7484,7 +7484,7 @@ var resp = convert.JSON.encode(buildActivity()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_part).then(unittest.expectAsync(((api.Activity response) { + res.insert(arg_request, arg_part).then(unittest.expectAsync1(((api.Activity response) { checkActivity(response); }))); }); @@ -7502,7 +7502,7 @@ var arg_publishedAfter = core.DateTime.parse("2002-02-27T14:01:02"); var arg_publishedBefore = core.DateTime.parse("2002-02-27T14:01:02"); var arg_regionCode = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7547,7 +7547,7 @@ var resp = convert.JSON.encode(buildActivityListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_part, channelId: arg_channelId, home: arg_home, maxResults: arg_maxResults, mine: arg_mine, pageToken: arg_pageToken, publishedAfter: arg_publishedAfter, publishedBefore: arg_publishedBefore, regionCode: arg_regionCode).then(unittest.expectAsync(((api.ActivityListResponse response) { + res.list(arg_part, channelId: arg_channelId, home: arg_home, maxResults: arg_maxResults, mine: arg_mine, pageToken: arg_pageToken, publishedAfter: arg_publishedAfter, publishedBefore: arg_publishedBefore, regionCode: arg_regionCode).then(unittest.expectAsync1(((api.ActivityListResponse response) { checkActivityListResponse(response); }))); }); @@ -7563,7 +7563,7 @@ var arg_id = "foo"; var arg_onBehalfOf = "foo"; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7602,7 +7602,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_id, onBehalfOf: arg_onBehalfOf, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync((_) {})); + res.delete(arg_id, onBehalfOf: arg_onBehalfOf, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1((_) {})); }); unittest.test("method--download", () { @@ -7616,7 +7616,7 @@ var arg_onBehalfOfContentOwner = "foo"; var arg_tfmt = "foo"; var arg_tlang = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7659,7 +7659,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.download(arg_id, onBehalfOf: arg_onBehalfOf, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, tfmt: arg_tfmt, tlang: arg_tlang).then(unittest.expectAsync((_) {})); + res.download(arg_id, onBehalfOf: arg_onBehalfOf, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, tfmt: arg_tfmt, tlang: arg_tlang).then(unittest.expectAsync1((_) {})); }); unittest.test("method--insert", () { @@ -7673,7 +7673,7 @@ var arg_onBehalfOf = "foo"; var arg_onBehalfOfContentOwner = "foo"; var arg_sync = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Caption.fromJson(json); checkCaption(obj); @@ -7716,7 +7716,7 @@ var resp = convert.JSON.encode(buildCaption()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_part, onBehalfOf: arg_onBehalfOf, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, sync: arg_sync).then(unittest.expectAsync(((api.Caption response) { + res.insert(arg_request, arg_part, onBehalfOf: arg_onBehalfOf, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, sync: arg_sync).then(unittest.expectAsync1(((api.Caption response) { checkCaption(response); }))); }); @@ -7730,7 +7730,7 @@ var arg_id = "foo"; var arg_onBehalfOf = "foo"; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7771,7 +7771,7 @@ var resp = convert.JSON.encode(buildCaptionListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_part, arg_videoId, id: arg_id, onBehalfOf: arg_onBehalfOf, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.CaptionListResponse response) { + res.list(arg_part, arg_videoId, id: arg_id, onBehalfOf: arg_onBehalfOf, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((api.CaptionListResponse response) { checkCaptionListResponse(response); }))); }); @@ -7787,7 +7787,7 @@ var arg_onBehalfOf = "foo"; var arg_onBehalfOfContentOwner = "foo"; var arg_sync = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Caption.fromJson(json); checkCaption(obj); @@ -7830,7 +7830,7 @@ var resp = convert.JSON.encode(buildCaption()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_part, onBehalfOf: arg_onBehalfOf, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, sync: arg_sync).then(unittest.expectAsync(((api.Caption response) { + res.update(arg_request, arg_part, onBehalfOf: arg_onBehalfOf, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, sync: arg_sync).then(unittest.expectAsync1(((api.Caption response) { checkCaption(response); }))); }); @@ -7847,7 +7847,7 @@ api.ChannelBannersResourceApi res = new api.YoutubeApi(mock).channelBanners; var arg_request = buildChannelBannerResource(); var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ChannelBannerResource.fromJson(json); checkChannelBannerResource(obj); @@ -7887,7 +7887,7 @@ var resp = convert.JSON.encode(buildChannelBannerResource()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.ChannelBannerResource response) { + res.insert(arg_request, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((api.ChannelBannerResource response) { checkChannelBannerResource(response); }))); }); @@ -7902,7 +7902,7 @@ api.ChannelSectionsResourceApi res = new api.YoutubeApi(mock).channelSections; var arg_id = "foo"; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7940,7 +7940,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync((_) {})); + res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1((_) {})); }); unittest.test("method--insert", () { @@ -7951,7 +7951,7 @@ var arg_part = "foo"; var arg_onBehalfOfContentOwner = "foo"; var arg_onBehalfOfContentOwnerChannel = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ChannelSection.fromJson(json); checkChannelSection(obj); @@ -7993,7 +7993,7 @@ var resp = convert.JSON.encode(buildChannelSection()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.expectAsync(((api.ChannelSection response) { + res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.expectAsync1(((api.ChannelSection response) { checkChannelSection(response); }))); }); @@ -8008,7 +8008,7 @@ var arg_id = "foo"; var arg_mine = true; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8050,7 +8050,7 @@ var resp = convert.JSON.encode(buildChannelSectionListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_part, channelId: arg_channelId, hl: arg_hl, id: arg_id, mine: arg_mine, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.ChannelSectionListResponse response) { + res.list(arg_part, channelId: arg_channelId, hl: arg_hl, id: arg_id, mine: arg_mine, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((api.ChannelSectionListResponse response) { checkChannelSectionListResponse(response); }))); }); @@ -8062,7 +8062,7 @@ var arg_request = buildChannelSection(); var arg_part = "foo"; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ChannelSection.fromJson(json); checkChannelSection(obj); @@ -8103,7 +8103,7 @@ var resp = convert.JSON.encode(buildChannelSection()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.ChannelSection response) { + res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((api.ChannelSection response) { checkChannelSection(response); }))); }); @@ -8127,7 +8127,7 @@ var arg_mySubscribers = true; var arg_onBehalfOfContentOwner = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8174,7 +8174,7 @@ var resp = convert.JSON.encode(buildChannelListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_part, categoryId: arg_categoryId, forUsername: arg_forUsername, hl: arg_hl, id: arg_id, managedByMe: arg_managedByMe, maxResults: arg_maxResults, mine: arg_mine, mySubscribers: arg_mySubscribers, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ChannelListResponse response) { + res.list(arg_part, categoryId: arg_categoryId, forUsername: arg_forUsername, hl: arg_hl, id: arg_id, managedByMe: arg_managedByMe, maxResults: arg_maxResults, mine: arg_mine, mySubscribers: arg_mySubscribers, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ChannelListResponse response) { checkChannelListResponse(response); }))); }); @@ -8186,7 +8186,7 @@ var arg_request = buildChannel(); var arg_part = "foo"; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Channel.fromJson(json); checkChannel(obj); @@ -8227,7 +8227,7 @@ var resp = convert.JSON.encode(buildChannel()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.Channel response) { + res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((api.Channel response) { checkChannel(response); }))); }); @@ -8242,7 +8242,7 @@ api.CommentThreadsResourceApi res = new api.YoutubeApi(mock).commentThreads; var arg_request = buildCommentThread(); var arg_part = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CommentThread.fromJson(json); checkCommentThread(obj); @@ -8282,7 +8282,7 @@ var resp = convert.JSON.encode(buildCommentThread()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_part).then(unittest.expectAsync(((api.CommentThread response) { + res.insert(arg_request, arg_part).then(unittest.expectAsync1(((api.CommentThread response) { checkCommentThread(response); }))); }); @@ -8302,7 +8302,7 @@ var arg_searchTerms = "foo"; var arg_textFormat = "foo"; var arg_videoId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8349,7 +8349,7 @@ var resp = convert.JSON.encode(buildCommentThreadListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_part, allThreadsRelatedToChannelId: arg_allThreadsRelatedToChannelId, channelId: arg_channelId, id: arg_id, maxResults: arg_maxResults, moderationStatus: arg_moderationStatus, order: arg_order, pageToken: arg_pageToken, searchTerms: arg_searchTerms, textFormat: arg_textFormat, videoId: arg_videoId).then(unittest.expectAsync(((api.CommentThreadListResponse response) { + res.list(arg_part, allThreadsRelatedToChannelId: arg_allThreadsRelatedToChannelId, channelId: arg_channelId, id: arg_id, maxResults: arg_maxResults, moderationStatus: arg_moderationStatus, order: arg_order, pageToken: arg_pageToken, searchTerms: arg_searchTerms, textFormat: arg_textFormat, videoId: arg_videoId).then(unittest.expectAsync1(((api.CommentThreadListResponse response) { checkCommentThreadListResponse(response); }))); }); @@ -8360,7 +8360,7 @@ api.CommentThreadsResourceApi res = new api.YoutubeApi(mock).commentThreads; var arg_request = buildCommentThread(); var arg_part = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CommentThread.fromJson(json); checkCommentThread(obj); @@ -8400,7 +8400,7 @@ var resp = convert.JSON.encode(buildCommentThread()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_part).then(unittest.expectAsync(((api.CommentThread response) { + res.update(arg_request, arg_part).then(unittest.expectAsync1(((api.CommentThread response) { checkCommentThread(response); }))); }); @@ -8414,7 +8414,7 @@ var mock = new HttpServerMock(); api.CommentsResourceApi res = new api.YoutubeApi(mock).comments; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8451,7 +8451,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_id).then(unittest.expectAsync((_) {})); + res.delete(arg_id).then(unittest.expectAsync1((_) {})); }); unittest.test("method--insert", () { @@ -8460,7 +8460,7 @@ api.CommentsResourceApi res = new api.YoutubeApi(mock).comments; var arg_request = buildComment(); var arg_part = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Comment.fromJson(json); checkComment(obj); @@ -8500,7 +8500,7 @@ var resp = convert.JSON.encode(buildComment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_part).then(unittest.expectAsync(((api.Comment response) { + res.insert(arg_request, arg_part).then(unittest.expectAsync1(((api.Comment response) { checkComment(response); }))); }); @@ -8515,7 +8515,7 @@ var arg_pageToken = "foo"; var arg_parentId = "foo"; var arg_textFormat = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8557,7 +8557,7 @@ var resp = convert.JSON.encode(buildCommentListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_part, id: arg_id, maxResults: arg_maxResults, pageToken: arg_pageToken, parentId: arg_parentId, textFormat: arg_textFormat).then(unittest.expectAsync(((api.CommentListResponse response) { + res.list(arg_part, id: arg_id, maxResults: arg_maxResults, pageToken: arg_pageToken, parentId: arg_parentId, textFormat: arg_textFormat).then(unittest.expectAsync1(((api.CommentListResponse response) { checkCommentListResponse(response); }))); }); @@ -8567,7 +8567,7 @@ var mock = new HttpServerMock(); api.CommentsResourceApi res = new api.YoutubeApi(mock).comments; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8604,7 +8604,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.markAsSpam(arg_id).then(unittest.expectAsync((_) {})); + res.markAsSpam(arg_id).then(unittest.expectAsync1((_) {})); }); unittest.test("method--setModerationStatus", () { @@ -8614,7 +8614,7 @@ var arg_id = "foo"; var arg_moderationStatus = "foo"; var arg_banAuthor = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8653,7 +8653,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setModerationStatus(arg_id, arg_moderationStatus, banAuthor: arg_banAuthor).then(unittest.expectAsync((_) {})); + res.setModerationStatus(arg_id, arg_moderationStatus, banAuthor: arg_banAuthor).then(unittest.expectAsync1((_) {})); }); unittest.test("method--update", () { @@ -8662,7 +8662,7 @@ api.CommentsResourceApi res = new api.YoutubeApi(mock).comments; var arg_request = buildComment(); var arg_part = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Comment.fromJson(json); checkComment(obj); @@ -8702,7 +8702,7 @@ var resp = convert.JSON.encode(buildComment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_part).then(unittest.expectAsync(((api.Comment response) { + res.update(arg_request, arg_part).then(unittest.expectAsync1(((api.Comment response) { checkComment(response); }))); }); @@ -8719,7 +8719,7 @@ var arg_hl = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8759,7 +8759,7 @@ var resp = convert.JSON.encode(buildFanFundingEventListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_part, hl: arg_hl, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.FanFundingEventListResponse response) { + res.list(arg_part, hl: arg_hl, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.FanFundingEventListResponse response) { checkFanFundingEventListResponse(response); }))); }); @@ -8776,7 +8776,7 @@ var arg_hl = "foo"; var arg_id = "foo"; var arg_regionCode = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8816,7 +8816,7 @@ var resp = convert.JSON.encode(buildGuideCategoryListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_part, hl: arg_hl, id: arg_id, regionCode: arg_regionCode).then(unittest.expectAsync(((api.GuideCategoryListResponse response) { + res.list(arg_part, hl: arg_hl, id: arg_id, regionCode: arg_regionCode).then(unittest.expectAsync1(((api.GuideCategoryListResponse response) { checkGuideCategoryListResponse(response); }))); }); @@ -8831,7 +8831,7 @@ api.I18nLanguagesResourceApi res = new api.YoutubeApi(mock).i18nLanguages; var arg_part = "foo"; var arg_hl = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8869,7 +8869,7 @@ var resp = convert.JSON.encode(buildI18nLanguageListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_part, hl: arg_hl).then(unittest.expectAsync(((api.I18nLanguageListResponse response) { + res.list(arg_part, hl: arg_hl).then(unittest.expectAsync1(((api.I18nLanguageListResponse response) { checkI18nLanguageListResponse(response); }))); }); @@ -8884,7 +8884,7 @@ api.I18nRegionsResourceApi res = new api.YoutubeApi(mock).i18nRegions; var arg_part = "foo"; var arg_hl = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8922,7 +8922,7 @@ var resp = convert.JSON.encode(buildI18nRegionListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_part, hl: arg_hl).then(unittest.expectAsync(((api.I18nRegionListResponse response) { + res.list(arg_part, hl: arg_hl).then(unittest.expectAsync1(((api.I18nRegionListResponse response) { checkI18nRegionListResponse(response); }))); }); @@ -8940,7 +8940,7 @@ var arg_onBehalfOfContentOwner = "foo"; var arg_onBehalfOfContentOwnerChannel = "foo"; var arg_streamId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -8981,7 +8981,7 @@ var resp = convert.JSON.encode(buildLiveBroadcast()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.bind(arg_id, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, streamId: arg_streamId).then(unittest.expectAsync(((api.LiveBroadcast response) { + res.bind(arg_id, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, streamId: arg_streamId).then(unittest.expectAsync1(((api.LiveBroadcast response) { checkLiveBroadcast(response); }))); }); @@ -8997,7 +8997,7 @@ var arg_onBehalfOfContentOwner = "foo"; var arg_onBehalfOfContentOwnerChannel = "foo"; var arg_walltime = core.DateTime.parse("2002-02-27T14:01:02"); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -9040,7 +9040,7 @@ var resp = convert.JSON.encode(buildLiveBroadcast()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.control(arg_id, arg_part, displaySlate: arg_displaySlate, offsetTimeMs: arg_offsetTimeMs, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, walltime: arg_walltime).then(unittest.expectAsync(((api.LiveBroadcast response) { + res.control(arg_id, arg_part, displaySlate: arg_displaySlate, offsetTimeMs: arg_offsetTimeMs, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, walltime: arg_walltime).then(unittest.expectAsync1(((api.LiveBroadcast response) { checkLiveBroadcast(response); }))); }); @@ -9052,7 +9052,7 @@ var arg_id = "foo"; var arg_onBehalfOfContentOwner = "foo"; var arg_onBehalfOfContentOwnerChannel = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -9091,7 +9091,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.expectAsync((_) {})); + res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.expectAsync1((_) {})); }); unittest.test("method--insert", () { @@ -9102,7 +9102,7 @@ var arg_part = "foo"; var arg_onBehalfOfContentOwner = "foo"; var arg_onBehalfOfContentOwnerChannel = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LiveBroadcast.fromJson(json); checkLiveBroadcast(obj); @@ -9144,7 +9144,7 @@ var resp = convert.JSON.encode(buildLiveBroadcast()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.expectAsync(((api.LiveBroadcast response) { + res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.expectAsync1(((api.LiveBroadcast response) { checkLiveBroadcast(response); }))); }); @@ -9162,7 +9162,7 @@ var arg_onBehalfOfContentOwner = "foo"; var arg_onBehalfOfContentOwnerChannel = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -9207,7 +9207,7 @@ var resp = convert.JSON.encode(buildLiveBroadcastListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_part, broadcastStatus: arg_broadcastStatus, broadcastType: arg_broadcastType, id: arg_id, maxResults: arg_maxResults, mine: arg_mine, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, pageToken: arg_pageToken).then(unittest.expectAsync(((api.LiveBroadcastListResponse response) { + res.list(arg_part, broadcastStatus: arg_broadcastStatus, broadcastType: arg_broadcastType, id: arg_id, maxResults: arg_maxResults, mine: arg_mine, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.LiveBroadcastListResponse response) { checkLiveBroadcastListResponse(response); }))); }); @@ -9221,7 +9221,7 @@ var arg_part = "foo"; var arg_onBehalfOfContentOwner = "foo"; var arg_onBehalfOfContentOwnerChannel = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -9262,7 +9262,7 @@ var resp = convert.JSON.encode(buildLiveBroadcast()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.transition(arg_broadcastStatus, arg_id, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.expectAsync(((api.LiveBroadcast response) { + res.transition(arg_broadcastStatus, arg_id, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.expectAsync1(((api.LiveBroadcast response) { checkLiveBroadcast(response); }))); }); @@ -9275,7 +9275,7 @@ var arg_part = "foo"; var arg_onBehalfOfContentOwner = "foo"; var arg_onBehalfOfContentOwnerChannel = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LiveBroadcast.fromJson(json); checkLiveBroadcast(obj); @@ -9317,7 +9317,7 @@ var resp = convert.JSON.encode(buildLiveBroadcast()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.expectAsync(((api.LiveBroadcast response) { + res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.expectAsync1(((api.LiveBroadcast response) { checkLiveBroadcast(response); }))); }); @@ -9331,7 +9331,7 @@ var mock = new HttpServerMock(); api.LiveChatBansResourceApi res = new api.YoutubeApi(mock).liveChatBans; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -9368,7 +9368,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_id).then(unittest.expectAsync((_) {})); + res.delete(arg_id).then(unittest.expectAsync1((_) {})); }); unittest.test("method--insert", () { @@ -9377,7 +9377,7 @@ api.LiveChatBansResourceApi res = new api.YoutubeApi(mock).liveChatBans; var arg_request = buildLiveChatBan(); var arg_part = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LiveChatBan.fromJson(json); checkLiveChatBan(obj); @@ -9417,7 +9417,7 @@ var resp = convert.JSON.encode(buildLiveChatBan()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_part).then(unittest.expectAsync(((api.LiveChatBan response) { + res.insert(arg_request, arg_part).then(unittest.expectAsync1(((api.LiveChatBan response) { checkLiveChatBan(response); }))); }); @@ -9431,7 +9431,7 @@ var mock = new HttpServerMock(); api.LiveChatMessagesResourceApi res = new api.YoutubeApi(mock).liveChatMessages; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -9468,7 +9468,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_id).then(unittest.expectAsync((_) {})); + res.delete(arg_id).then(unittest.expectAsync1((_) {})); }); unittest.test("method--insert", () { @@ -9477,7 +9477,7 @@ api.LiveChatMessagesResourceApi res = new api.YoutubeApi(mock).liveChatMessages; var arg_request = buildLiveChatMessage(); var arg_part = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LiveChatMessage.fromJson(json); checkLiveChatMessage(obj); @@ -9517,7 +9517,7 @@ var resp = convert.JSON.encode(buildLiveChatMessage()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_part).then(unittest.expectAsync(((api.LiveChatMessage response) { + res.insert(arg_request, arg_part).then(unittest.expectAsync1(((api.LiveChatMessage response) { checkLiveChatMessage(response); }))); }); @@ -9532,7 +9532,7 @@ var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_profileImageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -9574,7 +9574,7 @@ var resp = convert.JSON.encode(buildLiveChatMessageListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_liveChatId, arg_part, hl: arg_hl, maxResults: arg_maxResults, pageToken: arg_pageToken, profileImageSize: arg_profileImageSize).then(unittest.expectAsync(((api.LiveChatMessageListResponse response) { + res.list(arg_liveChatId, arg_part, hl: arg_hl, maxResults: arg_maxResults, pageToken: arg_pageToken, profileImageSize: arg_profileImageSize).then(unittest.expectAsync1(((api.LiveChatMessageListResponse response) { checkLiveChatMessageListResponse(response); }))); }); @@ -9588,7 +9588,7 @@ var mock = new HttpServerMock(); api.LiveChatModeratorsResourceApi res = new api.YoutubeApi(mock).liveChatModerators; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -9625,7 +9625,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_id).then(unittest.expectAsync((_) {})); + res.delete(arg_id).then(unittest.expectAsync1((_) {})); }); unittest.test("method--insert", () { @@ -9634,7 +9634,7 @@ api.LiveChatModeratorsResourceApi res = new api.YoutubeApi(mock).liveChatModerators; var arg_request = buildLiveChatModerator(); var arg_part = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LiveChatModerator.fromJson(json); checkLiveChatModerator(obj); @@ -9674,7 +9674,7 @@ var resp = convert.JSON.encode(buildLiveChatModerator()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_part).then(unittest.expectAsync(((api.LiveChatModerator response) { + res.insert(arg_request, arg_part).then(unittest.expectAsync1(((api.LiveChatModerator response) { checkLiveChatModerator(response); }))); }); @@ -9687,7 +9687,7 @@ var arg_part = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -9727,7 +9727,7 @@ var resp = convert.JSON.encode(buildLiveChatModeratorListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_liveChatId, arg_part, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.LiveChatModeratorListResponse response) { + res.list(arg_liveChatId, arg_part, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.LiveChatModeratorListResponse response) { checkLiveChatModeratorListResponse(response); }))); }); @@ -9743,7 +9743,7 @@ var arg_id = "foo"; var arg_onBehalfOfContentOwner = "foo"; var arg_onBehalfOfContentOwnerChannel = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -9782,7 +9782,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.expectAsync((_) {})); + res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.expectAsync1((_) {})); }); unittest.test("method--insert", () { @@ -9793,7 +9793,7 @@ var arg_part = "foo"; var arg_onBehalfOfContentOwner = "foo"; var arg_onBehalfOfContentOwnerChannel = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LiveStream.fromJson(json); checkLiveStream(obj); @@ -9835,7 +9835,7 @@ var resp = convert.JSON.encode(buildLiveStream()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.expectAsync(((api.LiveStream response) { + res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.expectAsync1(((api.LiveStream response) { checkLiveStream(response); }))); }); @@ -9851,7 +9851,7 @@ var arg_onBehalfOfContentOwner = "foo"; var arg_onBehalfOfContentOwnerChannel = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -9894,7 +9894,7 @@ var resp = convert.JSON.encode(buildLiveStreamListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_part, id: arg_id, maxResults: arg_maxResults, mine: arg_mine, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, pageToken: arg_pageToken).then(unittest.expectAsync(((api.LiveStreamListResponse response) { + res.list(arg_part, id: arg_id, maxResults: arg_maxResults, mine: arg_mine, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.LiveStreamListResponse response) { checkLiveStreamListResponse(response); }))); }); @@ -9907,7 +9907,7 @@ var arg_part = "foo"; var arg_onBehalfOfContentOwner = "foo"; var arg_onBehalfOfContentOwnerChannel = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LiveStream.fromJson(json); checkLiveStream(obj); @@ -9949,7 +9949,7 @@ var resp = convert.JSON.encode(buildLiveStream()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.expectAsync(((api.LiveStream response) { + res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.expectAsync1(((api.LiveStream response) { checkLiveStream(response); }))); }); @@ -9964,7 +9964,7 @@ api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems; var arg_id = "foo"; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -10002,7 +10002,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync((_) {})); + res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1((_) {})); }); unittest.test("method--insert", () { @@ -10012,7 +10012,7 @@ var arg_request = buildPlaylistItem(); var arg_part = "foo"; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.PlaylistItem.fromJson(json); checkPlaylistItem(obj); @@ -10053,7 +10053,7 @@ var resp = convert.JSON.encode(buildPlaylistItem()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.PlaylistItem response) { + res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((api.PlaylistItem response) { checkPlaylistItem(response); }))); }); @@ -10069,7 +10069,7 @@ var arg_pageToken = "foo"; var arg_playlistId = "foo"; var arg_videoId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -10112,7 +10112,7 @@ var resp = convert.JSON.encode(buildPlaylistItemListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_part, id: arg_id, maxResults: arg_maxResults, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, pageToken: arg_pageToken, playlistId: arg_playlistId, videoId: arg_videoId).then(unittest.expectAsync(((api.PlaylistItemListResponse response) { + res.list(arg_part, id: arg_id, maxResults: arg_maxResults, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, pageToken: arg_pageToken, playlistId: arg_playlistId, videoId: arg_videoId).then(unittest.expectAsync1(((api.PlaylistItemListResponse response) { checkPlaylistItemListResponse(response); }))); }); @@ -10124,7 +10124,7 @@ var arg_request = buildPlaylistItem(); var arg_part = "foo"; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.PlaylistItem.fromJson(json); checkPlaylistItem(obj); @@ -10165,7 +10165,7 @@ var resp = convert.JSON.encode(buildPlaylistItem()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.PlaylistItem response) { + res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((api.PlaylistItem response) { checkPlaylistItem(response); }))); }); @@ -10180,7 +10180,7 @@ api.PlaylistsResourceApi res = new api.YoutubeApi(mock).playlists; var arg_id = "foo"; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -10218,7 +10218,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync((_) {})); + res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1((_) {})); }); unittest.test("method--insert", () { @@ -10229,7 +10229,7 @@ var arg_part = "foo"; var arg_onBehalfOfContentOwner = "foo"; var arg_onBehalfOfContentOwnerChannel = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Playlist.fromJson(json); checkPlaylist(obj); @@ -10271,7 +10271,7 @@ var resp = convert.JSON.encode(buildPlaylist()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.expectAsync(((api.Playlist response) { + res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.expectAsync1(((api.Playlist response) { checkPlaylist(response); }))); }); @@ -10289,7 +10289,7 @@ var arg_onBehalfOfContentOwner = "foo"; var arg_onBehalfOfContentOwnerChannel = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -10334,7 +10334,7 @@ var resp = convert.JSON.encode(buildPlaylistListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_part, channelId: arg_channelId, hl: arg_hl, id: arg_id, maxResults: arg_maxResults, mine: arg_mine, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, pageToken: arg_pageToken).then(unittest.expectAsync(((api.PlaylistListResponse response) { + res.list(arg_part, channelId: arg_channelId, hl: arg_hl, id: arg_id, maxResults: arg_maxResults, mine: arg_mine, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.PlaylistListResponse response) { checkPlaylistListResponse(response); }))); }); @@ -10346,7 +10346,7 @@ var arg_request = buildPlaylist(); var arg_part = "foo"; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Playlist.fromJson(json); checkPlaylist(obj); @@ -10387,7 +10387,7 @@ var resp = convert.JSON.encode(buildPlaylist()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.Playlist response) { + res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((api.Playlist response) { checkPlaylist(response); }))); }); @@ -10431,7 +10431,7 @@ var arg_videoLicense = "foo"; var arg_videoSyndicated = "foo"; var arg_videoType = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -10498,7 +10498,7 @@ var resp = convert.JSON.encode(buildSearchListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_part, channelId: arg_channelId, channelType: arg_channelType, eventType: arg_eventType, forContentOwner: arg_forContentOwner, forDeveloper: arg_forDeveloper, forMine: arg_forMine, location: arg_location, locationRadius: arg_locationRadius, maxResults: arg_maxResults, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, order: arg_order, pageToken: arg_pageToken, publishedAfter: arg_publishedAfter, publishedBefore: arg_publishedBefore, q: arg_q, regionCode: arg_regionCode, relatedToVideoId: arg_relatedToVideoId, relevanceLanguage: arg_relevanceLanguage, safeSearch: arg_safeSearch, topicId: arg_topicId, type: arg_type, videoCaption: arg_videoCaption, videoCategoryId: arg_videoCategoryId, videoDefinition: arg_videoDefinition, videoDimension: arg_videoDimension, videoDuration: arg_videoDuration, videoEmbeddable: arg_videoEmbeddable, videoLicense: arg_videoLicense, videoSyndicated: arg_videoSyndicated, videoType: arg_videoType).then(unittest.expectAsync(((api.SearchListResponse response) { + res.list(arg_part, channelId: arg_channelId, channelType: arg_channelType, eventType: arg_eventType, forContentOwner: arg_forContentOwner, forDeveloper: arg_forDeveloper, forMine: arg_forMine, location: arg_location, locationRadius: arg_locationRadius, maxResults: arg_maxResults, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, order: arg_order, pageToken: arg_pageToken, publishedAfter: arg_publishedAfter, publishedBefore: arg_publishedBefore, q: arg_q, regionCode: arg_regionCode, relatedToVideoId: arg_relatedToVideoId, relevanceLanguage: arg_relevanceLanguage, safeSearch: arg_safeSearch, topicId: arg_topicId, type: arg_type, videoCaption: arg_videoCaption, videoCategoryId: arg_videoCategoryId, videoDefinition: arg_videoDefinition, videoDimension: arg_videoDimension, videoDuration: arg_videoDuration, videoEmbeddable: arg_videoEmbeddable, videoLicense: arg_videoLicense, videoSyndicated: arg_videoSyndicated, videoType: arg_videoType).then(unittest.expectAsync1(((api.SearchListResponse response) { checkSearchListResponse(response); }))); }); @@ -10515,7 +10515,7 @@ var arg_filter = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -10555,7 +10555,7 @@ var resp = convert.JSON.encode(buildSponsorListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_part, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SponsorListResponse response) { + res.list(arg_part, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.SponsorListResponse response) { checkSponsorListResponse(response); }))); }); @@ -10569,7 +10569,7 @@ var mock = new HttpServerMock(); api.SubscriptionsResourceApi res = new api.YoutubeApi(mock).subscriptions; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -10606,7 +10606,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_id).then(unittest.expectAsync((_) {})); + res.delete(arg_id).then(unittest.expectAsync1((_) {})); }); unittest.test("method--insert", () { @@ -10615,7 +10615,7 @@ api.SubscriptionsResourceApi res = new api.YoutubeApi(mock).subscriptions; var arg_request = buildSubscription(); var arg_part = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Subscription.fromJson(json); checkSubscription(obj); @@ -10655,7 +10655,7 @@ var resp = convert.JSON.encode(buildSubscription()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_part).then(unittest.expectAsync(((api.Subscription response) { + res.insert(arg_request, arg_part).then(unittest.expectAsync1(((api.Subscription response) { checkSubscription(response); }))); }); @@ -10676,7 +10676,7 @@ var arg_onBehalfOfContentOwnerChannel = "foo"; var arg_order = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -10724,7 +10724,7 @@ var resp = convert.JSON.encode(buildSubscriptionListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_part, channelId: arg_channelId, forChannelId: arg_forChannelId, id: arg_id, maxResults: arg_maxResults, mine: arg_mine, myRecentSubscribers: arg_myRecentSubscribers, mySubscribers: arg_mySubscribers, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, order: arg_order, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SubscriptionListResponse response) { + res.list(arg_part, channelId: arg_channelId, forChannelId: arg_forChannelId, id: arg_id, maxResults: arg_maxResults, mine: arg_mine, myRecentSubscribers: arg_myRecentSubscribers, mySubscribers: arg_mySubscribers, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, order: arg_order, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.SubscriptionListResponse response) { checkSubscriptionListResponse(response); }))); }); @@ -10741,7 +10741,7 @@ var arg_hl = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -10781,7 +10781,7 @@ var resp = convert.JSON.encode(buildSuperChatEventListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_part, hl: arg_hl, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SuperChatEventListResponse response) { + res.list(arg_part, hl: arg_hl, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.SuperChatEventListResponse response) { checkSuperChatEventListResponse(response); }))); }); @@ -10798,7 +10798,7 @@ api.ThumbnailsResourceApi res = new api.YoutubeApi(mock).thumbnails; var arg_videoId = "foo"; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -10836,7 +10836,7 @@ var resp = convert.JSON.encode(buildThumbnailSetResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.set(arg_videoId, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.ThumbnailSetResponse response) { + res.set(arg_videoId, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((api.ThumbnailSetResponse response) { checkThumbnailSetResponse(response); }))); }); @@ -10851,7 +10851,7 @@ api.VideoAbuseReportReasonsResourceApi res = new api.YoutubeApi(mock).videoAbuseReportReasons; var arg_part = "foo"; var arg_hl = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -10889,7 +10889,7 @@ var resp = convert.JSON.encode(buildVideoAbuseReportReasonListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_part, hl: arg_hl).then(unittest.expectAsync(((api.VideoAbuseReportReasonListResponse response) { + res.list(arg_part, hl: arg_hl).then(unittest.expectAsync1(((api.VideoAbuseReportReasonListResponse response) { checkVideoAbuseReportReasonListResponse(response); }))); }); @@ -10906,7 +10906,7 @@ var arg_hl = "foo"; var arg_id = "foo"; var arg_regionCode = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -10946,7 +10946,7 @@ var resp = convert.JSON.encode(buildVideoCategoryListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_part, hl: arg_hl, id: arg_id, regionCode: arg_regionCode).then(unittest.expectAsync(((api.VideoCategoryListResponse response) { + res.list(arg_part, hl: arg_hl, id: arg_id, regionCode: arg_regionCode).then(unittest.expectAsync1(((api.VideoCategoryListResponse response) { checkVideoCategoryListResponse(response); }))); }); @@ -10961,7 +10961,7 @@ api.VideosResourceApi res = new api.YoutubeApi(mock).videos; var arg_id = "foo"; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -10999,7 +10999,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync((_) {})); + res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1((_) {})); }); unittest.test("method--getRating", () { @@ -11008,7 +11008,7 @@ api.VideosResourceApi res = new api.YoutubeApi(mock).videos; var arg_id = "foo"; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -11046,7 +11046,7 @@ var resp = convert.JSON.encode(buildVideoGetRatingResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getRating(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.VideoGetRatingResponse response) { + res.getRating(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((api.VideoGetRatingResponse response) { checkVideoGetRatingResponse(response); }))); }); @@ -11064,7 +11064,7 @@ var arg_onBehalfOfContentOwner = "foo"; var arg_onBehalfOfContentOwnerChannel = "foo"; var arg_stabilize = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Video.fromJson(json); checkVideo(obj); @@ -11109,7 +11109,7 @@ var resp = convert.JSON.encode(buildVideo()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_part, autoLevels: arg_autoLevels, notifySubscribers: arg_notifySubscribers, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, stabilize: arg_stabilize).then(unittest.expectAsync(((api.Video response) { + res.insert(arg_request, arg_part, autoLevels: arg_autoLevels, notifySubscribers: arg_notifySubscribers, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, stabilize: arg_stabilize).then(unittest.expectAsync1(((api.Video response) { checkVideo(response); }))); }); @@ -11131,7 +11131,7 @@ var arg_pageToken = "foo"; var arg_regionCode = "foo"; var arg_videoCategoryId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -11180,7 +11180,7 @@ var resp = convert.JSON.encode(buildVideoListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_part, chart: arg_chart, hl: arg_hl, id: arg_id, locale: arg_locale, maxHeight: arg_maxHeight, maxResults: arg_maxResults, maxWidth: arg_maxWidth, myRating: arg_myRating, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, pageToken: arg_pageToken, regionCode: arg_regionCode, videoCategoryId: arg_videoCategoryId).then(unittest.expectAsync(((api.VideoListResponse response) { + res.list(arg_part, chart: arg_chart, hl: arg_hl, id: arg_id, locale: arg_locale, maxHeight: arg_maxHeight, maxResults: arg_maxResults, maxWidth: arg_maxWidth, myRating: arg_myRating, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, pageToken: arg_pageToken, regionCode: arg_regionCode, videoCategoryId: arg_videoCategoryId).then(unittest.expectAsync1(((api.VideoListResponse response) { checkVideoListResponse(response); }))); }); @@ -11191,7 +11191,7 @@ api.VideosResourceApi res = new api.YoutubeApi(mock).videos; var arg_id = "foo"; var arg_rating = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -11229,7 +11229,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.rate(arg_id, arg_rating).then(unittest.expectAsync((_) {})); + res.rate(arg_id, arg_rating).then(unittest.expectAsync1((_) {})); }); unittest.test("method--reportAbuse", () { @@ -11238,7 +11238,7 @@ api.VideosResourceApi res = new api.YoutubeApi(mock).videos; var arg_request = buildVideoAbuseReport(); var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.VideoAbuseReport.fromJson(json); checkVideoAbuseReport(obj); @@ -11278,7 +11278,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.reportAbuse(arg_request, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync((_) {})); + res.reportAbuse(arg_request, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1((_) {})); }); unittest.test("method--update", () { @@ -11288,7 +11288,7 @@ var arg_request = buildVideo(); var arg_part = "foo"; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Video.fromJson(json); checkVideo(obj); @@ -11329,7 +11329,7 @@ var resp = convert.JSON.encode(buildVideo()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.Video response) { + res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((api.Video response) { checkVideo(response); }))); }); @@ -11347,7 +11347,7 @@ var arg_request = buildInvideoBranding(); var arg_channelId = "foo"; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InvideoBranding.fromJson(json); checkInvideoBranding(obj); @@ -11388,7 +11388,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.set(arg_request, arg_channelId, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync((_) {})); + res.set(arg_request, arg_channelId, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1((_) {})); }); unittest.test("method--unset", () { @@ -11397,7 +11397,7 @@ api.WatermarksResourceApi res = new api.YoutubeApi(mock).watermarks; var arg_channelId = "foo"; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -11435,7 +11435,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.unset(arg_channelId, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync((_) {})); + res.unset(arg_channelId, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1((_) {})); }); });
diff --git a/generated/googleapis/test/youtubeanalytics/v1_test.dart b/generated/googleapis/test/youtubeanalytics/v1_test.dart index 7bd320a..07debf8 100644 --- a/generated/googleapis/test/youtubeanalytics/v1_test.dart +++ b/generated/googleapis/test/youtubeanalytics/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/youtubeanalytics/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -168,14 +168,14 @@ buildCounterGroupItem--; } -buildUnnamed214() { +buildUnnamed216() { var o = new core.List<api.GroupItem>(); o.add(buildGroupItem()); o.add(buildGroupItem()); return o; } -checkUnnamed214(core.List<api.GroupItem> o) { +checkUnnamed216(core.List<api.GroupItem> o) { unittest.expect(o, unittest.hasLength(2)); checkGroupItem(o[0]); checkGroupItem(o[1]); @@ -187,7 +187,7 @@ buildCounterGroupItemListResponse++; if (buildCounterGroupItemListResponse < 3) { o.etag = "foo"; - o.items = buildUnnamed214(); + o.items = buildUnnamed216(); o.kind = "foo"; } buildCounterGroupItemListResponse--; @@ -198,20 +198,20 @@ buildCounterGroupItemListResponse++; if (buildCounterGroupItemListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed214(o.items); + checkUnnamed216(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterGroupItemListResponse--; } -buildUnnamed215() { +buildUnnamed217() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed215(core.List<api.Group> o) { +checkUnnamed217(core.List<api.Group> o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); @@ -223,7 +223,7 @@ buildCounterGroupListResponse++; if (buildCounterGroupListResponse < 3) { o.etag = "foo"; - o.items = buildUnnamed215(); + o.items = buildUnnamed217(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -235,7 +235,7 @@ buildCounterGroupListResponse++; if (buildCounterGroupListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed215(o.items); + checkUnnamed217(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -265,43 +265,43 @@ buildCounterResultTableColumnHeaders--; } -buildUnnamed216() { +buildUnnamed218() { var o = new core.List<api.ResultTableColumnHeaders>(); o.add(buildResultTableColumnHeaders()); o.add(buildResultTableColumnHeaders()); return o; } -checkUnnamed216(core.List<api.ResultTableColumnHeaders> o) { +checkUnnamed218(core.List<api.ResultTableColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkResultTableColumnHeaders(o[0]); checkResultTableColumnHeaders(o[1]); } -buildUnnamed217() { +buildUnnamed219() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed217(core.List<core.Object> o) { +checkUnnamed219(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed218() { +buildUnnamed220() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed217()); - o.add(buildUnnamed217()); + o.add(buildUnnamed219()); + o.add(buildUnnamed219()); return o; } -checkUnnamed218(core.List<core.List<core.Object>> o) { +checkUnnamed220(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed217(o[0]); - checkUnnamed217(o[1]); + checkUnnamed219(o[0]); + checkUnnamed219(o[1]); } core.int buildCounterResultTable = 0; @@ -309,9 +309,9 @@ var o = new api.ResultTable(); buildCounterResultTable++; if (buildCounterResultTable < 3) { - o.columnHeaders = buildUnnamed216(); + o.columnHeaders = buildUnnamed218(); o.kind = "foo"; - o.rows = buildUnnamed218(); + o.rows = buildUnnamed220(); } buildCounterResultTable--; return o; @@ -320,9 +320,9 @@ checkResultTable(api.ResultTable o) { buildCounterResultTable++; if (buildCounterResultTable < 3) { - checkUnnamed216(o.columnHeaders); + checkUnnamed218(o.columnHeaders); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed218(o.rows); + checkUnnamed220(o.rows); } buildCounterResultTable--; } @@ -417,7 +417,7 @@ api.GroupItemsResourceApi res = new api.YoutubeAnalyticsApi(mock).groupItems; var arg_id = "foo"; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -455,7 +455,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync((_) {})); + res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1((_) {})); }); unittest.test("method--insert", () { @@ -464,7 +464,7 @@ api.GroupItemsResourceApi res = new api.YoutubeAnalyticsApi(mock).groupItems; var arg_request = buildGroupItem(); var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GroupItem.fromJson(json); checkGroupItem(obj); @@ -504,7 +504,7 @@ var resp = convert.JSON.encode(buildGroupItem()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.GroupItem response) { + res.insert(arg_request, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((api.GroupItem response) { checkGroupItem(response); }))); }); @@ -515,7 +515,7 @@ api.GroupItemsResourceApi res = new api.YoutubeAnalyticsApi(mock).groupItems; var arg_groupId = "foo"; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -553,7 +553,7 @@ var resp = convert.JSON.encode(buildGroupItemListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_groupId, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.GroupItemListResponse response) { + res.list(arg_groupId, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((api.GroupItemListResponse response) { checkGroupItemListResponse(response); }))); }); @@ -568,7 +568,7 @@ api.GroupsResourceApi res = new api.YoutubeAnalyticsApi(mock).groups; var arg_id = "foo"; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -606,7 +606,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync((_) {})); + res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1((_) {})); }); unittest.test("method--insert", () { @@ -615,7 +615,7 @@ api.GroupsResourceApi res = new api.YoutubeAnalyticsApi(mock).groups; var arg_request = buildGroup(); var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Group.fromJson(json); checkGroup(obj); @@ -655,7 +655,7 @@ var resp = convert.JSON.encode(buildGroup()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.Group response) { + res.insert(arg_request, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((api.Group response) { checkGroup(response); }))); }); @@ -668,7 +668,7 @@ var arg_mine = true; var arg_onBehalfOfContentOwner = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -708,7 +708,7 @@ var resp = convert.JSON.encode(buildGroupListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(id: arg_id, mine: arg_mine, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, pageToken: arg_pageToken).then(unittest.expectAsync(((api.GroupListResponse response) { + res.list(id: arg_id, mine: arg_mine, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.GroupListResponse response) { checkGroupListResponse(response); }))); }); @@ -719,7 +719,7 @@ api.GroupsResourceApi res = new api.YoutubeAnalyticsApi(mock).groups; var arg_request = buildGroup(); var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Group.fromJson(json); checkGroup(obj); @@ -759,7 +759,7 @@ var resp = convert.JSON.encode(buildGroup()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.Group response) { + res.update(arg_request, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((api.Group response) { checkGroup(response); }))); }); @@ -783,7 +783,7 @@ var arg_max_results = 42; var arg_sort = "foo"; var arg_start_index = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -830,7 +830,7 @@ var resp = convert.JSON.encode(buildResultTable()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.query(arg_ids, arg_start_date, arg_end_date, arg_metrics, currency: arg_currency, dimensions: arg_dimensions, filters: arg_filters, include_historical_channel_data: arg_include_historical_channel_data, max_results: arg_max_results, sort: arg_sort, start_index: arg_start_index).then(unittest.expectAsync(((api.ResultTable response) { + res.query(arg_ids, arg_start_date, arg_end_date, arg_metrics, currency: arg_currency, dimensions: arg_dimensions, filters: arg_filters, include_historical_channel_data: arg_include_historical_channel_data, max_results: arg_max_results, sort: arg_sort, start_index: arg_start_index).then(unittest.expectAsync1(((api.ResultTable response) { checkResultTable(response); }))); });
diff --git a/generated/googleapis/test/youtubereporting/v1_test.dart b/generated/googleapis/test/youtubereporting/v1_test.dart index c2f1a5d..f668a6f 100644 --- a/generated/googleapis/test/youtubereporting/v1_test.dart +++ b/generated/googleapis/test/youtubereporting/v1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis/youtubereporting/v1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -97,14 +97,14 @@ buildCounterJob--; } -buildUnnamed1003() { +buildUnnamed1010() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed1003(core.List<api.Job> o) { +checkUnnamed1010(core.List<api.Job> o) { unittest.expect(o, unittest.hasLength(2)); checkJob(o[0]); checkJob(o[1]); @@ -115,7 +115,7 @@ var o = new api.ListJobsResponse(); buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - o.jobs = buildUnnamed1003(); + o.jobs = buildUnnamed1010(); o.nextPageToken = "foo"; } buildCounterListJobsResponse--; @@ -125,20 +125,20 @@ checkListJobsResponse(api.ListJobsResponse o) { buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - checkUnnamed1003(o.jobs); + checkUnnamed1010(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListJobsResponse--; } -buildUnnamed1004() { +buildUnnamed1011() { var o = new core.List<api.ReportType>(); o.add(buildReportType()); o.add(buildReportType()); return o; } -checkUnnamed1004(core.List<api.ReportType> o) { +checkUnnamed1011(core.List<api.ReportType> o) { unittest.expect(o, unittest.hasLength(2)); checkReportType(o[0]); checkReportType(o[1]); @@ -150,7 +150,7 @@ buildCounterListReportTypesResponse++; if (buildCounterListReportTypesResponse < 3) { o.nextPageToken = "foo"; - o.reportTypes = buildUnnamed1004(); + o.reportTypes = buildUnnamed1011(); } buildCounterListReportTypesResponse--; return o; @@ -160,19 +160,19 @@ buildCounterListReportTypesResponse++; if (buildCounterListReportTypesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1004(o.reportTypes); + checkUnnamed1011(o.reportTypes); } buildCounterListReportTypesResponse--; } -buildUnnamed1005() { +buildUnnamed1012() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed1005(core.List<api.Report> o) { +checkUnnamed1012(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -184,7 +184,7 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { o.nextPageToken = "foo"; - o.reports = buildUnnamed1005(); + o.reports = buildUnnamed1012(); } buildCounterListReportsResponse--; return o; @@ -194,7 +194,7 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1005(o.reports); + checkUnnamed1012(o.reports); } buildCounterListReportsResponse--; } @@ -355,7 +355,7 @@ api.JobsResourceApi res = new api.YoutubereportingApi(mock).jobs; var arg_request = buildJob(); var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Job.fromJson(json); checkJob(obj); @@ -393,7 +393,7 @@ var resp = convert.JSON.encode(buildJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.Job response) { + res.create(arg_request, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((api.Job response) { checkJob(response); }))); }); @@ -404,7 +404,7 @@ api.JobsResourceApi res = new api.YoutubereportingApi(mock).jobs; var arg_jobId = "foo"; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -442,7 +442,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_jobId, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_jobId, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -453,7 +453,7 @@ api.JobsResourceApi res = new api.YoutubereportingApi(mock).jobs; var arg_jobId = "foo"; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -491,7 +491,7 @@ var resp = convert.JSON.encode(buildJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_jobId, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.Job response) { + res.get(arg_jobId, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((api.Job response) { checkJob(response); }))); }); @@ -500,11 +500,11 @@ var mock = new HttpServerMock(); api.JobsResourceApi res = new api.YoutubereportingApi(mock).jobs; - var arg_onBehalfOfContentOwner = "foo"; var arg_pageToken = "foo"; var arg_includeSystemManaged = true; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_onBehalfOfContentOwner = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -530,10 +530,10 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["includeSystemManaged"].first, unittest.equals("$arg_includeSystemManaged")); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); var h = { @@ -542,7 +542,7 @@ var resp = convert.JSON.encode(buildListJobsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(onBehalfOfContentOwner: arg_onBehalfOfContentOwner, pageToken: arg_pageToken, includeSystemManaged: arg_includeSystemManaged, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListJobsResponse response) { + res.list(pageToken: arg_pageToken, includeSystemManaged: arg_includeSystemManaged, pageSize: arg_pageSize, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((api.ListJobsResponse response) { checkListJobsResponse(response); }))); }); @@ -558,7 +558,7 @@ var arg_jobId = "foo"; var arg_reportId = "foo"; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -603,7 +603,7 @@ var resp = convert.JSON.encode(buildReport()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_jobId, arg_reportId, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.Report response) { + res.get(arg_jobId, arg_reportId, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((api.Report response) { checkReport(response); }))); }); @@ -613,13 +613,13 @@ var mock = new HttpServerMock(); api.JobsReportsResourceApi res = new api.YoutubereportingApi(mock).jobs.reports; var arg_jobId = "foo"; + var arg_startTimeBefore = "foo"; var arg_createdAfter = "foo"; - var arg_pageToken = "foo"; var arg_startTimeAtOrAfter = "foo"; + var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_onBehalfOfContentOwner = "foo"; - var arg_startTimeBefore = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -652,12 +652,12 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["startTimeBefore"].first, unittest.equals(arg_startTimeBefore)); unittest.expect(queryMap["createdAfter"].first, unittest.equals(arg_createdAfter)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["startTimeAtOrAfter"].first, unittest.equals(arg_startTimeAtOrAfter)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); - unittest.expect(queryMap["startTimeBefore"].first, unittest.equals(arg_startTimeBefore)); var h = { @@ -666,7 +666,7 @@ var resp = convert.JSON.encode(buildListReportsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_jobId, createdAfter: arg_createdAfter, pageToken: arg_pageToken, startTimeAtOrAfter: arg_startTimeAtOrAfter, pageSize: arg_pageSize, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, startTimeBefore: arg_startTimeBefore).then(unittest.expectAsync(((api.ListReportsResponse response) { + res.list(arg_jobId, startTimeBefore: arg_startTimeBefore, createdAfter: arg_createdAfter, startTimeAtOrAfter: arg_startTimeAtOrAfter, pageToken: arg_pageToken, pageSize: arg_pageSize, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((api.ListReportsResponse response) { checkListReportsResponse(response); }))); }); @@ -682,7 +682,7 @@ var mock = new HttpServerMock(); api.MediaResourceApi res = new api.YoutubereportingApi(mock).media; var arg_resourceName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -717,7 +717,7 @@ var resp = convert.JSON.encode(buildMedia()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.download(arg_resourceName).then(unittest.expectAsync(((api.Media response) { + res.download(arg_resourceName).then(unittest.expectAsync1(((api.Media response) { checkMedia(response); }))); }); @@ -734,7 +734,7 @@ var arg_includeSystemManaged = true; var arg_pageSize = 42; var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -772,7 +772,7 @@ var resp = convert.JSON.encode(buildListReportTypesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(pageToken: arg_pageToken, includeSystemManaged: arg_includeSystemManaged, pageSize: arg_pageSize, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.ListReportTypesResponse response) { + res.list(pageToken: arg_pageToken, includeSystemManaged: arg_includeSystemManaged, pageSize: arg_pageSize, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((api.ListReportTypesResponse response) { checkListReportTypesResponse(response); }))); });
diff --git a/generated/googleapis_beta/CHANGELOG.md b/generated/googleapis_beta/CHANGELOG.md index 6f26a16..4c0ac9c 100644 --- a/generated/googleapis_beta/CHANGELOG.md +++ b/generated/googleapis_beta/CHANGELOG.md
@@ -1,3 +1,14 @@ +## 0.38.0 + +* [api] sqladmin:v1beta4 +* [api] adexchangebuyer2:v2beta1 +* [api] dataflow:v1b3 +* [api] appengine:v1beta +* [api] appengine:v1beta4 +* [api] appengine:v1beta5 +* [api-breaking] sqladmin:v1beta4 +* [api-breaking] dataflow:v1b3 + ## 0.37.0 * [api-new] language:v1beta2
diff --git a/generated/googleapis_beta/lib/adexchangebuyer2/v2beta1.dart b/generated/googleapis_beta/lib/adexchangebuyer2/v2beta1.dart index a2ecdc8..34f4e2b 100644 --- a/generated/googleapis_beta/lib/adexchangebuyer2/v2beta1.dart +++ b/generated/googleapis_beta/lib/adexchangebuyer2/v2beta1.dart
@@ -38,6 +38,7 @@ AccountsClientsResourceApi get clients => new AccountsClientsResourceApi(_requester); AccountsCreativesResourceApi get creatives => new AccountsCreativesResourceApi(_requester); + AccountsFilterSetsResourceApi get filterSets => new AccountsFilterSetsResourceApi(_requester); AccountsResourceApi(commons.ApiRequester client) : _requester = client; @@ -515,10 +516,6 @@ * to list all the client users for all the clients * of a given sponsor buyer. * - * [pageSize] - Requested page size. The server may return fewer clients than - * requested. - * If unspecified, the server will pick an appropriate default. - * * [pageToken] - A token identifying a page of results the server should * return. * Typically, this is the value of @@ -526,6 +523,10 @@ * returned from the previous call to the * accounts.clients.users.list method. * + * [pageSize] - Requested page size. The server may return fewer clients than + * requested. + * If unspecified, the server will pick an appropriate default. + * * Completes with a [ListClientUsersResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -534,7 +535,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListClientUsersResponse> list(core.String accountId, core.String clientAccountId, {core.int pageSize, core.String pageToken}) { + async.Future<ListClientUsersResponse> list(core.String accountId, core.String clientAccountId, {core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -548,12 +549,12 @@ if (clientAccountId == null) { throw new core.ArgumentError("Parameter clientAccountId is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/clients/' + commons.Escaper.ecapeVariable('$clientAccountId') + '/users'; @@ -1165,6 +1166,1094 @@ } +class AccountsFilterSetsResourceApi { + final commons.ApiRequester _requester; + + AccountsFilterSetsBidMetricsResourceApi get bidMetrics => new AccountsFilterSetsBidMetricsResourceApi(_requester); + AccountsFilterSetsBidResponseErrorsResourceApi get bidResponseErrors => new AccountsFilterSetsBidResponseErrorsResourceApi(_requester); + AccountsFilterSetsBidResponsesWithoutBidsResourceApi get bidResponsesWithoutBids => new AccountsFilterSetsBidResponsesWithoutBidsResourceApi(_requester); + AccountsFilterSetsFilteredBidRequestsResourceApi get filteredBidRequests => new AccountsFilterSetsFilteredBidRequestsResourceApi(_requester); + AccountsFilterSetsFilteredBidsResourceApi get filteredBids => new AccountsFilterSetsFilteredBidsResourceApi(_requester); + AccountsFilterSetsFilteredImpressionsResourceApi get filteredImpressions => new AccountsFilterSetsFilteredImpressionsResourceApi(_requester); + AccountsFilterSetsImpressionMetricsResourceApi get impressionMetrics => new AccountsFilterSetsImpressionMetricsResourceApi(_requester); + AccountsFilterSetsLosingBidsResourceApi get losingBids => new AccountsFilterSetsLosingBidsResourceApi(_requester); + + AccountsFilterSetsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Creates the specified filter set for the account with the given account ID. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [accountId] - Account ID of the buyer. + * + * [isTransient] - Whether the filter set is transient, or should be persisted + * indefinitely. + * By default, filter sets are not transient. + * If transient, it will be available for at least 1 hour after creation. + * + * Completes with a [FilterSet]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<FilterSet> create(FilterSet request, core.String accountId, {core.bool isTransient}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + if (isTransient != null) { + _queryParams["isTransient"] = ["${isTransient}"]; + } + + _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filterSets'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new FilterSet.fromJson(data)); + } + + /** + * Deletes the requested filter set from the account with the given account + * ID. + * + * Request parameters: + * + * [accountId] - Account ID of the buyer. + * + * [filterSetId] - The ID of the filter set to delete. + * + * Completes with a [Empty]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Empty> delete(core.String accountId, core.String filterSetId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + if (filterSetId == null) { + throw new core.ArgumentError("Parameter filterSetId is required."); + } + + _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId'); + + var _response = _requester.request(_url, + "DELETE", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Empty.fromJson(data)); + } + + /** + * Retrieves the requested filter set for the account with the given account + * ID. + * + * Request parameters: + * + * [accountId] - Account ID of the buyer. + * + * [filterSetId] - The ID of the filter set to get. + * + * Completes with a [FilterSet]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<FilterSet> get(core.String accountId, core.String filterSetId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + if (filterSetId == null) { + throw new core.ArgumentError("Parameter filterSetId is required."); + } + + _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new FilterSet.fromJson(data)); + } + + /** + * Lists all filter sets for the account with the given account ID. + * + * Request parameters: + * + * [accountId] - Account ID of the buyer. + * + * [pageToken] - A token identifying a page of results the server should + * return. + * Typically, this is the value of + * ListFilterSetsResponse.nextPageToken + * returned from the previous call to the + * accounts.rtbBreakout.filterSets.list + * method. + * + * [pageSize] - Requested page size. The server may return fewer than + * requested. + * If unspecified, the server will pick an appropriate default. + * + * Completes with a [ListFilterSetsResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ListFilterSetsResponse> list(core.String accountId, {core.String pageToken, core.int pageSize}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + + _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filterSets'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListFilterSetsResponse.fromJson(data)); + } + +} + + +class AccountsFilterSetsBidMetricsResourceApi { + final commons.ApiRequester _requester; + + AccountsFilterSetsBidMetricsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Lists all metrics that are measured in terms of number of bids. + * + * Request parameters: + * + * [accountId] - Account ID of the buyer. + * + * [filterSetId] - The ID of the filter set to apply. + * + * [pageToken] - A token identifying a page of results the server should + * return. + * Typically, this is the value of + * ListBidMetricsResponse.nextPageToken + * returned from the previous call to the + * accounts.filterSets.bidMetrics.list + * method. + * + * [pageSize] - Requested page size. The server may return fewer than + * requested. + * If unspecified, the server will pick an appropriate default. + * + * Completes with a [ListBidMetricsResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ListBidMetricsResponse> list(core.String accountId, core.String filterSetId, {core.String pageToken, core.int pageSize}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + if (filterSetId == null) { + throw new core.ArgumentError("Parameter filterSetId is required."); + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + + _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/bidMetrics'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListBidMetricsResponse.fromJson(data)); + } + +} + + +class AccountsFilterSetsBidResponseErrorsResourceApi { + final commons.ApiRequester _requester; + + AccountsFilterSetsBidResponseErrorsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * List all errors that occurred in bid responses, with the number of bid + * responses affected for each reason. + * + * Request parameters: + * + * [accountId] - Account ID of the buyer. + * + * [filterSetId] - The ID of the filter set to apply. + * + * [pageToken] - A token identifying a page of results the server should + * return. + * Typically, this is the value of + * ListBidResponseErrorsResponse.nextPageToken + * returned from the previous call to the + * accounts.filterSets.bidResponseErrors.list + * method. + * + * [pageSize] - Requested page size. The server may return fewer than + * requested. + * If unspecified, the server will pick an appropriate default. + * + * Completes with a [ListBidResponseErrorsResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ListBidResponseErrorsResponse> list(core.String accountId, core.String filterSetId, {core.String pageToken, core.int pageSize}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + if (filterSetId == null) { + throw new core.ArgumentError("Parameter filterSetId is required."); + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + + _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/bidResponseErrors'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListBidResponseErrorsResponse.fromJson(data)); + } + +} + + +class AccountsFilterSetsBidResponsesWithoutBidsResourceApi { + final commons.ApiRequester _requester; + + AccountsFilterSetsBidResponsesWithoutBidsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * List all reasons for which bid responses were considered to have no + * applicable bids, with the number of bid responses affected for each reason. + * + * Request parameters: + * + * [accountId] - Account ID of the buyer. + * + * [filterSetId] - The ID of the filter set to apply. + * + * [pageToken] - A token identifying a page of results the server should + * return. + * Typically, this is the value of + * ListBidResponsesWithoutBidsResponse.nextPageToken + * returned from the previous call to the + * accounts.filterSets.bidResponsesWithoutBids.list + * method. + * + * [pageSize] - Requested page size. The server may return fewer than + * requested. + * If unspecified, the server will pick an appropriate default. + * + * Completes with a [ListBidResponsesWithoutBidsResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ListBidResponsesWithoutBidsResponse> list(core.String accountId, core.String filterSetId, {core.String pageToken, core.int pageSize}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + if (filterSetId == null) { + throw new core.ArgumentError("Parameter filterSetId is required."); + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + + _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/bidResponsesWithoutBids'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListBidResponsesWithoutBidsResponse.fromJson(data)); + } + +} + + +class AccountsFilterSetsFilteredBidRequestsResourceApi { + final commons.ApiRequester _requester; + + AccountsFilterSetsFilteredBidRequestsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * List all reasons that caused a bid request not to be sent for an + * impression, with the number of bid requests not sent for each reason. + * + * Request parameters: + * + * [accountId] - Account ID of the buyer. + * + * [filterSetId] - The ID of the filter set to apply. + * + * [pageToken] - A token identifying a page of results the server should + * return. + * Typically, this is the value of + * ListFilteredBidRequestsResponse.nextPageToken + * returned from the previous call to the + * accounts.filterSets.filteredBidRequests.list + * method. + * + * [pageSize] - Requested page size. The server may return fewer than + * requested. + * If unspecified, the server will pick an appropriate default. + * + * Completes with a [ListFilteredBidRequestsResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ListFilteredBidRequestsResponse> list(core.String accountId, core.String filterSetId, {core.String pageToken, core.int pageSize}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + if (filterSetId == null) { + throw new core.ArgumentError("Parameter filterSetId is required."); + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + + _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBidRequests'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListFilteredBidRequestsResponse.fromJson(data)); + } + +} + + +class AccountsFilterSetsFilteredBidsResourceApi { + final commons.ApiRequester _requester; + + AccountsFilterSetsFilteredBidsCreativesResourceApi get creatives => new AccountsFilterSetsFilteredBidsCreativesResourceApi(_requester); + AccountsFilterSetsFilteredBidsDetailsResourceApi get details => new AccountsFilterSetsFilteredBidsDetailsResourceApi(_requester); + + AccountsFilterSetsFilteredBidsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * List all reasons for which bids were filtered, with the number of bids + * filtered for each reason. + * + * Request parameters: + * + * [accountId] - Account ID of the buyer. + * + * [filterSetId] - The ID of the filter set to apply. + * + * [pageToken] - A token identifying a page of results the server should + * return. + * Typically, this is the value of + * ListFilteredBidsResponse.nextPageToken + * returned from the previous call to the + * accounts.filterSets.filteredBids.list + * method. + * + * [pageSize] - Requested page size. The server may return fewer than + * requested. + * If unspecified, the server will pick an appropriate default. + * + * Completes with a [ListFilteredBidsResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ListFilteredBidsResponse> list(core.String accountId, core.String filterSetId, {core.String pageToken, core.int pageSize}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + if (filterSetId == null) { + throw new core.ArgumentError("Parameter filterSetId is required."); + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + + _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBids'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListFilteredBidsResponse.fromJson(data)); + } + +} + + +class AccountsFilterSetsFilteredBidsCreativesResourceApi { + final commons.ApiRequester _requester; + + AccountsFilterSetsFilteredBidsCreativesDetailsResourceApi get details => new AccountsFilterSetsFilteredBidsCreativesDetailsResourceApi(_requester); + + AccountsFilterSetsFilteredBidsCreativesResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * List all creatives associated with a specific reason for which bids were + * filtered, with the number of bids filtered for each creative. + * + * Request parameters: + * + * [accountId] - Account ID of the buyer. + * + * [filterSetId] - The ID of the filter set to apply. + * + * [creativeStatusId] - The ID of the creative status for which to retrieve a + * breakdown by + * creative. + * See + * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes). + * + * [pageToken] - A token identifying a page of results the server should + * return. + * Typically, this is the value of + * ListCreativeStatusBreakdownByCreativeResponse.nextPageToken + * returned from the previous call to the + * accounts.filterSets.filteredBids.creatives.list + * method. + * + * [pageSize] - Requested page size. The server may return fewer than + * requested. + * If unspecified, the server will pick an appropriate default. + * + * Completes with a [ListCreativeStatusBreakdownByCreativeResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ListCreativeStatusBreakdownByCreativeResponse> list(core.String accountId, core.String filterSetId, core.int creativeStatusId, {core.String pageToken, core.int pageSize}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + if (filterSetId == null) { + throw new core.ArgumentError("Parameter filterSetId is required."); + } + if (creativeStatusId == null) { + throw new core.ArgumentError("Parameter creativeStatusId is required."); + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + + _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBids/' + commons.Escaper.ecapeVariable('$creativeStatusId') + '/creatives'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListCreativeStatusBreakdownByCreativeResponse.fromJson(data)); + } + +} + + +class AccountsFilterSetsFilteredBidsCreativesDetailsResourceApi { + final commons.ApiRequester _requester; + + AccountsFilterSetsFilteredBidsCreativesDetailsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * List all details associated with a specific reason for which bids were + * filtered and a specific creative that was filtered for that reason, with + * the number of bids filtered for each detail. + * + * Request parameters: + * + * [accountId] - Account ID of the buyer. + * + * [filterSetId] - The ID of the filter set to apply. + * + * [creativeStatusId] - The ID of the creative status for which to retrieve a + * breakdown by detail. + * See + * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes). + * + * [creativeId] - The creative ID for which to retrieve a breakdown by detail. + * + * [pageSize] - Requested page size. The server may return fewer than + * requested. + * If unspecified, the server will pick an appropriate default. + * + * [pageToken] - A token identifying a page of results the server should + * return. + * Typically, this is the value of + * ListCreativeStatusAndCreativeBreakdownByDetailResponse.nextPageToken + * returned from the previous call to the + * accounts.filterSets.filteredBids.creatives.details.list + * method. + * + * Completes with a [ListCreativeStatusAndCreativeBreakdownByDetailResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ListCreativeStatusAndCreativeBreakdownByDetailResponse> list(core.String accountId, core.String filterSetId, core.int creativeStatusId, core.String creativeId, {core.int pageSize, core.String pageToken}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + if (filterSetId == null) { + throw new core.ArgumentError("Parameter filterSetId is required."); + } + if (creativeStatusId == null) { + throw new core.ArgumentError("Parameter creativeStatusId is required."); + } + if (creativeId == null) { + throw new core.ArgumentError("Parameter creativeId is required."); + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + + _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBids/' + commons.Escaper.ecapeVariable('$creativeStatusId') + '/creatives/' + commons.Escaper.ecapeVariable('$creativeId') + '/details'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListCreativeStatusAndCreativeBreakdownByDetailResponse.fromJson(data)); + } + +} + + +class AccountsFilterSetsFilteredBidsDetailsResourceApi { + final commons.ApiRequester _requester; + + AccountsFilterSetsFilteredBidsDetailsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * List all details associated with a specific reason for which bids were + * filtered, with the number of bids filtered for each detail. + * + * Request parameters: + * + * [accountId] - Account ID of the buyer. + * + * [filterSetId] - The ID of the filter set to apply. + * + * [creativeStatusId] - The ID of the creative status for which to retrieve a + * breakdown by detail. + * See + * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes). + * + * [pageToken] - A token identifying a page of results the server should + * return. + * Typically, this is the value of + * ListCreativeStatusBreakdownByDetailResponse.nextPageToken + * returned from the previous call to the + * accounts.filterSets.filteredBids.details.list + * method. + * + * [pageSize] - Requested page size. The server may return fewer than + * requested. + * If unspecified, the server will pick an appropriate default. + * + * Completes with a [ListCreativeStatusBreakdownByDetailResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ListCreativeStatusBreakdownByDetailResponse> list(core.String accountId, core.String filterSetId, core.int creativeStatusId, {core.String pageToken, core.int pageSize}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + if (filterSetId == null) { + throw new core.ArgumentError("Parameter filterSetId is required."); + } + if (creativeStatusId == null) { + throw new core.ArgumentError("Parameter creativeStatusId is required."); + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + + _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBids/' + commons.Escaper.ecapeVariable('$creativeStatusId') + '/details'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListCreativeStatusBreakdownByDetailResponse.fromJson(data)); + } + +} + + +class AccountsFilterSetsFilteredImpressionsResourceApi { + final commons.ApiRequester _requester; + + AccountsFilterSetsFilteredImpressionsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * List all reasons that caused an impression to be filtered (i.e. not + * considered as an inventory match), with the number of impressions that were + * filtered for each reason. + * + * Request parameters: + * + * [accountId] - Account ID of the buyer. + * + * [filterSetId] - The ID of the filter set to apply. + * + * [pageToken] - A token identifying a page of results the server should + * return. + * Typically, this is the value of + * ListFilteredImpressionsResponse.nextPageToken + * returned from the previous call to the + * accounts.filterSets.filteredImpressions.list + * method. + * + * [pageSize] - Requested page size. The server may return fewer than + * requested. + * If unspecified, the server will pick an appropriate default. + * + * Completes with a [ListFilteredImpressionsResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ListFilteredImpressionsResponse> list(core.String accountId, core.String filterSetId, {core.String pageToken, core.int pageSize}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + if (filterSetId == null) { + throw new core.ArgumentError("Parameter filterSetId is required."); + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + + _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredImpressions'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListFilteredImpressionsResponse.fromJson(data)); + } + +} + + +class AccountsFilterSetsImpressionMetricsResourceApi { + final commons.ApiRequester _requester; + + AccountsFilterSetsImpressionMetricsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Lists all metrics that are measured in terms of number of impressions. + * + * Request parameters: + * + * [accountId] - Account ID of the buyer. + * + * [filterSetId] - The ID of the filter set to apply. + * + * [pageToken] - A token identifying a page of results the server should + * return. + * Typically, this is the value of + * ListImpressionMetricsResponse.nextPageToken + * returned from the previous call to the + * accounts.filterSets.impressionMetrics.list + * method. + * + * [pageSize] - Requested page size. The server may return fewer than + * requested. + * If unspecified, the server will pick an appropriate default. + * + * Completes with a [ListImpressionMetricsResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ListImpressionMetricsResponse> list(core.String accountId, core.String filterSetId, {core.String pageToken, core.int pageSize}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + if (filterSetId == null) { + throw new core.ArgumentError("Parameter filterSetId is required."); + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + + _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/impressionMetrics'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListImpressionMetricsResponse.fromJson(data)); + } + +} + + +class AccountsFilterSetsLosingBidsResourceApi { + final commons.ApiRequester _requester; + + AccountsFilterSetsLosingBidsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * List all reasons for which bids lost in the auction, with the number of + * bids that lost for each reason. + * + * Request parameters: + * + * [accountId] - Account ID of the buyer. + * + * [filterSetId] - The ID of the filter set to apply. + * + * [pageToken] - A token identifying a page of results the server should + * return. + * Typically, this is the value of + * ListLosingBidsResponse.nextPageToken + * returned from the previous call to the + * accounts.filterSets.losingBids.list + * method. + * + * [pageSize] - Requested page size. The server may return fewer than + * requested. + * If unspecified, the server will pick an appropriate default. + * + * Completes with a [ListLosingBidsResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ListLosingBidsResponse> list(core.String accountId, core.String filterSetId, {core.String pageToken, core.int pageSize}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + if (filterSetId == null) { + throw new core.ArgumentError("Parameter filterSetId is required."); + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + + _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/losingBids'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListLosingBidsResponse.fromJson(data)); + } + +} + + + +/** + * An absolute date range, specified by its start date and end date. + * The supported range of dates begins 30 days before today and ends today. + * Validity checked upon filter set creation. If a filter set with an absolute + * date range is run at a later date more than 30 days after start_date, it will + * fail. + */ +class AbsoluteDateRange { + /** + * The end date of the range (inclusive). + * Must be within the 30 days leading up to current date, and must be equal to + * or after start_date. + */ + Date endDate; + /** + * The start date of the range (inclusive). + * Must be within the 30 days leading up to current date, and must be equal to + * or before end_date. + */ + Date startDate; + + AbsoluteDateRange(); + + AbsoluteDateRange.fromJson(core.Map _json) { + if (_json.containsKey("endDate")) { + endDate = new Date.fromJson(_json["endDate"]); + } + if (_json.containsKey("startDate")) { + startDate = new Date.fromJson(_json["startDate"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (endDate != null) { + _json["endDate"] = (endDate).toJson(); + } + if (startDate != null) { + _json["startDate"] = (startDate).toJson(); + } + return _json; + } +} /** A request for associating a deal and a creative. */ class AddDealAssociationRequest { @@ -1179,8 +2268,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (association != null) { _json["association"] = (association).toJson(); } @@ -1201,8 +2290,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (appTypes != null) { _json["appTypes"] = appTypes; } @@ -1223,8 +2312,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (auctionTypes != null) { _json["auctionTypes"] = auctionTypes; } @@ -1233,6 +2322,188 @@ } /** + * The set of metrics that are measured in numbers of bids, representing how + * many bids with the specified dimension values were considered eligible at + * each stage of the bidding funnel; + */ +class BidMetricsRow { + /** The number of bids that Ad Exchange received from the buyer. */ + MetricValue bids; + /** The number of bids that were permitted to compete in the auction. */ + MetricValue bidsInAuction; + /** The number of bids for which the buyer was billed. */ + MetricValue billedImpressions; + /** The number of bids that won an impression. */ + MetricValue impressionsWon; + /** + * The values of all dimensions associated with metric values in this row. + */ + RowDimensions rowDimensions; + /** + * The number of bids for which the corresponding impression was viewable (as + * defined by Active View). + */ + MetricValue viewableImpressions; + + BidMetricsRow(); + + BidMetricsRow.fromJson(core.Map _json) { + if (_json.containsKey("bids")) { + bids = new MetricValue.fromJson(_json["bids"]); + } + if (_json.containsKey("bidsInAuction")) { + bidsInAuction = new MetricValue.fromJson(_json["bidsInAuction"]); + } + if (_json.containsKey("billedImpressions")) { + billedImpressions = new MetricValue.fromJson(_json["billedImpressions"]); + } + if (_json.containsKey("impressionsWon")) { + impressionsWon = new MetricValue.fromJson(_json["impressionsWon"]); + } + if (_json.containsKey("rowDimensions")) { + rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); + } + if (_json.containsKey("viewableImpressions")) { + viewableImpressions = new MetricValue.fromJson(_json["viewableImpressions"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (bids != null) { + _json["bids"] = (bids).toJson(); + } + if (bidsInAuction != null) { + _json["bidsInAuction"] = (bidsInAuction).toJson(); + } + if (billedImpressions != null) { + _json["billedImpressions"] = (billedImpressions).toJson(); + } + if (impressionsWon != null) { + _json["impressionsWon"] = (impressionsWon).toJson(); + } + if (rowDimensions != null) { + _json["rowDimensions"] = (rowDimensions).toJson(); + } + if (viewableImpressions != null) { + _json["viewableImpressions"] = (viewableImpressions).toJson(); + } + return _json; + } +} + +/** + * The number of impressions with the specified dimension values that were + * considered to have no applicable bids, as described by the specified status. + */ +class BidResponseWithoutBidsStatusRow { + /** + * The number of impressions for which there was a bid response with the + * specified status. + */ + MetricValue impressionCount; + /** + * The values of all dimensions associated with metric values in this row. + */ + RowDimensions rowDimensions; + /** + * The status that caused the bid response to be considered to have no + * applicable bids. + * Possible string values are: + * - "STATUS_UNSPECIFIED" : A placeholder for an undefined status. + * This value will never be returned in responses. + * - "RESPONSES_WITHOUT_BIDS" : The response had no bids. + * - "RESPONSES_WITHOUT_BIDS_FOR_ACCOUNT" : The response had no bids for the + * specified account, though it may have + * included bids on behalf of other accounts. + * - "RESPONSES_WITHOUT_BIDS_FOR_DEAL" : The response had no bids for the + * specified deal, though it may have + * included bids on other deals on behalf of the account to which the deal + * belongs. + */ + core.String status; + + BidResponseWithoutBidsStatusRow(); + + BidResponseWithoutBidsStatusRow.fromJson(core.Map _json) { + if (_json.containsKey("impressionCount")) { + impressionCount = new MetricValue.fromJson(_json["impressionCount"]); + } + if (_json.containsKey("rowDimensions")) { + rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); + } + if (_json.containsKey("status")) { + status = _json["status"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (impressionCount != null) { + _json["impressionCount"] = (impressionCount).toJson(); + } + if (rowDimensions != null) { + _json["rowDimensions"] = (rowDimensions).toJson(); + } + if (status != null) { + _json["status"] = status; + } + return _json; + } +} + +/** + * The number of impressions with the specified dimension values where the + * corresponding bid request or bid response was not successful, as described by + * the specified callout status. + */ +class CalloutStatusRow { + /** + * The ID of the callout status. + * See + * [callout-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/callout-status-codes). + */ + core.int calloutStatusId; + /** + * The number of impressions for which there was a bid request or bid response + * with the specified callout status. + */ + MetricValue impressionCount; + /** + * The values of all dimensions associated with metric values in this row. + */ + RowDimensions rowDimensions; + + CalloutStatusRow(); + + CalloutStatusRow.fromJson(core.Map _json) { + if (_json.containsKey("calloutStatusId")) { + calloutStatusId = _json["calloutStatusId"]; + } + if (_json.containsKey("impressionCount")) { + impressionCount = new MetricValue.fromJson(_json["impressionCount"]); + } + if (_json.containsKey("rowDimensions")) { + rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (calloutStatusId != null) { + _json["calloutStatusId"] = calloutStatusId; + } + if (impressionCount != null) { + _json["impressionCount"] = (impressionCount).toJson(); + } + if (rowDimensions != null) { + _json["rowDimensions"] = (rowDimensions).toJson(); + } + return _json; + } +} + +/** * A client resource represents a client buyer—an agency, * a brand, or an advertiser customer of the sponsor buyer. * Users associated with the client buyer have restricted access to @@ -1353,8 +2624,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientAccountId != null) { _json["clientAccountId"] = clientAccountId; } @@ -1444,8 +2715,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientAccountId != null) { _json["clientAccountId"] = clientAccountId; } @@ -1500,8 +2771,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientAccountId != null) { _json["clientAccountId"] = clientAccountId; } @@ -1573,8 +2844,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contexts != null) { _json["contexts"] = contexts.map((value) => (value).toJson()).toList(); } @@ -1796,8 +3067,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -1900,8 +3171,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accountId != null) { _json["accountId"] = accountId; } @@ -1916,6 +3187,54 @@ } /** + * The number of bids with the specified dimension values that did not win the + * auction (either were filtered pre-auction or lost the auction), as described + * by the specified creative status. + */ +class CreativeStatusRow { + /** The number of bids with the specified status. */ + MetricValue bidCount; + /** + * The ID of the creative status. + * See + * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes). + */ + core.int creativeStatusId; + /** + * The values of all dimensions associated with metric values in this row. + */ + RowDimensions rowDimensions; + + CreativeStatusRow(); + + CreativeStatusRow.fromJson(core.Map _json) { + if (_json.containsKey("bidCount")) { + bidCount = new MetricValue.fromJson(_json["bidCount"]); + } + if (_json.containsKey("creativeStatusId")) { + creativeStatusId = _json["creativeStatusId"]; + } + if (_json.containsKey("rowDimensions")) { + rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (bidCount != null) { + _json["bidCount"] = (bidCount).toJson(); + } + if (creativeStatusId != null) { + _json["creativeStatusId"] = creativeStatusId; + } + if (rowDimensions != null) { + _json["rowDimensions"] = (rowDimensions).toJson(); + } + return _json; + } +} + +/** * Represents a whole calendar date, e.g. date of birth. The time of day and * time zone are either specified elsewhere or are not significant. The date * is relative to the Proleptic Gregorian Calendar. The day may be 0 to @@ -1952,8 +3271,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (day != null) { _json["day"] = day; } @@ -2134,8 +3453,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (details != null) { _json["details"] = details; } @@ -2164,8 +3483,276 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + return _json; + } +} + +/** + * A set of filters that is applied to a request for data. + * Within a filter set, an AND operation is performed across the filters + * represented by each field. An OR operation is performed across the filters + * represented by the multiple values of a repeated field. E.g. + * "format=VIDEO AND deal_id=12 AND (seller_network_id=34 OR + * seller_network_id=56)" + */ +class FilterSet { + /** + * An absolute date range, defined by a start date and an end date. + * Interpreted relative to Pacific time zone. + */ + AbsoluteDateRange absoluteDateRange; + /** The ID of the buyer account on which to filter; optional. */ + core.String buyerAccountId; + /** The ID of the creative on which to filter; optional. */ + core.String creativeId; + /** The ID of the deal on which to filter; optional. */ + core.String dealId; + /** + * The environment on which to filter; optional. + * Possible string values are: + * - "ENVIRONMENT_UNSPECIFIED" : A placeholder for an undefined environment; + * indicates that no environment + * filter will be applied. + * - "WEB" : The ad impression appears on the web. + * - "APP" : The ad impression appears in an app. + */ + core.String environment; + /** + * The ID of the filter set; unique within the account of the filter set + * owner. + * The value of this field is ignored in create operations. + */ + core.String filterSetId; + /** + * The format on which to filter; optional. + * Possible string values are: + * - "FORMAT_UNSPECIFIED" : A placeholder for an undefined format; indicates + * that no format filter + * will be applied. + * - "DISPLAY" : The ad impression is display format (i.e. an image). + * - "VIDEO" : The ad impression is video format. + */ + core.String format; + /** + * The account ID of the buyer who owns this filter set. + * The value of this field is ignored in create operations. + */ + core.String ownerAccountId; + /** + * The list of platforms on which to filter; may be empty. The filters + * represented by multiple platforms are ORed together (i.e. if non-empty, + * results must match any one of the platforms). + */ + core.List<core.String> platforms; + /** + * An open-ended realtime time range, defined by the aggregation start + * timestamp. + */ + RealtimeTimeRange realtimeTimeRange; + /** + * A relative date range, defined by an offset from today and a duration. + * Interpreted relative to Pacific time zone. + */ + RelativeDateRange relativeDateRange; + /** + * The list of IDs of the seller (publisher) networks on which to filter; + * may be empty. The filters represented by multiple seller network IDs are + * ORed together (i.e. if non-empty, results must match any one of the + * publisher networks). + * See + * [seller-network-ids](https://developers.google.com/ad-exchange/rtb/downloads/seller-network-ids) + * file for the set of existing seller network IDs. + */ + core.List<core.int> sellerNetworkIds; + /** + * The granularity of time intervals if a time series breakdown is desired; + * optional. + * Possible string values are: + * - "INTERVAL_UNSPECIFIED" : A placeholder for an unspecified interval; no + * time series is applied. + * All rows in response will contain data for the entire requested time range. + * - "HOURLY" : Indicates that data will be broken down by the hour. + * - "DAILY" : Indicates that data will be broken down by the day. + */ + core.String timeSeriesGranularity; + + FilterSet(); + + FilterSet.fromJson(core.Map _json) { + if (_json.containsKey("absoluteDateRange")) { + absoluteDateRange = new AbsoluteDateRange.fromJson(_json["absoluteDateRange"]); + } + if (_json.containsKey("buyerAccountId")) { + buyerAccountId = _json["buyerAccountId"]; + } + if (_json.containsKey("creativeId")) { + creativeId = _json["creativeId"]; + } + if (_json.containsKey("dealId")) { + dealId = _json["dealId"]; + } + if (_json.containsKey("environment")) { + environment = _json["environment"]; + } + if (_json.containsKey("filterSetId")) { + filterSetId = _json["filterSetId"]; + } + if (_json.containsKey("format")) { + format = _json["format"]; + } + if (_json.containsKey("ownerAccountId")) { + ownerAccountId = _json["ownerAccountId"]; + } + if (_json.containsKey("platforms")) { + platforms = _json["platforms"]; + } + if (_json.containsKey("realtimeTimeRange")) { + realtimeTimeRange = new RealtimeTimeRange.fromJson(_json["realtimeTimeRange"]); + } + if (_json.containsKey("relativeDateRange")) { + relativeDateRange = new RelativeDateRange.fromJson(_json["relativeDateRange"]); + } + if (_json.containsKey("sellerNetworkIds")) { + sellerNetworkIds = _json["sellerNetworkIds"]; + } + if (_json.containsKey("timeSeriesGranularity")) { + timeSeriesGranularity = _json["timeSeriesGranularity"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (absoluteDateRange != null) { + _json["absoluteDateRange"] = (absoluteDateRange).toJson(); + } + if (buyerAccountId != null) { + _json["buyerAccountId"] = buyerAccountId; + } + if (creativeId != null) { + _json["creativeId"] = creativeId; + } + if (dealId != null) { + _json["dealId"] = dealId; + } + if (environment != null) { + _json["environment"] = environment; + } + if (filterSetId != null) { + _json["filterSetId"] = filterSetId; + } + if (format != null) { + _json["format"] = format; + } + if (ownerAccountId != null) { + _json["ownerAccountId"] = ownerAccountId; + } + if (platforms != null) { + _json["platforms"] = platforms; + } + if (realtimeTimeRange != null) { + _json["realtimeTimeRange"] = (realtimeTimeRange).toJson(); + } + if (relativeDateRange != null) { + _json["relativeDateRange"] = (relativeDateRange).toJson(); + } + if (sellerNetworkIds != null) { + _json["sellerNetworkIds"] = sellerNetworkIds; + } + if (timeSeriesGranularity != null) { + _json["timeSeriesGranularity"] = timeSeriesGranularity; + } + return _json; + } +} + +/** + * The number of filtered bids with the specified dimension values that have the + * specified creative. + */ +class FilteredBidCreativeRow { + /** The number of bids with the specified creative. */ + MetricValue bidCount; + /** The ID of the creative. */ + core.String creativeId; + /** + * The values of all dimensions associated with metric values in this row. + */ + RowDimensions rowDimensions; + + FilteredBidCreativeRow(); + + FilteredBidCreativeRow.fromJson(core.Map _json) { + if (_json.containsKey("bidCount")) { + bidCount = new MetricValue.fromJson(_json["bidCount"]); + } + if (_json.containsKey("creativeId")) { + creativeId = _json["creativeId"]; + } + if (_json.containsKey("rowDimensions")) { + rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (bidCount != null) { + _json["bidCount"] = (bidCount).toJson(); + } + if (creativeId != null) { + _json["creativeId"] = creativeId; + } + if (rowDimensions != null) { + _json["rowDimensions"] = (rowDimensions).toJson(); + } + return _json; + } +} + +/** + * The number of filtered bids with the specified dimension values, among those + * filtered due to the requested filtering reason (i.e. creative status), that + * have the specified detail. + */ +class FilteredBidDetailRow { + /** The number of bids with the specified detail. */ + MetricValue bidCount; + /** + * The ID of the detail. The associated value can be looked up in the + * dictionary file corresponding to the DetailType in the response message. + */ + core.int detailId; + /** + * The values of all dimensions associated with metric values in this row. + */ + RowDimensions rowDimensions; + + FilteredBidDetailRow(); + + FilteredBidDetailRow.fromJson(core.Map _json) { + if (_json.containsKey("bidCount")) { + bidCount = new MetricValue.fromJson(_json["bidCount"]); + } + if (_json.containsKey("detailId")) { + detailId = _json["detailId"]; + } + if (_json.containsKey("rowDimensions")) { + rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (bidCount != null) { + _json["bidCount"] = (bidCount).toJson(); + } + if (detailId != null) { + _json["detailId"] = detailId; + } + if (rowDimensions != null) { + _json["rowDimensions"] = (rowDimensions).toJson(); + } return _json; } } @@ -2196,8 +3783,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (date != null) { _json["date"] = (date).toJson(); } @@ -2231,8 +3818,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -2272,8 +3859,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -2287,6 +3874,265 @@ } } +/** + * The set of metrics that are measured in numbers of impressions, representing + * how many impressions with the specified dimension values were considered + * eligible at each stage of the bidding funnel. + */ +class ImpressionMetricsRow { + /** + * The number of impressions available to the buyer on Ad Exchange. + * In some cases this value may be unavailable. + */ + MetricValue availableImpressions; + /** + * The number of impressions for which Ad Exchange sent the buyer a bid + * request. + */ + MetricValue bidRequests; + /** + * The number of impressions that match the buyer's inventory pretargeting. + */ + MetricValue inventoryMatches; + /** + * The number of impressions for which Ad Exchange received a response from + * the buyer that contained at least one applicable bid. + */ + MetricValue responsesWithBids; + /** + * The values of all dimensions associated with metric values in this row. + */ + RowDimensions rowDimensions; + /** + * The number of impressions for which the buyer successfully sent a response + * to Ad Exchange. + */ + MetricValue successfulResponses; + + ImpressionMetricsRow(); + + ImpressionMetricsRow.fromJson(core.Map _json) { + if (_json.containsKey("availableImpressions")) { + availableImpressions = new MetricValue.fromJson(_json["availableImpressions"]); + } + if (_json.containsKey("bidRequests")) { + bidRequests = new MetricValue.fromJson(_json["bidRequests"]); + } + if (_json.containsKey("inventoryMatches")) { + inventoryMatches = new MetricValue.fromJson(_json["inventoryMatches"]); + } + if (_json.containsKey("responsesWithBids")) { + responsesWithBids = new MetricValue.fromJson(_json["responsesWithBids"]); + } + if (_json.containsKey("rowDimensions")) { + rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); + } + if (_json.containsKey("successfulResponses")) { + successfulResponses = new MetricValue.fromJson(_json["successfulResponses"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (availableImpressions != null) { + _json["availableImpressions"] = (availableImpressions).toJson(); + } + if (bidRequests != null) { + _json["bidRequests"] = (bidRequests).toJson(); + } + if (inventoryMatches != null) { + _json["inventoryMatches"] = (inventoryMatches).toJson(); + } + if (responsesWithBids != null) { + _json["responsesWithBids"] = (responsesWithBids).toJson(); + } + if (rowDimensions != null) { + _json["rowDimensions"] = (rowDimensions).toJson(); + } + if (successfulResponses != null) { + _json["successfulResponses"] = (successfulResponses).toJson(); + } + return _json; + } +} + +/** + * The number of impressions with the specified dimension values that were + * filtered due to the specified filtering status. + */ +class ImpressionStatusRow { + /** + * The number of impressions that were filtered with the specified status. + */ + MetricValue impressionCount; + /** + * The values of all dimensions associated with metric values in this row. + */ + RowDimensions rowDimensions; + /** + * The status for which impressions were filtered. + * Possible string values are: + * - "STATUS_UNSPECIFIED" : A placeholder for an undefined status. + * This value will never be returned in responses. + * - "PRETARGETING_CONFIGURATIONS" : The impression was filtered because it + * did not match the buyer's + * pretargeting configurations. + */ + core.String status; + + ImpressionStatusRow(); + + ImpressionStatusRow.fromJson(core.Map _json) { + if (_json.containsKey("impressionCount")) { + impressionCount = new MetricValue.fromJson(_json["impressionCount"]); + } + if (_json.containsKey("rowDimensions")) { + rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); + } + if (_json.containsKey("status")) { + status = _json["status"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (impressionCount != null) { + _json["impressionCount"] = (impressionCount).toJson(); + } + if (rowDimensions != null) { + _json["rowDimensions"] = (rowDimensions).toJson(); + } + if (status != null) { + _json["status"] = status; + } + return _json; + } +} + +/** + * Response message for listing the metrics that are measured in number of bids. + */ +class ListBidMetricsResponse { + /** List of rows, each containing a set of bid metrics. */ + core.List<BidMetricsRow> bidMetricsRows; + /** + * A token to retrieve the next page of results. + * Pass this value in the + * ListBidMetricsRequest.pageToken + * field in the subsequent call to the + * accounts.filterSets.bidMetrics.list + * method to retrieve the next page of results. + */ + core.String nextPageToken; + + ListBidMetricsResponse(); + + ListBidMetricsResponse.fromJson(core.Map _json) { + if (_json.containsKey("bidMetricsRows")) { + bidMetricsRows = _json["bidMetricsRows"].map((value) => new BidMetricsRow.fromJson(value)).toList(); + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (bidMetricsRows != null) { + _json["bidMetricsRows"] = bidMetricsRows.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + +/** + * Response message for listing all reasons that bid responses resulted in an + * error. + */ +class ListBidResponseErrorsResponse { + /** + * List of rows, with counts of bid responses aggregated by callout status. + */ + core.List<CalloutStatusRow> calloutStatusRows; + /** + * A token to retrieve the next page of results. + * Pass this value in the + * ListBidResponseErrorsRequest.pageToken + * field in the subsequent call to the + * accounts.filterSets.bidResponseErrors.list + * method to retrieve the next page of results. + */ + core.String nextPageToken; + + ListBidResponseErrorsResponse(); + + ListBidResponseErrorsResponse.fromJson(core.Map _json) { + if (_json.containsKey("calloutStatusRows")) { + calloutStatusRows = _json["calloutStatusRows"].map((value) => new CalloutStatusRow.fromJson(value)).toList(); + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (calloutStatusRows != null) { + _json["calloutStatusRows"] = calloutStatusRows.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + +/** + * Response message for listing all reasons that bid responses were considered + * to have no applicable bids. + */ +class ListBidResponsesWithoutBidsResponse { + /** + * List of rows, with counts of bid responses without bids aggregated by + * status. + */ + core.List<BidResponseWithoutBidsStatusRow> bidResponseWithoutBidsStatusRows; + /** + * A token to retrieve the next page of results. + * Pass this value in the + * ListBidResponsesWithoutBidsRequest.pageToken + * field in the subsequent call to the + * accounts.filterSets.bidResponsesWithoutBids.list + * method to retrieve the next page of results. + */ + core.String nextPageToken; + + ListBidResponsesWithoutBidsResponse(); + + ListBidResponsesWithoutBidsResponse.fromJson(core.Map _json) { + if (_json.containsKey("bidResponseWithoutBidsStatusRows")) { + bidResponseWithoutBidsStatusRows = _json["bidResponseWithoutBidsStatusRows"].map((value) => new BidResponseWithoutBidsStatusRow.fromJson(value)).toList(); + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (bidResponseWithoutBidsStatusRows != null) { + _json["bidResponseWithoutBidsStatusRows"] = bidResponseWithoutBidsStatusRows.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + class ListClientUserInvitationsResponse { /** The returned list of client users. */ core.List<ClientUserInvitation> invitations; @@ -2312,8 +4158,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (invitations != null) { _json["invitations"] = invitations.map((value) => (value).toJson()).toList(); } @@ -2349,8 +4195,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -2385,8 +4231,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clients != null) { _json["clients"] = clients.map((value) => (value).toJson()).toList(); } @@ -2397,6 +4243,183 @@ } } +/** + * Response message for listing all details associated with a given filtered bid + * reason and a given creative. + */ +class ListCreativeStatusAndCreativeBreakdownByDetailResponse { + /** + * The type of detail that the detail IDs represent. + * Possible string values are: + * - "TYPE_UNSPECIFIED" : A placeholder for an undefined status. + * This value will never be returned in responses. + * - "CREATIVE_ATTRIBUTE" : Indicates that the detail ID refers to a creative + * attribute; see + * [publisher-excludable-creative-attributes](https://developers.google.com/ad-exchange/rtb/downloads/publisher-excludable-creative-attributes). + * - "VENDOR" : Indicates that the detail ID refers to a vendor; see + * [vendors](https://developers.google.com/ad-exchange/rtb/downloads/vendors). + * - "SENSITIVE_CATEGORY" : Indicates that the detail ID refers to a sensitive + * category; see + * [ad-sensitive-categories](https://developers.google.com/ad-exchange/rtb/downloads/ad-sensitive-categories). + * - "PRODUCT_CATEGORY" : Indicates that the detail ID refers to a product + * category; see + * [ad-product-categories](https://developers.google.com/ad-exchange/rtb/downloads/ad-product-categories). + */ + core.String detailType; + /** + * List of rows, with counts of bids with a given creative status and + * creative, aggregated by detail. + */ + core.List<FilteredBidDetailRow> filteredBidDetailRows; + /** + * A token to retrieve the next page of results. + * Pass this value in the + * ListCreativeStatusAndCreativeBreakdownByDetailRequest.pageToken + * field in the subsequent call to the + * accounts.filterSets.filteredBids.creatives.details.list + * method to retrieve the next page of results. + */ + core.String nextPageToken; + + ListCreativeStatusAndCreativeBreakdownByDetailResponse(); + + ListCreativeStatusAndCreativeBreakdownByDetailResponse.fromJson(core.Map _json) { + if (_json.containsKey("detailType")) { + detailType = _json["detailType"]; + } + if (_json.containsKey("filteredBidDetailRows")) { + filteredBidDetailRows = _json["filteredBidDetailRows"].map((value) => new FilteredBidDetailRow.fromJson(value)).toList(); + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (detailType != null) { + _json["detailType"] = detailType; + } + if (filteredBidDetailRows != null) { + _json["filteredBidDetailRows"] = filteredBidDetailRows.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + +/** + * Response message for listing all creatives associated with a given filtered + * bid reason. + */ +class ListCreativeStatusBreakdownByCreativeResponse { + /** + * List of rows, with counts of bids with a given creative status aggregated + * by creative. + */ + core.List<FilteredBidCreativeRow> filteredBidCreativeRows; + /** + * A token to retrieve the next page of results. + * Pass this value in the + * ListCreativeStatusBreakdownByCreativeRequest.pageToken + * field in the subsequent call to the + * accounts.filterSets.filteredBids.creatives.list + * method to retrieve the next page of results. + */ + core.String nextPageToken; + + ListCreativeStatusBreakdownByCreativeResponse(); + + ListCreativeStatusBreakdownByCreativeResponse.fromJson(core.Map _json) { + if (_json.containsKey("filteredBidCreativeRows")) { + filteredBidCreativeRows = _json["filteredBidCreativeRows"].map((value) => new FilteredBidCreativeRow.fromJson(value)).toList(); + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (filteredBidCreativeRows != null) { + _json["filteredBidCreativeRows"] = filteredBidCreativeRows.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + +/** + * Response message for listing all details associated with a given filtered bid + * reason. + */ +class ListCreativeStatusBreakdownByDetailResponse { + /** + * The type of detail that the detail IDs represent. + * Possible string values are: + * - "TYPE_UNSPECIFIED" : A placeholder for an undefined status. + * This value will never be returned in responses. + * - "CREATIVE_ATTRIBUTE" : Indicates that the detail ID refers to a creative + * attribute; see + * [publisher-excludable-creative-attributes](https://developers.google.com/ad-exchange/rtb/downloads/publisher-excludable-creative-attributes). + * - "VENDOR" : Indicates that the detail ID refers to a vendor; see + * [vendors](https://developers.google.com/ad-exchange/rtb/downloads/vendors). + * - "SENSITIVE_CATEGORY" : Indicates that the detail ID refers to a sensitive + * category; see + * [ad-sensitive-categories](https://developers.google.com/ad-exchange/rtb/downloads/ad-sensitive-categories). + * - "PRODUCT_CATEGORY" : Indicates that the detail ID refers to a product + * category; see + * [ad-product-categories](https://developers.google.com/ad-exchange/rtb/downloads/ad-product-categories). + */ + core.String detailType; + /** + * List of rows, with counts of bids with a given creative status aggregated + * by detail. + */ + core.List<FilteredBidDetailRow> filteredBidDetailRows; + /** + * A token to retrieve the next page of results. + * Pass this value in the + * ListCreativeStatusBreakdownByDetailRequest.pageToken + * field in the subsequent call to the + * accounts.filterSets.filteredBids.details.list + * method to retrieve the next page of results. + */ + core.String nextPageToken; + + ListCreativeStatusBreakdownByDetailResponse(); + + ListCreativeStatusBreakdownByDetailResponse.fromJson(core.Map _json) { + if (_json.containsKey("detailType")) { + detailType = _json["detailType"]; + } + if (_json.containsKey("filteredBidDetailRows")) { + filteredBidDetailRows = _json["filteredBidDetailRows"].map((value) => new FilteredBidDetailRow.fromJson(value)).toList(); + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (detailType != null) { + _json["detailType"] = detailType; + } + if (filteredBidDetailRows != null) { + _json["filteredBidDetailRows"] = filteredBidDetailRows.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + /** A response for listing creatives. */ class ListCreativesResponse { /** The list of creatives. */ @@ -2421,8 +4444,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creatives != null) { _json["creatives"] = creatives.map((value) => (value).toJson()).toList(); } @@ -2457,8 +4480,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (associations != null) { _json["associations"] = associations.map((value) => (value).toJson()).toList(); } @@ -2469,6 +4492,251 @@ } } +/** Response message for listing filter sets. */ +class ListFilterSetsResponse { + /** The filter sets belonging to the buyer. */ + core.List<FilterSet> filterSets; + /** + * A token to retrieve the next page of results. + * Pass this value in the + * ListFilterSetsRequest.pageToken + * field in the subsequent call to the + * accounts.filterSets.list + * method to retrieve the next page of results. + */ + core.String nextPageToken; + + ListFilterSetsResponse(); + + ListFilterSetsResponse.fromJson(core.Map _json) { + if (_json.containsKey("filterSets")) { + filterSets = _json["filterSets"].map((value) => new FilterSet.fromJson(value)).toList(); + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (filterSets != null) { + _json["filterSets"] = filterSets.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + +/** + * Response message for listing all reasons that bid requests were filtered and + * not sent to the buyer. + */ +class ListFilteredBidRequestsResponse { + /** + * List of rows, with counts of filtered bid requests aggregated by callout + * status. + */ + core.List<CalloutStatusRow> calloutStatusRows; + /** + * A token to retrieve the next page of results. + * Pass this value in the + * ListFilteredBidRequestsRequest.pageToken + * field in the subsequent call to the + * accounts.filterSets.filteredBidRequests.list + * method to retrieve the next page of results. + */ + core.String nextPageToken; + + ListFilteredBidRequestsResponse(); + + ListFilteredBidRequestsResponse.fromJson(core.Map _json) { + if (_json.containsKey("calloutStatusRows")) { + calloutStatusRows = _json["calloutStatusRows"].map((value) => new CalloutStatusRow.fromJson(value)).toList(); + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (calloutStatusRows != null) { + _json["calloutStatusRows"] = calloutStatusRows.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + +/** + * Response message for listing all reasons that bids were filtered from the + * auction. + */ +class ListFilteredBidsResponse { + /** + * List of rows, with counts of filtered bids aggregated by filtering reason + * (i.e. creative status). + */ + core.List<CreativeStatusRow> creativeStatusRows; + /** + * A token to retrieve the next page of results. + * Pass this value in the + * ListFilteredBidsRequest.pageToken + * field in the subsequent call to the + * accounts.filterSets.filteredBids.list + * method to retrieve the next page of results. + */ + core.String nextPageToken; + + ListFilteredBidsResponse(); + + ListFilteredBidsResponse.fromJson(core.Map _json) { + if (_json.containsKey("creativeStatusRows")) { + creativeStatusRows = _json["creativeStatusRows"].map((value) => new CreativeStatusRow.fromJson(value)).toList(); + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (creativeStatusRows != null) { + _json["creativeStatusRows"] = creativeStatusRows.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + +/** + * Response message for listing all reasons that impressions were filtered (i.e. + * not considered as an inventory match) for the buyer. + */ +class ListFilteredImpressionsResponse { + /** + * List of rows, with counts of filtered impressions aggregated by status. + */ + core.List<ImpressionStatusRow> impressionsStatusRows; + /** + * A token to retrieve the next page of results. + * Pass this value in the + * ListFilteredImpressionsRequest.pageToken + * field in the subsequent call to the + * accounts.filterSets.filteredImpressions.list + * method to retrieve the next page of results. + */ + core.String nextPageToken; + + ListFilteredImpressionsResponse(); + + ListFilteredImpressionsResponse.fromJson(core.Map _json) { + if (_json.containsKey("impressionsStatusRows")) { + impressionsStatusRows = _json["impressionsStatusRows"].map((value) => new ImpressionStatusRow.fromJson(value)).toList(); + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (impressionsStatusRows != null) { + _json["impressionsStatusRows"] = impressionsStatusRows.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + +/** + * Response message for listing the metrics that are measured in number of + * impressions. + */ +class ListImpressionMetricsResponse { + /** List of rows, each containing a set of impression metrics. */ + core.List<ImpressionMetricsRow> impressionMetricsRows; + /** + * A token to retrieve the next page of results. + * Pass this value in the + * ListImpressionMetricsRequest.pageToken + * field in the subsequent call to the + * accounts.filterSets.impressionMetrics.list + * method to retrieve the next page of results. + */ + core.String nextPageToken; + + ListImpressionMetricsResponse(); + + ListImpressionMetricsResponse.fromJson(core.Map _json) { + if (_json.containsKey("impressionMetricsRows")) { + impressionMetricsRows = _json["impressionMetricsRows"].map((value) => new ImpressionMetricsRow.fromJson(value)).toList(); + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (impressionMetricsRows != null) { + _json["impressionMetricsRows"] = impressionMetricsRows.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + +/** Response message for listing all reasons that bids lost in the auction. */ +class ListLosingBidsResponse { + /** + * List of rows, with counts of losing bids aggregated by loss reason (i.e. + * creative status). + */ + core.List<CreativeStatusRow> creativeStatusRows; + /** + * A token to retrieve the next page of results. + * Pass this value in the + * ListLosingBidsRequest.pageToken + * field in the subsequent call to the + * accounts.filterSets.losingBids.list + * method to retrieve the next page of results. + */ + core.String nextPageToken; + + ListLosingBidsResponse(); + + ListLosingBidsResponse.fromJson(core.Map _json) { + if (_json.containsKey("creativeStatusRows")) { + creativeStatusRows = _json["creativeStatusRows"].map((value) => new CreativeStatusRow.fromJson(value)).toList(); + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (creativeStatusRows != null) { + _json["creativeStatusRows"] = creativeStatusRows.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + /** @OutputOnly The Geo criteria the restriction applies to. */ class LocationContext { /** @@ -2487,8 +4755,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (geoCriteriaIds != null) { _json["geoCriteriaIds"] = geoCriteriaIds; } @@ -2496,6 +4764,48 @@ } } +/** + * A metric value, with an expected value and a variance; represents a count + * that may be either exact or estimated (i.e. when sampled). + */ +class MetricValue { + /** The expected value of the metric. */ + core.String value; + /** + * The variance (i.e. square of the standard deviation) of the metric value. + * If value is exact, variance is 0. + * Can be used to calculate margin of error as a percentage of value, using + * the following formula, where Z is the standard constant that depends on the + * desired size of the confidence interval (e.g. for 90% confidence interval, + * use Z = 1.645): + * + * marginOfError = 100 * Z * sqrt(variance) / value + */ + core.String variance; + + MetricValue(); + + MetricValue.fromJson(core.Map _json) { + if (_json.containsKey("value")) { + value = _json["value"]; + } + if (_json.containsKey("variance")) { + variance = _json["variance"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (value != null) { + _json["value"] = value; + } + if (variance != null) { + _json["variance"] = variance; + } + return _json; + } +} + /** Native content for a creative. */ class NativeContent { /** @@ -2571,8 +4881,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (advertiserName != null) { _json["advertiserName"] = advertiserName; } @@ -2629,8 +4939,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (platforms != null) { _json["platforms"] = platforms; } @@ -2638,6 +4948,32 @@ } } +/** + * An open-ended realtime time range specified by the start timestamp. + * For filter sets that specify a realtime time range RTB metrics continue to + * be aggregated throughout the lifetime of the filter set. + */ +class RealtimeTimeRange { + /** The start timestamp of the real-time RTB metrics aggregation. */ + core.String startTimestamp; + + RealtimeTimeRange(); + + RealtimeTimeRange.fromJson(core.Map _json) { + if (_json.containsKey("startTimestamp")) { + startTimestamp = _json["startTimestamp"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (startTimestamp != null) { + _json["startTimestamp"] = startTimestamp; + } + return _json; + } +} + /** A specific filtering status and how many times it occurred. */ class Reason { /** @@ -2663,8 +4999,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (count != null) { _json["count"] = count; } @@ -2675,6 +5011,49 @@ } } +/** + * A relative date range, specified by an offset and a duration. + * The supported range of dates begins 30 days before today and ends today. + * I.e. the limits for these values are: + * offset_days >= 0 + * duration_days >= 1 + * offset_days + duration_days <= 30 + */ +class RelativeDateRange { + /** + * The number of days in the requested date range. E.g. for a range spanning + * today, 1. For a range spanning the last 7 days, 7. + */ + core.int durationDays; + /** + * The end date of the filter set, specified as the number of days before + * today. E.g. for a range where the last date is today, 0. + */ + core.int offsetDays; + + RelativeDateRange(); + + RelativeDateRange.fromJson(core.Map _json) { + if (_json.containsKey("durationDays")) { + durationDays = _json["durationDays"]; + } + if (_json.containsKey("offsetDays")) { + offsetDays = _json["offsetDays"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (durationDays != null) { + _json["durationDays"] = durationDays; + } + if (offsetDays != null) { + _json["offsetDays"] = offsetDays; + } + return _json; + } +} + /** A request for removing the association between a deal and a creative. */ class RemoveDealAssociationRequest { /** The association between a creative and a deal that should be removed. */ @@ -2688,8 +5067,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (association != null) { _json["association"] = (association).toJson(); } @@ -2697,6 +5076,31 @@ } } +/** + * A response may include multiple rows, breaking down along various dimensions. + * Encapsulates the values of all dimensions for a given row. + */ +class RowDimensions { + /** The time interval that this row represents. */ + TimeInterval timeInterval; + + RowDimensions(); + + RowDimensions.fromJson(core.Map _json) { + if (_json.containsKey("timeInterval")) { + timeInterval = new TimeInterval.fromJson(_json["timeInterval"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (timeInterval != null) { + _json["timeInterval"] = (timeInterval).toJson(); + } + return _json; + } +} + /** @OutputOnly A security context. */ class SecurityContext { /** The security types in this context. */ @@ -2710,8 +5114,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (securities != null) { _json["securities"] = securities; } @@ -2764,8 +5168,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (all != null) { _json["all"] = all; } @@ -2829,8 +5233,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contexts != null) { _json["contexts"] = contexts.map((value) => (value).toJson()).toList(); } @@ -2852,8 +5256,55 @@ StopWatchingCreativeRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + return _json; + } +} + +/** + * An interval of time, with an absolute start and end. + * This is included in the response, for several reasons: + * 1) The request may have specified start or end times relative to the time the + * request was sent; the response indicates the corresponding absolute time + * interval. + * 2) The request may have specified an end time past the latest time for which + * data was available (e.g. if requesting data for the today); the response + * indicates the latest time for which data was actually returned. + * 3) The response data for a single request may be broken down into multiple + * time intervals, if a time series was requested. + */ +class TimeInterval { + /** + * The timestamp marking the end of the range (exclusive) for which data is + * included. + */ + core.String endTime; + /** + * The timestamp marking the start of the range (inclusive) for which data is + * included. + */ + core.String startTime; + + TimeInterval(); + + TimeInterval.fromJson(core.Map _json) { + if (_json.containsKey("endTime")) { + endTime = _json["endTime"]; + } + if (_json.containsKey("startTime")) { + startTime = _json["startTime"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (endTime != null) { + _json["endTime"] = endTime; + } + if (startTime != null) { + _json["startTime"] = startTime; + } return _json; } } @@ -2871,8 +5322,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (videoUrl != null) { _json["videoUrl"] = videoUrl; } @@ -2899,8 +5350,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (topic != null) { _json["topic"] = topic; }
diff --git a/generated/googleapis_beta/lib/appengine/v1beta.dart b/generated/googleapis_beta/lib/appengine/v1beta.dart index e3beddd..107b130 100644 --- a/generated/googleapis_beta/lib/appengine/v1beta.dart +++ b/generated/googleapis_beta/lib/appengine/v1beta.dart
@@ -398,10 +398,10 @@ * [appsId] - Part of `parent`. Name of the parent Application resource. * Example: apps/myapp. * - * [pageToken] - Continuation token for fetching the next page of results. - * * [pageSize] - Maximum results to return per page. * + * [pageToken] - Continuation token for fetching the next page of results. + * * Completes with a [ListAuthorizedCertificatesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -410,7 +410,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListAuthorizedCertificatesResponse> list(core.String appsId, {core.String pageToken, core.int pageSize}) { + async.Future<ListAuthorizedCertificatesResponse> list(core.String appsId, {core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -421,12 +421,12 @@ if (appsId == null) { throw new core.ArgumentError("Parameter appsId is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/authorizedCertificates'; @@ -715,10 +715,10 @@ * [appsId] - Part of `parent`. Name of the parent Application resource. * Example: apps/myapp. * - * [pageToken] - Continuation token for fetching the next page of results. - * * [pageSize] - Maximum results to return per page. * + * [pageToken] - Continuation token for fetching the next page of results. + * * Completes with a [ListDomainMappingsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -727,7 +727,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListDomainMappingsResponse> list(core.String appsId, {core.String pageToken, core.int pageSize}) { + async.Future<ListDomainMappingsResponse> list(core.String appsId, {core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -738,12 +738,12 @@ if (appsId == null) { throw new core.ArgumentError("Parameter appsId is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/domainMappings'; @@ -981,19 +981,24 @@ /** * Lists operations that match the specified filter in the request. If the * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name - * binding below allows API services to override the binding to use different - * resource name schemes, such as users / * /operations. + * binding allows API services to override the binding to use different + * resource name schemes, such as users / * /operations. To override the + * binding, API services can add a binding such as "/v1/{name=users / * + * }/operations" to their service configuration. For backwards compatibility, + * the default name includes the operations collection id, however overriding + * users must ensure the name binding is the parent resource, without the + * operations collection id. * * Request parameters: * - * [appsId] - Part of `name`. The name of the operation collection. - * - * [pageSize] - The standard list page size. + * [appsId] - Part of `name`. The name of the operation's parent resource. * * [filter] - The standard list filter. * * [pageToken] - The standard list page token. * + * [pageSize] - The standard list page size. + * * Completes with a [ListOperationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1002,7 +1007,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListOperationsResponse> list(core.String appsId, {core.int pageSize, core.String filter, core.String pageToken}) { + async.Future<ListOperationsResponse> list(core.String appsId, {core.String filter, core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1013,15 +1018,15 @@ if (appsId == null) { throw new core.ArgumentError("Parameter appsId is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (filter != null) { _queryParams["filter"] = [filter]; } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operations'; @@ -1144,10 +1149,10 @@ * [appsId] - Part of `parent`. Name of the parent Application resource. * Example: apps/myapp. * - * [pageToken] - Continuation token for fetching the next page of results. - * * [pageSize] - Maximum results to return per page. * + * [pageToken] - Continuation token for fetching the next page of results. + * * Completes with a [ListServicesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1156,7 +1161,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListServicesResponse> list(core.String appsId, {core.String pageToken, core.int pageSize}) { + async.Future<ListServicesResponse> list(core.String appsId, {core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1167,12 +1172,12 @@ if (appsId == null) { throw new core.ArgumentError("Parameter appsId is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services'; @@ -1438,6 +1443,8 @@ * * [servicesId] - Part of `parent`. See documentation of `appsId`. * + * [pageToken] - Continuation token for fetching the next page of results. + * * [pageSize] - Maximum results to return per page. * * [view] - Controls the set of fields returned in the List response. @@ -1445,8 +1452,6 @@ * - "BASIC" : A BASIC. * - "FULL" : A FULL. * - * [pageToken] - Continuation token for fetching the next page of results. - * * Completes with a [ListVersionsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1455,7 +1460,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListVersionsResponse> list(core.String appsId, core.String servicesId, {core.int pageSize, core.String view, core.String pageToken}) { + async.Future<ListVersionsResponse> list(core.String appsId, core.String servicesId, {core.String pageToken, core.int pageSize, core.String view}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1469,15 +1474,15 @@ if (servicesId == null) { throw new core.ArgumentError("Parameter servicesId is required."); } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } if (view != null) { _queryParams["view"] = [view]; } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions'; @@ -1892,8 +1897,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (authFailAction != null) { _json["authFailAction"] = authFailAction; } @@ -1926,8 +1931,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (scriptPath != null) { _json["scriptPath"] = scriptPath; } @@ -1937,7 +1942,7 @@ /** * An Application resource contains the top-level configuration of an App Engine - * application. + * application. Next tag: 19 */ class Application { /** @@ -2045,8 +2050,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (authDomain != null) { _json["authDomain"] = authDomain; } @@ -2171,8 +2176,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (certificateRawData != null) { _json["certificateRawData"] = (certificateRawData).toJson(); } @@ -2229,8 +2234,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -2292,6 +2297,8 @@ NetworkUtilization networkUtilization; /** Target scaling by request utilization. */ RequestUtilization requestUtilization; + /** Scheduler settings for standard environment. */ + StandardSchedulerSettings standardSchedulerSettings; AutomaticScaling(); @@ -2332,10 +2339,13 @@ if (_json.containsKey("requestUtilization")) { requestUtilization = new RequestUtilization.fromJson(_json["requestUtilization"]); } + if (_json.containsKey("standardSchedulerSettings")) { + standardSchedulerSettings = new StandardSchedulerSettings.fromJson(_json["standardSchedulerSettings"]); + } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (coolDownPeriod != null) { _json["coolDownPeriod"] = coolDownPeriod; } @@ -2372,6 +2382,9 @@ if (requestUtilization != null) { _json["requestUtilization"] = (requestUtilization).toJson(); } + if (standardSchedulerSettings != null) { + _json["standardSchedulerSettings"] = (standardSchedulerSettings).toJson(); + } return _json; } } @@ -2402,8 +2415,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (idleTimeout != null) { _json["idleTimeout"] = idleTimeout; } @@ -2414,6 +2427,31 @@ } } +/** Google Cloud Container Builder build information. */ +class BuildInfo { + /** + * The Google Cloud Container Builder build id. Example: + * "f966068f-08b2-42c8-bdfe-74137dff2bf9" + */ + core.String cloudBuildId; + + BuildInfo(); + + BuildInfo.fromJson(core.Map _json) { + if (_json.containsKey("cloudBuildId")) { + cloudBuildId = _json["cloudBuildId"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (cloudBuildId != null) { + _json["cloudBuildId"] = cloudBuildId; + } + return _json; + } +} + /** An SSL certificate obtained from a certificate authority. */ class CertificateRawData { /** @@ -2443,8 +2481,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (privateKey != null) { _json["privateKey"] = privateKey; } @@ -2476,8 +2514,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (image != null) { _json["image"] = image; } @@ -2506,8 +2544,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aggregationWindowLength != null) { _json["aggregationWindowLength"] = aggregationWindowLength; } @@ -2538,8 +2576,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (sshKey != null) { _json["sshKey"] = sshKey; } @@ -2549,6 +2587,8 @@ /** Code and application artifacts used to deploy a version to App Engine. */ class Deployment { + /** Google Cloud Container Builder build information. */ + BuildInfo build; /** * The Docker image for the container that runs the version. Only applicable * for instances running in the App Engine flexible environment. @@ -2566,24 +2606,30 @@ Deployment(); Deployment.fromJson(core.Map _json) { + if (_json.containsKey("build")) { + build = new BuildInfo.fromJson(_json["build"]); + } if (_json.containsKey("container")) { container = new ContainerInfo.fromJson(_json["container"]); } if (_json.containsKey("files")) { - files = commons.mapMap(_json["files"], (item) => new FileInfo.fromJson(item)); + files = commons.mapMap<core.Map<core.String, core.Object>, FileInfo>(_json["files"], (core.Map<core.String, core.Object> item) => new FileInfo.fromJson(item)); } if (_json.containsKey("zip")) { zip = new ZipInfo.fromJson(_json["zip"]); } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (build != null) { + _json["build"] = (build).toJson(); + } if (container != null) { _json["container"] = (container).toJson(); } if (files != null) { - _json["files"] = commons.mapMap(files, (item) => (item).toJson()); + _json["files"] = commons.mapMap<FileInfo, core.Map<core.String, core.Object>>(files, (FileInfo item) => (item).toJson()); } if (zip != null) { _json["zip"] = (zip).toJson(); @@ -2620,8 +2666,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (targetReadBytesPerSecond != null) { _json["targetReadBytesPerSecond"] = targetReadBytesPerSecond; } @@ -2678,8 +2724,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -2712,8 +2758,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -2748,8 +2794,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (configId != null) { _json["configId"] = configId; } @@ -2792,8 +2838,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errorCode != null) { _json["errorCode"] = errorCode; } @@ -2839,8 +2885,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (mimeType != null) { _json["mimeType"] = mimeType; } @@ -2913,8 +2959,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (checkInterval != null) { _json["checkInterval"] = checkInterval; } @@ -2977,8 +3023,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (enabled != null) { _json["enabled"] = enabled; } @@ -3116,8 +3162,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (appEngineRelease != null) { _json["appEngineRelease"] = appEngineRelease; } @@ -3188,8 +3234,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -3218,8 +3264,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (certificates != null) { _json["certificates"] = certificates.map((value) => (value).toJson()).toList(); } @@ -3248,8 +3294,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (domains != null) { _json["domains"] = domains.map((value) => (value).toJson()).toList(); } @@ -3278,8 +3324,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (domainMappings != null) { _json["domainMappings"] = domainMappings.map((value) => (value).toJson()).toList(); } @@ -3308,8 +3354,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instances != null) { _json["instances"] = instances.map((value) => (value).toJson()).toList(); } @@ -3338,8 +3384,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (locations != null) { _json["locations"] = locations.map((value) => (value).toJson()).toList(); } @@ -3368,8 +3414,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -3398,8 +3444,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -3428,8 +3474,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -3495,8 +3541,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (checkInterval != null) { _json["checkInterval"] = checkInterval; } @@ -3562,8 +3608,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (labels != null) { _json["labels"] = labels; } @@ -3604,8 +3650,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (flexibleEnvironmentAvailable != null) { _json["flexibleEnvironmentAvailable"] = flexibleEnvironmentAvailable; } @@ -3637,8 +3683,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instances != null) { _json["instances"] = instances; } @@ -3695,8 +3741,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (forwardedPorts != null) { _json["forwardedPorts"] = forwardedPorts; } @@ -3741,8 +3787,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (targetReceivedBytesPerSecond != null) { _json["targetReceivedBytesPerSecond"] = targetReceivedBytesPerSecond; } @@ -3822,8 +3868,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (done != null) { _json["done"] = done; } @@ -3890,8 +3936,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } @@ -3953,8 +3999,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } @@ -4026,8 +4072,87 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (endTime != null) { + _json["endTime"] = endTime; + } + if (ephemeralMessage != null) { + _json["ephemeralMessage"] = ephemeralMessage; + } + if (insertTime != null) { + _json["insertTime"] = insertTime; + } + if (method != null) { + _json["method"] = method; + } + if (target != null) { + _json["target"] = target; + } + if (user != null) { + _json["user"] = user; + } + if (warning != null) { + _json["warning"] = warning; + } + return _json; + } +} + +/** Metadata for the given google.longrunning.Operation. */ +class OperationMetadataV1Alpha { + /** Time that this operation completed.@OutputOnly */ + core.String endTime; + /** + * Ephemeral message that may change every time the operation is polled. + * @OutputOnly + */ + core.String ephemeralMessage; + /** Time that this operation was created.@OutputOnly */ + core.String insertTime; + /** + * API method that initiated this operation. Example: + * google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly + */ + core.String method; + /** + * Name of the resource that this operation is acting on. Example: + * apps/myapp/services/default.@OutputOnly + */ + core.String target; + /** User who requested this operation.@OutputOnly */ + core.String user; + /** Durable messages that persist on every operation poll. @OutputOnly */ + core.List<core.String> warning; + + OperationMetadataV1Alpha(); + + OperationMetadataV1Alpha.fromJson(core.Map _json) { + if (_json.containsKey("endTime")) { + endTime = _json["endTime"]; + } + if (_json.containsKey("ephemeralMessage")) { + ephemeralMessage = _json["ephemeralMessage"]; + } + if (_json.containsKey("insertTime")) { + insertTime = _json["insertTime"]; + } + if (_json.containsKey("method")) { + method = _json["method"]; + } + if (_json.containsKey("target")) { + target = _json["target"]; + } + if (_json.containsKey("user")) { + user = _json["user"]; + } + if (_json.containsKey("warning")) { + warning = _json["warning"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } @@ -4105,8 +4230,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } @@ -4171,8 +4296,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } @@ -4238,8 +4363,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (checkInterval != null) { _json["checkInterval"] = checkInterval; } @@ -4270,8 +4395,8 @@ RepairApplicationRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -4294,8 +4419,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (targetConcurrentRequests != null) { _json["targetConcurrentRequests"] = targetConcurrentRequests; } @@ -4341,8 +4466,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -4384,8 +4509,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cpu != null) { _json["cpu"] = cpu; } @@ -4415,8 +4540,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (scriptPath != null) { _json["scriptPath"] = scriptPath; } @@ -4463,8 +4588,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -4494,8 +4619,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (certificateId != null) { _json["certificateId"] = certificateId; } @@ -4503,6 +4628,36 @@ } } +/** Scheduler settings for standard environment. */ +class StandardSchedulerSettings { + /** Target CPU utilization ratio to maintain when scaling. */ + core.double targetCpuUtilization; + /** Target throughput utilization ratio to maintain when scaling */ + core.double targetThroughputUtilization; + + StandardSchedulerSettings(); + + StandardSchedulerSettings.fromJson(core.Map _json) { + if (_json.containsKey("targetCpuUtilization")) { + targetCpuUtilization = _json["targetCpuUtilization"]; + } + if (_json.containsKey("targetThroughputUtilization")) { + targetThroughputUtilization = _json["targetThroughputUtilization"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (targetCpuUtilization != null) { + _json["targetCpuUtilization"] = targetCpuUtilization; + } + if (targetThroughputUtilization != null) { + _json["targetThroughputUtilization"] = targetThroughputUtilization; + } + return _json; + } +} + /** * Files served directly to the user for a given URL, such as images, CSS * stylesheets, or JavaScript source files. Static file handlers describe which @@ -4574,8 +4729,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (applicationReadable != null) { _json["applicationReadable"] = applicationReadable; } @@ -4614,7 +4769,7 @@ * localized user-facing error message is needed, put the localized message in * the error details or localize it in the client. The optional error details * may contain arbitrary information about the error. There is a predefined set - * of error detail types in the package google.rpc which can be used for common + * of error detail types in the package google.rpc that can be used for common * error conditions.Language mappingThe Status message is the logical * representation of the error model, but it is not necessarily the actual wire * format. When the Status message is exposed in different client libraries and @@ -4627,7 +4782,7 @@ * Partial errors. If a service needs to return partial errors to the client, it * may embed the Status in the normal response to indicate the partial errors. * Workflow errors. A typical workflow has multiple steps. Each step may have a - * Status message for error reporting purpose. + * Status message for error reporting. * Batch operations. If a client uses batch request and batch response, the * Status message should be used directly inside batch response, one for each * error sub-response. @@ -4669,8 +4824,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -4726,8 +4881,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allocations != null) { _json["allocations"] = allocations; } @@ -4771,8 +4926,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (domain != null) { _json["domain"] = domain; } @@ -4890,8 +5045,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (apiEndpoint != null) { _json["apiEndpoint"] = (apiEndpoint).toJson(); } @@ -5061,6 +5216,12 @@ /** Desired runtime. Example: python27. */ core.String runtime; /** + * The version of the API in the given runtime environment. Please see the + * app.yaml reference for valid values at + * https://cloud.google.com/appengine/docs/standard/<language>/config/appref + */ + core.String runtimeApiVersion; + /** * Current serving status of this version. Only the versions with a SERVING * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an * invalid value. Defaults to SERVING. @@ -5166,6 +5327,9 @@ if (_json.containsKey("runtime")) { runtime = _json["runtime"]; } + if (_json.containsKey("runtimeApiVersion")) { + runtimeApiVersion = _json["runtimeApiVersion"]; + } if (_json.containsKey("servingStatus")) { servingStatus = _json["servingStatus"]; } @@ -5180,8 +5344,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (apiConfig != null) { _json["apiConfig"] = (apiConfig).toJson(); } @@ -5263,6 +5427,9 @@ if (runtime != null) { _json["runtime"] = runtime; } + if (runtimeApiVersion != null) { + _json["runtimeApiVersion"] = runtimeApiVersion; + } if (servingStatus != null) { _json["servingStatus"] = servingStatus; } @@ -5304,8 +5471,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -5345,8 +5512,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filesCount != null) { _json["filesCount"] = filesCount; }
diff --git a/generated/googleapis_beta/lib/appengine/v1beta4.dart b/generated/googleapis_beta/lib/appengine/v1beta4.dart index c4f52f5..6d2f302 100644 --- a/generated/googleapis_beta/lib/appengine/v1beta4.dart +++ b/generated/googleapis_beta/lib/appengine/v1beta4.dart
@@ -414,10 +414,10 @@ * [appsId] - Part of `name`. Name of the resource requested. Example: * apps/myapp. * - * [pageToken] - Continuation token for fetching the next page of results. - * * [pageSize] - Maximum results to return per page. * + * [pageToken] - Continuation token for fetching the next page of results. + * * Completes with a [ListModulesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -426,7 +426,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListModulesResponse> list(core.String appsId, {core.String pageToken, core.int pageSize}) { + async.Future<ListModulesResponse> list(core.String appsId, {core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -437,12 +437,12 @@ if (appsId == null) { throw new core.ArgumentError("Parameter appsId is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/modules'; @@ -708,8 +708,6 @@ * * [modulesId] - Part of `name`. See documentation of `appsId`. * - * [pageToken] - Continuation token for fetching the next page of results. - * * [pageSize] - Maximum results to return per page. * * [view] - Controls the set of fields returned in the List response. @@ -717,6 +715,8 @@ * - "BASIC" : A BASIC. * - "FULL" : A FULL. * + * [pageToken] - Continuation token for fetching the next page of results. + * * Completes with a [ListVersionsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -725,7 +725,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListVersionsResponse> list(core.String appsId, core.String modulesId, {core.String pageToken, core.int pageSize, core.String view}) { + async.Future<ListVersionsResponse> list(core.String appsId, core.String modulesId, {core.int pageSize, core.String view, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -739,15 +739,15 @@ if (modulesId == null) { throw new core.ArgumentError("Parameter modulesId is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } if (view != null) { _queryParams["view"] = [view]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/modules/' + commons.Escaper.ecapeVariable('$modulesId') + '/versions'; @@ -1142,19 +1142,24 @@ /** * Lists operations that match the specified filter in the request. If the * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name - * binding below allows API services to override the binding to use different - * resource name schemes, such as users / * /operations. + * binding allows API services to override the binding to use different + * resource name schemes, such as users / * /operations. To override the + * binding, API services can add a binding such as "/v1/{name=users / * + * }/operations" to their service configuration. For backwards compatibility, + * the default name includes the operations collection id, however overriding + * users must ensure the name binding is the parent resource, without the + * operations collection id. * * Request parameters: * - * [appsId] - Part of `name`. The name of the operation collection. - * - * [pageToken] - The standard list page token. + * [appsId] - Part of `name`. The name of the operation's parent resource. * * [pageSize] - The standard list page size. * * [filter] - The standard list filter. * + * [pageToken] - The standard list page token. + * * Completes with a [ListOperationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1163,7 +1168,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListOperationsResponse> list(core.String appsId, {core.String pageToken, core.int pageSize, core.String filter}) { + async.Future<ListOperationsResponse> list(core.String appsId, {core.int pageSize, core.String filter, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1174,15 +1179,15 @@ if (appsId == null) { throw new core.ArgumentError("Parameter appsId is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } if (filter != null) { _queryParams["filter"] = [filter]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operations'; @@ -1274,8 +1279,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (authFailAction != null) { _json["authFailAction"] = authFailAction; } @@ -1308,8 +1313,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (scriptPath != null) { _json["scriptPath"] = scriptPath; } @@ -1407,8 +1412,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (authDomain != null) { _json["authDomain"] = authDomain; } @@ -1536,8 +1541,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (coolDownPeriod != null) { _json["coolDownPeriod"] = coolDownPeriod; } @@ -1604,8 +1609,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (idleTimeout != null) { _json["idleTimeout"] = idleTimeout; } @@ -1637,8 +1642,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (image != null) { _json["image"] = image; } @@ -1667,8 +1672,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aggregationWindowLength != null) { _json["aggregationWindowLength"] = aggregationWindowLength; } @@ -1699,8 +1704,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (sshKey != null) { _json["sshKey"] = sshKey; } @@ -1735,20 +1740,20 @@ container = new ContainerInfo.fromJson(_json["container"]); } if (_json.containsKey("files")) { - files = commons.mapMap(_json["files"], (item) => new FileInfo.fromJson(item)); + files = commons.mapMap<core.Map<core.String, core.Object>, FileInfo>(_json["files"], (core.Map<core.String, core.Object> item) => new FileInfo.fromJson(item)); } if (_json.containsKey("sourceReferences")) { sourceReferences = _json["sourceReferences"].map((value) => new SourceReference.fromJson(value)).toList(); } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (container != null) { _json["container"] = (container).toJson(); } if (files != null) { - _json["files"] = commons.mapMap(files, (item) => (item).toJson()); + _json["files"] = commons.mapMap<FileInfo, core.Map<core.String, core.Object>>(files, (FileInfo item) => (item).toJson()); } if (sourceReferences != null) { _json["sourceReferences"] = sourceReferences.map((value) => (value).toJson()).toList(); @@ -1785,8 +1790,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (targetReadBytesPerSec != null) { _json["targetReadBytesPerSec"] = targetReadBytesPerSec; } @@ -1835,8 +1840,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errorCode != null) { _json["errorCode"] = errorCode; } @@ -1882,8 +1887,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (mimeType != null) { _json["mimeType"] = mimeType; } @@ -1956,8 +1961,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (checkInterval != null) { _json["checkInterval"] = checkInterval; } @@ -2019,8 +2024,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (enabled != null) { _json["enabled"] = enabled; } @@ -2158,8 +2163,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (appEngineRelease != null) { _json["appEngineRelease"] = appEngineRelease; } @@ -2230,8 +2235,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -2260,8 +2265,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instances != null) { _json["instances"] = instances.map((value) => (value).toJson()).toList(); } @@ -2290,8 +2295,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (locations != null) { _json["locations"] = locations.map((value) => (value).toJson()).toList(); } @@ -2320,8 +2325,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (modules != null) { _json["modules"] = modules.map((value) => (value).toJson()).toList(); } @@ -2350,8 +2355,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -2380,8 +2385,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -2432,8 +2437,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (labels != null) { _json["labels"] = labels; } @@ -2474,8 +2479,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (flexibleEnvironmentAvailable != null) { _json["flexibleEnvironmentAvailable"] = flexibleEnvironmentAvailable; } @@ -2507,8 +2512,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instances != null) { _json["instances"] = instances; } @@ -2555,8 +2560,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -2599,8 +2604,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (forwardedPorts != null) { _json["forwardedPorts"] = forwardedPorts; } @@ -2642,8 +2647,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (targetReceivedBytesPerSec != null) { _json["targetReceivedBytesPerSec"] = targetReceivedBytesPerSec; } @@ -2723,8 +2728,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (done != null) { _json["done"] = done; } @@ -2791,8 +2796,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } @@ -2854,8 +2859,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } @@ -2927,8 +2932,87 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (endTime != null) { + _json["endTime"] = endTime; + } + if (ephemeralMessage != null) { + _json["ephemeralMessage"] = ephemeralMessage; + } + if (insertTime != null) { + _json["insertTime"] = insertTime; + } + if (method != null) { + _json["method"] = method; + } + if (target != null) { + _json["target"] = target; + } + if (user != null) { + _json["user"] = user; + } + if (warning != null) { + _json["warning"] = warning; + } + return _json; + } +} + +/** Metadata for the given google.longrunning.Operation. */ +class OperationMetadataV1Alpha { + /** Time that this operation completed.@OutputOnly */ + core.String endTime; + /** + * Ephemeral message that may change every time the operation is polled. + * @OutputOnly + */ + core.String ephemeralMessage; + /** Time that this operation was created.@OutputOnly */ + core.String insertTime; + /** + * API method that initiated this operation. Example: + * google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly + */ + core.String method; + /** + * Name of the resource that this operation is acting on. Example: + * apps/myapp/services/default.@OutputOnly + */ + core.String target; + /** User who requested this operation.@OutputOnly */ + core.String user; + /** Durable messages that persist on every operation poll. @OutputOnly */ + core.List<core.String> warning; + + OperationMetadataV1Alpha(); + + OperationMetadataV1Alpha.fromJson(core.Map _json) { + if (_json.containsKey("endTime")) { + endTime = _json["endTime"]; + } + if (_json.containsKey("ephemeralMessage")) { + ephemeralMessage = _json["ephemeralMessage"]; + } + if (_json.containsKey("insertTime")) { + insertTime = _json["insertTime"]; + } + if (_json.containsKey("method")) { + method = _json["method"]; + } + if (_json.containsKey("target")) { + target = _json["target"]; + } + if (_json.containsKey("user")) { + user = _json["user"]; + } + if (_json.containsKey("warning")) { + warning = _json["warning"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } @@ -3006,8 +3090,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } @@ -3072,8 +3156,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } @@ -3111,8 +3195,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (targetConcurrentRequests != null) { _json["targetConcurrentRequests"] = targetConcurrentRequests; } @@ -3151,8 +3235,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cpu != null) { _json["cpu"] = cpu; } @@ -3182,8 +3266,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (scriptPath != null) { _json["scriptPath"] = scriptPath; } @@ -3219,8 +3303,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (repository != null) { _json["repository"] = repository; } @@ -3290,8 +3374,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (applicationReadable != null) { _json["applicationReadable"] = applicationReadable; } @@ -3382,8 +3466,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (applicationReadable != null) { _json["applicationReadable"] = applicationReadable; } @@ -3422,7 +3506,7 @@ * localized user-facing error message is needed, put the localized message in * the error details or localize it in the client. The optional error details * may contain arbitrary information about the error. There is a predefined set - * of error detail types in the package google.rpc which can be used for common + * of error detail types in the package google.rpc that can be used for common * error conditions.Language mappingThe Status message is the logical * representation of the error model, but it is not necessarily the actual wire * format. When the Status message is exposed in different client libraries and @@ -3435,7 +3519,7 @@ * Partial errors. If a service needs to return partial errors to the client, it * may embed the Status in the normal response to indicate the partial errors. * Workflow errors. A typical workflow has multiple steps. Each step may have a - * Status message for error reporting purpose. + * Status message for error reporting. * Batch operations. If a client uses batch request and batch response, the * Status message should be used directly inside batch response, one for each * error sub-response. @@ -3477,8 +3561,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -3532,8 +3616,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allocations != null) { _json["allocations"] = allocations; } @@ -3577,8 +3661,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (domain != null) { _json["domain"] = domain; } @@ -3705,8 +3789,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (apiEndpoint != null) { _json["apiEndpoint"] = (apiEndpoint).toJson(); } @@ -3856,6 +3940,12 @@ /** Desired runtime. Example: python27. */ core.String runtime; /** + * The version of the API in the given runtime environment. Please see the + * app.yaml reference for valid values at + * https://cloud.google.com/appengine/docs/standard/<language>/config/appref + */ + core.String runtimeApiVersion; + /** * Current serving status of this version. Only the versions with a SERVING * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an * invalid value. Defaults to SERVING. @@ -3944,6 +4034,9 @@ if (_json.containsKey("runtime")) { runtime = _json["runtime"]; } + if (_json.containsKey("runtimeApiVersion")) { + runtimeApiVersion = _json["runtimeApiVersion"]; + } if (_json.containsKey("servingStatus")) { servingStatus = _json["servingStatus"]; } @@ -3955,8 +4048,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (apiConfig != null) { _json["apiConfig"] = (apiConfig).toJson(); } @@ -4026,6 +4119,9 @@ if (runtime != null) { _json["runtime"] = runtime; } + if (runtimeApiVersion != null) { + _json["runtimeApiVersion"] = runtimeApiVersion; + } if (servingStatus != null) { _json["servingStatus"] = servingStatus; } @@ -4064,8 +4160,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; }
diff --git a/generated/googleapis_beta/lib/appengine/v1beta5.dart b/generated/googleapis_beta/lib/appengine/v1beta5.dart index 77ee300..d072fe6 100644 --- a/generated/googleapis_beta/lib/appengine/v1beta5.dart +++ b/generated/googleapis_beta/lib/appengine/v1beta5.dart
@@ -259,12 +259,12 @@ * [appsId] - Part of `name`. The resource that owns the locations collection, * if applicable. * - * [filter] - The standard list filter. - * * [pageToken] - The standard list page token. * * [pageSize] - The standard list page size. * + * [filter] - The standard list filter. + * * Completes with a [ListLocationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -273,7 +273,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListLocationsResponse> list(core.String appsId, {core.String filter, core.String pageToken, core.int pageSize}) { + async.Future<ListLocationsResponse> list(core.String appsId, {core.String pageToken, core.int pageSize, core.String filter}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -284,15 +284,15 @@ if (appsId == null) { throw new core.ArgumentError("Parameter appsId is required."); } - if (filter != null) { - _queryParams["filter"] = [filter]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (filter != null) { + _queryParams["filter"] = [filter]; + } _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locations'; @@ -364,19 +364,24 @@ /** * Lists operations that match the specified filter in the request. If the * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name - * binding below allows API services to override the binding to use different - * resource name schemes, such as users / * /operations. + * binding allows API services to override the binding to use different + * resource name schemes, such as users / * /operations. To override the + * binding, API services can add a binding such as "/v1/{name=users / * + * }/operations" to their service configuration. For backwards compatibility, + * the default name includes the operations collection id, however overriding + * users must ensure the name binding is the parent resource, without the + * operations collection id. * * Request parameters: * - * [appsId] - Part of `name`. The name of the operation collection. - * - * [filter] - The standard list filter. + * [appsId] - Part of `name`. The name of the operation's parent resource. * * [pageToken] - The standard list page token. * * [pageSize] - The standard list page size. * + * [filter] - The standard list filter. + * * Completes with a [ListOperationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -385,7 +390,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListOperationsResponse> list(core.String appsId, {core.String filter, core.String pageToken, core.int pageSize}) { + async.Future<ListOperationsResponse> list(core.String appsId, {core.String pageToken, core.int pageSize, core.String filter}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -396,15 +401,15 @@ if (appsId == null) { throw new core.ArgumentError("Parameter appsId is required."); } - if (filter != null) { - _queryParams["filter"] = [filter]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (filter != null) { + _queryParams["filter"] = [filter]; + } _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operations'; @@ -1275,8 +1280,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (authFailAction != null) { _json["authFailAction"] = authFailAction; } @@ -1309,8 +1314,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (scriptPath != null) { _json["scriptPath"] = scriptPath; } @@ -1408,8 +1413,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (authDomain != null) { _json["authDomain"] = authDomain; } @@ -1537,8 +1542,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (coolDownPeriod != null) { _json["coolDownPeriod"] = coolDownPeriod; } @@ -1605,8 +1610,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (idleTimeout != null) { _json["idleTimeout"] = idleTimeout; } @@ -1638,8 +1643,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (image != null) { _json["image"] = image; } @@ -1668,8 +1673,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aggregationWindowLength != null) { _json["aggregationWindowLength"] = aggregationWindowLength; } @@ -1700,8 +1705,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (sshKey != null) { _json["sshKey"] = sshKey; } @@ -1736,20 +1741,20 @@ container = new ContainerInfo.fromJson(_json["container"]); } if (_json.containsKey("files")) { - files = commons.mapMap(_json["files"], (item) => new FileInfo.fromJson(item)); + files = commons.mapMap<core.Map<core.String, core.Object>, FileInfo>(_json["files"], (core.Map<core.String, core.Object> item) => new FileInfo.fromJson(item)); } if (_json.containsKey("sourceReferences")) { sourceReferences = _json["sourceReferences"].map((value) => new SourceReference.fromJson(value)).toList(); } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (container != null) { _json["container"] = (container).toJson(); } if (files != null) { - _json["files"] = commons.mapMap(files, (item) => (item).toJson()); + _json["files"] = commons.mapMap<FileInfo, core.Map<core.String, core.Object>>(files, (FileInfo item) => (item).toJson()); } if (sourceReferences != null) { _json["sourceReferences"] = sourceReferences.map((value) => (value).toJson()).toList(); @@ -1786,8 +1791,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (targetReadBytesPerSec != null) { _json["targetReadBytesPerSec"] = targetReadBytesPerSec; } @@ -1834,8 +1839,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (configId != null) { _json["configId"] = configId; } @@ -1878,8 +1883,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errorCode != null) { _json["errorCode"] = errorCode; } @@ -1925,8 +1930,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (mimeType != null) { _json["mimeType"] = mimeType; } @@ -1999,8 +2004,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (checkInterval != null) { _json["checkInterval"] = checkInterval; } @@ -2062,8 +2067,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (enabled != null) { _json["enabled"] = enabled; } @@ -2201,8 +2206,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (appEngineRelease != null) { _json["appEngineRelease"] = appEngineRelease; } @@ -2273,8 +2278,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -2303,8 +2308,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instances != null) { _json["instances"] = instances.map((value) => (value).toJson()).toList(); } @@ -2333,8 +2338,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (locations != null) { _json["locations"] = locations.map((value) => (value).toJson()).toList(); } @@ -2363,8 +2368,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -2393,8 +2398,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -2423,8 +2428,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -2475,8 +2480,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (labels != null) { _json["labels"] = labels; } @@ -2517,8 +2522,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (flexibleEnvironmentAvailable != null) { _json["flexibleEnvironmentAvailable"] = flexibleEnvironmentAvailable; } @@ -2550,8 +2555,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instances != null) { _json["instances"] = instances; } @@ -2608,8 +2613,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (forwardedPorts != null) { _json["forwardedPorts"] = forwardedPorts; } @@ -2654,8 +2659,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (targetReceivedBytesPerSec != null) { _json["targetReceivedBytesPerSec"] = targetReceivedBytesPerSec; } @@ -2735,8 +2740,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (done != null) { _json["done"] = done; } @@ -2803,8 +2808,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } @@ -2866,8 +2871,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } @@ -2939,8 +2944,87 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (endTime != null) { + _json["endTime"] = endTime; + } + if (ephemeralMessage != null) { + _json["ephemeralMessage"] = ephemeralMessage; + } + if (insertTime != null) { + _json["insertTime"] = insertTime; + } + if (method != null) { + _json["method"] = method; + } + if (target != null) { + _json["target"] = target; + } + if (user != null) { + _json["user"] = user; + } + if (warning != null) { + _json["warning"] = warning; + } + return _json; + } +} + +/** Metadata for the given google.longrunning.Operation. */ +class OperationMetadataV1Alpha { + /** Time that this operation completed.@OutputOnly */ + core.String endTime; + /** + * Ephemeral message that may change every time the operation is polled. + * @OutputOnly + */ + core.String ephemeralMessage; + /** Time that this operation was created.@OutputOnly */ + core.String insertTime; + /** + * API method that initiated this operation. Example: + * google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly + */ + core.String method; + /** + * Name of the resource that this operation is acting on. Example: + * apps/myapp/services/default.@OutputOnly + */ + core.String target; + /** User who requested this operation.@OutputOnly */ + core.String user; + /** Durable messages that persist on every operation poll. @OutputOnly */ + core.List<core.String> warning; + + OperationMetadataV1Alpha(); + + OperationMetadataV1Alpha.fromJson(core.Map _json) { + if (_json.containsKey("endTime")) { + endTime = _json["endTime"]; + } + if (_json.containsKey("ephemeralMessage")) { + ephemeralMessage = _json["ephemeralMessage"]; + } + if (_json.containsKey("insertTime")) { + insertTime = _json["insertTime"]; + } + if (_json.containsKey("method")) { + method = _json["method"]; + } + if (_json.containsKey("target")) { + target = _json["target"]; + } + if (_json.containsKey("user")) { + user = _json["user"]; + } + if (_json.containsKey("warning")) { + warning = _json["warning"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } @@ -3018,8 +3102,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } @@ -3084,8 +3168,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = endTime; } @@ -3123,8 +3207,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (targetConcurrentRequests != null) { _json["targetConcurrentRequests"] = targetConcurrentRequests; } @@ -3163,8 +3247,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cpu != null) { _json["cpu"] = cpu; } @@ -3194,8 +3278,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (scriptPath != null) { _json["scriptPath"] = scriptPath; } @@ -3242,8 +3326,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -3285,8 +3369,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (repository != null) { _json["repository"] = repository; } @@ -3365,8 +3449,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (applicationReadable != null) { _json["applicationReadable"] = applicationReadable; } @@ -3405,7 +3489,7 @@ * localized user-facing error message is needed, put the localized message in * the error details or localize it in the client. The optional error details * may contain arbitrary information about the error. There is a predefined set - * of error detail types in the package google.rpc which can be used for common + * of error detail types in the package google.rpc that can be used for common * error conditions.Language mappingThe Status message is the logical * representation of the error model, but it is not necessarily the actual wire * format. When the Status message is exposed in different client libraries and @@ -3418,7 +3502,7 @@ * Partial errors. If a service needs to return partial errors to the client, it * may embed the Status in the normal response to indicate the partial errors. * Workflow errors. A typical workflow has multiple steps. Each step may have a - * Status message for error reporting purpose. + * Status message for error reporting. * Batch operations. If a client uses batch request and batch response, the * Status message should be used directly inside batch response, one for each * error sub-response. @@ -3460,8 +3544,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -3515,8 +3599,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allocations != null) { _json["allocations"] = allocations; } @@ -3560,8 +3644,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (domain != null) { _json["domain"] = domain; } @@ -3679,8 +3763,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (apiEndpoint != null) { _json["apiEndpoint"] = (apiEndpoint).toJson(); } @@ -3837,6 +3921,12 @@ /** Desired runtime. Example: python27. */ core.String runtime; /** + * The version of the API in the given runtime environment. Please see the + * app.yaml reference for valid values at + * https://cloud.google.com/appengine/docs/standard/<language>/config/appref + */ + core.String runtimeApiVersion; + /** * Current serving status of this version. Only the versions with a SERVING * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an * invalid value. Defaults to SERVING. @@ -3932,6 +4022,9 @@ if (_json.containsKey("runtime")) { runtime = _json["runtime"]; } + if (_json.containsKey("runtimeApiVersion")) { + runtimeApiVersion = _json["runtimeApiVersion"]; + } if (_json.containsKey("servingStatus")) { servingStatus = _json["servingStatus"]; } @@ -3943,8 +4036,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (apiConfig != null) { _json["apiConfig"] = (apiConfig).toJson(); } @@ -4020,6 +4113,9 @@ if (runtime != null) { _json["runtime"] = runtime; } + if (runtimeApiVersion != null) { + _json["runtimeApiVersion"] = runtimeApiVersion; + } if (servingStatus != null) { _json["servingStatus"] = servingStatus; } @@ -4058,8 +4154,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; }
diff --git a/generated/googleapis_beta/lib/clouderrorreporting/v1beta1.dart b/generated/googleapis_beta/lib/clouderrorreporting/v1beta1.dart index 5bc0855..12e9ac5 100644 --- a/generated/googleapis_beta/lib/clouderrorreporting/v1beta1.dart +++ b/generated/googleapis_beta/lib/clouderrorreporting/v1beta1.dart
@@ -270,13 +270,6 @@ * Example: <code>projects/my-project-123</code>. * Value must have pattern "^projects/[^/]+$". * - * [alignmentTime] - [Optional] Time where the timed counts shall be aligned - * if rounded - * alignment is chosen. Default is 00:00 UTC. - * - * [serviceFilter_resourceType] - [Optional] The exact value to match against - * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type). - * * [timedCountDuration] - [Optional] The preferred duration for a single * returned `TimedCount`. * If not set, no timed counts are returned. @@ -325,6 +318,13 @@ * [serviceFilter_version] - [Optional] The exact value to match against * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version). * + * [serviceFilter_resourceType] - [Optional] The exact value to match against + * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type). + * + * [alignmentTime] - [Optional] Time where the timed counts shall be aligned + * if rounded + * alignment is chosen. Default is 00:00 UTC. + * * Completes with a [ListGroupStatsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -333,7 +333,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListGroupStatsResponse> list(core.String projectName, {core.String alignmentTime, core.String serviceFilter_resourceType, core.String timedCountDuration, core.String pageToken, core.String timeRange_period, core.String alignment, core.List<core.String> groupId, core.String serviceFilter_service, core.int pageSize, core.String order, core.String serviceFilter_version}) { + async.Future<ListGroupStatsResponse> list(core.String projectName, {core.String timedCountDuration, core.String pageToken, core.String timeRange_period, core.String alignment, core.List<core.String> groupId, core.String serviceFilter_service, core.int pageSize, core.String order, core.String serviceFilter_version, core.String serviceFilter_resourceType, core.String alignmentTime}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -344,12 +344,6 @@ if (projectName == null) { throw new core.ArgumentError("Parameter projectName is required."); } - if (alignmentTime != null) { - _queryParams["alignmentTime"] = [alignmentTime]; - } - if (serviceFilter_resourceType != null) { - _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; - } if (timedCountDuration != null) { _queryParams["timedCountDuration"] = [timedCountDuration]; } @@ -377,6 +371,12 @@ if (serviceFilter_version != null) { _queryParams["serviceFilter.version"] = [serviceFilter_version]; } + if (serviceFilter_resourceType != null) { + _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; + } + if (alignmentTime != null) { + _queryParams["alignmentTime"] = [alignmentTime]; + } _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') + '/groupStats'; @@ -505,8 +505,8 @@ DeleteEventsResponse.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -566,8 +566,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (httpRequest != null) { _json["httpRequest"] = (httpRequest).toJson(); } @@ -616,8 +616,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (context != null) { _json["context"] = (context).toJson(); } @@ -663,8 +663,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (groupId != null) { _json["groupId"] = groupId; } @@ -778,8 +778,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (affectedServices != null) { _json["affectedServices"] = affectedServices.map((value) => (value).toJson()).toList(); } @@ -859,8 +859,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (method != null) { _json["method"] = method; } @@ -912,8 +912,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errorEvents != null) { _json["errorEvents"] = errorEvents.map((value) => (value).toJson()).toList(); } @@ -959,8 +959,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errorGroupStats != null) { _json["errorGroupStats"] = errorGroupStats.map((value) => (value).toJson()).toList(); } @@ -985,8 +985,8 @@ ReportErrorEventResponse.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1048,8 +1048,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (context != null) { _json["context"] = (context).toJson(); } @@ -1111,8 +1111,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resourceType != null) { _json["resourceType"] = resourceType; } @@ -1161,8 +1161,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filePath != null) { _json["filePath"] = filePath; } @@ -1203,8 +1203,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (repository != null) { _json["repository"] = repository; } @@ -1242,8 +1242,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (count != null) { _json["count"] = count; } @@ -1273,8 +1273,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (url != null) { _json["url"] = url; }
diff --git a/generated/googleapis_beta/lib/cloudmonitoring/v2beta2.dart b/generated/googleapis_beta/lib/cloudmonitoring/v2beta2.dart index 75c817a..67796c9 100644 --- a/generated/googleapis_beta/lib/cloudmonitoring/v2beta2.dart +++ b/generated/googleapis_beta/lib/cloudmonitoring/v2beta2.dart
@@ -573,8 +573,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -598,8 +598,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -637,8 +637,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -668,8 +668,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -722,8 +722,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -759,8 +759,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -814,8 +814,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -871,8 +871,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -914,8 +914,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -950,8 +950,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metricType != null) { _json["metricType"] = metricType; } @@ -1026,8 +1026,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (boolValue != null) { _json["boolValue"] = boolValue; } @@ -1081,8 +1081,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (buckets != null) { _json["buckets"] = buckets.map((value) => (value).toJson()).toList(); } @@ -1126,8 +1126,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (count != null) { _json["count"] = count; } @@ -1165,8 +1165,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (count != null) { _json["count"] = count; } @@ -1201,8 +1201,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (count != null) { _json["count"] = count; } @@ -1239,8 +1239,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (points != null) { _json["points"] = points.map((value) => (value).toJson()).toList(); } @@ -1276,8 +1276,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (labels != null) { _json["labels"] = labels; } @@ -1308,8 +1308,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -1342,8 +1342,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (point != null) { _json["point"] = (point).toJson(); } @@ -1376,8 +1376,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (commonLabels != null) { _json["commonLabels"] = commonLabels; } @@ -1404,8 +1404,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; }
diff --git a/generated/googleapis_beta/lib/cloudresourcemanager/v1beta1.dart b/generated/googleapis_beta/lib/cloudresourcemanager/v1beta1.dart index ca269a8..22ae577 100644 --- a/generated/googleapis_beta/lib/cloudresourcemanager/v1beta1.dart +++ b/generated/googleapis_beta/lib/cloudresourcemanager/v1beta1.dart
@@ -624,12 +624,6 @@ * * Request parameters: * - * [pageSize] - The maximum number of Projects to return in the response. - * The server can return fewer Projects than requested. - * If unspecified, server picks an appropriate default. - * - * Optional. - * * [filter] - An expression for filtering the results of the request. Filter * rules are * case insensitive. The fields eligible for filtering are: @@ -659,6 +653,12 @@ * * Optional. * + * [pageSize] - The maximum number of Projects to return in the response. + * The server can return fewer Projects than requested. + * If unspecified, server picks an appropriate default. + * + * Optional. + * * Completes with a [ListProjectsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -667,7 +667,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListProjectsResponse> list({core.int pageSize, core.String filter, core.String pageToken}) { + async.Future<ListProjectsResponse> list({core.String filter, core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -675,15 +675,15 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (filter != null) { _queryParams["filter"] = [filter]; } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } _url = 'v1beta1/projects'; @@ -722,12 +722,13 @@ * + Membership changes that leave the project without any owners that have * accepted the Terms of Service (ToS) will be rejected. * - * + There must be at least one owner who has accepted the Terms of - * Service (ToS) agreement in the policy. Calling `setIamPolicy()` to - * remove the last ToS-accepted owner from the policy will fail. This - * restriction also applies to legacy projects that no longer have owners - * who have accepted the ToS. Edits to IAM policies will be rejected until - * the lack of a ToS-accepting owner is rectified. + * + If the project is not part of an organization, there must be at least + * one owner who has accepted the Terms of Service (ToS) agreement in the + * policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner + * from the policy will fail. This restriction also applies to legacy + * projects that no longer have owners who have accepted the ToS. Edits to + * IAM policies will be rejected until the lack of a ToS-accepting owner is + * rectified. * * + Calling this method requires enabling the App Engine Admin API. * @@ -943,8 +944,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resourceId != null) { _json["resourceId"] = (resourceId).toJson(); } @@ -1029,8 +1030,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (auditLogConfigs != null) { _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson()).toList(); } @@ -1090,8 +1091,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (exemptedMembers != null) { _json["exemptedMembers"] = exemptedMembers; } @@ -1147,8 +1148,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (members != null) { _json["members"] = members; } @@ -1177,8 +1178,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1223,8 +1224,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (destinationParent != null) { _json["destinationParent"] = destinationParent; } @@ -1278,8 +1279,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errorMessageId != null) { _json["errorMessageId"] = errorMessageId; } @@ -1299,8 +1300,8 @@ GetAncestryRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1322,8 +1323,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ancestor != null) { _json["ancestor"] = ancestor.map((value) => (value).toJson()).toList(); } @@ -1339,8 +1340,8 @@ GetIamPolicyRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1371,8 +1372,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1424,8 +1425,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1507,8 +1508,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTime != null) { _json["creationTime"] = creationTime; } @@ -1549,8 +1550,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (directoryCustomerId != null) { _json["directoryCustomerId"] = directoryCustomerId; } @@ -1596,7 +1597,6 @@ core.List<AuditConfig> auditConfigs; /** * Associates a list of `members` to a `role`. - * Multiple `bindings` must not be specified for the same `role`. * `bindings` with no members will result in an error. */ core.List<Binding> bindings; @@ -1640,8 +1640,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (auditConfigs != null) { _json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toList(); } @@ -1770,8 +1770,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createTime != null) { _json["createTime"] = createTime; } @@ -1828,8 +1828,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createTime != null) { _json["createTime"] = createTime; } @@ -1872,8 +1872,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -1913,8 +1913,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (policy != null) { _json["policy"] = (policy).toJson(); } @@ -1943,8 +1943,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; } @@ -1968,8 +1968,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; } @@ -1988,8 +1988,8 @@ UndeleteProjectRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } }
diff --git a/generated/googleapis_beta/lib/clouduseraccounts/beta.dart b/generated/googleapis_beta/lib/clouduseraccounts/beta.dart index e606074..c3e1983 100644 --- a/generated/googleapis_beta/lib/clouduseraccounts/beta.dart +++ b/generated/googleapis_beta/lib/clouduseraccounts/beta.dart
@@ -1176,8 +1176,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (keys != null) { _json["keys"] = keys; } @@ -1244,8 +1244,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTimestamp != null) { _json["creationTimestamp"] = creationTimestamp; } @@ -1308,8 +1308,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -1341,8 +1341,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (users != null) { _json["users"] = users; } @@ -1362,8 +1362,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (users != null) { _json["users"] = users; } @@ -1402,8 +1402,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (groupViews != null) { _json["groupViews"] = groupViews.map((value) => (value).toJson()).toList(); } @@ -1429,8 +1429,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resource != null) { _json["resource"] = (resource).toJson(); } @@ -1450,8 +1450,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resource != null) { _json["resource"] = (resource).toJson(); } @@ -1482,8 +1482,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (gid != null) { _json["gid"] = gid; } @@ -1535,8 +1535,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (gecos != null) { _json["gecos"] = gecos; } @@ -1584,8 +1584,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -1618,8 +1618,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errors != null) { _json["errors"] = errors.map((value) => (value).toJson()).toList(); } @@ -1652,8 +1652,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -1709,8 +1709,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -1909,8 +1909,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientOperationId != null) { _json["clientOperationId"] = clientOperationId; } @@ -2029,8 +2029,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -2092,8 +2092,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTimestamp != null) { _json["creationTimestamp"] = creationTimestamp; } @@ -2183,8 +2183,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTimestamp != null) { _json["creationTimestamp"] = creationTimestamp; } @@ -2253,8 +2253,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; }
diff --git a/generated/googleapis_beta/lib/dataflow/v1b3.dart b/generated/googleapis_beta/lib/dataflow/v1b3.dart index 7e5569e..5a3880e 100644 --- a/generated/googleapis_beta/lib/dataflow/v1b3.dart +++ b/generated/googleapis_beta/lib/dataflow/v1b3.dart
@@ -22,6 +22,9 @@ /** View and manage your Google Compute Engine resources */ static const ComputeScope = "https://www.googleapis.com/auth/compute"; + /** View your Google Compute Engine resources */ + static const ComputeReadonlyScope = "https://www.googleapis.com/auth/compute.readonly"; + /** View your email address */ static const UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.email"; @@ -234,11 +237,11 @@ * * [jobId] - The job to get messages for. * - * [location] - The location which contains the job specified by job_id. - * * [startTime] - Return only metric data that has changed since this time. * Default is to return all information about all metrics for the job. * + * [location] - The location which contains the job specified by job_id. + * * Completes with a [JobMetrics]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -247,7 +250,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<JobMetrics> getMetrics(core.String projectId, core.String jobId, {core.String location, core.String startTime}) { + async.Future<JobMetrics> getMetrics(core.String projectId, core.String jobId, {core.String startTime, core.String location}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -261,12 +264,12 @@ if (jobId == null) { throw new core.ArgumentError("Parameter jobId is required."); } - if (location != null) { - _queryParams["location"] = [location]; - } if (startTime != null) { _queryParams["startTime"] = [startTime]; } + if (location != null) { + _queryParams["location"] = [location]; + } _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId') + '/metrics'; @@ -287,6 +290,16 @@ * * [projectId] - The project which owns the jobs. * + * [location] - The location that contains this job. + * + * [pageToken] - Set this to the 'next_page_token' field of a previous + * response + * to request additional results in a long list. + * + * [pageSize] - If there are many jobs, limit response to at most this many. + * The actual number of jobs returned will be the lesser of max_responses + * and an unspecified server-defined limit. + * * [view] - Level of information requested in response. Default is * `JOB_VIEW_SUMMARY`. * Possible string values are: @@ -302,16 +315,6 @@ * - "TERMINATED" : A TERMINATED. * - "ACTIVE" : A ACTIVE. * - * [location] - The location that contains this job. - * - * [pageToken] - Set this to the 'next_page_token' field of a previous - * response - * to request additional results in a long list. - * - * [pageSize] - If there are many jobs, limit response to at most this many. - * The actual number of jobs returned will be the lesser of max_responses - * and an unspecified server-defined limit. - * * Completes with a [ListJobsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -320,7 +323,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListJobsResponse> list(core.String projectId, {core.String view, core.String filter, core.String location, core.String pageToken, core.int pageSize}) { + async.Future<ListJobsResponse> list(core.String projectId, {core.String location, core.String pageToken, core.int pageSize, core.String view, core.String filter}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -331,12 +334,6 @@ if (projectId == null) { throw new core.ArgumentError("Parameter projectId is required."); } - if (view != null) { - _queryParams["view"] = [view]; - } - if (filter != null) { - _queryParams["filter"] = [filter]; - } if (location != null) { _queryParams["location"] = [location]; } @@ -346,6 +343,12 @@ if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (view != null) { + _queryParams["view"] = [view]; + } + if (filter != null) { + _queryParams["filter"] = [filter]; + } _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jobs'; @@ -538,6 +541,10 @@ * * [jobId] - The job to get messages about. * + * [pageSize] - If specified, determines the maximum number of messages to + * return. If unspecified, the service may choose an appropriate + * default, or may return an arbitrarily large number of results. + * * [minimumImportance] - Filter to only get messages with importance >= level * Possible string values are: * - "JOB_MESSAGE_IMPORTANCE_UNKNOWN" : A JOB_MESSAGE_IMPORTANCE_UNKNOWN. @@ -547,24 +554,20 @@ * - "JOB_MESSAGE_WARNING" : A JOB_MESSAGE_WARNING. * - "JOB_MESSAGE_ERROR" : A JOB_MESSAGE_ERROR. * + * [location] - The location which contains the job specified by job_id. + * * [endTime] - Return only messages with timestamps < end_time. The default is * now * (i.e. return up to the latest messages available). * - * [location] - The location which contains the job specified by job_id. - * - * [pageToken] - If supplied, this should be the value of next_page_token - * returned - * by an earlier call. This will cause the next page of results to - * be returned. - * * [startTime] - If specified, return only messages with timestamps >= * start_time. * The default is the job creation time (i.e. beginning of messages). * - * [pageSize] - If specified, determines the maximum number of messages to - * return. If unspecified, the service may choose an appropriate - * default, or may return an arbitrarily large number of results. + * [pageToken] - If supplied, this should be the value of next_page_token + * returned + * by an earlier call. This will cause the next page of results to + * be returned. * * Completes with a [ListJobMessagesResponse]. * @@ -574,7 +577,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListJobMessagesResponse> list(core.String projectId, core.String jobId, {core.String minimumImportance, core.String endTime, core.String location, core.String pageToken, core.String startTime, core.int pageSize}) { + async.Future<ListJobMessagesResponse> list(core.String projectId, core.String jobId, {core.int pageSize, core.String minimumImportance, core.String location, core.String endTime, core.String startTime, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -588,23 +591,23 @@ if (jobId == null) { throw new core.ArgumentError("Parameter jobId is required."); } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if (minimumImportance != null) { _queryParams["minimumImportance"] = [minimumImportance]; } - if (endTime != null) { - _queryParams["endTime"] = [endTime]; - } if (location != null) { _queryParams["location"] = [location]; } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; + if (endTime != null) { + _queryParams["endTime"] = [endTime]; } if (startTime != null) { _queryParams["startTime"] = [startTime]; } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; } _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId') + '/messages'; @@ -987,13 +990,6 @@ * * [location] - The location that contains this job. * - * [filter] - The kind of filter to use. - * Possible string values are: - * - "UNKNOWN" : A UNKNOWN. - * - "ALL" : A ALL. - * - "TERMINATED" : A TERMINATED. - * - "ACTIVE" : A ACTIVE. - * * [pageToken] - Set this to the 'next_page_token' field of a previous * response * to request additional results in a long list. @@ -1010,6 +1006,13 @@ * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL. * - "JOB_VIEW_DESCRIPTION" : A JOB_VIEW_DESCRIPTION. * + * [filter] - The kind of filter to use. + * Possible string values are: + * - "UNKNOWN" : A UNKNOWN. + * - "ALL" : A ALL. + * - "TERMINATED" : A TERMINATED. + * - "ACTIVE" : A ACTIVE. + * * Completes with a [ListJobsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1018,7 +1021,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListJobsResponse> list(core.String projectId, core.String location, {core.String filter, core.String pageToken, core.int pageSize, core.String view}) { + async.Future<ListJobsResponse> list(core.String projectId, core.String location, {core.String pageToken, core.int pageSize, core.String view, core.String filter}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1032,9 +1035,6 @@ if (location == null) { throw new core.ArgumentError("Parameter location is required."); } - if (filter != null) { - _queryParams["filter"] = [filter]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -1044,6 +1044,9 @@ if (view != null) { _queryParams["view"] = [view]; } + if (filter != null) { + _queryParams["filter"] = [filter]; + } _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/locations/' + commons.Escaper.ecapeVariable('$location') + '/jobs'; @@ -1248,10 +1251,6 @@ * * [jobId] - The job to get messages about. * - * [endTime] - Return only messages with timestamps < end_time. The default is - * now - * (i.e. return up to the latest messages available). - * * [startTime] - If specified, return only messages with timestamps >= * start_time. * The default is the job creation time (i.e. beginning of messages). @@ -1274,6 +1273,10 @@ * - "JOB_MESSAGE_WARNING" : A JOB_MESSAGE_WARNING. * - "JOB_MESSAGE_ERROR" : A JOB_MESSAGE_ERROR. * + * [endTime] - Return only messages with timestamps < end_time. The default is + * now + * (i.e. return up to the latest messages available). + * * Completes with a [ListJobMessagesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1282,7 +1285,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListJobMessagesResponse> list(core.String projectId, core.String location, core.String jobId, {core.String endTime, core.String startTime, core.String pageToken, core.int pageSize, core.String minimumImportance}) { + async.Future<ListJobMessagesResponse> list(core.String projectId, core.String location, core.String jobId, {core.String startTime, core.String pageToken, core.int pageSize, core.String minimumImportance, core.String endTime}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1299,9 +1302,6 @@ if (jobId == null) { throw new core.ArgumentError("Parameter jobId is required."); } - if (endTime != null) { - _queryParams["endTime"] = [endTime]; - } if (startTime != null) { _queryParams["startTime"] = [startTime]; } @@ -1314,6 +1314,9 @@ if (minimumImportance != null) { _queryParams["minimumImportance"] = [minimumImportance]; } + if (endTime != null) { + _queryParams["endTime"] = [endTime]; + } _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/locations/' + commons.Escaper.ecapeVariable('$location') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId') + '/messages'; @@ -1574,15 +1577,15 @@ * * [location] - The location to which to direct the request. * - * [validateOnly] - If true, the request is validated but not actually - * executed. - * Defaults to false. - * * [gcsPath] - Required. A Cloud Storage path to the template from which to * create * the job. * Must be valid Cloud Storage URL, beginning with 'gs://'. * + * [validateOnly] - If true, the request is validated but not actually + * executed. + * Defaults to false. + * * Completes with a [LaunchTemplateResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1591,7 +1594,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<LaunchTemplateResponse> launch(LaunchTemplateParameters request, core.String projectId, core.String location, {core.bool validateOnly, core.String gcsPath}) { + async.Future<LaunchTemplateResponse> launch(LaunchTemplateParameters request, core.String projectId, core.String location, {core.String gcsPath, core.bool validateOnly}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1608,12 +1611,12 @@ if (location == null) { throw new core.ArgumentError("Parameter location is required."); } - if (validateOnly != null) { - _queryParams["validateOnly"] = ["${validateOnly}"]; - } if (gcsPath != null) { _queryParams["gcsPath"] = [gcsPath]; } + if (validateOnly != null) { + _queryParams["validateOnly"] = ["${validateOnly}"]; + } _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/locations/' + commons.Escaper.ecapeVariable('$location') + '/templates:launch'; @@ -1689,6 +1692,8 @@ * [projectId] - Required. The ID of the Cloud Platform project that the job * belongs to. * + * [location] - The location to which to direct the request. + * * [view] - The view to retrieve. Defaults to METADATA_ONLY. * Possible string values are: * - "METADATA_ONLY" : A METADATA_ONLY. @@ -1697,8 +1702,6 @@ * create the job. * Must be a valid Cloud Storage URL, beginning with `gs://`. * - * [location] - The location to which to direct the request. - * * Completes with a [GetTemplateResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1707,7 +1710,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<GetTemplateResponse> get(core.String projectId, {core.String view, core.String gcsPath, core.String location}) { + async.Future<GetTemplateResponse> get(core.String projectId, {core.String location, core.String view, core.String gcsPath}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1718,15 +1721,15 @@ if (projectId == null) { throw new core.ArgumentError("Parameter projectId is required."); } + if (location != null) { + _queryParams["location"] = [location]; + } if (view != null) { _queryParams["view"] = [view]; } if (gcsPath != null) { _queryParams["gcsPath"] = [gcsPath]; } - if (location != null) { - _queryParams["location"] = [location]; - } _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/templates:get'; @@ -1834,8 +1837,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (percentComplete != null) { _json["percentComplete"] = percentComplete; } @@ -1913,8 +1916,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (consumedParallelism != null) { _json["consumedParallelism"] = (consumedParallelism).toJson(); } @@ -1954,8 +1957,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fractionConsumed != null) { _json["fractionConsumed"] = fractionConsumed; } @@ -2031,8 +2034,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currentNumWorkers != null) { _json["currentNumWorkers"] = currentNumWorkers; } @@ -2078,8 +2081,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (algorithm != null) { _json["algorithm"] = algorithm; } @@ -2119,8 +2122,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (rate != null) { _json["rate"] = rate; } @@ -2165,8 +2168,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -2208,8 +2211,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -2261,8 +2264,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (computationId != null) { _json["computationId"] = computationId; } @@ -2307,8 +2310,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (index != null) { _json["index"] = index; } @@ -2375,8 +2378,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -2464,8 +2467,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (componentStepName != null) { _json["componentStepName"] = componentStepName; } @@ -2515,8 +2518,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metadata != null) { _json["metadata"] = (metadata).toJson(); } @@ -2619,8 +2622,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (boolean != null) { _json["boolean"] = boolean; } @@ -2704,8 +2707,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (environment != null) { _json["environment"] = (environment).toJson(); } @@ -2738,8 +2741,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (stateful != null) { _json["stateful"] = stateful; } @@ -2773,8 +2776,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dataDisks != null) { _json["dataDisks"] = dataDisks; } @@ -2819,8 +2822,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (derivationMode != null) { _json["derivationMode"] = derivationMode; } @@ -2876,8 +2879,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (diskType != null) { _json["diskType"] = diskType; } @@ -2975,8 +2978,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (boolValue != null) { _json["boolValue"] = boolValue; } @@ -3061,8 +3064,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (count != null) { _json["count"] = (count).toJson(); } @@ -3114,8 +3117,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (primary != null) { _json["primary"] = (primary).toJson(); } @@ -3238,8 +3241,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clusterManagerApiService != null) { _json["clusterManagerApiService"] = clusterManagerApiService; } @@ -3347,8 +3350,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currentStateTime != null) { _json["currentStateTime"] = currentStateTime; } @@ -3425,8 +3428,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (componentSource != null) { _json["componentSource"] = componentSource.map((value) => (value).toJson()).toList(); } @@ -3465,8 +3468,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -3489,8 +3492,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (inputs != null) { _json["inputs"] = inputs.map((value) => (value).toJson()).toList(); } @@ -3511,8 +3514,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (elements != null) { _json["elements"] = elements; } @@ -3538,8 +3541,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (count != null) { _json["count"] = (count).toJson(); } @@ -3576,8 +3579,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (componentId != null) { _json["componentId"] = componentId; } @@ -3604,8 +3607,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (config != null) { _json["config"] = config; } @@ -3637,8 +3640,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metadata != null) { _json["metadata"] = (metadata).toJson(); } @@ -3675,8 +3678,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (outputNum != null) { _json["outputNum"] = outputNum; } @@ -3742,8 +3745,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (codec != null) { _json["codec"] = codec; } @@ -3779,8 +3782,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (elements != null) { _json["elements"] = elements.map((value) => (value).toJson()).toList(); } @@ -3806,8 +3809,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (count != null) { _json["count"] = (count).toJson(); } @@ -4122,8 +4125,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientRequestId != null) { _json["clientRequestId"] = clientRequestId; } @@ -4200,14 +4203,14 @@ JobExecutionInfo.fromJson(core.Map _json) { if (_json.containsKey("stages")) { - stages = commons.mapMap(_json["stages"], (item) => new JobExecutionStageInfo.fromJson(item)); + stages = commons.mapMap<core.Map<core.String, core.Object>, JobExecutionStageInfo>(_json["stages"], (core.Map<core.String, core.Object> item) => new JobExecutionStageInfo.fromJson(item)); } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (stages != null) { - _json["stages"] = commons.mapMap(stages, (item) => (item).toJson()); + _json["stages"] = commons.mapMap<JobExecutionStageInfo, core.Map<core.String, core.Object>>(stages, (JobExecutionStageInfo item) => (item).toJson()); } return _json; } @@ -4233,8 +4236,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (stepName != null) { _json["stepName"] = stepName; } @@ -4303,8 +4306,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -4347,8 +4350,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metricTime != null) { _json["metricTime"] = metricTime; } @@ -4392,8 +4395,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dataDisk != null) { _json["dataDisk"] = dataDisk; } @@ -4455,8 +4458,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dataDisk != null) { _json["dataDisk"] = dataDisk; } @@ -4499,8 +4502,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (environment != null) { _json["environment"] = (environment).toJson(); } @@ -4530,8 +4533,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (job != null) { _json["job"] = (job).toJson(); } @@ -4583,8 +4586,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currentWorkerTime != null) { _json["currentWorkerTime"] = currentWorkerTime; } @@ -4620,8 +4623,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (workItems != null) { _json["workItems"] = workItems.map((value) => (value).toJson()).toList(); } @@ -4652,8 +4655,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoscalingEvents != null) { _json["autoscalingEvents"] = autoscalingEvents.map((value) => (value).toJson()).toList(); } @@ -4693,8 +4696,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (failedLocation != null) { _json["failedLocation"] = failedLocation.map((value) => (value).toJson()).toList(); } @@ -4735,8 +4738,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (count != null) { _json["count"] = count; } @@ -4783,8 +4786,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instructions != null) { _json["instructions"] = instructions.map((value) => (value).toJson()).toList(); } @@ -4822,8 +4825,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metricIndex != null) { _json["metricIndex"] = metricIndex; } @@ -4870,8 +4873,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (context != null) { _json["context"] = context; } @@ -5000,8 +5003,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cumulative != null) { _json["cumulative"] = cumulative; } @@ -5054,8 +5057,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dataDisk != null) { _json["dataDisk"] = dataDisk; } @@ -5079,8 +5082,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (tag != null) { _json["tag"] = tag; } @@ -5121,8 +5124,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -5168,8 +5171,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (location != null) { _json["location"] = location; } @@ -5223,8 +5226,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (input != null) { _json["input"] = (input).toJson(); } @@ -5300,8 +5303,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (flatten != null) { _json["flatten"] = (flatten).toJson(); } @@ -5356,8 +5359,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -5401,8 +5404,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (helpText != null) { _json["helpText"] = helpText; } @@ -5479,8 +5482,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (input != null) { _json["input"] = (input).toJson(); } @@ -5532,8 +5535,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayData != null) { _json["displayData"] = displayData.map((value) => (value).toJson()).toList(); } @@ -5595,8 +5598,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (byteOffset != null) { _json["byteOffset"] = byteOffset; } @@ -5680,8 +5683,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dropLateData != null) { _json["dropLateData"] = dropLateData; } @@ -5723,8 +5726,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (source != null) { _json["source"] = (source).toJson(); } @@ -5769,8 +5772,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (currentWorkerTime != null) { _json["currentWorkerTime"] = currentWorkerTime; } @@ -5805,8 +5808,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (workItemServiceStates != null) { _json["workItemServiceStates"] = workItemServiceStates.map((value) => (value).toJson()).toList(); } @@ -5842,8 +5845,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (isInfinite != null) { _json["isInfinite"] = isInfinite; } @@ -5871,8 +5874,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cpuTime != null) { _json["cpuTime"] = cpuTime.map((value) => (value).toJson()).toList(); } @@ -5888,8 +5891,8 @@ ResourceUtilizationReportResponse.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -5948,8 +5951,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bypassTempDirValidation != null) { _json["bypassTempDirValidation"] = bypassTempDirValidation; } @@ -6000,8 +6003,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (componentId != null) { _json["componentId"] = componentId; } @@ -6029,8 +6032,8 @@ SendDebugCaptureResponse.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -6053,8 +6056,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (location != null) { _json["location"] = location; } @@ -6078,8 +6081,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (workerMessageResponses != null) { _json["workerMessageResponses"] = workerMessageResponses.map((value) => (value).toJson()).toList(); } @@ -6136,8 +6139,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (inputs != null) { _json["inputs"] = inputs.map((value) => (value).toJson()).toList(); } @@ -6178,8 +6181,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (sink != null) { _json["sink"] = (sink).toJson(); } @@ -6208,8 +6211,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (command != null) { _json["command"] = command; } @@ -6256,8 +6259,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -6299,8 +6302,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (codec != null) { _json["codec"] = codec; } @@ -6392,8 +6395,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (baseSpecs != null) { _json["baseSpecs"] = baseSpecs; } @@ -6441,8 +6444,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (primary != null) { _json["primary"] = (primary).toJson(); } @@ -6472,8 +6475,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (source != null) { _json["source"] = (source).toJson(); } @@ -6494,8 +6497,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metadata != null) { _json["metadata"] = (metadata).toJson(); } @@ -6539,8 +6542,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (estimatedSizeBytes != null) { _json["estimatedSizeBytes"] = estimatedSizeBytes; } @@ -6575,8 +6578,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (getMetadata != null) { _json["getMetadata"] = (getMetadata).toJson(); } @@ -6609,8 +6612,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (getMetadata != null) { _json["getMetadata"] = (getMetadata).toJson(); } @@ -6645,8 +6648,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (desiredBundleSizeBytes != null) { _json["desiredBundleSizeBytes"] = desiredBundleSizeBytes; } @@ -6690,8 +6693,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (options != null) { _json["options"] = (options).toJson(); } @@ -6742,8 +6745,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bundles != null) { _json["bundles"] = bundles.map((value) => (value).toJson()).toList(); } @@ -6786,8 +6789,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (derivationMode != null) { _json["derivationMode"] = derivationMode; } @@ -6819,8 +6822,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (highBits != null) { _json["highBits"] = highBits; } @@ -6862,8 +6865,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -6898,8 +6901,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (isRead != null) { _json["isRead"] = isRead; } @@ -6998,8 +7001,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -7072,8 +7075,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -7121,8 +7124,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (customSourceLocation != null) { _json["customSourceLocation"] = (customSourceLocation).toJson(); } @@ -7167,8 +7170,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (computationId != null) { _json["computationId"] = computationId; } @@ -7206,8 +7209,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (computationId != null) { _json["computationId"] = computationId; } @@ -7253,8 +7256,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (computationRanges != null) { _json["computationRanges"] = computationRanges.map((value) => (value).toJson()).toList(); } @@ -7306,8 +7309,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (streamingComputationConfigs != null) { _json["streamingComputationConfigs"] = streamingComputationConfigs.map((value) => (value).toJson()).toList(); } @@ -7358,8 +7361,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (drain != null) { _json["drain"] = drain; } @@ -7396,8 +7399,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (stateFamily != null) { _json["stateFamily"] = stateFamily; } @@ -7427,8 +7430,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (streamId != null) { _json["streamId"] = streamId; } @@ -7449,8 +7452,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (elements != null) { _json["elements"] = elements; } @@ -7488,8 +7491,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (messageKey != null) { _json["messageKey"] = messageKey; } @@ -7646,8 +7649,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alsologtostderr != null) { _json["alsologtostderr"] = alsologtostderr; } @@ -7711,13 +7714,6 @@ /** Metadata describing a template. */ class TemplateMetadata { - /** - * If true, will bypass the validation that the temp directory is - * writable. This should only be used with templates for pipelines - * that are guaranteed not to need to write to the temp directory, - * which is subject to change based on the optimizer. - */ - core.bool bypassTempDirValidation; /** Optional. A description of the template. */ core.String description; /** Required. The name of the template. */ @@ -7728,9 +7724,6 @@ TemplateMetadata(); TemplateMetadata.fromJson(core.Map _json) { - if (_json.containsKey("bypassTempDirValidation")) { - bypassTempDirValidation = _json["bypassTempDirValidation"]; - } if (_json.containsKey("description")) { description = _json["description"]; } @@ -7742,11 +7735,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); - if (bypassTempDirValidation != null) { - _json["bypassTempDirValidation"] = bypassTempDirValidation; - } + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -7796,8 +7786,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (computations != null) { _json["computations"] = computations.map((value) => (value).toJson()).toList(); } @@ -7869,8 +7859,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayData != null) { _json["displayData"] = displayData.map((value) => (value).toJson()).toList(); } @@ -7982,8 +7972,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (configuration != null) { _json["configuration"] = configuration; } @@ -8104,8 +8094,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (harnessData != null) { _json["harnessData"] = harnessData; } @@ -8258,8 +8248,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (completed != null) { _json["completed"] = completed; } @@ -8349,8 +8339,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (pods != null) { _json["pods"] = pods; } @@ -8389,8 +8379,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (reportInterval != null) { _json["reportInterval"] = reportInterval; } @@ -8442,8 +8432,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (labels != null) { _json["labels"] = labels; } @@ -8526,8 +8516,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -8559,8 +8549,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (workerHealthReportResponse != null) { _json["workerHealthReportResponse"] = (workerHealthReportResponse).toJson(); } @@ -8781,8 +8771,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoscalingSettings != null) { _json["autoscalingSettings"] = (autoscalingSettings).toJson(); } @@ -8914,8 +8904,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (baseUrl != null) { _json["baseUrl"] = baseUrl; } @@ -8959,8 +8949,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (input != null) { _json["input"] = (input).toJson(); }
diff --git a/generated/googleapis_beta/lib/dataproc/v1beta1.dart b/generated/googleapis_beta/lib/dataproc/v1beta1.dart index 682d93c..a12b082 100644 --- a/generated/googleapis_beta/lib/dataproc/v1beta1.dart +++ b/generated/googleapis_beta/lib/dataproc/v1beta1.dart
@@ -179,7 +179,7 @@ * * Request parameters: * - * [name] - The name of the operation collection. + * [name] - The name of the operation's parent resource. * Value must have pattern "^operations$". * * [filter] - The standard list filter. @@ -935,8 +935,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (acceleratorCount != null) { _json["acceleratorCount"] = acceleratorCount; } @@ -955,8 +955,8 @@ CancelJobRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -969,8 +969,8 @@ CancelOperationRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1044,8 +1044,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clusterName != null) { _json["clusterName"] = clusterName; } @@ -1147,8 +1147,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (configurationBucket != null) { _json["configurationBucket"] = configurationBucket; } @@ -1192,8 +1192,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (hdfsMetrics != null) { _json["hdfsMetrics"] = hdfsMetrics; } @@ -1252,8 +1252,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clusterName != null) { _json["clusterName"] = clusterName; } @@ -1317,8 +1317,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (details != null) { _json["details"] = details; } @@ -1385,8 +1385,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (detail != null) { _json["detail"] = detail; } @@ -1419,8 +1419,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (outputUri != null) { _json["outputUri"] = outputUri; } @@ -1436,8 +1436,8 @@ DiagnoseClusterRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1458,8 +1458,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (outputUri != null) { _json["outputUri"] = outputUri; } @@ -1491,8 +1491,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bootDiskSizeGb != null) { _json["bootDiskSizeGb"] = bootDiskSizeGb; } @@ -1519,8 +1519,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1619,8 +1619,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (internalIpOnly != null) { _json["internalIpOnly"] = internalIpOnly; } @@ -1725,8 +1725,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (archiveUris != null) { _json["archiveUris"] = archiveUris; } @@ -1808,8 +1808,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (continueOnFailure != null) { _json["continueOnFailure"] = continueOnFailure; } @@ -1903,8 +1903,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (accelerators != null) { _json["accelerators"] = accelerators.map((value) => (value).toJson()).toList(); } @@ -2066,8 +2066,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (driverControlFilesUri != null) { _json["driverControlFilesUri"] = driverControlFilesUri; } @@ -2147,8 +2147,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clusterName != null) { _json["clusterName"] = clusterName; } @@ -2186,8 +2186,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (jobId != null) { _json["jobId"] = jobId; } @@ -2219,8 +2219,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (maxFailuresPerHour != null) { _json["maxFailuresPerHour"] = maxFailuresPerHour; } @@ -2289,8 +2289,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (details != null) { _json["details"] = details; } @@ -2325,8 +2325,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clusters != null) { _json["clusters"] = clusters.map((value) => (value).toJson()).toList(); } @@ -2359,8 +2359,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (jobs != null) { _json["jobs"] = jobs.map((value) => (value).toJson()).toList(); } @@ -2389,8 +2389,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -2418,8 +2418,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (driverLogLevels != null) { _json["driverLogLevels"] = driverLogLevels; } @@ -2448,8 +2448,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instanceGroupManagerName != null) { _json["instanceGroupManagerName"] = instanceGroupManagerName; } @@ -2486,8 +2486,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (executableFile != null) { _json["executableFile"] = executableFile; } @@ -2561,8 +2561,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (done != null) { _json["done"] = done; } @@ -2625,8 +2625,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clusterName != null) { _json["clusterName"] = clusterName; } @@ -2687,8 +2687,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (details != null) { _json["details"] = details; } @@ -2763,8 +2763,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (continueOnFailure != null) { _json["continueOnFailure"] = continueOnFailure; } @@ -2862,8 +2862,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (archiveUris != null) { _json["archiveUris"] = archiveUris; } @@ -2919,8 +2919,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (queries != null) { _json["queries"] = queries; } @@ -2958,8 +2958,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (imageVersion != null) { _json["imageVersion"] = imageVersion; } @@ -3043,8 +3043,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (archiveUris != null) { _json["archiveUris"] = archiveUris; } @@ -3118,8 +3118,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (jarFileUris != null) { _json["jarFileUris"] = jarFileUris; } @@ -3210,8 +3210,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -3238,8 +3238,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (job != null) { _json["job"] = (job).toJson(); } @@ -3295,8 +3295,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; }
diff --git a/generated/googleapis_beta/lib/dlp/v2beta1.dart b/generated/googleapis_beta/lib/dlp/v2beta1.dart index b0596dd..b689e05 100644 --- a/generated/googleapis_beta/lib/dlp/v2beta1.dart +++ b/generated/googleapis_beta/lib/dlp/v2beta1.dart
@@ -312,22 +312,27 @@ * Lists operations that match the specified filter in the request. If the * server doesn't support this method, it returns `UNIMPLEMENTED`. * - * NOTE: the `name` binding below allows API services to override the binding - * to use different resource name schemes, such as `users / * /operations`. + * NOTE: the `name` binding allows API services to override the binding + * to use different resource name schemes, such as `users / * /operations`. To + * override the binding, API services can add a binding such as + * `"/v1/{name=users / * }/operations"` to their service configuration. + * For backwards compatibility, the default name includes the operations + * collection id, however overriding users must ensure the name binding + * is the parent resource, without the operations collection id. * * Request parameters: * - * [name] - The name of the operation collection. + * [name] - The name of the operation's parent resource. * Value must have pattern "^inspect/operations$". * + * [pageSize] - The list page size. The max allowed value is 256 and default + * is 100. + * * [filter] - This parameter supports filtering by done, ie done=true or * done=false. * * [pageToken] - The list page token. * - * [pageSize] - The list page size. The max allowed value is 256 and default - * is 100. - * * Completes with a [ListOperationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -336,7 +341,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListOperationsResponse> list(core.String name, {core.String filter, core.String pageToken, core.int pageSize}) { + async.Future<ListOperationsResponse> list(core.String name, {core.int pageSize, core.String filter, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -347,15 +352,15 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if (filter != null) { _queryParams["filter"] = [filter]; } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name'); @@ -578,8 +583,8 @@ CancelOperationRequest.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -602,8 +607,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -632,8 +637,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filePath != null) { _json["filePath"] = filePath; } @@ -659,8 +664,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fileSet != null) { _json["fileSet"] = (fileSet).toJson(); } @@ -681,8 +686,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (path != null) { _json["path"] = path; } @@ -724,8 +729,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (data != null) { _json["data"] = data; } @@ -780,8 +785,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (inspectConfig != null) { _json["inspectConfig"] = (inspectConfig).toJson(); } @@ -808,8 +813,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entityKey != null) { _json["entityKey"] = (entityKey).toJson(); } @@ -846,8 +851,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = (kind).toJson(); } @@ -879,8 +884,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -898,8 +903,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columnName != null) { _json["columnName"] = columnName; } @@ -923,8 +928,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (url != null) { _json["url"] = url; } @@ -977,8 +982,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createTime != null) { _json["createTime"] = createTime; } @@ -1026,8 +1031,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (height != null) { _json["height"] = height; } @@ -1046,7 +1051,12 @@ /** Type of information detected by the API. */ class InfoType { - /** Name of the information type, provided by the API call ListInfoTypes. */ + /** + * Name of the information type. For built-in info types, this is provided by + * the API call ListInfoTypes. For user-defined info types, this is + * provided by the user. All user-defined info types must have unique names, + * and cannot conflict with built-in info type names. + */ core.String name; InfoType(); @@ -1057,8 +1067,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -1089,8 +1099,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (categories != null) { _json["categories"] = categories.map((value) => (value).toJson()).toList(); } @@ -1158,8 +1168,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (excludeTypes != null) { _json["excludeTypes"] = excludeTypes; } @@ -1201,8 +1211,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (inspectConfig != null) { _json["inspectConfig"] = (inspectConfig).toJson(); } @@ -1229,8 +1239,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (results != null) { _json["results"] = results.map((value) => (value).toJson()).toList(); } @@ -1263,8 +1273,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (findings != null) { _json["findings"] = findings.map((value) => (value).toJson()).toList(); } @@ -1312,8 +1322,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (partitionId != null) { _json["partitionId"] = (partitionId).toJson(); } @@ -1337,8 +1347,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -1359,8 +1369,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (infoTypes != null) { _json["infoTypes"] = infoTypes.map((value) => (value).toJson()).toList(); } @@ -1389,8 +1399,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1419,8 +1429,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1444,8 +1454,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (categories != null) { _json["categories"] = categories.map((value) => (value).toJson()).toList(); } @@ -1489,8 +1499,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (byteRange != null) { _json["byteRange"] = (byteRange).toJson(); } @@ -1524,7 +1534,7 @@ /** The error result of the operation in case of failure or cancellation. */ Status error; /** - * This field will contain an `InspectOperationMetdata` object. + * This field will contain an `InspectOperationMetadata` object. * * The values for Object must be JSON objects. It can consist of `num`, * `String`, `bool` and `null` as well as `Map` and `List` values. @@ -1563,8 +1573,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (done != null) { _json["done"] = done; } @@ -1597,8 +1607,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (storagePath != null) { _json["storagePath"] = (storagePath).toJson(); } @@ -1631,8 +1641,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (namespaceId != null) { _json["namespaceId"] = namespaceId; } @@ -1685,8 +1695,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -1713,8 +1723,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (property != null) { _json["property"] = (property).toJson(); } @@ -1738,8 +1748,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -1765,8 +1775,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (end != null) { _json["end"] = end; } @@ -1793,8 +1803,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cloudStorageKey != null) { _json["cloudStorageKey"] = (cloudStorageKey).toJson(); } @@ -1831,8 +1841,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (inspectConfig != null) { _json["inspectConfig"] = (inspectConfig).toJson(); } @@ -1859,8 +1869,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -1890,8 +1900,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (infoType != null) { _json["infoType"] = (infoType).toJson(); } @@ -1990,8 +2000,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -2023,8 +2033,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cloudStorageOptions != null) { _json["cloudStorageOptions"] = (cloudStorageOptions).toJson(); }
diff --git a/generated/googleapis_beta/lib/dns/v2beta1.dart b/generated/googleapis_beta/lib/dns/v2beta1.dart index 76014df..c469dca 100644 --- a/generated/googleapis_beta/lib/dns/v2beta1.dart +++ b/generated/googleapis_beta/lib/dns/v2beta1.dart
@@ -1027,8 +1027,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (additions != null) { _json["additions"] = additions.map((value) => (value).toJson()).toList(); } @@ -1095,8 +1095,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (changes != null) { _json["changes"] = changes.map((value) => (value).toJson()).toList(); } @@ -1220,8 +1220,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (algorithm != null) { _json["algorithm"] = algorithm; } @@ -1285,8 +1285,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (digest != null) { _json["digest"] = digest; } @@ -1348,8 +1348,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (algorithm != null) { _json["algorithm"] = algorithm; } @@ -1404,8 +1404,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dnsKeys != null) { _json["dnsKeys"] = dnsKeys.map((value) => (value).toJson()).toList(); } @@ -1501,8 +1501,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTime != null) { _json["creationTime"] = creationTime; } @@ -1579,8 +1579,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (defaultKeySpecs != null) { _json["defaultKeySpecs"] = defaultKeySpecs.map((value) => (value).toJson()).toList(); } @@ -1634,8 +1634,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (header != null) { _json["header"] = (header).toJson(); } @@ -1663,8 +1663,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (header != null) { _json["header"] = (header).toJson(); } @@ -1709,8 +1709,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (header != null) { _json["header"] = (header).toJson(); } @@ -1804,8 +1804,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dnsKeyContext != null) { _json["dnsKeyContext"] = (dnsKeyContext).toJson(); } @@ -1851,8 +1851,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (newValue != null) { _json["newValue"] = (newValue).toJson(); } @@ -1880,8 +1880,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (newValue != null) { _json["newValue"] = (newValue).toJson(); } @@ -1930,8 +1930,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -2012,8 +2012,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dnsKeysPerManagedZone != null) { _json["dnsKeysPerManagedZone"] = dnsKeysPerManagedZone; } @@ -2091,8 +2091,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2152,8 +2152,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (header != null) { _json["header"] = (header).toJson(); } @@ -2187,8 +2187,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (operationId != null) { _json["operationId"] = operationId; }
diff --git a/generated/googleapis_beta/lib/language/v1beta1.dart b/generated/googleapis_beta/lib/language/v1beta1.dart index 35ec32c..2d29e4c 100644 --- a/generated/googleapis_beta/lib/language/v1beta1.dart +++ b/generated/googleapis_beta/lib/language/v1beta1.dart
@@ -240,8 +240,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (document != null) { _json["document"] = (document).toJson(); } @@ -274,8 +274,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entities != null) { _json["entities"] = entities.map((value) => (value).toJson()).toList(); } @@ -323,8 +323,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (document != null) { _json["document"] = (document).toJson(); } @@ -362,8 +362,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (documentSentiment != null) { _json["documentSentiment"] = (documentSentiment).toJson(); } @@ -413,8 +413,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (document != null) { _json["document"] = (document).toJson(); } @@ -452,8 +452,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (language != null) { _json["language"] = language; } @@ -511,8 +511,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (document != null) { _json["document"] = (document).toJson(); } @@ -577,8 +577,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (documentSentiment != null) { _json["documentSentiment"] = (documentSentiment).toJson(); } @@ -703,8 +703,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (headTokenIndex != null) { _json["headTokenIndex"] = headTokenIndex; } @@ -768,8 +768,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (content != null) { _json["content"] = content; } @@ -849,8 +849,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (mentions != null) { _json["mentions"] = mentions.map((value) => (value).toJson()).toList(); } @@ -897,8 +897,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (text != null) { _json["text"] = (text).toJson(); } @@ -935,8 +935,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (extractDocumentSentiment != null) { _json["extractDocumentSentiment"] = extractDocumentSentiment; } @@ -1148,8 +1148,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aspect != null) { _json["aspect"] = aspect; } @@ -1212,8 +1212,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (sentiment != null) { _json["sentiment"] = (sentiment).toJson(); } @@ -1261,8 +1261,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (magnitude != null) { _json["magnitude"] = magnitude; } @@ -1364,8 +1364,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -1400,8 +1400,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (beginOffset != null) { _json["beginOffset"] = beginOffset; } @@ -1442,8 +1442,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dependencyEdge != null) { _json["dependencyEdge"] = (dependencyEdge).toJson(); }
diff --git a/generated/googleapis_beta/lib/language/v1beta2.dart b/generated/googleapis_beta/lib/language/v1beta2.dart index 234c062..0c0ecfa 100644 --- a/generated/googleapis_beta/lib/language/v1beta2.dart +++ b/generated/googleapis_beta/lib/language/v1beta2.dart
@@ -280,8 +280,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (document != null) { _json["document"] = (document).toJson(); } @@ -314,8 +314,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entities != null) { _json["entities"] = entities.map((value) => (value).toJson()).toList(); } @@ -362,8 +362,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (document != null) { _json["document"] = (document).toJson(); } @@ -398,8 +398,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entities != null) { _json["entities"] = entities.map((value) => (value).toJson()).toList(); } @@ -447,8 +447,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (document != null) { _json["document"] = (document).toJson(); } @@ -486,8 +486,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (documentSentiment != null) { _json["documentSentiment"] = (documentSentiment).toJson(); } @@ -537,8 +537,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (document != null) { _json["document"] = (document).toJson(); } @@ -576,8 +576,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (language != null) { _json["language"] = language; } @@ -635,8 +635,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (document != null) { _json["document"] = (document).toJson(); } @@ -701,8 +701,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (documentSentiment != null) { _json["documentSentiment"] = (documentSentiment).toJson(); } @@ -827,8 +827,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (headTokenIndex != null) { _json["headTokenIndex"] = headTokenIndex; } @@ -892,8 +892,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (content != null) { _json["content"] = content; } @@ -983,8 +983,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (mentions != null) { _json["mentions"] = mentions.map((value) => (value).toJson()).toList(); } @@ -1044,8 +1044,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (sentiment != null) { _json["sentiment"] = (sentiment).toJson(); } @@ -1090,8 +1090,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (extractDocumentSentiment != null) { _json["extractDocumentSentiment"] = extractDocumentSentiment; } @@ -1306,8 +1306,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (aspect != null) { _json["aspect"] = aspect; } @@ -1370,8 +1370,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (sentiment != null) { _json["sentiment"] = (sentiment).toJson(); } @@ -1410,8 +1410,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (magnitude != null) { _json["magnitude"] = magnitude; } @@ -1510,8 +1510,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -1546,8 +1546,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (beginOffset != null) { _json["beginOffset"] = beginOffset; } @@ -1588,8 +1588,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (dependencyEdge != null) { _json["dependencyEdge"] = (dependencyEdge).toJson(); }
diff --git a/generated/googleapis_beta/lib/logging/v2beta1.dart b/generated/googleapis_beta/lib/logging/v2beta1.dart index 711ceae..7991149 100644 --- a/generated/googleapis_beta/lib/logging/v2beta1.dart +++ b/generated/googleapis_beta/lib/logging/v2beta1.dart
@@ -1085,7 +1085,8 @@ * there is no change to the sink's writer_identity. * If the old value is false and the new value is true, then writer_identity * is changed to a unique service account. - * It is an error if the old value is true and the new value is false. + * It is an error if the old value is true and the new value is set to false + * or defaulted to false. * * Completes with a [LogSink]. * @@ -1145,8 +1146,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1270,8 +1271,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cacheFillBytes != null) { _json["cacheFillBytes"] = cacheFillBytes; } @@ -1347,8 +1348,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -1436,8 +1437,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (filter != null) { _json["filter"] = filter; } @@ -1488,8 +1489,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -1522,8 +1523,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (metrics != null) { _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); } @@ -1559,8 +1560,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (logNames != null) { _json["logNames"] = logNames; } @@ -1593,8 +1594,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1627,8 +1628,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1796,8 +1797,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (httpRequest != null) { _json["httpRequest"] = (httpRequest).toJson(); } @@ -1886,8 +1887,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (first != null) { _json["first"] = first; } @@ -1942,8 +1943,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (file != null) { _json["file"] = file; } @@ -1999,8 +2000,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (logMessage != null) { _json["logMessage"] = logMessage; } @@ -2073,8 +2074,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -2206,8 +2207,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (destination != null) { _json["destination"] = destination; } @@ -2275,8 +2276,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (labels != null) { _json["labels"] = labels; } @@ -2351,8 +2352,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -2573,8 +2574,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (appEngineRelease != null) { _json["appEngineRelease"] = appEngineRelease; } @@ -2707,8 +2708,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (file != null) { _json["file"] = file; } @@ -2749,8 +2750,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (repository != null) { _json["repository"] = repository; } @@ -2834,8 +2835,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (entries != null) { _json["entries"] = entries.map((value) => (value).toJson()).toList(); } @@ -2863,8 +2864,8 @@ WriteLogEntriesResponse.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } }
diff --git a/generated/googleapis_beta/lib/proximitybeacon/v1beta1.dart b/generated/googleapis_beta/lib/proximitybeacon/v1beta1.dart index fa024e9..2eeb640 100644 --- a/generated/googleapis_beta/lib/proximitybeacon/v1beta1.dart +++ b/generated/googleapis_beta/lib/proximitybeacon/v1beta1.dart
@@ -923,11 +923,6 @@ * Required. * Value must have pattern "^beacons/[^/]+$". * - * [namespacedType] - Specifies the namespace and type of attachment to - * include in response in - * <var>namespace/type</var> format. Accepts `* / * ` to specify - * "all types in all namespaces". - * * [projectId] - The project id to list beacon attachments under. This field * can be * used when "*" is specified to mean all attachment namespaces. Projects @@ -936,6 +931,11 @@ * making the request is used. * Optional. * + * [namespacedType] - Specifies the namespace and type of attachment to + * include in response in + * <var>namespace/type</var> format. Accepts `* / * ` to specify + * "all types in all namespaces". + * * Completes with a [ListBeaconAttachmentsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -944,7 +944,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListBeaconAttachmentsResponse> list(core.String beaconName, {core.String namespacedType, core.String projectId}) { + async.Future<ListBeaconAttachmentsResponse> list(core.String beaconName, {core.String projectId, core.String namespacedType}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -955,12 +955,12 @@ if (beaconName == null) { throw new core.ArgumentError("Parameter beaconName is required."); } - if (namespacedType != null) { - _queryParams["namespacedType"] = [namespacedType]; - } if (projectId != null) { _queryParams["projectId"] = [projectId]; } + if (namespacedType != null) { + _queryParams["namespacedType"] = [namespacedType]; + } _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$beaconName') + '/attachments'; @@ -998,6 +998,10 @@ * [beaconName] - Beacon that the diagnostics are for. * Value must have pattern "^beacons/[^/]+$". * + * [pageToken] - Requests results that occur after the `page_token`, obtained + * from the + * response to a previous request. Optional. + * * [pageSize] - Specifies the maximum number of results to return. Defaults to * 10. Maximum 1000. Optional. * @@ -1014,10 +1018,6 @@ * then the project making the request will be used for looking up * diagnostic records. Optional. * - * [pageToken] - Requests results that occur after the `page_token`, obtained - * from the - * response to a previous request. Optional. - * * Completes with a [ListDiagnosticsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1026,7 +1026,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListDiagnosticsResponse> list(core.String beaconName, {core.int pageSize, core.String alertFilter, core.String projectId, core.String pageToken}) { + async.Future<ListDiagnosticsResponse> list(core.String beaconName, {core.String pageToken, core.int pageSize, core.String alertFilter, core.String projectId}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1037,6 +1037,9 @@ if (beaconName == null) { throw new core.ArgumentError("Parameter beaconName is required."); } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } @@ -1046,9 +1049,6 @@ if (projectId != null) { _queryParams["projectId"] = [projectId]; } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$beaconName') + '/diagnostics'; @@ -1272,8 +1272,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -1317,8 +1317,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (data != null) { _json["data"] = data; } @@ -1475,8 +1475,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (advertisedId != null) { _json["advertisedId"] = (advertisedId).toJson(); } @@ -1567,8 +1567,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attachmentName != null) { _json["attachmentName"] = attachmentName; } @@ -1614,8 +1614,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (advertisedId != null) { _json["advertisedId"] = (advertisedId).toJson(); } @@ -1666,8 +1666,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (day != null) { _json["day"] = day; } @@ -1694,8 +1694,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (numDeleted != null) { _json["numDeleted"] = numDeleted; } @@ -1733,8 +1733,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alerts != null) { _json["alerts"] = alerts; } @@ -1766,8 +1766,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1894,8 +1894,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (beaconEcdhPublicKey != null) { _json["beaconEcdhPublicKey"] = beaconEcdhPublicKey; } @@ -1964,8 +1964,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (maxRotationPeriodExponent != null) { _json["maxRotationPeriodExponent"] = maxRotationPeriodExponent; } @@ -2010,8 +2010,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (namespacedTypes != null) { _json["namespacedTypes"] = namespacedTypes; } @@ -2041,8 +2041,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (beacons != null) { _json["beacons"] = beacons.map((value) => (value).toJson()).toList(); } @@ -2066,8 +2066,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -2133,8 +2133,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (latitude != null) { _json["latitude"] = latitude; } @@ -2160,8 +2160,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attachments != null) { _json["attachments"] = attachments.map((value) => (value).toJson()).toList(); } @@ -2198,8 +2198,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (beacons != null) { _json["beacons"] = beacons.map((value) => (value).toJson()).toList(); } @@ -2234,8 +2234,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (diagnostics != null) { _json["diagnostics"] = diagnostics.map((value) => (value).toJson()).toList(); } @@ -2261,8 +2261,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (namespaces != null) { _json["namespaces"] = namespaces.map((value) => (value).toJson()).toList(); } @@ -2302,8 +2302,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (namespaceName != null) { _json["namespaceName"] = namespaceName; } @@ -2355,8 +2355,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (advertisedId != null) { _json["advertisedId"] = (advertisedId).toJson(); }
diff --git a/generated/googleapis_beta/lib/pubsub/v1beta2.dart b/generated/googleapis_beta/lib/pubsub/v1beta2.dart index b0c28eb..0b14b27 100644 --- a/generated/googleapis_beta/lib/pubsub/v1beta2.dart +++ b/generated/googleapis_beta/lib/pubsub/v1beta2.dart
@@ -294,13 +294,13 @@ * [project] - The name of the cloud project that subscriptions belong to. * Value must have pattern "^projects/[^/]+$". * - * [pageSize] - Maximum number of subscriptions to return. - * * [pageToken] - The value returned by the last `ListSubscriptionsResponse`; * indicates that * this is a continuation of a prior `ListSubscriptions` call, and that the * system should return the next page of data. * + * [pageSize] - Maximum number of subscriptions to return. + * * Completes with a [ListSubscriptionsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -309,7 +309,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListSubscriptionsResponse> list(core.String project, {core.int pageSize, core.String pageToken}) { + async.Future<ListSubscriptionsResponse> list(core.String project, {core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -320,12 +320,12 @@ if (project == null) { throw new core.ArgumentError("Parameter project is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$project') + '/subscriptions'; @@ -784,13 +784,13 @@ * [project] - The name of the cloud project that topics belong to. * Value must have pattern "^projects/[^/]+$". * - * [pageSize] - Maximum number of topics to return. - * * [pageToken] - The value returned by the last `ListTopicsResponse`; * indicates that this is * a continuation of a prior `ListTopics` call, and that the system should * return the next page of data. * + * [pageSize] - Maximum number of topics to return. + * * Completes with a [ListTopicsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -799,7 +799,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListTopicsResponse> list(core.String project, {core.int pageSize, core.String pageToken}) { + async.Future<ListTopicsResponse> list(core.String project, {core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -810,12 +810,12 @@ if (project == null) { throw new core.ArgumentError("Parameter project is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$project') + '/topics'; @@ -1059,8 +1059,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ackIds != null) { _json["ackIds"] = ackIds; } @@ -1112,8 +1112,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (members != null) { _json["members"] = members; } @@ -1142,8 +1142,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1170,8 +1170,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1204,8 +1204,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1237,8 +1237,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1281,8 +1281,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ackDeadlineSeconds != null) { _json["ackDeadlineSeconds"] = ackDeadlineSeconds; } @@ -1316,8 +1316,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (pushConfig != null) { _json["pushConfig"] = (pushConfig).toJson(); } @@ -1402,8 +1402,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bindings != null) { _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); } @@ -1430,8 +1430,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (messages != null) { _json["messages"] = messages.map((value) => (value).toJson()).toList(); } @@ -1456,8 +1456,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (messageIds != null) { _json["messageIds"] = messageIds; } @@ -1515,8 +1515,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attributes != null) { _json["attributes"] = attributes; } @@ -1560,8 +1560,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (maxMessages != null) { _json["maxMessages"] = maxMessages; } @@ -1590,8 +1590,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (receivedMessages != null) { _json["receivedMessages"] = receivedMessages.map((value) => (value).toJson()).toList(); } @@ -1643,8 +1643,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (attributes != null) { _json["attributes"] = attributes; } @@ -1673,8 +1673,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ackId != null) { _json["ackId"] = ackId; } @@ -1703,8 +1703,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (policy != null) { _json["policy"] = (policy).toJson(); } @@ -1774,8 +1774,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ackDeadlineSeconds != null) { _json["ackDeadlineSeconds"] = ackDeadlineSeconds; } @@ -1810,8 +1810,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; } @@ -1835,8 +1835,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; } @@ -1864,8 +1864,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; }
diff --git a/generated/googleapis_beta/lib/replicapool/v1beta2.dart b/generated/googleapis_beta/lib/replicapool/v1beta2.dart index 1095c74..1b914d0 100644 --- a/generated/googleapis_beta/lib/replicapool/v1beta2.dart +++ b/generated/googleapis_beta/lib/replicapool/v1beta2.dart
@@ -899,8 +899,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoHealingPolicies != null) { _json["autoHealingPolicies"] = autoHealingPolicies.map((value) => (value).toJson()).toList(); } @@ -981,8 +981,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -1017,8 +1017,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instances != null) { _json["instances"] = instances; } @@ -1042,8 +1042,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instances != null) { _json["instances"] = instances; } @@ -1066,8 +1066,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instances != null) { _json["instances"] = instances; } @@ -1090,8 +1090,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (instanceTemplate != null) { _json["instanceTemplate"] = instanceTemplate; } @@ -1131,8 +1131,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fingerprint != null) { _json["fingerprint"] = fingerprint; } @@ -1168,8 +1168,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -1202,8 +1202,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errors != null) { _json["errors"] = errors.map((value) => (value).toJson()).toList(); } @@ -1228,8 +1228,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -1278,8 +1278,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -1465,8 +1465,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientOperationId != null) { _json["clientOperationId"] = clientOperationId; } @@ -1571,8 +1571,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -1618,8 +1618,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (actionType != null) { _json["actionType"] = actionType; }
diff --git a/generated/googleapis_beta/lib/replicapoolupdater/v1beta1.dart b/generated/googleapis_beta/lib/replicapoolupdater/v1beta1.dart index c20a44a..d92eae6 100644 --- a/generated/googleapis_beta/lib/replicapoolupdater/v1beta1.dart +++ b/generated/googleapis_beta/lib/replicapoolupdater/v1beta1.dart
@@ -647,8 +647,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -678,8 +678,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errors != null) { _json["errors"] = errors.map((value) => (value).toJson()).toList(); } @@ -722,8 +722,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (error != null) { _json["error"] = (error).toJson(); } @@ -765,8 +765,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -808,8 +808,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -842,8 +842,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errors != null) { _json["errors"] = errors.map((value) => (value).toJson()).toList(); } @@ -868,8 +868,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -902,8 +902,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -1050,8 +1050,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientOperationId != null) { _json["clientOperationId"] = clientOperationId; } @@ -1160,8 +1160,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -1206,8 +1206,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -1237,8 +1237,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errors != null) { _json["errors"] = errors.map((value) => (value).toJson()).toList(); } @@ -1301,8 +1301,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (autoPauseAfterInstances != null) { _json["autoPauseAfterInstances"] = autoPauseAfterInstances; } @@ -1455,8 +1455,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (actionType != null) { _json["actionType"] = actionType; } @@ -1537,8 +1537,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); }
diff --git a/generated/googleapis_beta/lib/resourceviews/v1beta1.dart b/generated/googleapis_beta/lib/resourceviews/v1beta1.dart index 37ac6e6..2812212 100644 --- a/generated/googleapis_beta/lib/resourceviews/v1beta1.dart +++ b/generated/googleapis_beta/lib/resourceviews/v1beta1.dart
@@ -843,8 +843,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -868,8 +868,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resources != null) { _json["resources"] = resources; } @@ -890,8 +890,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resource != null) { _json["resource"] = (resource).toJson(); } @@ -917,8 +917,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (members != null) { _json["members"] = members; } @@ -947,8 +947,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -972,8 +972,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resources != null) { _json["resources"] = resources; } @@ -1039,8 +1039,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTime != null) { _json["creationTime"] = creationTime; } @@ -1088,8 +1088,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resources != null) { _json["resources"] = resources; } @@ -1110,8 +1110,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resource != null) { _json["resource"] = (resource).toJson(); } @@ -1137,8 +1137,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (members != null) { _json["members"] = members; } @@ -1167,8 +1167,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1192,8 +1192,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resources != null) { _json["resources"] = resources; }
diff --git a/generated/googleapis_beta/lib/resourceviews/v1beta2.dart b/generated/googleapis_beta/lib/resourceviews/v1beta2.dart index ed919d5..a9d1707 100644 --- a/generated/googleapis_beta/lib/resourceviews/v1beta2.dart +++ b/generated/googleapis_beta/lib/resourceviews/v1beta2.dart
@@ -722,8 +722,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -754,8 +754,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endpoints != null) { _json["endpoints"] = endpoints; } @@ -791,8 +791,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -825,8 +825,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errors != null) { _json["errors"] = errors.map((value) => (value).toJson()).toList(); } @@ -851,8 +851,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -885,8 +885,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -1066,8 +1066,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientOperationId != null) { _json["clientOperationId"] = clientOperationId; } @@ -1172,8 +1172,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (id != null) { _json["id"] = id; } @@ -1264,8 +1264,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTimestamp != null) { _json["creationTimestamp"] = creationTimestamp; } @@ -1324,8 +1324,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -1349,8 +1349,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resources != null) { _json["resources"] = resources; } @@ -1375,8 +1375,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endpoints != null) { _json["endpoints"] = endpoints.map((value) => (value).toJson()).toList(); } @@ -1415,8 +1415,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -1459,8 +1459,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -1487,8 +1487,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (resources != null) { _json["resources"] = resources; } @@ -1524,8 +1524,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endpoints != null) { _json["endpoints"] = endpoints.map((value) => (value).toJson()).toList(); }
diff --git a/generated/googleapis_beta/lib/runtimeconfig/v1beta1.dart b/generated/googleapis_beta/lib/runtimeconfig/v1beta1.dart index 3e8da67..70b2e5e 100644 --- a/generated/googleapis_beta/lib/runtimeconfig/v1beta1.dart +++ b/generated/googleapis_beta/lib/runtimeconfig/v1beta1.dart
@@ -1271,6 +1271,7 @@ * * `group:{emailid}`: An email address that represents a Google group. * For example, `admins@example.com`. * + * * * `domain:{domain}`: A Google Apps domain name that represents all the * users of that domain. For example, `google.com` or `example.com`. */ @@ -1293,8 +1294,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (members != null) { _json["members"] = members; } @@ -1341,8 +1342,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (number != null) { _json["number"] = number; } @@ -1371,8 +1372,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -1390,8 +1391,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cardinality != null) { _json["cardinality"] = (cardinality).toJson(); } @@ -1429,8 +1430,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (configs != null) { _json["configs"] = configs.map((value) => (value).toJson()).toList(); } @@ -1468,8 +1469,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1507,8 +1508,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -1583,8 +1584,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (done != null) { _json["done"] = done; } @@ -1681,8 +1682,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (bindings != null) { _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); } @@ -1730,8 +1731,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -1760,8 +1761,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (policy != null) { _json["policy"] = (policy).toJson(); } @@ -1789,7 +1790,7 @@ * error message is needed, put the localized message in the error details or * localize it in the client. The optional error details may contain arbitrary * information about the error. There is a predefined set of error detail types - * in the package `google.rpc` which can be used for common error conditions. + * in the package `google.rpc` that can be used for common error conditions. * * # Language mapping * @@ -1812,7 +1813,7 @@ * errors. * * - Workflow errors. A typical workflow has multiple steps. Each step may - * have a `Status` message for error reporting purpose. + * have a `Status` message for error reporting. * * - Batch operations. If a client uses batch request and batch response, the * `Status` message should be used directly inside batch response, one for @@ -1857,8 +1858,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -1890,8 +1891,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; } @@ -1915,8 +1916,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (permissions != null) { _json["permissions"] = permissions; } @@ -2006,8 +2007,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -2129,8 +2130,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (createTime != null) { _json["createTime"] = createTime; } @@ -2176,8 +2177,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (newerThan != null) { _json["newerThan"] = newerThan; }
diff --git a/generated/googleapis_beta/lib/speech/v1beta1.dart b/generated/googleapis_beta/lib/speech/v1beta1.dart index e01321f..6d52e06 100644 --- a/generated/googleapis_beta/lib/speech/v1beta1.dart +++ b/generated/googleapis_beta/lib/speech/v1beta1.dart
@@ -174,19 +174,24 @@ * Lists operations that match the specified filter in the request. If the * server doesn't support this method, it returns `UNIMPLEMENTED`. * - * NOTE: the `name` binding below allows API services to override the binding - * to use different resource name schemes, such as `users / * /operations`. + * NOTE: the `name` binding allows API services to override the binding + * to use different resource name schemes, such as `users / * /operations`. To + * override the binding, API services can add a binding such as + * `"/v1/{name=users / * }/operations"` to their service configuration. + * For backwards compatibility, the default name includes the operations + * collection id, however overriding users must ensure the name binding + * is the parent resource, without the operations collection id. * * Request parameters: * - * [name] - The name of the operation collection. + * [filter] - The standard list filter. + * + * [name] - The name of the operation's parent resource. * * [pageToken] - The standard list page token. * * [pageSize] - The standard list page size. * - * [filter] - The standard list filter. - * * Completes with a [ListOperationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -195,7 +200,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListOperationsResponse> list({core.String name, core.String pageToken, core.int pageSize, core.String filter}) { + async.Future<ListOperationsResponse> list({core.String filter, core.String name, core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -203,6 +208,9 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (filter != null) { + _queryParams["filter"] = [filter]; + } if (name != null) { _queryParams["name"] = [name]; } @@ -212,9 +220,6 @@ if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } - if (filter != null) { - _queryParams["filter"] = [filter]; - } _url = 'v1beta1/operations'; @@ -348,8 +353,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (audio != null) { _json["audio"] = (audio).toJson(); } @@ -378,8 +383,8 @@ Empty.fromJson(core.Map _json) { } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); return _json; } } @@ -402,8 +407,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -478,8 +483,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (done != null) { _json["done"] = done; } @@ -540,8 +545,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (content != null) { _json["content"] = content; } @@ -641,8 +646,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (encoding != null) { _json["encoding"] = encoding; } @@ -688,8 +693,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (phrases != null) { _json["phrases"] = phrases; } @@ -725,8 +730,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (confidence != null) { _json["confidence"] = confidence; } @@ -753,8 +758,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (alternatives != null) { _json["alternatives"] = alternatives.map((value) => (value).toJson()).toList(); } @@ -850,8 +855,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -886,8 +891,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (audio != null) { _json["audio"] = (audio).toJson(); } @@ -918,8 +923,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (results != null) { _json["results"] = results.map((value) => (value).toJson()).toList(); }
diff --git a/generated/googleapis_beta/lib/sqladmin/v1beta3.dart b/generated/googleapis_beta/lib/sqladmin/v1beta3.dart index 38ef12f..1ca1d22 100644 --- a/generated/googleapis_beta/lib/sqladmin/v1beta3.dart +++ b/generated/googleapis_beta/lib/sqladmin/v1beta3.dart
@@ -1304,8 +1304,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (binaryLogEnabled != null) { _json["binaryLogEnabled"] = binaryLogEnabled; } @@ -1393,8 +1393,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (backupConfiguration != null) { _json["backupConfiguration"] = backupConfiguration; } @@ -1454,8 +1454,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -1492,8 +1492,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (binLogFileName != null) { _json["binLogFileName"] = binLogFileName; } @@ -1539,8 +1539,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (binLogCoordinates != null) { _json["binLogCoordinates"] = (binLogCoordinates).toJson(); } @@ -1584,8 +1584,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -1720,8 +1720,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (connectionName != null) { _json["connectionName"] = connectionName; } @@ -1819,8 +1819,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (database != null) { _json["database"] = database; } @@ -1890,8 +1890,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allowedStringValues != null) { _json["allowedStringValues"] = allowedStringValues; } @@ -1935,8 +1935,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -1978,8 +1978,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (database != null) { _json["database"] = database; } @@ -2088,8 +2088,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = (endTime).toIso8601String(); } @@ -2143,8 +2143,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (setRootPasswordContext != null) { _json["setRootPasswordContext"] = (setRootPasswordContext).toJson(); } @@ -2165,8 +2165,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cloneContext != null) { _json["cloneContext"] = (cloneContext).toJson(); } @@ -2196,8 +2196,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2230,8 +2230,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2255,8 +2255,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (exportContext != null) { _json["exportContext"] = (exportContext).toJson(); } @@ -2286,8 +2286,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2311,8 +2311,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (importContext != null) { _json["importContext"] = (importContext).toJson(); } @@ -2342,8 +2342,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2376,8 +2376,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2414,8 +2414,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -2451,8 +2451,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2487,8 +2487,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2521,8 +2521,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2555,8 +2555,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2589,8 +2589,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2622,8 +2622,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2669,8 +2669,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (authorizedNetworks != null) { _json["authorizedNetworks"] = authorizedNetworks; } @@ -2709,8 +2709,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ipAddress != null) { _json["ipAddress"] = ipAddress; } @@ -2755,8 +2755,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (followGaeApplication != null) { _json["followGaeApplication"] = followGaeApplication; } @@ -2788,8 +2788,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -2826,8 +2826,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -2859,8 +2859,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -2969,8 +2969,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (activationPolicy != null) { _json["activationPolicy"] = activationPolicy; } @@ -3059,8 +3059,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cert != null) { _json["cert"] = cert; } @@ -3110,8 +3110,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (certInfo != null) { _json["certInfo"] = (certInfo).toJson(); } @@ -3144,8 +3144,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -3173,8 +3173,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (commonName != null) { _json["commonName"] = commonName; } @@ -3212,8 +3212,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientCert != null) { _json["clientCert"] = (clientCert).toJson(); } @@ -3245,8 +3245,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -3293,8 +3293,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (DiskQuota != null) { _json["DiskQuota"] = DiskQuota; } @@ -3332,8 +3332,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); }
diff --git a/generated/googleapis_beta/lib/sqladmin/v1beta4.dart b/generated/googleapis_beta/lib/sqladmin/v1beta4.dart index 4a5bb72..fb7d795 100644 --- a/generated/googleapis_beta/lib/sqladmin/v1beta4.dart +++ b/generated/googleapis_beta/lib/sqladmin/v1beta4.dart
@@ -969,7 +969,8 @@ * [project] - Project ID of the project for which to list Cloud SQL * instances. * - * [filter] - Reserved for future use. + * [filter] - An expression for filtering the results of the request, such as + * by name or label. * * [maxResults] - The maximum number of results to return per response. * @@ -2115,8 +2116,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (expirationTime != null) { _json["expirationTime"] = (expirationTime).toIso8601String(); } @@ -2167,8 +2168,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (binaryLogEnabled != null) { _json["binaryLogEnabled"] = binaryLogEnabled; } @@ -2271,8 +2272,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -2341,8 +2342,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -2379,8 +2380,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (binLogFileName != null) { _json["binLogFileName"] = binLogFileName; } @@ -2421,8 +2422,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (binLogCoordinates != null) { _json["binLogCoordinates"] = (binLogCoordinates).toJson(); } @@ -2492,8 +2493,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (charset != null) { _json["charset"] = charset; } @@ -2549,8 +2550,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (name != null) { _json["name"] = name; } @@ -2591,8 +2592,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (available != null) { _json["available"] = available; } @@ -2787,8 +2788,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (backendType != null) { _json["backendType"] = backendType; } @@ -2883,8 +2884,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -2908,8 +2909,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (selectQuery != null) { _json["selectQuery"] = selectQuery; } @@ -2938,8 +2939,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (schemaOnly != null) { _json["schemaOnly"] = schemaOnly; } @@ -3003,8 +3004,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (csvExportOptions != null) { _json["csvExportOptions"] = (csvExportOptions).toJson(); } @@ -3048,8 +3049,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -3121,8 +3122,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (allowedStringValues != null) { _json["allowedStringValues"] = allowedStringValues; } @@ -3169,8 +3170,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -3202,8 +3203,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (columns != null) { _json["columns"] = columns; } @@ -3268,8 +3269,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (csvImportOptions != null) { _json["csvImportOptions"] = (csvImportOptions).toJson(); } @@ -3305,8 +3306,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cloneContext != null) { _json["cloneContext"] = (cloneContext).toJson(); } @@ -3327,8 +3328,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (exportContext != null) { _json["exportContext"] = (exportContext).toJson(); } @@ -3349,8 +3350,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (failoverContext != null) { _json["failoverContext"] = (failoverContext).toJson(); } @@ -3371,8 +3372,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (importContext != null) { _json["importContext"] = (importContext).toJson(); } @@ -3406,8 +3407,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -3434,8 +3435,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (restoreBackupContext != null) { _json["restoreBackupContext"] = (restoreBackupContext).toJson(); } @@ -3456,8 +3457,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (truncateLogContext != null) { _json["truncateLogContext"] = (truncateLogContext).toJson(); } @@ -3495,8 +3496,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (authorizedNetworks != null) { _json["authorizedNetworks"] = authorizedNetworks.map((value) => (value).toJson()).toList(); } @@ -3541,8 +3542,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (ipAddress != null) { _json["ipAddress"] = ipAddress; } @@ -3556,36 +3557,6 @@ } } -/** Reserved for future use. */ -class Labels { - /** Reserved for future use. */ - core.String key; - /** Reserved for future use. */ - core.String value; - - Labels(); - - Labels.fromJson(core.Map _json) { - if (_json.containsKey("key")) { - key = _json["key"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (key != null) { - _json["key"] = key; - } - if (value != null) { - _json["value"] = value; - } - return _json; - } -} - /** * Preferred location. This specifies where a Cloud SQL instance should * preferably be located, either in a specific Compute Engine zone, or @@ -3620,8 +3591,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (followGaeApplication != null) { _json["followGaeApplication"] = followGaeApplication; } @@ -3665,8 +3636,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (day != null) { _json["day"] = day; } @@ -3760,8 +3731,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (caCertificate != null) { _json["caCertificate"] = caCertificate; } @@ -3817,8 +3788,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (hostPort != null) { _json["hostPort"] = hostPort; } @@ -3939,8 +3910,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTime != null) { _json["endTime"] = (endTime).toIso8601String(); } @@ -4013,8 +3984,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -4046,8 +4017,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errors != null) { _json["errors"] = errors.map((value) => (value).toJson()).toList(); } @@ -4084,8 +4055,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -4136,8 +4107,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (failoverTarget != null) { _json["failoverTarget"] = failoverTarget; } @@ -4174,8 +4145,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (backupRunId != null) { _json["backupRunId"] = backupRunId; } @@ -4245,8 +4216,6 @@ IpConfiguration ipConfiguration; /** This is always sql#settings. */ core.String kind; - /** Reserved for future use. */ - core.List<Labels> labels; /** * The location preference settings. This allows the instance to be located as * near as possible to either an App Engine app or GCE zone for better @@ -4294,6 +4263,11 @@ * information, see pricing. */ core.String tier; + /** + * User-provided labels, represented as a dictionary where each label is a + * single key value pair. + */ + core.Map<core.String, core.String> userLabels; Settings(); @@ -4331,9 +4305,6 @@ if (_json.containsKey("kind")) { kind = _json["kind"]; } - if (_json.containsKey("labels")) { - labels = _json["labels"].map((value) => new Labels.fromJson(value)).toList(); - } if (_json.containsKey("locationPreference")) { locationPreference = new LocationPreference.fromJson(_json["locationPreference"]); } @@ -4358,10 +4329,13 @@ if (_json.containsKey("tier")) { tier = _json["tier"]; } + if (_json.containsKey("userLabels")) { + userLabels = _json["userLabels"]; + } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (activationPolicy != null) { _json["activationPolicy"] = activationPolicy; } @@ -4395,9 +4369,6 @@ if (kind != null) { _json["kind"] = kind; } - if (labels != null) { - _json["labels"] = labels.map((value) => (value).toJson()).toList(); - } if (locationPreference != null) { _json["locationPreference"] = (locationPreference).toJson(); } @@ -4422,6 +4393,9 @@ if (tier != null) { _json["tier"] = tier; } + if (userLabels != null) { + _json["userLabels"] = userLabels; + } return _json; } } @@ -4485,8 +4459,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cert != null) { _json["cert"] = cert; } @@ -4539,8 +4513,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (certInfo != null) { _json["certInfo"] = (certInfo).toJson(); } @@ -4564,8 +4538,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (publicKey != null) { _json["public_key"] = publicKey; } @@ -4590,8 +4564,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (commonName != null) { _json["commonName"] = commonName; } @@ -4634,8 +4608,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (clientCert != null) { _json["clientCert"] = (clientCert).toJson(); } @@ -4670,8 +4644,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -4718,8 +4692,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (DiskQuota != null) { _json["DiskQuota"] = DiskQuota; } @@ -4757,8 +4731,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -4790,8 +4764,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (kind != null) { _json["kind"] = kind; } @@ -4859,8 +4833,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (etag != null) { _json["etag"] = etag; } @@ -4913,8 +4887,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); }
diff --git a/generated/googleapis_beta/lib/taskqueue/v1beta2.dart b/generated/googleapis_beta/lib/taskqueue/v1beta2.dart index 49a12be..9a113f2 100644 --- a/generated/googleapis_beta/lib/taskqueue/v1beta2.dart +++ b/generated/googleapis_beta/lib/taskqueue/v1beta2.dart
@@ -538,8 +538,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (enqueueTimestamp != null) { _json["enqueueTimestamp"] = enqueueTimestamp; } @@ -600,8 +600,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (adminEmails != null) { _json["adminEmails"] = adminEmails; } @@ -645,8 +645,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (leasedLastHour != null) { _json["leasedLastHour"] = leasedLastHour; } @@ -698,8 +698,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (acl != null) { _json["acl"] = (acl).toJson(); } @@ -736,8 +736,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); } @@ -765,8 +765,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (items != null) { _json["items"] = items.map((value) => (value).toJson()).toList(); }
diff --git a/generated/googleapis_beta/lib/toolresults/v1beta3.dart b/generated/googleapis_beta/lib/toolresults/v1beta3.dart index 53638b1..1583794 100644 --- a/generated/googleapis_beta/lib/toolresults/v1beta3.dart +++ b/generated/googleapis_beta/lib/toolresults/v1beta3.dart
@@ -1722,8 +1722,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (typeUrl != null) { _json["typeUrl"] = typeUrl; } @@ -1751,6 +1751,7 @@ /** * * Possible string values are: + * - "byte" * - "bytesPerSecond" * - "framesPerSecond" * - "kibibyte" @@ -1791,8 +1792,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (perfMetricType != null) { _json["perfMetricType"] = perfMetricType; } @@ -1824,8 +1825,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (perfSamples != null) { _json["perfSamples"] = perfSamples.map((value) => (value).toJson()).toList(); } @@ -1844,8 +1845,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (perfSamples != null) { _json["perfSamples"] = perfSamples.map((value) => (value).toJson()).toList(); } @@ -1877,8 +1878,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cpuProcessor != null) { _json["cpuProcessor"] = cpuProcessor; } @@ -1964,8 +1965,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nanos != null) { _json["nanos"] = nanos; } @@ -2073,8 +2074,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (completionTime != null) { _json["completionTime"] = (completionTime).toJson(); } @@ -2135,8 +2136,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (crashed != null) { _json["crashed"] = crashed; } @@ -2180,8 +2181,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (fileUri != null) { _json["fileUri"] = fileUri; } @@ -2236,8 +2237,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (displayName != null) { _json["displayName"] = displayName; } @@ -2289,8 +2290,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (error != null) { _json["error"] = (error).toJson(); } @@ -2334,8 +2335,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (abortedByUser != null) { _json["abortedByUser"] = abortedByUser; } @@ -2371,8 +2372,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (executions != null) { _json["executions"] = executions.map((value) => (value).toJson()).toList(); } @@ -2410,8 +2411,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (histories != null) { _json["histories"] = histories.map((value) => (value).toJson()).toList(); } @@ -2434,8 +2435,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (perfSampleSeries != null) { _json["perfSampleSeries"] = perfSampleSeries.map((value) => (value).toJson()).toList(); } @@ -2463,8 +2464,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -2507,8 +2508,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -2542,8 +2543,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -2571,8 +2572,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (memoryCapInKibibyte != null) { _json["memoryCapInKibibyte"] = memoryCapInKibibyte; } @@ -2654,8 +2655,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (failureDetail != null) { _json["failureDetail"] = (failureDetail).toJson(); } @@ -2693,8 +2694,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (cpuInfo != null) { _json["cpuInfo"] = (cpuInfo).toJson(); } @@ -2745,8 +2746,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (executionId != null) { _json["executionId"] = executionId; } @@ -2787,8 +2788,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (sampleTime != null) { _json["sampleTime"] = (sampleTime).toJson(); } @@ -2839,8 +2840,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (basicPerfSampleSeries != null) { _json["basicPerfSampleSeries"] = (basicPerfSampleSeries).toJson(); } @@ -2893,8 +2894,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (defaultBucket != null) { _json["defaultBucket"] = defaultBucket; } @@ -2924,8 +2925,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (xunitXmlFiles != null) { _json["xunitXmlFiles"] = xunitXmlFiles.map((value) => (value).toJson()).toList(); } @@ -2955,8 +2956,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (incompatibleAppVersion != null) { _json["incompatibleAppVersion"] = incompatibleAppVersion; } @@ -2987,8 +2988,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (exception != null) { _json["exception"] = exception; } @@ -3079,8 +3080,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; } @@ -3321,8 +3322,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (completionTime != null) { _json["completionTime"] = (completionTime).toJson(); } @@ -3384,8 +3385,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -3411,8 +3412,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (key != null) { _json["key"] = key; } @@ -3435,8 +3436,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (otherNativeCrash != null) { _json["otherNativeCrash"] = otherNativeCrash; } @@ -3477,8 +3478,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (className != null) { _json["className"] = className; } @@ -3557,8 +3558,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (testIssues != null) { _json["testIssues"] = testIssues.map((value) => (value).toJson()).toList(); } @@ -3597,8 +3598,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errorMessage != null) { _json["errorMessage"] = errorMessage; } @@ -3687,8 +3688,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (errorCount != null) { _json["errorCount"] = errorCount; } @@ -3729,8 +3730,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (testProcessDuration != null) { _json["testProcessDuration"] = (testProcessDuration).toJson(); } @@ -3793,8 +3794,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (contentType != null) { _json["contentType"] = contentType; } @@ -3909,8 +3910,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (nanos != null) { _json["nanos"] = nanos; } @@ -3983,8 +3984,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (commandLineArguments != null) { _json["commandLineArguments"] = commandLineArguments; } @@ -4022,8 +4023,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (toolExecution != null) { _json["toolExecution"] = (toolExecution).toJson(); } @@ -4049,8 +4050,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (number != null) { _json["number"] = number; } @@ -4095,8 +4096,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (creationTime != null) { _json["creationTime"] = (creationTime).toJson(); }
diff --git a/generated/googleapis_beta/lib/videointelligence/v1beta1.dart b/generated/googleapis_beta/lib/videointelligence/v1beta1.dart index abd84c8..003d8ec 100644 --- a/generated/googleapis_beta/lib/videointelligence/v1beta1.dart +++ b/generated/googleapis_beta/lib/videointelligence/v1beta1.dart
@@ -98,8 +98,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (annotationProgress != null) { _json["annotationProgress"] = annotationProgress.map((value) => (value).toJson()).toList(); } @@ -170,8 +170,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (features != null) { _json["features"] = features; } @@ -211,8 +211,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (annotationResults != null) { _json["annotationResults"] = annotationResults.map((value) => (value).toJson()).toList(); } @@ -243,8 +243,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (description != null) { _json["description"] = description; } @@ -297,8 +297,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (confidence != null) { _json["confidence"] = confidence; } @@ -346,8 +346,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (inputUri != null) { _json["inputUri"] = inputUri; } @@ -398,8 +398,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (error != null) { _json["error"] = (error).toJson(); } @@ -463,8 +463,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (labelDetectionMode != null) { _json["labelDetectionMode"] = labelDetectionMode; } @@ -499,8 +499,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (endTimeOffset != null) { _json["endTimeOffset"] = endTimeOffset; } @@ -575,8 +575,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (done != null) { _json["done"] = done; } @@ -684,8 +684,8 @@ } } - core.Map toJson() { - var _json = new core.Map(); + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); if (code != null) { _json["code"] = code; }
diff --git a/generated/googleapis_beta/pubspec.yaml b/generated/googleapis_beta/pubspec.yaml index 3418ed3..3582d76 100644 --- a/generated/googleapis_beta/pubspec.yaml +++ b/generated/googleapis_beta/pubspec.yaml
@@ -1,13 +1,13 @@ name: googleapis_beta -version: 0.37.0 +version: 0.38.0 author: Dart Team <misc@dartlang.org> description: "Auto-generated client libraries for accessing the following APIs:adexchangebuyer2:v2beta1, appengine:v1beta, appengine:v1beta4, appengine:v1beta5, clouderrorreporting:v1beta1, cloudmonitoring:v2beta2, cloudresourcemanager:v1beta1, clouduseraccounts:beta, dataflow:v1b3, dataproc:v1beta1, dlp:v2beta1, dns:v2beta1, language:v1beta1, language:v1beta2, logging:v2beta1, proximitybeacon:v1beta1, pubsub:v1beta2, replicapool:v1beta2, replicapoolupdater:v1beta1, resourceviews:v1beta1, resourceviews:v1beta2, runtimeconfig:v1beta1, speech:v1beta1, sqladmin:v1beta3, sqladmin:v1beta4, taskqueue:v1beta2, toolresults:v1beta3, videointelligence:v1beta1" homepage: http://www.dartlang.org/googleapis/ environment: - sdk: '>=1.14.0 <2.0.0' + sdk: '>=1.22.0 <2.0.0' dependencies: # This is a private package dependency used by the generated client stubs. _discoveryapis_commons: '>=0.1.0 <0.2.0' http: '>=0.11.1 <0.12.0' dev_dependencies: - unittest: '>=0.10.0 <0.12.0' + test: '>=0.12.0 <0.13.0'
diff --git a/generated/googleapis_beta/test/adexchangebuyer2/v2beta1_test.dart b/generated/googleapis_beta/test/adexchangebuyer2/v2beta1_test.dart index 9917227..081e80a 100644 --- a/generated/googleapis_beta/test/adexchangebuyer2/v2beta1_test.dart +++ b/generated/googleapis_beta/test/adexchangebuyer2/v2beta1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/adexchangebuyer2/v2beta1.dart' as api; @@ -46,11 +46,32 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } +core.int buildCounterAbsoluteDateRange = 0; +buildAbsoluteDateRange() { + var o = new api.AbsoluteDateRange(); + buildCounterAbsoluteDateRange++; + if (buildCounterAbsoluteDateRange < 3) { + o.endDate = buildDate(); + o.startDate = buildDate(); + } + buildCounterAbsoluteDateRange--; + return o; +} + +checkAbsoluteDateRange(api.AbsoluteDateRange o) { + buildCounterAbsoluteDateRange++; + if (buildCounterAbsoluteDateRange < 3) { + checkDate(o.endDate); + checkDate(o.startDate); + } + buildCounterAbsoluteDateRange--; +} + core.int buildCounterAddDealAssociationRequest = 0; buildAddDealAssociationRequest() { var o = new api.AddDealAssociationRequest(); @@ -70,14 +91,14 @@ buildCounterAddDealAssociationRequest--; } -buildUnnamed3931() { +buildUnnamed3407() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3931(core.List<core.String> o) { +checkUnnamed3407(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -88,7 +109,7 @@ var o = new api.AppContext(); buildCounterAppContext++; if (buildCounterAppContext < 3) { - o.appTypes = buildUnnamed3931(); + o.appTypes = buildUnnamed3407(); } buildCounterAppContext--; return o; @@ -97,19 +118,19 @@ checkAppContext(api.AppContext o) { buildCounterAppContext++; if (buildCounterAppContext < 3) { - checkUnnamed3931(o.appTypes); + checkUnnamed3407(o.appTypes); } buildCounterAppContext--; } -buildUnnamed3932() { +buildUnnamed3408() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3932(core.List<core.String> o) { +checkUnnamed3408(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -120,7 +141,7 @@ var o = new api.AuctionContext(); buildCounterAuctionContext++; if (buildCounterAuctionContext < 3) { - o.auctionTypes = buildUnnamed3932(); + o.auctionTypes = buildUnnamed3408(); } buildCounterAuctionContext--; return o; @@ -129,11 +150,86 @@ checkAuctionContext(api.AuctionContext o) { buildCounterAuctionContext++; if (buildCounterAuctionContext < 3) { - checkUnnamed3932(o.auctionTypes); + checkUnnamed3408(o.auctionTypes); } buildCounterAuctionContext--; } +core.int buildCounterBidMetricsRow = 0; +buildBidMetricsRow() { + var o = new api.BidMetricsRow(); + buildCounterBidMetricsRow++; + if (buildCounterBidMetricsRow < 3) { + o.bids = buildMetricValue(); + o.bidsInAuction = buildMetricValue(); + o.billedImpressions = buildMetricValue(); + o.impressionsWon = buildMetricValue(); + o.rowDimensions = buildRowDimensions(); + o.viewableImpressions = buildMetricValue(); + } + buildCounterBidMetricsRow--; + return o; +} + +checkBidMetricsRow(api.BidMetricsRow o) { + buildCounterBidMetricsRow++; + if (buildCounterBidMetricsRow < 3) { + checkMetricValue(o.bids); + checkMetricValue(o.bidsInAuction); + checkMetricValue(o.billedImpressions); + checkMetricValue(o.impressionsWon); + checkRowDimensions(o.rowDimensions); + checkMetricValue(o.viewableImpressions); + } + buildCounterBidMetricsRow--; +} + +core.int buildCounterBidResponseWithoutBidsStatusRow = 0; +buildBidResponseWithoutBidsStatusRow() { + var o = new api.BidResponseWithoutBidsStatusRow(); + buildCounterBidResponseWithoutBidsStatusRow++; + if (buildCounterBidResponseWithoutBidsStatusRow < 3) { + o.impressionCount = buildMetricValue(); + o.rowDimensions = buildRowDimensions(); + o.status = "foo"; + } + buildCounterBidResponseWithoutBidsStatusRow--; + return o; +} + +checkBidResponseWithoutBidsStatusRow(api.BidResponseWithoutBidsStatusRow o) { + buildCounterBidResponseWithoutBidsStatusRow++; + if (buildCounterBidResponseWithoutBidsStatusRow < 3) { + checkMetricValue(o.impressionCount); + checkRowDimensions(o.rowDimensions); + unittest.expect(o.status, unittest.equals('foo')); + } + buildCounterBidResponseWithoutBidsStatusRow--; +} + +core.int buildCounterCalloutStatusRow = 0; +buildCalloutStatusRow() { + var o = new api.CalloutStatusRow(); + buildCounterCalloutStatusRow++; + if (buildCounterCalloutStatusRow < 3) { + o.calloutStatusId = 42; + o.impressionCount = buildMetricValue(); + o.rowDimensions = buildRowDimensions(); + } + buildCounterCalloutStatusRow--; + return o; +} + +checkCalloutStatusRow(api.CalloutStatusRow o) { + buildCounterCalloutStatusRow++; + if (buildCounterCalloutStatusRow < 3) { + unittest.expect(o.calloutStatusId, unittest.equals(42)); + checkMetricValue(o.impressionCount); + checkRowDimensions(o.rowDimensions); + } + buildCounterCalloutStatusRow--; +} + core.int buildCounterClient = 0; buildClient() { var o = new api.Client(); @@ -215,27 +311,27 @@ buildCounterClientUserInvitation--; } -buildUnnamed3933() { +buildUnnamed3409() { var o = new core.List<api.ServingContext>(); o.add(buildServingContext()); o.add(buildServingContext()); return o; } -checkUnnamed3933(core.List<api.ServingContext> o) { +checkUnnamed3409(core.List<api.ServingContext> o) { unittest.expect(o, unittest.hasLength(2)); checkServingContext(o[0]); checkServingContext(o[1]); } -buildUnnamed3934() { +buildUnnamed3410() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3934(core.List<core.String> o) { +checkUnnamed3410(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -246,8 +342,8 @@ var o = new api.Correction(); buildCounterCorrection++; if (buildCounterCorrection < 3) { - o.contexts = buildUnnamed3933(); - o.details = buildUnnamed3934(); + o.contexts = buildUnnamed3409(); + o.details = buildUnnamed3410(); o.type = "foo"; } buildCounterCorrection--; @@ -257,164 +353,164 @@ checkCorrection(api.Correction o) { buildCounterCorrection++; if (buildCounterCorrection < 3) { - checkUnnamed3933(o.contexts); - checkUnnamed3934(o.details); + checkUnnamed3409(o.contexts); + checkUnnamed3410(o.details); unittest.expect(o.type, unittest.equals('foo')); } buildCounterCorrection--; } -buildUnnamed3935() { +buildUnnamed3411() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3935(core.List<core.String> o) { +checkUnnamed3411(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3936() { +buildUnnamed3412() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3936(core.List<core.String> o) { +checkUnnamed3412(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3937() { +buildUnnamed3413() { var o = new core.List<api.Correction>(); o.add(buildCorrection()); o.add(buildCorrection()); return o; } -checkUnnamed3937(core.List<api.Correction> o) { +checkUnnamed3413(core.List<api.Correction> o) { unittest.expect(o, unittest.hasLength(2)); checkCorrection(o[0]); checkCorrection(o[1]); } -buildUnnamed3938() { +buildUnnamed3414() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3938(core.List<core.String> o) { +checkUnnamed3414(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3939() { +buildUnnamed3415() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3939(core.List<core.String> o) { +checkUnnamed3415(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3940() { +buildUnnamed3416() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3940(core.List<core.String> o) { +checkUnnamed3416(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3941() { +buildUnnamed3417() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3941(core.List<core.int> o) { +checkUnnamed3417(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed3942() { +buildUnnamed3418() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3942(core.List<core.int> o) { +checkUnnamed3418(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed3943() { +buildUnnamed3419() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3943(core.List<core.String> o) { +checkUnnamed3419(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3944() { +buildUnnamed3420() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3944(core.List<core.String> o) { +checkUnnamed3420(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3945() { +buildUnnamed3421() { var o = new core.List<api.ServingRestriction>(); o.add(buildServingRestriction()); o.add(buildServingRestriction()); return o; } -checkUnnamed3945(core.List<api.ServingRestriction> o) { +checkUnnamed3421(core.List<api.ServingRestriction> o) { unittest.expect(o, unittest.hasLength(2)); checkServingRestriction(o[0]); checkServingRestriction(o[1]); } -buildUnnamed3946() { +buildUnnamed3422() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3946(core.List<core.int> o) { +checkUnnamed3422(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -430,24 +526,24 @@ o.advertiserName = "foo"; o.agencyId = "foo"; o.apiUpdateTime = "foo"; - o.attributes = buildUnnamed3935(); - o.clickThroughUrls = buildUnnamed3936(); - o.corrections = buildUnnamed3937(); + o.attributes = buildUnnamed3411(); + o.clickThroughUrls = buildUnnamed3412(); + o.corrections = buildUnnamed3413(); o.creativeId = "foo"; o.dealsStatus = "foo"; - o.detectedAdvertiserIds = buildUnnamed3938(); - o.detectedDomains = buildUnnamed3939(); - o.detectedLanguages = buildUnnamed3940(); - o.detectedProductCategories = buildUnnamed3941(); - o.detectedSensitiveCategories = buildUnnamed3942(); + o.detectedAdvertiserIds = buildUnnamed3414(); + o.detectedDomains = buildUnnamed3415(); + o.detectedLanguages = buildUnnamed3416(); + o.detectedProductCategories = buildUnnamed3417(); + o.detectedSensitiveCategories = buildUnnamed3418(); o.filteringStats = buildFilteringStats(); o.html = buildHtmlContent(); - o.impressionTrackingUrls = buildUnnamed3943(); + o.impressionTrackingUrls = buildUnnamed3419(); o.native = buildNativeContent(); o.openAuctionStatus = "foo"; - o.restrictedCategories = buildUnnamed3944(); - o.servingRestrictions = buildUnnamed3945(); - o.vendorIds = buildUnnamed3946(); + o.restrictedCategories = buildUnnamed3420(); + o.servingRestrictions = buildUnnamed3421(); + o.vendorIds = buildUnnamed3422(); o.version = 42; o.video = buildVideoContent(); } @@ -463,24 +559,24 @@ unittest.expect(o.advertiserName, unittest.equals('foo')); unittest.expect(o.agencyId, unittest.equals('foo')); unittest.expect(o.apiUpdateTime, unittest.equals('foo')); - checkUnnamed3935(o.attributes); - checkUnnamed3936(o.clickThroughUrls); - checkUnnamed3937(o.corrections); + checkUnnamed3411(o.attributes); + checkUnnamed3412(o.clickThroughUrls); + checkUnnamed3413(o.corrections); unittest.expect(o.creativeId, unittest.equals('foo')); unittest.expect(o.dealsStatus, unittest.equals('foo')); - checkUnnamed3938(o.detectedAdvertiserIds); - checkUnnamed3939(o.detectedDomains); - checkUnnamed3940(o.detectedLanguages); - checkUnnamed3941(o.detectedProductCategories); - checkUnnamed3942(o.detectedSensitiveCategories); + checkUnnamed3414(o.detectedAdvertiserIds); + checkUnnamed3415(o.detectedDomains); + checkUnnamed3416(o.detectedLanguages); + checkUnnamed3417(o.detectedProductCategories); + checkUnnamed3418(o.detectedSensitiveCategories); checkFilteringStats(o.filteringStats); checkHtmlContent(o.html); - checkUnnamed3943(o.impressionTrackingUrls); + checkUnnamed3419(o.impressionTrackingUrls); checkNativeContent(o.native); unittest.expect(o.openAuctionStatus, unittest.equals('foo')); - checkUnnamed3944(o.restrictedCategories); - checkUnnamed3945(o.servingRestrictions); - checkUnnamed3946(o.vendorIds); + checkUnnamed3420(o.restrictedCategories); + checkUnnamed3421(o.servingRestrictions); + checkUnnamed3422(o.vendorIds); unittest.expect(o.version, unittest.equals(42)); checkVideoContent(o.video); } @@ -510,6 +606,29 @@ buildCounterCreativeDealAssociation--; } +core.int buildCounterCreativeStatusRow = 0; +buildCreativeStatusRow() { + var o = new api.CreativeStatusRow(); + buildCounterCreativeStatusRow++; + if (buildCounterCreativeStatusRow < 3) { + o.bidCount = buildMetricValue(); + o.creativeStatusId = 42; + o.rowDimensions = buildRowDimensions(); + } + buildCounterCreativeStatusRow--; + return o; +} + +checkCreativeStatusRow(api.CreativeStatusRow o) { + buildCounterCreativeStatusRow++; + if (buildCounterCreativeStatusRow < 3) { + checkMetricValue(o.bidCount); + unittest.expect(o.creativeStatusId, unittest.equals(42)); + checkRowDimensions(o.rowDimensions); + } + buildCounterCreativeStatusRow--; +} + core.int buildCounterDate = 0; buildDate() { var o = new api.Date(); @@ -533,14 +652,14 @@ buildCounterDate--; } -buildUnnamed3947() { +buildUnnamed3423() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3947(core.List<core.String> o) { +checkUnnamed3423(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -551,7 +670,7 @@ var o = new api.Disapproval(); buildCounterDisapproval++; if (buildCounterDisapproval < 3) { - o.details = buildUnnamed3947(); + o.details = buildUnnamed3423(); o.reason = "foo"; } buildCounterDisapproval--; @@ -561,7 +680,7 @@ checkDisapproval(api.Disapproval o) { buildCounterDisapproval++; if (buildCounterDisapproval < 3) { - checkUnnamed3947(o.details); + checkUnnamed3423(o.details); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterDisapproval--; @@ -584,14 +703,129 @@ buildCounterEmpty--; } -buildUnnamed3948() { +buildUnnamed3424() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3424(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed3425() { + var o = new core.List<core.int>(); + o.add(42); + o.add(42); + return o; +} + +checkUnnamed3425(core.List<core.int> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals(42)); + unittest.expect(o[1], unittest.equals(42)); +} + +core.int buildCounterFilterSet = 0; +buildFilterSet() { + var o = new api.FilterSet(); + buildCounterFilterSet++; + if (buildCounterFilterSet < 3) { + o.absoluteDateRange = buildAbsoluteDateRange(); + o.buyerAccountId = "foo"; + o.creativeId = "foo"; + o.dealId = "foo"; + o.environment = "foo"; + o.filterSetId = "foo"; + o.format = "foo"; + o.ownerAccountId = "foo"; + o.platforms = buildUnnamed3424(); + o.realtimeTimeRange = buildRealtimeTimeRange(); + o.relativeDateRange = buildRelativeDateRange(); + o.sellerNetworkIds = buildUnnamed3425(); + o.timeSeriesGranularity = "foo"; + } + buildCounterFilterSet--; + return o; +} + +checkFilterSet(api.FilterSet o) { + buildCounterFilterSet++; + if (buildCounterFilterSet < 3) { + checkAbsoluteDateRange(o.absoluteDateRange); + unittest.expect(o.buyerAccountId, unittest.equals('foo')); + unittest.expect(o.creativeId, unittest.equals('foo')); + unittest.expect(o.dealId, unittest.equals('foo')); + unittest.expect(o.environment, unittest.equals('foo')); + unittest.expect(o.filterSetId, unittest.equals('foo')); + unittest.expect(o.format, unittest.equals('foo')); + unittest.expect(o.ownerAccountId, unittest.equals('foo')); + checkUnnamed3424(o.platforms); + checkRealtimeTimeRange(o.realtimeTimeRange); + checkRelativeDateRange(o.relativeDateRange); + checkUnnamed3425(o.sellerNetworkIds); + unittest.expect(o.timeSeriesGranularity, unittest.equals('foo')); + } + buildCounterFilterSet--; +} + +core.int buildCounterFilteredBidCreativeRow = 0; +buildFilteredBidCreativeRow() { + var o = new api.FilteredBidCreativeRow(); + buildCounterFilteredBidCreativeRow++; + if (buildCounterFilteredBidCreativeRow < 3) { + o.bidCount = buildMetricValue(); + o.creativeId = "foo"; + o.rowDimensions = buildRowDimensions(); + } + buildCounterFilteredBidCreativeRow--; + return o; +} + +checkFilteredBidCreativeRow(api.FilteredBidCreativeRow o) { + buildCounterFilteredBidCreativeRow++; + if (buildCounterFilteredBidCreativeRow < 3) { + checkMetricValue(o.bidCount); + unittest.expect(o.creativeId, unittest.equals('foo')); + checkRowDimensions(o.rowDimensions); + } + buildCounterFilteredBidCreativeRow--; +} + +core.int buildCounterFilteredBidDetailRow = 0; +buildFilteredBidDetailRow() { + var o = new api.FilteredBidDetailRow(); + buildCounterFilteredBidDetailRow++; + if (buildCounterFilteredBidDetailRow < 3) { + o.bidCount = buildMetricValue(); + o.detailId = 42; + o.rowDimensions = buildRowDimensions(); + } + buildCounterFilteredBidDetailRow--; + return o; +} + +checkFilteredBidDetailRow(api.FilteredBidDetailRow o) { + buildCounterFilteredBidDetailRow++; + if (buildCounterFilteredBidDetailRow < 3) { + checkMetricValue(o.bidCount); + unittest.expect(o.detailId, unittest.equals(42)); + checkRowDimensions(o.rowDimensions); + } + buildCounterFilteredBidDetailRow--; +} + +buildUnnamed3426() { var o = new core.List<api.Reason>(); o.add(buildReason()); o.add(buildReason()); return o; } -checkUnnamed3948(core.List<api.Reason> o) { +checkUnnamed3426(core.List<api.Reason> o) { unittest.expect(o, unittest.hasLength(2)); checkReason(o[0]); checkReason(o[1]); @@ -603,7 +837,7 @@ buildCounterFilteringStats++; if (buildCounterFilteringStats < 3) { o.date = buildDate(); - o.reasons = buildUnnamed3948(); + o.reasons = buildUnnamed3426(); } buildCounterFilteringStats--; return o; @@ -613,7 +847,7 @@ buildCounterFilteringStats++; if (buildCounterFilteringStats < 3) { checkDate(o.date); - checkUnnamed3948(o.reasons); + checkUnnamed3426(o.reasons); } buildCounterFilteringStats--; } @@ -664,14 +898,168 @@ buildCounterImage--; } -buildUnnamed3949() { +core.int buildCounterImpressionMetricsRow = 0; +buildImpressionMetricsRow() { + var o = new api.ImpressionMetricsRow(); + buildCounterImpressionMetricsRow++; + if (buildCounterImpressionMetricsRow < 3) { + o.availableImpressions = buildMetricValue(); + o.bidRequests = buildMetricValue(); + o.inventoryMatches = buildMetricValue(); + o.responsesWithBids = buildMetricValue(); + o.rowDimensions = buildRowDimensions(); + o.successfulResponses = buildMetricValue(); + } + buildCounterImpressionMetricsRow--; + return o; +} + +checkImpressionMetricsRow(api.ImpressionMetricsRow o) { + buildCounterImpressionMetricsRow++; + if (buildCounterImpressionMetricsRow < 3) { + checkMetricValue(o.availableImpressions); + checkMetricValue(o.bidRequests); + checkMetricValue(o.inventoryMatches); + checkMetricValue(o.responsesWithBids); + checkRowDimensions(o.rowDimensions); + checkMetricValue(o.successfulResponses); + } + buildCounterImpressionMetricsRow--; +} + +core.int buildCounterImpressionStatusRow = 0; +buildImpressionStatusRow() { + var o = new api.ImpressionStatusRow(); + buildCounterImpressionStatusRow++; + if (buildCounterImpressionStatusRow < 3) { + o.impressionCount = buildMetricValue(); + o.rowDimensions = buildRowDimensions(); + o.status = "foo"; + } + buildCounterImpressionStatusRow--; + return o; +} + +checkImpressionStatusRow(api.ImpressionStatusRow o) { + buildCounterImpressionStatusRow++; + if (buildCounterImpressionStatusRow < 3) { + checkMetricValue(o.impressionCount); + checkRowDimensions(o.rowDimensions); + unittest.expect(o.status, unittest.equals('foo')); + } + buildCounterImpressionStatusRow--; +} + +buildUnnamed3427() { + var o = new core.List<api.BidMetricsRow>(); + o.add(buildBidMetricsRow()); + o.add(buildBidMetricsRow()); + return o; +} + +checkUnnamed3427(core.List<api.BidMetricsRow> o) { + unittest.expect(o, unittest.hasLength(2)); + checkBidMetricsRow(o[0]); + checkBidMetricsRow(o[1]); +} + +core.int buildCounterListBidMetricsResponse = 0; +buildListBidMetricsResponse() { + var o = new api.ListBidMetricsResponse(); + buildCounterListBidMetricsResponse++; + if (buildCounterListBidMetricsResponse < 3) { + o.bidMetricsRows = buildUnnamed3427(); + o.nextPageToken = "foo"; + } + buildCounterListBidMetricsResponse--; + return o; +} + +checkListBidMetricsResponse(api.ListBidMetricsResponse o) { + buildCounterListBidMetricsResponse++; + if (buildCounterListBidMetricsResponse < 3) { + checkUnnamed3427(o.bidMetricsRows); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListBidMetricsResponse--; +} + +buildUnnamed3428() { + var o = new core.List<api.CalloutStatusRow>(); + o.add(buildCalloutStatusRow()); + o.add(buildCalloutStatusRow()); + return o; +} + +checkUnnamed3428(core.List<api.CalloutStatusRow> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCalloutStatusRow(o[0]); + checkCalloutStatusRow(o[1]); +} + +core.int buildCounterListBidResponseErrorsResponse = 0; +buildListBidResponseErrorsResponse() { + var o = new api.ListBidResponseErrorsResponse(); + buildCounterListBidResponseErrorsResponse++; + if (buildCounterListBidResponseErrorsResponse < 3) { + o.calloutStatusRows = buildUnnamed3428(); + o.nextPageToken = "foo"; + } + buildCounterListBidResponseErrorsResponse--; + return o; +} + +checkListBidResponseErrorsResponse(api.ListBidResponseErrorsResponse o) { + buildCounterListBidResponseErrorsResponse++; + if (buildCounterListBidResponseErrorsResponse < 3) { + checkUnnamed3428(o.calloutStatusRows); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListBidResponseErrorsResponse--; +} + +buildUnnamed3429() { + var o = new core.List<api.BidResponseWithoutBidsStatusRow>(); + o.add(buildBidResponseWithoutBidsStatusRow()); + o.add(buildBidResponseWithoutBidsStatusRow()); + return o; +} + +checkUnnamed3429(core.List<api.BidResponseWithoutBidsStatusRow> o) { + unittest.expect(o, unittest.hasLength(2)); + checkBidResponseWithoutBidsStatusRow(o[0]); + checkBidResponseWithoutBidsStatusRow(o[1]); +} + +core.int buildCounterListBidResponsesWithoutBidsResponse = 0; +buildListBidResponsesWithoutBidsResponse() { + var o = new api.ListBidResponsesWithoutBidsResponse(); + buildCounterListBidResponsesWithoutBidsResponse++; + if (buildCounterListBidResponsesWithoutBidsResponse < 3) { + o.bidResponseWithoutBidsStatusRows = buildUnnamed3429(); + o.nextPageToken = "foo"; + } + buildCounterListBidResponsesWithoutBidsResponse--; + return o; +} + +checkListBidResponsesWithoutBidsResponse(api.ListBidResponsesWithoutBidsResponse o) { + buildCounterListBidResponsesWithoutBidsResponse++; + if (buildCounterListBidResponsesWithoutBidsResponse < 3) { + checkUnnamed3429(o.bidResponseWithoutBidsStatusRows); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListBidResponsesWithoutBidsResponse--; +} + +buildUnnamed3430() { var o = new core.List<api.ClientUserInvitation>(); o.add(buildClientUserInvitation()); o.add(buildClientUserInvitation()); return o; } -checkUnnamed3949(core.List<api.ClientUserInvitation> o) { +checkUnnamed3430(core.List<api.ClientUserInvitation> o) { unittest.expect(o, unittest.hasLength(2)); checkClientUserInvitation(o[0]); checkClientUserInvitation(o[1]); @@ -682,7 +1070,7 @@ var o = new api.ListClientUserInvitationsResponse(); buildCounterListClientUserInvitationsResponse++; if (buildCounterListClientUserInvitationsResponse < 3) { - o.invitations = buildUnnamed3949(); + o.invitations = buildUnnamed3430(); o.nextPageToken = "foo"; } buildCounterListClientUserInvitationsResponse--; @@ -692,20 +1080,20 @@ checkListClientUserInvitationsResponse(api.ListClientUserInvitationsResponse o) { buildCounterListClientUserInvitationsResponse++; if (buildCounterListClientUserInvitationsResponse < 3) { - checkUnnamed3949(o.invitations); + checkUnnamed3430(o.invitations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListClientUserInvitationsResponse--; } -buildUnnamed3950() { +buildUnnamed3431() { var o = new core.List<api.ClientUser>(); o.add(buildClientUser()); o.add(buildClientUser()); return o; } -checkUnnamed3950(core.List<api.ClientUser> o) { +checkUnnamed3431(core.List<api.ClientUser> o) { unittest.expect(o, unittest.hasLength(2)); checkClientUser(o[0]); checkClientUser(o[1]); @@ -717,7 +1105,7 @@ buildCounterListClientUsersResponse++; if (buildCounterListClientUsersResponse < 3) { o.nextPageToken = "foo"; - o.users = buildUnnamed3950(); + o.users = buildUnnamed3431(); } buildCounterListClientUsersResponse--; return o; @@ -727,19 +1115,19 @@ buildCounterListClientUsersResponse++; if (buildCounterListClientUsersResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3950(o.users); + checkUnnamed3431(o.users); } buildCounterListClientUsersResponse--; } -buildUnnamed3951() { +buildUnnamed3432() { var o = new core.List<api.Client>(); o.add(buildClient()); o.add(buildClient()); return o; } -checkUnnamed3951(core.List<api.Client> o) { +checkUnnamed3432(core.List<api.Client> o) { unittest.expect(o, unittest.hasLength(2)); checkClient(o[0]); checkClient(o[1]); @@ -750,7 +1138,7 @@ var o = new api.ListClientsResponse(); buildCounterListClientsResponse++; if (buildCounterListClientsResponse < 3) { - o.clients = buildUnnamed3951(); + o.clients = buildUnnamed3432(); o.nextPageToken = "foo"; } buildCounterListClientsResponse--; @@ -760,20 +1148,126 @@ checkListClientsResponse(api.ListClientsResponse o) { buildCounterListClientsResponse++; if (buildCounterListClientsResponse < 3) { - checkUnnamed3951(o.clients); + checkUnnamed3432(o.clients); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListClientsResponse--; } -buildUnnamed3952() { +buildUnnamed3433() { + var o = new core.List<api.FilteredBidDetailRow>(); + o.add(buildFilteredBidDetailRow()); + o.add(buildFilteredBidDetailRow()); + return o; +} + +checkUnnamed3433(core.List<api.FilteredBidDetailRow> o) { + unittest.expect(o, unittest.hasLength(2)); + checkFilteredBidDetailRow(o[0]); + checkFilteredBidDetailRow(o[1]); +} + +core.int buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse = 0; +buildListCreativeStatusAndCreativeBreakdownByDetailResponse() { + var o = new api.ListCreativeStatusAndCreativeBreakdownByDetailResponse(); + buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse++; + if (buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse < 3) { + o.detailType = "foo"; + o.filteredBidDetailRows = buildUnnamed3433(); + o.nextPageToken = "foo"; + } + buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse--; + return o; +} + +checkListCreativeStatusAndCreativeBreakdownByDetailResponse(api.ListCreativeStatusAndCreativeBreakdownByDetailResponse o) { + buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse++; + if (buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse < 3) { + unittest.expect(o.detailType, unittest.equals('foo')); + checkUnnamed3433(o.filteredBidDetailRows); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse--; +} + +buildUnnamed3434() { + var o = new core.List<api.FilteredBidCreativeRow>(); + o.add(buildFilteredBidCreativeRow()); + o.add(buildFilteredBidCreativeRow()); + return o; +} + +checkUnnamed3434(core.List<api.FilteredBidCreativeRow> o) { + unittest.expect(o, unittest.hasLength(2)); + checkFilteredBidCreativeRow(o[0]); + checkFilteredBidCreativeRow(o[1]); +} + +core.int buildCounterListCreativeStatusBreakdownByCreativeResponse = 0; +buildListCreativeStatusBreakdownByCreativeResponse() { + var o = new api.ListCreativeStatusBreakdownByCreativeResponse(); + buildCounterListCreativeStatusBreakdownByCreativeResponse++; + if (buildCounterListCreativeStatusBreakdownByCreativeResponse < 3) { + o.filteredBidCreativeRows = buildUnnamed3434(); + o.nextPageToken = "foo"; + } + buildCounterListCreativeStatusBreakdownByCreativeResponse--; + return o; +} + +checkListCreativeStatusBreakdownByCreativeResponse(api.ListCreativeStatusBreakdownByCreativeResponse o) { + buildCounterListCreativeStatusBreakdownByCreativeResponse++; + if (buildCounterListCreativeStatusBreakdownByCreativeResponse < 3) { + checkUnnamed3434(o.filteredBidCreativeRows); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListCreativeStatusBreakdownByCreativeResponse--; +} + +buildUnnamed3435() { + var o = new core.List<api.FilteredBidDetailRow>(); + o.add(buildFilteredBidDetailRow()); + o.add(buildFilteredBidDetailRow()); + return o; +} + +checkUnnamed3435(core.List<api.FilteredBidDetailRow> o) { + unittest.expect(o, unittest.hasLength(2)); + checkFilteredBidDetailRow(o[0]); + checkFilteredBidDetailRow(o[1]); +} + +core.int buildCounterListCreativeStatusBreakdownByDetailResponse = 0; +buildListCreativeStatusBreakdownByDetailResponse() { + var o = new api.ListCreativeStatusBreakdownByDetailResponse(); + buildCounterListCreativeStatusBreakdownByDetailResponse++; + if (buildCounterListCreativeStatusBreakdownByDetailResponse < 3) { + o.detailType = "foo"; + o.filteredBidDetailRows = buildUnnamed3435(); + o.nextPageToken = "foo"; + } + buildCounterListCreativeStatusBreakdownByDetailResponse--; + return o; +} + +checkListCreativeStatusBreakdownByDetailResponse(api.ListCreativeStatusBreakdownByDetailResponse o) { + buildCounterListCreativeStatusBreakdownByDetailResponse++; + if (buildCounterListCreativeStatusBreakdownByDetailResponse < 3) { + unittest.expect(o.detailType, unittest.equals('foo')); + checkUnnamed3435(o.filteredBidDetailRows); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListCreativeStatusBreakdownByDetailResponse--; +} + +buildUnnamed3436() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed3952(core.List<api.Creative> o) { +checkUnnamed3436(core.List<api.Creative> o) { unittest.expect(o, unittest.hasLength(2)); checkCreative(o[0]); checkCreative(o[1]); @@ -784,7 +1278,7 @@ var o = new api.ListCreativesResponse(); buildCounterListCreativesResponse++; if (buildCounterListCreativesResponse < 3) { - o.creatives = buildUnnamed3952(); + o.creatives = buildUnnamed3436(); o.nextPageToken = "foo"; } buildCounterListCreativesResponse--; @@ -794,20 +1288,20 @@ checkListCreativesResponse(api.ListCreativesResponse o) { buildCounterListCreativesResponse++; if (buildCounterListCreativesResponse < 3) { - checkUnnamed3952(o.creatives); + checkUnnamed3436(o.creatives); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCreativesResponse--; } -buildUnnamed3953() { +buildUnnamed3437() { var o = new core.List<api.CreativeDealAssociation>(); o.add(buildCreativeDealAssociation()); o.add(buildCreativeDealAssociation()); return o; } -checkUnnamed3953(core.List<api.CreativeDealAssociation> o) { +checkUnnamed3437(core.List<api.CreativeDealAssociation> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeDealAssociation(o[0]); checkCreativeDealAssociation(o[1]); @@ -818,7 +1312,7 @@ var o = new api.ListDealAssociationsResponse(); buildCounterListDealAssociationsResponse++; if (buildCounterListDealAssociationsResponse < 3) { - o.associations = buildUnnamed3953(); + o.associations = buildUnnamed3437(); o.nextPageToken = "foo"; } buildCounterListDealAssociationsResponse--; @@ -828,20 +1322,224 @@ checkListDealAssociationsResponse(api.ListDealAssociationsResponse o) { buildCounterListDealAssociationsResponse++; if (buildCounterListDealAssociationsResponse < 3) { - checkUnnamed3953(o.associations); + checkUnnamed3437(o.associations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDealAssociationsResponse--; } -buildUnnamed3954() { +buildUnnamed3438() { + var o = new core.List<api.FilterSet>(); + o.add(buildFilterSet()); + o.add(buildFilterSet()); + return o; +} + +checkUnnamed3438(core.List<api.FilterSet> o) { + unittest.expect(o, unittest.hasLength(2)); + checkFilterSet(o[0]); + checkFilterSet(o[1]); +} + +core.int buildCounterListFilterSetsResponse = 0; +buildListFilterSetsResponse() { + var o = new api.ListFilterSetsResponse(); + buildCounterListFilterSetsResponse++; + if (buildCounterListFilterSetsResponse < 3) { + o.filterSets = buildUnnamed3438(); + o.nextPageToken = "foo"; + } + buildCounterListFilterSetsResponse--; + return o; +} + +checkListFilterSetsResponse(api.ListFilterSetsResponse o) { + buildCounterListFilterSetsResponse++; + if (buildCounterListFilterSetsResponse < 3) { + checkUnnamed3438(o.filterSets); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListFilterSetsResponse--; +} + +buildUnnamed3439() { + var o = new core.List<api.CalloutStatusRow>(); + o.add(buildCalloutStatusRow()); + o.add(buildCalloutStatusRow()); + return o; +} + +checkUnnamed3439(core.List<api.CalloutStatusRow> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCalloutStatusRow(o[0]); + checkCalloutStatusRow(o[1]); +} + +core.int buildCounterListFilteredBidRequestsResponse = 0; +buildListFilteredBidRequestsResponse() { + var o = new api.ListFilteredBidRequestsResponse(); + buildCounterListFilteredBidRequestsResponse++; + if (buildCounterListFilteredBidRequestsResponse < 3) { + o.calloutStatusRows = buildUnnamed3439(); + o.nextPageToken = "foo"; + } + buildCounterListFilteredBidRequestsResponse--; + return o; +} + +checkListFilteredBidRequestsResponse(api.ListFilteredBidRequestsResponse o) { + buildCounterListFilteredBidRequestsResponse++; + if (buildCounterListFilteredBidRequestsResponse < 3) { + checkUnnamed3439(o.calloutStatusRows); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListFilteredBidRequestsResponse--; +} + +buildUnnamed3440() { + var o = new core.List<api.CreativeStatusRow>(); + o.add(buildCreativeStatusRow()); + o.add(buildCreativeStatusRow()); + return o; +} + +checkUnnamed3440(core.List<api.CreativeStatusRow> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCreativeStatusRow(o[0]); + checkCreativeStatusRow(o[1]); +} + +core.int buildCounterListFilteredBidsResponse = 0; +buildListFilteredBidsResponse() { + var o = new api.ListFilteredBidsResponse(); + buildCounterListFilteredBidsResponse++; + if (buildCounterListFilteredBidsResponse < 3) { + o.creativeStatusRows = buildUnnamed3440(); + o.nextPageToken = "foo"; + } + buildCounterListFilteredBidsResponse--; + return o; +} + +checkListFilteredBidsResponse(api.ListFilteredBidsResponse o) { + buildCounterListFilteredBidsResponse++; + if (buildCounterListFilteredBidsResponse < 3) { + checkUnnamed3440(o.creativeStatusRows); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListFilteredBidsResponse--; +} + +buildUnnamed3441() { + var o = new core.List<api.ImpressionStatusRow>(); + o.add(buildImpressionStatusRow()); + o.add(buildImpressionStatusRow()); + return o; +} + +checkUnnamed3441(core.List<api.ImpressionStatusRow> o) { + unittest.expect(o, unittest.hasLength(2)); + checkImpressionStatusRow(o[0]); + checkImpressionStatusRow(o[1]); +} + +core.int buildCounterListFilteredImpressionsResponse = 0; +buildListFilteredImpressionsResponse() { + var o = new api.ListFilteredImpressionsResponse(); + buildCounterListFilteredImpressionsResponse++; + if (buildCounterListFilteredImpressionsResponse < 3) { + o.impressionsStatusRows = buildUnnamed3441(); + o.nextPageToken = "foo"; + } + buildCounterListFilteredImpressionsResponse--; + return o; +} + +checkListFilteredImpressionsResponse(api.ListFilteredImpressionsResponse o) { + buildCounterListFilteredImpressionsResponse++; + if (buildCounterListFilteredImpressionsResponse < 3) { + checkUnnamed3441(o.impressionsStatusRows); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListFilteredImpressionsResponse--; +} + +buildUnnamed3442() { + var o = new core.List<api.ImpressionMetricsRow>(); + o.add(buildImpressionMetricsRow()); + o.add(buildImpressionMetricsRow()); + return o; +} + +checkUnnamed3442(core.List<api.ImpressionMetricsRow> o) { + unittest.expect(o, unittest.hasLength(2)); + checkImpressionMetricsRow(o[0]); + checkImpressionMetricsRow(o[1]); +} + +core.int buildCounterListImpressionMetricsResponse = 0; +buildListImpressionMetricsResponse() { + var o = new api.ListImpressionMetricsResponse(); + buildCounterListImpressionMetricsResponse++; + if (buildCounterListImpressionMetricsResponse < 3) { + o.impressionMetricsRows = buildUnnamed3442(); + o.nextPageToken = "foo"; + } + buildCounterListImpressionMetricsResponse--; + return o; +} + +checkListImpressionMetricsResponse(api.ListImpressionMetricsResponse o) { + buildCounterListImpressionMetricsResponse++; + if (buildCounterListImpressionMetricsResponse < 3) { + checkUnnamed3442(o.impressionMetricsRows); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListImpressionMetricsResponse--; +} + +buildUnnamed3443() { + var o = new core.List<api.CreativeStatusRow>(); + o.add(buildCreativeStatusRow()); + o.add(buildCreativeStatusRow()); + return o; +} + +checkUnnamed3443(core.List<api.CreativeStatusRow> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCreativeStatusRow(o[0]); + checkCreativeStatusRow(o[1]); +} + +core.int buildCounterListLosingBidsResponse = 0; +buildListLosingBidsResponse() { + var o = new api.ListLosingBidsResponse(); + buildCounterListLosingBidsResponse++; + if (buildCounterListLosingBidsResponse < 3) { + o.creativeStatusRows = buildUnnamed3443(); + o.nextPageToken = "foo"; + } + buildCounterListLosingBidsResponse--; + return o; +} + +checkListLosingBidsResponse(api.ListLosingBidsResponse o) { + buildCounterListLosingBidsResponse++; + if (buildCounterListLosingBidsResponse < 3) { + checkUnnamed3443(o.creativeStatusRows); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListLosingBidsResponse--; +} + +buildUnnamed3444() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3954(core.List<core.int> o) { +checkUnnamed3444(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -852,7 +1550,7 @@ var o = new api.LocationContext(); buildCounterLocationContext++; if (buildCounterLocationContext < 3) { - o.geoCriteriaIds = buildUnnamed3954(); + o.geoCriteriaIds = buildUnnamed3444(); } buildCounterLocationContext--; return o; @@ -861,11 +1559,32 @@ checkLocationContext(api.LocationContext o) { buildCounterLocationContext++; if (buildCounterLocationContext < 3) { - checkUnnamed3954(o.geoCriteriaIds); + checkUnnamed3444(o.geoCriteriaIds); } buildCounterLocationContext--; } +core.int buildCounterMetricValue = 0; +buildMetricValue() { + var o = new api.MetricValue(); + buildCounterMetricValue++; + if (buildCounterMetricValue < 3) { + o.value = "foo"; + o.variance = "foo"; + } + buildCounterMetricValue--; + return o; +} + +checkMetricValue(api.MetricValue o) { + buildCounterMetricValue++; + if (buildCounterMetricValue < 3) { + unittest.expect(o.value, unittest.equals('foo')); + unittest.expect(o.variance, unittest.equals('foo')); + } + buildCounterMetricValue--; +} + core.int buildCounterNativeContent = 0; buildNativeContent() { var o = new api.NativeContent(); @@ -909,14 +1628,14 @@ buildCounterNativeContent--; } -buildUnnamed3955() { +buildUnnamed3445() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3955(core.List<core.String> o) { +checkUnnamed3445(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -927,7 +1646,7 @@ var o = new api.PlatformContext(); buildCounterPlatformContext++; if (buildCounterPlatformContext < 3) { - o.platforms = buildUnnamed3955(); + o.platforms = buildUnnamed3445(); } buildCounterPlatformContext--; return o; @@ -936,11 +1655,30 @@ checkPlatformContext(api.PlatformContext o) { buildCounterPlatformContext++; if (buildCounterPlatformContext < 3) { - checkUnnamed3955(o.platforms); + checkUnnamed3445(o.platforms); } buildCounterPlatformContext--; } +core.int buildCounterRealtimeTimeRange = 0; +buildRealtimeTimeRange() { + var o = new api.RealtimeTimeRange(); + buildCounterRealtimeTimeRange++; + if (buildCounterRealtimeTimeRange < 3) { + o.startTimestamp = "foo"; + } + buildCounterRealtimeTimeRange--; + return o; +} + +checkRealtimeTimeRange(api.RealtimeTimeRange o) { + buildCounterRealtimeTimeRange++; + if (buildCounterRealtimeTimeRange < 3) { + unittest.expect(o.startTimestamp, unittest.equals('foo')); + } + buildCounterRealtimeTimeRange--; +} + core.int buildCounterReason = 0; buildReason() { var o = new api.Reason(); @@ -962,6 +1700,27 @@ buildCounterReason--; } +core.int buildCounterRelativeDateRange = 0; +buildRelativeDateRange() { + var o = new api.RelativeDateRange(); + buildCounterRelativeDateRange++; + if (buildCounterRelativeDateRange < 3) { + o.durationDays = 42; + o.offsetDays = 42; + } + buildCounterRelativeDateRange--; + return o; +} + +checkRelativeDateRange(api.RelativeDateRange o) { + buildCounterRelativeDateRange++; + if (buildCounterRelativeDateRange < 3) { + unittest.expect(o.durationDays, unittest.equals(42)); + unittest.expect(o.offsetDays, unittest.equals(42)); + } + buildCounterRelativeDateRange--; +} + core.int buildCounterRemoveDealAssociationRequest = 0; buildRemoveDealAssociationRequest() { var o = new api.RemoveDealAssociationRequest(); @@ -981,14 +1740,33 @@ buildCounterRemoveDealAssociationRequest--; } -buildUnnamed3956() { +core.int buildCounterRowDimensions = 0; +buildRowDimensions() { + var o = new api.RowDimensions(); + buildCounterRowDimensions++; + if (buildCounterRowDimensions < 3) { + o.timeInterval = buildTimeInterval(); + } + buildCounterRowDimensions--; + return o; +} + +checkRowDimensions(api.RowDimensions o) { + buildCounterRowDimensions++; + if (buildCounterRowDimensions < 3) { + checkTimeInterval(o.timeInterval); + } + buildCounterRowDimensions--; +} + +buildUnnamed3446() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3956(core.List<core.String> o) { +checkUnnamed3446(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -999,7 +1777,7 @@ var o = new api.SecurityContext(); buildCounterSecurityContext++; if (buildCounterSecurityContext < 3) { - o.securities = buildUnnamed3956(); + o.securities = buildUnnamed3446(); } buildCounterSecurityContext--; return o; @@ -1008,7 +1786,7 @@ checkSecurityContext(api.SecurityContext o) { buildCounterSecurityContext++; if (buildCounterSecurityContext < 3) { - checkUnnamed3956(o.securities); + checkUnnamed3446(o.securities); } buildCounterSecurityContext--; } @@ -1042,27 +1820,27 @@ buildCounterServingContext--; } -buildUnnamed3957() { +buildUnnamed3447() { var o = new core.List<api.ServingContext>(); o.add(buildServingContext()); o.add(buildServingContext()); return o; } -checkUnnamed3957(core.List<api.ServingContext> o) { +checkUnnamed3447(core.List<api.ServingContext> o) { unittest.expect(o, unittest.hasLength(2)); checkServingContext(o[0]); checkServingContext(o[1]); } -buildUnnamed3958() { +buildUnnamed3448() { var o = new core.List<api.Disapproval>(); o.add(buildDisapproval()); o.add(buildDisapproval()); return o; } -checkUnnamed3958(core.List<api.Disapproval> o) { +checkUnnamed3448(core.List<api.Disapproval> o) { unittest.expect(o, unittest.hasLength(2)); checkDisapproval(o[0]); checkDisapproval(o[1]); @@ -1073,8 +1851,8 @@ var o = new api.ServingRestriction(); buildCounterServingRestriction++; if (buildCounterServingRestriction < 3) { - o.contexts = buildUnnamed3957(); - o.disapprovalReasons = buildUnnamed3958(); + o.contexts = buildUnnamed3447(); + o.disapprovalReasons = buildUnnamed3448(); o.status = "foo"; } buildCounterServingRestriction--; @@ -1084,8 +1862,8 @@ checkServingRestriction(api.ServingRestriction o) { buildCounterServingRestriction++; if (buildCounterServingRestriction < 3) { - checkUnnamed3957(o.contexts); - checkUnnamed3958(o.disapprovalReasons); + checkUnnamed3447(o.contexts); + checkUnnamed3448(o.disapprovalReasons); unittest.expect(o.status, unittest.equals('foo')); } buildCounterServingRestriction--; @@ -1108,6 +1886,27 @@ buildCounterStopWatchingCreativeRequest--; } +core.int buildCounterTimeInterval = 0; +buildTimeInterval() { + var o = new api.TimeInterval(); + buildCounterTimeInterval++; + if (buildCounterTimeInterval < 3) { + o.endTime = "foo"; + o.startTime = "foo"; + } + buildCounterTimeInterval--; + return o; +} + +checkTimeInterval(api.TimeInterval o) { + buildCounterTimeInterval++; + if (buildCounterTimeInterval < 3) { + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.startTime, unittest.equals('foo')); + } + buildCounterTimeInterval--; +} + core.int buildCounterVideoContent = 0; buildVideoContent() { var o = new api.VideoContent(); @@ -1148,6 +1947,15 @@ main() { + unittest.group("obj-schema-AbsoluteDateRange", () { + unittest.test("to-json--from-json", () { + var o = buildAbsoluteDateRange(); + var od = new api.AbsoluteDateRange.fromJson(o.toJson()); + checkAbsoluteDateRange(od); + }); + }); + + unittest.group("obj-schema-AddDealAssociationRequest", () { unittest.test("to-json--from-json", () { var o = buildAddDealAssociationRequest(); @@ -1175,6 +1983,33 @@ }); + unittest.group("obj-schema-BidMetricsRow", () { + unittest.test("to-json--from-json", () { + var o = buildBidMetricsRow(); + var od = new api.BidMetricsRow.fromJson(o.toJson()); + checkBidMetricsRow(od); + }); + }); + + + unittest.group("obj-schema-BidResponseWithoutBidsStatusRow", () { + unittest.test("to-json--from-json", () { + var o = buildBidResponseWithoutBidsStatusRow(); + var od = new api.BidResponseWithoutBidsStatusRow.fromJson(o.toJson()); + checkBidResponseWithoutBidsStatusRow(od); + }); + }); + + + unittest.group("obj-schema-CalloutStatusRow", () { + unittest.test("to-json--from-json", () { + var o = buildCalloutStatusRow(); + var od = new api.CalloutStatusRow.fromJson(o.toJson()); + checkCalloutStatusRow(od); + }); + }); + + unittest.group("obj-schema-Client", () { unittest.test("to-json--from-json", () { var o = buildClient(); @@ -1229,6 +2064,15 @@ }); + unittest.group("obj-schema-CreativeStatusRow", () { + unittest.test("to-json--from-json", () { + var o = buildCreativeStatusRow(); + var od = new api.CreativeStatusRow.fromJson(o.toJson()); + checkCreativeStatusRow(od); + }); + }); + + unittest.group("obj-schema-Date", () { unittest.test("to-json--from-json", () { var o = buildDate(); @@ -1256,6 +2100,33 @@ }); + unittest.group("obj-schema-FilterSet", () { + unittest.test("to-json--from-json", () { + var o = buildFilterSet(); + var od = new api.FilterSet.fromJson(o.toJson()); + checkFilterSet(od); + }); + }); + + + unittest.group("obj-schema-FilteredBidCreativeRow", () { + unittest.test("to-json--from-json", () { + var o = buildFilteredBidCreativeRow(); + var od = new api.FilteredBidCreativeRow.fromJson(o.toJson()); + checkFilteredBidCreativeRow(od); + }); + }); + + + unittest.group("obj-schema-FilteredBidDetailRow", () { + unittest.test("to-json--from-json", () { + var o = buildFilteredBidDetailRow(); + var od = new api.FilteredBidDetailRow.fromJson(o.toJson()); + checkFilteredBidDetailRow(od); + }); + }); + + unittest.group("obj-schema-FilteringStats", () { unittest.test("to-json--from-json", () { var o = buildFilteringStats(); @@ -1283,6 +2154,51 @@ }); + unittest.group("obj-schema-ImpressionMetricsRow", () { + unittest.test("to-json--from-json", () { + var o = buildImpressionMetricsRow(); + var od = new api.ImpressionMetricsRow.fromJson(o.toJson()); + checkImpressionMetricsRow(od); + }); + }); + + + unittest.group("obj-schema-ImpressionStatusRow", () { + unittest.test("to-json--from-json", () { + var o = buildImpressionStatusRow(); + var od = new api.ImpressionStatusRow.fromJson(o.toJson()); + checkImpressionStatusRow(od); + }); + }); + + + unittest.group("obj-schema-ListBidMetricsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListBidMetricsResponse(); + var od = new api.ListBidMetricsResponse.fromJson(o.toJson()); + checkListBidMetricsResponse(od); + }); + }); + + + unittest.group("obj-schema-ListBidResponseErrorsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListBidResponseErrorsResponse(); + var od = new api.ListBidResponseErrorsResponse.fromJson(o.toJson()); + checkListBidResponseErrorsResponse(od); + }); + }); + + + unittest.group("obj-schema-ListBidResponsesWithoutBidsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListBidResponsesWithoutBidsResponse(); + var od = new api.ListBidResponsesWithoutBidsResponse.fromJson(o.toJson()); + checkListBidResponsesWithoutBidsResponse(od); + }); + }); + + unittest.group("obj-schema-ListClientUserInvitationsResponse", () { unittest.test("to-json--from-json", () { var o = buildListClientUserInvitationsResponse(); @@ -1310,6 +2226,33 @@ }); + unittest.group("obj-schema-ListCreativeStatusAndCreativeBreakdownByDetailResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListCreativeStatusAndCreativeBreakdownByDetailResponse(); + var od = new api.ListCreativeStatusAndCreativeBreakdownByDetailResponse.fromJson(o.toJson()); + checkListCreativeStatusAndCreativeBreakdownByDetailResponse(od); + }); + }); + + + unittest.group("obj-schema-ListCreativeStatusBreakdownByCreativeResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListCreativeStatusBreakdownByCreativeResponse(); + var od = new api.ListCreativeStatusBreakdownByCreativeResponse.fromJson(o.toJson()); + checkListCreativeStatusBreakdownByCreativeResponse(od); + }); + }); + + + unittest.group("obj-schema-ListCreativeStatusBreakdownByDetailResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListCreativeStatusBreakdownByDetailResponse(); + var od = new api.ListCreativeStatusBreakdownByDetailResponse.fromJson(o.toJson()); + checkListCreativeStatusBreakdownByDetailResponse(od); + }); + }); + + unittest.group("obj-schema-ListCreativesResponse", () { unittest.test("to-json--from-json", () { var o = buildListCreativesResponse(); @@ -1328,6 +2271,60 @@ }); + unittest.group("obj-schema-ListFilterSetsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListFilterSetsResponse(); + var od = new api.ListFilterSetsResponse.fromJson(o.toJson()); + checkListFilterSetsResponse(od); + }); + }); + + + unittest.group("obj-schema-ListFilteredBidRequestsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListFilteredBidRequestsResponse(); + var od = new api.ListFilteredBidRequestsResponse.fromJson(o.toJson()); + checkListFilteredBidRequestsResponse(od); + }); + }); + + + unittest.group("obj-schema-ListFilteredBidsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListFilteredBidsResponse(); + var od = new api.ListFilteredBidsResponse.fromJson(o.toJson()); + checkListFilteredBidsResponse(od); + }); + }); + + + unittest.group("obj-schema-ListFilteredImpressionsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListFilteredImpressionsResponse(); + var od = new api.ListFilteredImpressionsResponse.fromJson(o.toJson()); + checkListFilteredImpressionsResponse(od); + }); + }); + + + unittest.group("obj-schema-ListImpressionMetricsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListImpressionMetricsResponse(); + var od = new api.ListImpressionMetricsResponse.fromJson(o.toJson()); + checkListImpressionMetricsResponse(od); + }); + }); + + + unittest.group("obj-schema-ListLosingBidsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListLosingBidsResponse(); + var od = new api.ListLosingBidsResponse.fromJson(o.toJson()); + checkListLosingBidsResponse(od); + }); + }); + + unittest.group("obj-schema-LocationContext", () { unittest.test("to-json--from-json", () { var o = buildLocationContext(); @@ -1337,6 +2334,15 @@ }); + unittest.group("obj-schema-MetricValue", () { + unittest.test("to-json--from-json", () { + var o = buildMetricValue(); + var od = new api.MetricValue.fromJson(o.toJson()); + checkMetricValue(od); + }); + }); + + unittest.group("obj-schema-NativeContent", () { unittest.test("to-json--from-json", () { var o = buildNativeContent(); @@ -1355,6 +2361,15 @@ }); + unittest.group("obj-schema-RealtimeTimeRange", () { + unittest.test("to-json--from-json", () { + var o = buildRealtimeTimeRange(); + var od = new api.RealtimeTimeRange.fromJson(o.toJson()); + checkRealtimeTimeRange(od); + }); + }); + + unittest.group("obj-schema-Reason", () { unittest.test("to-json--from-json", () { var o = buildReason(); @@ -1364,6 +2379,15 @@ }); + unittest.group("obj-schema-RelativeDateRange", () { + unittest.test("to-json--from-json", () { + var o = buildRelativeDateRange(); + var od = new api.RelativeDateRange.fromJson(o.toJson()); + checkRelativeDateRange(od); + }); + }); + + unittest.group("obj-schema-RemoveDealAssociationRequest", () { unittest.test("to-json--from-json", () { var o = buildRemoveDealAssociationRequest(); @@ -1373,6 +2397,15 @@ }); + unittest.group("obj-schema-RowDimensions", () { + unittest.test("to-json--from-json", () { + var o = buildRowDimensions(); + var od = new api.RowDimensions.fromJson(o.toJson()); + checkRowDimensions(od); + }); + }); + + unittest.group("obj-schema-SecurityContext", () { unittest.test("to-json--from-json", () { var o = buildSecurityContext(); @@ -1409,6 +2442,15 @@ }); + unittest.group("obj-schema-TimeInterval", () { + unittest.test("to-json--from-json", () { + var o = buildTimeInterval(); + var od = new api.TimeInterval.fromJson(o.toJson()); + checkTimeInterval(od); + }); + }); + + unittest.group("obj-schema-VideoContent", () { unittest.test("to-json--from-json", () { var o = buildVideoContent(); @@ -1434,7 +2476,7 @@ api.AccountsClientsResourceApi res = new api.Adexchangebuyer2Api(mock).accounts.clients; var arg_request = buildClient(); var arg_accountId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Client.fromJson(json); checkClient(obj); @@ -1478,7 +2520,7 @@ var resp = convert.JSON.encode(buildClient()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_accountId).then(unittest.expectAsync(((api.Client response) { + res.create(arg_request, arg_accountId).then(unittest.expectAsync1(((api.Client response) { checkClient(response); }))); }); @@ -1489,7 +2531,7 @@ api.AccountsClientsResourceApi res = new api.Adexchangebuyer2Api(mock).accounts.clients; var arg_accountId = "foo"; var arg_clientAccountId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1533,7 +2575,7 @@ var resp = convert.JSON.encode(buildClient()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_accountId, arg_clientAccountId).then(unittest.expectAsync(((api.Client response) { + res.get(arg_accountId, arg_clientAccountId).then(unittest.expectAsync1(((api.Client response) { checkClient(response); }))); }); @@ -1545,7 +2587,7 @@ var arg_accountId = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1588,7 +2630,7 @@ var resp = convert.JSON.encode(buildListClientsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListClientsResponse response) { + res.list(arg_accountId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListClientsResponse response) { checkListClientsResponse(response); }))); }); @@ -1600,7 +2642,7 @@ var arg_request = buildClient(); var arg_accountId = "foo"; var arg_clientAccountId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Client.fromJson(json); checkClient(obj); @@ -1647,7 +2689,7 @@ var resp = convert.JSON.encode(buildClient()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_accountId, arg_clientAccountId).then(unittest.expectAsync(((api.Client response) { + res.update(arg_request, arg_accountId, arg_clientAccountId).then(unittest.expectAsync1(((api.Client response) { checkClient(response); }))); }); @@ -1663,7 +2705,7 @@ var arg_request = buildClientUserInvitation(); var arg_accountId = "foo"; var arg_clientAccountId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ClientUserInvitation.fromJson(json); checkClientUserInvitation(obj); @@ -1714,7 +2756,7 @@ var resp = convert.JSON.encode(buildClientUserInvitation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_accountId, arg_clientAccountId).then(unittest.expectAsync(((api.ClientUserInvitation response) { + res.create(arg_request, arg_accountId, arg_clientAccountId).then(unittest.expectAsync1(((api.ClientUserInvitation response) { checkClientUserInvitation(response); }))); }); @@ -1726,7 +2768,7 @@ var arg_accountId = "foo"; var arg_clientAccountId = "foo"; var arg_invitationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1777,7 +2819,7 @@ var resp = convert.JSON.encode(buildClientUserInvitation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_accountId, arg_clientAccountId, arg_invitationId).then(unittest.expectAsync(((api.ClientUserInvitation response) { + res.get(arg_accountId, arg_clientAccountId, arg_invitationId).then(unittest.expectAsync1(((api.ClientUserInvitation response) { checkClientUserInvitation(response); }))); }); @@ -1790,7 +2832,7 @@ var arg_clientAccountId = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1840,7 +2882,7 @@ var resp = convert.JSON.encode(buildListClientUserInvitationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, arg_clientAccountId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListClientUserInvitationsResponse response) { + res.list(arg_accountId, arg_clientAccountId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListClientUserInvitationsResponse response) { checkListClientUserInvitationsResponse(response); }))); }); @@ -1856,7 +2898,7 @@ var arg_accountId = "foo"; var arg_clientAccountId = "foo"; var arg_userId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1907,7 +2949,7 @@ var resp = convert.JSON.encode(buildClientUser()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_accountId, arg_clientAccountId, arg_userId).then(unittest.expectAsync(((api.ClientUser response) { + res.get(arg_accountId, arg_clientAccountId, arg_userId).then(unittest.expectAsync1(((api.ClientUser response) { checkClientUser(response); }))); }); @@ -1918,9 +2960,9 @@ api.AccountsClientsUsersResourceApi res = new api.Adexchangebuyer2Api(mock).accounts.clients.users; var arg_accountId = "foo"; var arg_clientAccountId = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_pageSize = 42; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1960,8 +3002,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); var h = { @@ -1970,7 +3012,7 @@ var resp = convert.JSON.encode(buildListClientUsersResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, arg_clientAccountId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListClientUsersResponse response) { + res.list(arg_accountId, arg_clientAccountId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListClientUsersResponse response) { checkListClientUsersResponse(response); }))); }); @@ -1983,7 +3025,7 @@ var arg_accountId = "foo"; var arg_clientAccountId = "foo"; var arg_userId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ClientUser.fromJson(json); checkClientUser(obj); @@ -2037,7 +3079,7 @@ var resp = convert.JSON.encode(buildClientUser()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_accountId, arg_clientAccountId, arg_userId).then(unittest.expectAsync(((api.ClientUser response) { + res.update(arg_request, arg_accountId, arg_clientAccountId, arg_userId).then(unittest.expectAsync1(((api.ClientUser response) { checkClientUser(response); }))); }); @@ -2053,7 +3095,7 @@ var arg_request = buildCreative(); var arg_accountId = "foo"; var arg_duplicateIdMode = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Creative.fromJson(json); checkCreative(obj); @@ -2098,7 +3140,7 @@ var resp = convert.JSON.encode(buildCreative()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_accountId, duplicateIdMode: arg_duplicateIdMode).then(unittest.expectAsync(((api.Creative response) { + res.create(arg_request, arg_accountId, duplicateIdMode: arg_duplicateIdMode).then(unittest.expectAsync1(((api.Creative response) { checkCreative(response); }))); }); @@ -2109,7 +3151,7 @@ api.AccountsCreativesResourceApi res = new api.Adexchangebuyer2Api(mock).accounts.creatives; var arg_accountId = "foo"; var arg_creativeId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2153,7 +3195,7 @@ var resp = convert.JSON.encode(buildCreative()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_accountId, arg_creativeId).then(unittest.expectAsync(((api.Creative response) { + res.get(arg_accountId, arg_creativeId).then(unittest.expectAsync1(((api.Creative response) { checkCreative(response); }))); }); @@ -2166,7 +3208,7 @@ var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_query = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2210,7 +3252,7 @@ var resp = convert.JSON.encode(buildListCreativesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, pageToken: arg_pageToken, pageSize: arg_pageSize, query: arg_query).then(unittest.expectAsync(((api.ListCreativesResponse response) { + res.list(arg_accountId, pageToken: arg_pageToken, pageSize: arg_pageSize, query: arg_query).then(unittest.expectAsync1(((api.ListCreativesResponse response) { checkListCreativesResponse(response); }))); }); @@ -2222,7 +3264,7 @@ var arg_request = buildStopWatchingCreativeRequest(); var arg_accountId = "foo"; var arg_creativeId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.StopWatchingCreativeRequest.fromJson(json); checkStopWatchingCreativeRequest(obj); @@ -2273,7 +3315,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.stopWatching(arg_request, arg_accountId, arg_creativeId).then(unittest.expectAsync(((api.Empty response) { + res.stopWatching(arg_request, arg_accountId, arg_creativeId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -2285,7 +3327,7 @@ var arg_request = buildCreative(); var arg_accountId = "foo"; var arg_creativeId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Creative.fromJson(json); checkCreative(obj); @@ -2332,7 +3374,7 @@ var resp = convert.JSON.encode(buildCreative()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_accountId, arg_creativeId).then(unittest.expectAsync(((api.Creative response) { + res.update(arg_request, arg_accountId, arg_creativeId).then(unittest.expectAsync1(((api.Creative response) { checkCreative(response); }))); }); @@ -2344,7 +3386,7 @@ var arg_request = buildWatchCreativeRequest(); var arg_accountId = "foo"; var arg_creativeId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.WatchCreativeRequest.fromJson(json); checkWatchCreativeRequest(obj); @@ -2395,7 +3437,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.watch(arg_request, arg_accountId, arg_creativeId).then(unittest.expectAsync(((api.Empty response) { + res.watch(arg_request, arg_accountId, arg_creativeId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -2411,7 +3453,7 @@ var arg_request = buildAddDealAssociationRequest(); var arg_accountId = "foo"; var arg_creativeId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AddDealAssociationRequest.fromJson(json); checkAddDealAssociationRequest(obj); @@ -2462,7 +3504,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.add(arg_request, arg_accountId, arg_creativeId).then(unittest.expectAsync(((api.Empty response) { + res.add(arg_request, arg_accountId, arg_creativeId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -2476,7 +3518,7 @@ var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_query = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2527,7 +3569,7 @@ var resp = convert.JSON.encode(buildListDealAssociationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, arg_creativeId, pageToken: arg_pageToken, pageSize: arg_pageSize, query: arg_query).then(unittest.expectAsync(((api.ListDealAssociationsResponse response) { + res.list(arg_accountId, arg_creativeId, pageToken: arg_pageToken, pageSize: arg_pageSize, query: arg_query).then(unittest.expectAsync1(((api.ListDealAssociationsResponse response) { checkListDealAssociationsResponse(response); }))); }); @@ -2539,7 +3581,7 @@ var arg_request = buildRemoveDealAssociationRequest(); var arg_accountId = "foo"; var arg_creativeId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RemoveDealAssociationRequest.fromJson(json); checkRemoveDealAssociationRequest(obj); @@ -2590,7 +3632,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.remove(arg_request, arg_accountId, arg_creativeId).then(unittest.expectAsync(((api.Empty response) { + res.remove(arg_request, arg_accountId, arg_creativeId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -2598,5 +3640,1000 @@ }); + unittest.group("resource-AccountsFilterSetsResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.AccountsFilterSetsResourceApi res = new api.Adexchangebuyer2Api(mock).accounts.filterSets; + var arg_request = buildFilterSet(); + var arg_accountId = "foo"; + var arg_isTransient = true; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.FilterSet.fromJson(json); + checkFilterSet(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v2beta1/accounts/")); + pathOffset += 17; + index = path.indexOf("/filterSets", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_accountId")); + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/filterSets")); + pathOffset += 11; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["isTransient"].first, unittest.equals("$arg_isTransient")); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildFilterSet()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request, arg_accountId, isTransient: arg_isTransient).then(unittest.expectAsync1(((api.FilterSet response) { + checkFilterSet(response); + }))); + }); + + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.AccountsFilterSetsResourceApi res = new api.Adexchangebuyer2Api(mock).accounts.filterSets; + var arg_accountId = "foo"; + var arg_filterSetId = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v2beta1/accounts/")); + pathOffset += 17; + index = path.indexOf("/filterSets/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_accountId")); + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/filterSets/")); + pathOffset += 12; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_filterSetId")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_accountId, arg_filterSetId).then(unittest.expectAsync1(((api.Empty response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.AccountsFilterSetsResourceApi res = new api.Adexchangebuyer2Api(mock).accounts.filterSets; + var arg_accountId = "foo"; + var arg_filterSetId = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v2beta1/accounts/")); + pathOffset += 17; + index = path.indexOf("/filterSets/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_accountId")); + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/filterSets/")); + pathOffset += 12; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_filterSetId")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildFilterSet()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_accountId, arg_filterSetId).then(unittest.expectAsync1(((api.FilterSet response) { + checkFilterSet(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.AccountsFilterSetsResourceApi res = new api.Adexchangebuyer2Api(mock).accounts.filterSets; + var arg_accountId = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v2beta1/accounts/")); + pathOffset += 17; + index = path.indexOf("/filterSets", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_accountId")); + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/filterSets")); + pathOffset += 11; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListFilterSetsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_accountId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListFilterSetsResponse response) { + checkListFilterSetsResponse(response); + }))); + }); + + }); + + + unittest.group("resource-AccountsFilterSetsBidMetricsResourceApi", () { + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.AccountsFilterSetsBidMetricsResourceApi res = new api.Adexchangebuyer2Api(mock).accounts.filterSets.bidMetrics; + var arg_accountId = "foo"; + var arg_filterSetId = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v2beta1/accounts/")); + pathOffset += 17; + index = path.indexOf("/filterSets/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_accountId")); + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/filterSets/")); + pathOffset += 12; + index = path.indexOf("/bidMetrics", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_filterSetId")); + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/bidMetrics")); + pathOffset += 11; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListBidMetricsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_accountId, arg_filterSetId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListBidMetricsResponse response) { + checkListBidMetricsResponse(response); + }))); + }); + + }); + + + unittest.group("resource-AccountsFilterSetsBidResponseErrorsResourceApi", () { + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.AccountsFilterSetsBidResponseErrorsResourceApi res = new api.Adexchangebuyer2Api(mock).accounts.filterSets.bidResponseErrors; + var arg_accountId = "foo"; + var arg_filterSetId = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v2beta1/accounts/")); + pathOffset += 17; + index = path.indexOf("/filterSets/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_accountId")); + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/filterSets/")); + pathOffset += 12; + index = path.indexOf("/bidResponseErrors", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_filterSetId")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/bidResponseErrors")); + pathOffset += 18; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListBidResponseErrorsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_accountId, arg_filterSetId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListBidResponseErrorsResponse response) { + checkListBidResponseErrorsResponse(response); + }))); + }); + + }); + + + unittest.group("resource-AccountsFilterSetsBidResponsesWithoutBidsResourceApi", () { + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.AccountsFilterSetsBidResponsesWithoutBidsResourceApi res = new api.Adexchangebuyer2Api(mock).accounts.filterSets.bidResponsesWithoutBids; + var arg_accountId = "foo"; + var arg_filterSetId = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v2beta1/accounts/")); + pathOffset += 17; + index = path.indexOf("/filterSets/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_accountId")); + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/filterSets/")); + pathOffset += 12; + index = path.indexOf("/bidResponsesWithoutBids", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_filterSetId")); + unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.equals("/bidResponsesWithoutBids")); + pathOffset += 24; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListBidResponsesWithoutBidsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_accountId, arg_filterSetId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListBidResponsesWithoutBidsResponse response) { + checkListBidResponsesWithoutBidsResponse(response); + }))); + }); + + }); + + + unittest.group("resource-AccountsFilterSetsFilteredBidRequestsResourceApi", () { + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.AccountsFilterSetsFilteredBidRequestsResourceApi res = new api.Adexchangebuyer2Api(mock).accounts.filterSets.filteredBidRequests; + var arg_accountId = "foo"; + var arg_filterSetId = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v2beta1/accounts/")); + pathOffset += 17; + index = path.indexOf("/filterSets/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_accountId")); + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/filterSets/")); + pathOffset += 12; + index = path.indexOf("/filteredBidRequests", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_filterSetId")); + unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/filteredBidRequests")); + pathOffset += 20; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListFilteredBidRequestsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_accountId, arg_filterSetId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListFilteredBidRequestsResponse response) { + checkListFilteredBidRequestsResponse(response); + }))); + }); + + }); + + + unittest.group("resource-AccountsFilterSetsFilteredBidsResourceApi", () { + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.AccountsFilterSetsFilteredBidsResourceApi res = new api.Adexchangebuyer2Api(mock).accounts.filterSets.filteredBids; + var arg_accountId = "foo"; + var arg_filterSetId = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v2beta1/accounts/")); + pathOffset += 17; + index = path.indexOf("/filterSets/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_accountId")); + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/filterSets/")); + pathOffset += 12; + index = path.indexOf("/filteredBids", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_filterSetId")); + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("/filteredBids")); + pathOffset += 13; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListFilteredBidsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_accountId, arg_filterSetId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListFilteredBidsResponse response) { + checkListFilteredBidsResponse(response); + }))); + }); + + }); + + + unittest.group("resource-AccountsFilterSetsFilteredBidsCreativesResourceApi", () { + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.AccountsFilterSetsFilteredBidsCreativesResourceApi res = new api.Adexchangebuyer2Api(mock).accounts.filterSets.filteredBids.creatives; + var arg_accountId = "foo"; + var arg_filterSetId = "foo"; + var arg_creativeStatusId = 42; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v2beta1/accounts/")); + pathOffset += 17; + index = path.indexOf("/filterSets/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_accountId")); + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/filterSets/")); + pathOffset += 12; + index = path.indexOf("/filteredBids/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_filterSetId")); + unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("/filteredBids/")); + pathOffset += 14; + index = path.indexOf("/creatives", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_creativeStatusId")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/creatives")); + pathOffset += 10; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListCreativeStatusBreakdownByCreativeResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_accountId, arg_filterSetId, arg_creativeStatusId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListCreativeStatusBreakdownByCreativeResponse response) { + checkListCreativeStatusBreakdownByCreativeResponse(response); + }))); + }); + + }); + + + unittest.group("resource-AccountsFilterSetsFilteredBidsCreativesDetailsResourceApi", () { + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.AccountsFilterSetsFilteredBidsCreativesDetailsResourceApi res = new api.Adexchangebuyer2Api(mock).accounts.filterSets.filteredBids.creatives.details; + var arg_accountId = "foo"; + var arg_filterSetId = "foo"; + var arg_creativeStatusId = 42; + var arg_creativeId = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v2beta1/accounts/")); + pathOffset += 17; + index = path.indexOf("/filterSets/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_accountId")); + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/filterSets/")); + pathOffset += 12; + index = path.indexOf("/filteredBids/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_filterSetId")); + unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("/filteredBids/")); + pathOffset += 14; + index = path.indexOf("/creatives/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_creativeStatusId")); + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/creatives/")); + pathOffset += 11; + index = path.indexOf("/details", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_creativeId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/details")); + pathOffset += 8; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListCreativeStatusAndCreativeBreakdownByDetailResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_accountId, arg_filterSetId, arg_creativeStatusId, arg_creativeId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListCreativeStatusAndCreativeBreakdownByDetailResponse response) { + checkListCreativeStatusAndCreativeBreakdownByDetailResponse(response); + }))); + }); + + }); + + + unittest.group("resource-AccountsFilterSetsFilteredBidsDetailsResourceApi", () { + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.AccountsFilterSetsFilteredBidsDetailsResourceApi res = new api.Adexchangebuyer2Api(mock).accounts.filterSets.filteredBids.details; + var arg_accountId = "foo"; + var arg_filterSetId = "foo"; + var arg_creativeStatusId = 42; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v2beta1/accounts/")); + pathOffset += 17; + index = path.indexOf("/filterSets/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_accountId")); + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/filterSets/")); + pathOffset += 12; + index = path.indexOf("/filteredBids/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_filterSetId")); + unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("/filteredBids/")); + pathOffset += 14; + index = path.indexOf("/details", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_creativeStatusId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/details")); + pathOffset += 8; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListCreativeStatusBreakdownByDetailResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_accountId, arg_filterSetId, arg_creativeStatusId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListCreativeStatusBreakdownByDetailResponse response) { + checkListCreativeStatusBreakdownByDetailResponse(response); + }))); + }); + + }); + + + unittest.group("resource-AccountsFilterSetsFilteredImpressionsResourceApi", () { + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.AccountsFilterSetsFilteredImpressionsResourceApi res = new api.Adexchangebuyer2Api(mock).accounts.filterSets.filteredImpressions; + var arg_accountId = "foo"; + var arg_filterSetId = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v2beta1/accounts/")); + pathOffset += 17; + index = path.indexOf("/filterSets/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_accountId")); + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/filterSets/")); + pathOffset += 12; + index = path.indexOf("/filteredImpressions", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_filterSetId")); + unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/filteredImpressions")); + pathOffset += 20; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListFilteredImpressionsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_accountId, arg_filterSetId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListFilteredImpressionsResponse response) { + checkListFilteredImpressionsResponse(response); + }))); + }); + + }); + + + unittest.group("resource-AccountsFilterSetsImpressionMetricsResourceApi", () { + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.AccountsFilterSetsImpressionMetricsResourceApi res = new api.Adexchangebuyer2Api(mock).accounts.filterSets.impressionMetrics; + var arg_accountId = "foo"; + var arg_filterSetId = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v2beta1/accounts/")); + pathOffset += 17; + index = path.indexOf("/filterSets/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_accountId")); + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/filterSets/")); + pathOffset += 12; + index = path.indexOf("/impressionMetrics", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_filterSetId")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/impressionMetrics")); + pathOffset += 18; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListImpressionMetricsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_accountId, arg_filterSetId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListImpressionMetricsResponse response) { + checkListImpressionMetricsResponse(response); + }))); + }); + + }); + + + unittest.group("resource-AccountsFilterSetsLosingBidsResourceApi", () { + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.AccountsFilterSetsLosingBidsResourceApi res = new api.Adexchangebuyer2Api(mock).accounts.filterSets.losingBids; + var arg_accountId = "foo"; + var arg_filterSetId = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v2beta1/accounts/")); + pathOffset += 17; + index = path.indexOf("/filterSets/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_accountId")); + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/filterSets/")); + pathOffset += 12; + index = path.indexOf("/losingBids", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_filterSetId")); + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/losingBids")); + pathOffset += 11; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListLosingBidsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_accountId, arg_filterSetId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListLosingBidsResponse response) { + checkListLosingBidsResponse(response); + }))); + }); + + }); + + }
diff --git a/generated/googleapis_beta/test/appengine/v1beta4_test.dart b/generated/googleapis_beta/test/appengine/v1beta4_test.dart index c2a5c43..fb42d20 100644 --- a/generated/googleapis_beta/test/appengine/v1beta4_test.dart +++ b/generated/googleapis_beta/test/appengine/v1beta4_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/appengine/v1beta4.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -97,14 +97,14 @@ buildCounterApiEndpointHandler--; } -buildUnnamed3893() { +buildUnnamed3368() { var o = new core.List<api.UrlDispatchRule>(); o.add(buildUrlDispatchRule()); o.add(buildUrlDispatchRule()); return o; } -checkUnnamed3893(core.List<api.UrlDispatchRule> o) { +checkUnnamed3368(core.List<api.UrlDispatchRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlDispatchRule(o[0]); checkUrlDispatchRule(o[1]); @@ -120,7 +120,7 @@ o.defaultBucket = "foo"; o.defaultCookieExpiration = "foo"; o.defaultHostname = "foo"; - o.dispatchRules = buildUnnamed3893(); + o.dispatchRules = buildUnnamed3368(); o.iap = buildIdentityAwareProxy(); o.id = "foo"; o.location = "foo"; @@ -138,7 +138,7 @@ unittest.expect(o.defaultBucket, unittest.equals('foo')); unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); unittest.expect(o.defaultHostname, unittest.equals('foo')); - checkUnnamed3893(o.dispatchRules); + checkUnnamed3368(o.dispatchRules); checkIdentityAwareProxy(o.iap); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.location, unittest.equals('foo')); @@ -268,27 +268,27 @@ buildCounterDebugInstanceRequest--; } -buildUnnamed3894() { +buildUnnamed3369() { var o = new core.Map<core.String, api.FileInfo>(); o["x"] = buildFileInfo(); o["y"] = buildFileInfo(); return o; } -checkUnnamed3894(core.Map<core.String, api.FileInfo> o) { +checkUnnamed3369(core.Map<core.String, api.FileInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkFileInfo(o["x"]); checkFileInfo(o["y"]); } -buildUnnamed3895() { +buildUnnamed3370() { var o = new core.List<api.SourceReference>(); o.add(buildSourceReference()); o.add(buildSourceReference()); return o; } -checkUnnamed3895(core.List<api.SourceReference> o) { +checkUnnamed3370(core.List<api.SourceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceReference(o[0]); checkSourceReference(o[1]); @@ -300,8 +300,8 @@ buildCounterDeployment++; if (buildCounterDeployment < 3) { o.container = buildContainerInfo(); - o.files = buildUnnamed3894(); - o.sourceReferences = buildUnnamed3895(); + o.files = buildUnnamed3369(); + o.sourceReferences = buildUnnamed3370(); } buildCounterDeployment--; return o; @@ -311,8 +311,8 @@ buildCounterDeployment++; if (buildCounterDeployment < 3) { checkContainerInfo(o.container); - checkUnnamed3894(o.files); - checkUnnamed3895(o.sourceReferences); + checkUnnamed3369(o.files); + checkUnnamed3370(o.sourceReferences); } buildCounterDeployment--; } @@ -514,14 +514,14 @@ buildCounterLibrary--; } -buildUnnamed3896() { +buildUnnamed3371() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed3896(core.List<api.Instance> o) { +checkUnnamed3371(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -532,7 +532,7 @@ var o = new api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.instances = buildUnnamed3896(); + o.instances = buildUnnamed3371(); o.nextPageToken = "foo"; } buildCounterListInstancesResponse--; @@ -542,20 +542,20 @@ checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed3896(o.instances); + checkUnnamed3371(o.instances); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstancesResponse--; } -buildUnnamed3897() { +buildUnnamed3372() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed3897(core.List<api.Location> o) { +checkUnnamed3372(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -566,7 +566,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed3897(); + o.locations = buildUnnamed3372(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -576,20 +576,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed3897(o.locations); + checkUnnamed3372(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed3898() { +buildUnnamed3373() { var o = new core.List<api.Module>(); o.add(buildModule()); o.add(buildModule()); return o; } -checkUnnamed3898(core.List<api.Module> o) { +checkUnnamed3373(core.List<api.Module> o) { unittest.expect(o, unittest.hasLength(2)); checkModule(o[0]); checkModule(o[1]); @@ -600,7 +600,7 @@ var o = new api.ListModulesResponse(); buildCounterListModulesResponse++; if (buildCounterListModulesResponse < 3) { - o.modules = buildUnnamed3898(); + o.modules = buildUnnamed3373(); o.nextPageToken = "foo"; } buildCounterListModulesResponse--; @@ -610,20 +610,20 @@ checkListModulesResponse(api.ListModulesResponse o) { buildCounterListModulesResponse++; if (buildCounterListModulesResponse < 3) { - checkUnnamed3898(o.modules); + checkUnnamed3373(o.modules); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListModulesResponse--; } -buildUnnamed3899() { +buildUnnamed3374() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3899(core.List<api.Operation> o) { +checkUnnamed3374(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -635,7 +635,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3899(); + o.operations = buildUnnamed3374(); } buildCounterListOperationsResponse--; return o; @@ -645,19 +645,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3899(o.operations); + checkUnnamed3374(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed3900() { +buildUnnamed3375() { var o = new core.List<api.Version>(); o.add(buildVersion()); o.add(buildVersion()); return o; } -checkUnnamed3900(core.List<api.Version> o) { +checkUnnamed3375(core.List<api.Version> o) { unittest.expect(o, unittest.hasLength(2)); checkVersion(o[0]); checkVersion(o[1]); @@ -669,7 +669,7 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { o.nextPageToken = "foo"; - o.versions = buildUnnamed3900(); + o.versions = buildUnnamed3375(); } buildCounterListVersionsResponse--; return o; @@ -679,32 +679,32 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3900(o.versions); + checkUnnamed3375(o.versions); } buildCounterListVersionsResponse--; } -buildUnnamed3901() { +buildUnnamed3376() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3901(core.Map<core.String, core.String> o) { +checkUnnamed3376(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3902() { +buildUnnamed3377() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3902(core.Map<core.String, core.Object> o) { +checkUnnamed3377(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -715,9 +715,9 @@ var o = new api.Location(); buildCounterLocation++; if (buildCounterLocation < 3) { - o.labels = buildUnnamed3901(); + o.labels = buildUnnamed3376(); o.locationId = "foo"; - o.metadata = buildUnnamed3902(); + o.metadata = buildUnnamed3377(); o.name = "foo"; } buildCounterLocation--; @@ -727,9 +727,9 @@ checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { - checkUnnamed3901(o.labels); + checkUnnamed3376(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed3902(o.metadata); + checkUnnamed3377(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -798,14 +798,14 @@ buildCounterModule--; } -buildUnnamed3903() { +buildUnnamed3378() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3903(core.List<core.String> o) { +checkUnnamed3378(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -816,7 +816,7 @@ var o = new api.Network(); buildCounterNetwork++; if (buildCounterNetwork < 3) { - o.forwardedPorts = buildUnnamed3903(); + o.forwardedPorts = buildUnnamed3378(); o.instanceTag = "foo"; o.name = "foo"; } @@ -827,7 +827,7 @@ checkNetwork(api.Network o) { buildCounterNetwork++; if (buildCounterNetwork < 3) { - checkUnnamed3903(o.forwardedPorts); + checkUnnamed3378(o.forwardedPorts); unittest.expect(o.instanceTag, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } @@ -859,27 +859,27 @@ buildCounterNetworkUtilization--; } -buildUnnamed3904() { +buildUnnamed3379() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3904(core.Map<core.String, core.Object> o) { +checkUnnamed3379(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed3905() { +buildUnnamed3380() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3905(core.Map<core.String, core.Object> o) { +checkUnnamed3380(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); @@ -892,9 +892,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3904(); + o.metadata = buildUnnamed3379(); o.name = "foo"; - o.response = buildUnnamed3905(); + o.response = buildUnnamed3380(); } buildCounterOperation--; return o; @@ -905,9 +905,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3904(o.metadata); + checkUnnamed3379(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3905(o.response); + checkUnnamed3380(o.response); } buildCounterOperation--; } @@ -968,14 +968,14 @@ buildCounterOperationMetadataExperimental--; } -buildUnnamed3906() { +buildUnnamed3381() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3906(core.List<core.String> o) { +checkUnnamed3381(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -992,7 +992,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed3906(); + o.warning = buildUnnamed3381(); } buildCounterOperationMetadataV1--; return o; @@ -1007,19 +1007,63 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3906(o.warning); + checkUnnamed3381(o.warning); } buildCounterOperationMetadataV1--; } -buildUnnamed3907() { +buildUnnamed3382() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3907(core.List<core.String> o) { +checkUnnamed3382(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterOperationMetadataV1Alpha = 0; +buildOperationMetadataV1Alpha() { + var o = new api.OperationMetadataV1Alpha(); + buildCounterOperationMetadataV1Alpha++; + if (buildCounterOperationMetadataV1Alpha < 3) { + o.endTime = "foo"; + o.ephemeralMessage = "foo"; + o.insertTime = "foo"; + o.method = "foo"; + o.target = "foo"; + o.user = "foo"; + o.warning = buildUnnamed3382(); + } + buildCounterOperationMetadataV1Alpha--; + return o; +} + +checkOperationMetadataV1Alpha(api.OperationMetadataV1Alpha o) { + buildCounterOperationMetadataV1Alpha++; + if (buildCounterOperationMetadataV1Alpha < 3) { + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.ephemeralMessage, unittest.equals('foo')); + unittest.expect(o.insertTime, unittest.equals('foo')); + unittest.expect(o.method, unittest.equals('foo')); + unittest.expect(o.target, unittest.equals('foo')); + unittest.expect(o.user, unittest.equals('foo')); + checkUnnamed3382(o.warning); + } + buildCounterOperationMetadataV1Alpha--; +} + +buildUnnamed3383() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3383(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1036,7 +1080,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed3907(); + o.warning = buildUnnamed3383(); } buildCounterOperationMetadataV1Beta--; return o; @@ -1051,7 +1095,7 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3907(o.warning); + checkUnnamed3383(o.warning); } buildCounterOperationMetadataV1Beta--; } @@ -1104,14 +1148,14 @@ buildCounterRequestUtilization--; } -buildUnnamed3908() { +buildUnnamed3384() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed3908(core.List<api.Volume> o) { +checkUnnamed3384(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -1125,7 +1169,7 @@ o.cpu = 42.0; o.diskGb = 42.0; o.memoryGb = 42.0; - o.volumes = buildUnnamed3908(); + o.volumes = buildUnnamed3384(); } buildCounterResources--; return o; @@ -1137,7 +1181,7 @@ unittest.expect(o.cpu, unittest.equals(42.0)); unittest.expect(o.diskGb, unittest.equals(42.0)); unittest.expect(o.memoryGb, unittest.equals(42.0)); - checkUnnamed3908(o.volumes); + checkUnnamed3384(o.volumes); } buildCounterResources--; } @@ -1182,14 +1226,14 @@ buildCounterSourceReference--; } -buildUnnamed3909() { +buildUnnamed3385() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3909(core.Map<core.String, core.String> o) { +checkUnnamed3385(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1203,7 +1247,7 @@ o.applicationReadable = true; o.directory = "foo"; o.expiration = "foo"; - o.httpHeaders = buildUnnamed3909(); + o.httpHeaders = buildUnnamed3385(); o.mimeType = "foo"; o.requireMatchingFile = true; } @@ -1217,21 +1261,21 @@ unittest.expect(o.applicationReadable, unittest.isTrue); unittest.expect(o.directory, unittest.equals('foo')); unittest.expect(o.expiration, unittest.equals('foo')); - checkUnnamed3909(o.httpHeaders); + checkUnnamed3385(o.httpHeaders); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.requireMatchingFile, unittest.isTrue); } buildCounterStaticDirectoryHandler--; } -buildUnnamed3910() { +buildUnnamed3386() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3910(core.Map<core.String, core.String> o) { +checkUnnamed3386(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1244,7 +1288,7 @@ if (buildCounterStaticFilesHandler < 3) { o.applicationReadable = true; o.expiration = "foo"; - o.httpHeaders = buildUnnamed3910(); + o.httpHeaders = buildUnnamed3386(); o.mimeType = "foo"; o.path = "foo"; o.requireMatchingFile = true; @@ -1259,7 +1303,7 @@ if (buildCounterStaticFilesHandler < 3) { unittest.expect(o.applicationReadable, unittest.isTrue); unittest.expect(o.expiration, unittest.equals('foo')); - checkUnnamed3910(o.httpHeaders); + checkUnnamed3386(o.httpHeaders); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.requireMatchingFile, unittest.isTrue); @@ -1268,30 +1312,30 @@ buildCounterStaticFilesHandler--; } -buildUnnamed3911() { +buildUnnamed3387() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3911(core.Map<core.String, core.Object> o) { +checkUnnamed3387(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed3912() { +buildUnnamed3388() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3911()); - o.add(buildUnnamed3911()); + o.add(buildUnnamed3387()); + o.add(buildUnnamed3387()); return o; } -checkUnnamed3912(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3388(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3911(o[0]); - checkUnnamed3911(o[1]); + checkUnnamed3387(o[0]); + checkUnnamed3387(o[1]); } core.int buildCounterStatus = 0; @@ -1300,7 +1344,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3912(); + o.details = buildUnnamed3388(); o.message = "foo"; } buildCounterStatus--; @@ -1311,20 +1355,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3912(o.details); + checkUnnamed3388(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed3913() { +buildUnnamed3389() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed3913(core.Map<core.String, core.double> o) { +checkUnnamed3389(core.Map<core.String, core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals(42.0)); unittest.expect(o["y"], unittest.equals(42.0)); @@ -1335,7 +1379,7 @@ var o = new api.TrafficSplit(); buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - o.allocations = buildUnnamed3913(); + o.allocations = buildUnnamed3389(); o.shardBy = "foo"; } buildCounterTrafficSplit--; @@ -1345,7 +1389,7 @@ checkTrafficSplit(api.TrafficSplit o) { buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - checkUnnamed3913(o.allocations); + checkUnnamed3389(o.allocations); unittest.expect(o.shardBy, unittest.equals('foo')); } buildCounterTrafficSplit--; @@ -1409,79 +1453,79 @@ buildCounterUrlMap--; } -buildUnnamed3914() { +buildUnnamed3390() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3914(core.Map<core.String, core.String> o) { +checkUnnamed3390(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3915() { +buildUnnamed3391() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3915(core.Map<core.String, core.String> o) { +checkUnnamed3391(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3916() { +buildUnnamed3392() { var o = new core.List<api.ErrorHandler>(); o.add(buildErrorHandler()); o.add(buildErrorHandler()); return o; } -checkUnnamed3916(core.List<api.ErrorHandler> o) { +checkUnnamed3392(core.List<api.ErrorHandler> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorHandler(o[0]); checkErrorHandler(o[1]); } -buildUnnamed3917() { +buildUnnamed3393() { var o = new core.List<api.UrlMap>(); o.add(buildUrlMap()); o.add(buildUrlMap()); return o; } -checkUnnamed3917(core.List<api.UrlMap> o) { +checkUnnamed3393(core.List<api.UrlMap> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); } -buildUnnamed3918() { +buildUnnamed3394() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3918(core.List<core.String> o) { +checkUnnamed3394(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3919() { +buildUnnamed3395() { var o = new core.List<api.Library>(); o.add(buildLibrary()); o.add(buildLibrary()); return o; } -checkUnnamed3919(core.List<api.Library> o) { +checkUnnamed3395(core.List<api.Library> o) { unittest.expect(o, unittest.hasLength(2)); checkLibrary(o[0]); checkLibrary(o[1]); @@ -1495,26 +1539,27 @@ o.apiConfig = buildApiConfigHandler(); o.automaticScaling = buildAutomaticScaling(); o.basicScaling = buildBasicScaling(); - o.betaSettings = buildUnnamed3914(); + o.betaSettings = buildUnnamed3390(); o.creationTime = "foo"; o.defaultExpiration = "foo"; o.deployer = "foo"; o.deployment = buildDeployment(); o.env = "foo"; - o.envVariables = buildUnnamed3915(); - o.errorHandlers = buildUnnamed3916(); - o.handlers = buildUnnamed3917(); + o.envVariables = buildUnnamed3391(); + o.errorHandlers = buildUnnamed3392(); + o.handlers = buildUnnamed3393(); o.healthCheck = buildHealthCheck(); o.id = "foo"; - o.inboundServices = buildUnnamed3918(); + o.inboundServices = buildUnnamed3394(); o.instanceClass = "foo"; - o.libraries = buildUnnamed3919(); + o.libraries = buildUnnamed3395(); o.manualScaling = buildManualScaling(); o.name = "foo"; o.network = buildNetwork(); o.nobuildFilesRegex = "foo"; o.resources = buildResources(); o.runtime = "foo"; + o.runtimeApiVersion = "foo"; o.servingStatus = "foo"; o.threadsafe = true; o.vm = true; @@ -1529,26 +1574,27 @@ checkApiConfigHandler(o.apiConfig); checkAutomaticScaling(o.automaticScaling); checkBasicScaling(o.basicScaling); - checkUnnamed3914(o.betaSettings); + checkUnnamed3390(o.betaSettings); unittest.expect(o.creationTime, unittest.equals('foo')); unittest.expect(o.defaultExpiration, unittest.equals('foo')); unittest.expect(o.deployer, unittest.equals('foo')); checkDeployment(o.deployment); unittest.expect(o.env, unittest.equals('foo')); - checkUnnamed3915(o.envVariables); - checkUnnamed3916(o.errorHandlers); - checkUnnamed3917(o.handlers); + checkUnnamed3391(o.envVariables); + checkUnnamed3392(o.errorHandlers); + checkUnnamed3393(o.handlers); checkHealthCheck(o.healthCheck); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3918(o.inboundServices); + checkUnnamed3394(o.inboundServices); unittest.expect(o.instanceClass, unittest.equals('foo')); - checkUnnamed3919(o.libraries); + checkUnnamed3395(o.libraries); checkManualScaling(o.manualScaling); unittest.expect(o.name, unittest.equals('foo')); checkNetwork(o.network); unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); checkResources(o.resources); unittest.expect(o.runtime, unittest.equals('foo')); + unittest.expect(o.runtimeApiVersion, unittest.equals('foo')); unittest.expect(o.servingStatus, unittest.equals('foo')); unittest.expect(o.threadsafe, unittest.isTrue); unittest.expect(o.vm, unittest.isTrue); @@ -1860,6 +1906,15 @@ }); + unittest.group("obj-schema-OperationMetadataV1Alpha", () { + unittest.test("to-json--from-json", () { + var o = buildOperationMetadataV1Alpha(); + var od = new api.OperationMetadataV1Alpha.fromJson(o.toJson()); + checkOperationMetadataV1Alpha(od); + }); + }); + + unittest.group("obj-schema-OperationMetadataV1Beta", () { unittest.test("to-json--from-json", () { var o = buildOperationMetadataV1Beta(); @@ -1992,7 +2047,7 @@ var mock = new HttpServerMock(); api.AppsResourceApi res = new api.AppengineApi(mock).apps; var arg_request = buildApplication(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Application.fromJson(json); checkApplication(obj); @@ -2029,7 +2084,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request).then(unittest.expectAsync(((api.Operation response) { + res.create(arg_request).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2040,7 +2095,7 @@ api.AppsResourceApi res = new api.AppengineApi(mock).apps; var arg_appsId = "foo"; var arg_ensureResourcesExist = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2078,7 +2133,7 @@ var resp = convert.JSON.encode(buildApplication()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, ensureResourcesExist: arg_ensureResourcesExist).then(unittest.expectAsync(((api.Application response) { + res.get(arg_appsId, ensureResourcesExist: arg_ensureResourcesExist).then(unittest.expectAsync1(((api.Application response) { checkApplication(response); }))); }); @@ -2090,7 +2145,7 @@ var arg_request = buildApplication(); var arg_appsId = "foo"; var arg_mask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Application.fromJson(json); checkApplication(obj); @@ -2131,7 +2186,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_appsId, mask: arg_mask).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_appsId, mask: arg_mask).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2146,7 +2201,7 @@ api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locations; var arg_appsId = "foo"; var arg_locationsId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2190,7 +2245,7 @@ var resp = convert.JSON.encode(buildLocation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync(((api.Location response) { + res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync1(((api.Location response) { checkLocation(response); }))); }); @@ -2203,7 +2258,7 @@ var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2247,7 +2302,7 @@ var resp = convert.JSON.encode(buildListLocationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListLocationsResponse response) { + res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListLocationsResponse response) { checkListLocationsResponse(response); }))); }); @@ -2262,7 +2317,7 @@ api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules; var arg_appsId = "foo"; var arg_modulesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2306,7 +2361,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_appsId, arg_modulesId).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_appsId, arg_modulesId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2317,7 +2372,7 @@ api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules; var arg_appsId = "foo"; var arg_modulesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2361,7 +2416,7 @@ var resp = convert.JSON.encode(buildModule()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, arg_modulesId).then(unittest.expectAsync(((api.Module response) { + res.get(arg_appsId, arg_modulesId).then(unittest.expectAsync1(((api.Module response) { checkModule(response); }))); }); @@ -2371,9 +2426,9 @@ var mock = new HttpServerMock(); api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules; var arg_appsId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2406,8 +2461,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -2416,7 +2471,7 @@ var resp = convert.JSON.encode(buildListModulesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListModulesResponse response) { + res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListModulesResponse response) { checkListModulesResponse(response); }))); }); @@ -2430,7 +2485,7 @@ var arg_modulesId = "foo"; var arg_migrateTraffic = true; var arg_mask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Module.fromJson(json); checkModule(obj); @@ -2479,7 +2534,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_appsId, arg_modulesId, migrateTraffic: arg_migrateTraffic, mask: arg_mask).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_appsId, arg_modulesId, migrateTraffic: arg_migrateTraffic, mask: arg_mask).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2495,7 +2550,7 @@ var arg_request = buildVersion(); var arg_appsId = "foo"; var arg_modulesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Version.fromJson(json); checkVersion(obj); @@ -2546,7 +2601,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_appsId, arg_modulesId).then(unittest.expectAsync(((api.Operation response) { + res.create(arg_request, arg_appsId, arg_modulesId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2558,7 +2613,7 @@ var arg_appsId = "foo"; var arg_modulesId = "foo"; var arg_versionsId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2609,7 +2664,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_appsId, arg_modulesId, arg_versionsId).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_appsId, arg_modulesId, arg_versionsId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2622,7 +2677,7 @@ var arg_modulesId = "foo"; var arg_versionsId = "foo"; var arg_view = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2674,7 +2729,7 @@ var resp = convert.JSON.encode(buildVersion()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, arg_modulesId, arg_versionsId, view: arg_view).then(unittest.expectAsync(((api.Version response) { + res.get(arg_appsId, arg_modulesId, arg_versionsId, view: arg_view).then(unittest.expectAsync1(((api.Version response) { checkVersion(response); }))); }); @@ -2685,10 +2740,10 @@ api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.modules.versions; var arg_appsId = "foo"; var arg_modulesId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_view = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2728,9 +2783,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -2739,7 +2794,7 @@ var resp = convert.JSON.encode(buildListVersionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, arg_modulesId, pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view).then(unittest.expectAsync(((api.ListVersionsResponse response) { + res.list(arg_appsId, arg_modulesId, pageSize: arg_pageSize, view: arg_view, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListVersionsResponse response) { checkListVersionsResponse(response); }))); }); @@ -2753,7 +2808,7 @@ var arg_modulesId = "foo"; var arg_versionsId = "foo"; var arg_mask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Version.fromJson(json); checkVersion(obj); @@ -2808,7 +2863,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_appsId, arg_modulesId, arg_versionsId, mask: arg_mask).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_appsId, arg_modulesId, arg_versionsId, mask: arg_mask).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2826,7 +2881,7 @@ var arg_modulesId = "foo"; var arg_versionsId = "foo"; var arg_instancesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DebugInstanceRequest.fromJson(json); checkDebugInstanceRequest(obj); @@ -2891,7 +2946,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.debug(arg_request, arg_appsId, arg_modulesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync(((api.Operation response) { + res.debug(arg_request, arg_appsId, arg_modulesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2904,7 +2959,7 @@ var arg_modulesId = "foo"; var arg_versionsId = "foo"; var arg_instancesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2962,7 +3017,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_appsId, arg_modulesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_appsId, arg_modulesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2975,7 +3030,7 @@ var arg_modulesId = "foo"; var arg_versionsId = "foo"; var arg_instancesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3033,7 +3088,7 @@ var resp = convert.JSON.encode(buildInstance()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, arg_modulesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync(((api.Instance response) { + res.get(arg_appsId, arg_modulesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync1(((api.Instance response) { checkInstance(response); }))); }); @@ -3047,7 +3102,7 @@ var arg_versionsId = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3104,7 +3159,7 @@ var resp = convert.JSON.encode(buildListInstancesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, arg_modulesId, arg_versionsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListInstancesResponse response) { + res.list(arg_appsId, arg_modulesId, arg_versionsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListInstancesResponse response) { checkListInstancesResponse(response); }))); }); @@ -3119,7 +3174,7 @@ api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operations; var arg_appsId = "foo"; var arg_operationsId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3163,7 +3218,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3173,10 +3228,10 @@ var mock = new HttpServerMock(); api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operations; var arg_appsId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_filter = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3209,9 +3264,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -3220,7 +3275,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListOperationsResponse response) { + res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); });
diff --git a/generated/googleapis_beta/test/appengine/v1beta5_test.dart b/generated/googleapis_beta/test/appengine/v1beta5_test.dart index cacf975..5ef18ab 100644 --- a/generated/googleapis_beta/test/appengine/v1beta5_test.dart +++ b/generated/googleapis_beta/test/appengine/v1beta5_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/appengine/v1beta5.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -97,14 +97,14 @@ buildCounterApiEndpointHandler--; } -buildUnnamed3867() { +buildUnnamed3341() { var o = new core.List<api.UrlDispatchRule>(); o.add(buildUrlDispatchRule()); o.add(buildUrlDispatchRule()); return o; } -checkUnnamed3867(core.List<api.UrlDispatchRule> o) { +checkUnnamed3341(core.List<api.UrlDispatchRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlDispatchRule(o[0]); checkUrlDispatchRule(o[1]); @@ -120,7 +120,7 @@ o.defaultBucket = "foo"; o.defaultCookieExpiration = "foo"; o.defaultHostname = "foo"; - o.dispatchRules = buildUnnamed3867(); + o.dispatchRules = buildUnnamed3341(); o.iap = buildIdentityAwareProxy(); o.id = "foo"; o.location = "foo"; @@ -138,7 +138,7 @@ unittest.expect(o.defaultBucket, unittest.equals('foo')); unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); unittest.expect(o.defaultHostname, unittest.equals('foo')); - checkUnnamed3867(o.dispatchRules); + checkUnnamed3341(o.dispatchRules); checkIdentityAwareProxy(o.iap); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.location, unittest.equals('foo')); @@ -268,27 +268,27 @@ buildCounterDebugInstanceRequest--; } -buildUnnamed3868() { +buildUnnamed3342() { var o = new core.Map<core.String, api.FileInfo>(); o["x"] = buildFileInfo(); o["y"] = buildFileInfo(); return o; } -checkUnnamed3868(core.Map<core.String, api.FileInfo> o) { +checkUnnamed3342(core.Map<core.String, api.FileInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkFileInfo(o["x"]); checkFileInfo(o["y"]); } -buildUnnamed3869() { +buildUnnamed3343() { var o = new core.List<api.SourceReference>(); o.add(buildSourceReference()); o.add(buildSourceReference()); return o; } -checkUnnamed3869(core.List<api.SourceReference> o) { +checkUnnamed3343(core.List<api.SourceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceReference(o[0]); checkSourceReference(o[1]); @@ -300,8 +300,8 @@ buildCounterDeployment++; if (buildCounterDeployment < 3) { o.container = buildContainerInfo(); - o.files = buildUnnamed3868(); - o.sourceReferences = buildUnnamed3869(); + o.files = buildUnnamed3342(); + o.sourceReferences = buildUnnamed3343(); } buildCounterDeployment--; return o; @@ -311,8 +311,8 @@ buildCounterDeployment++; if (buildCounterDeployment < 3) { checkContainerInfo(o.container); - checkUnnamed3868(o.files); - checkUnnamed3869(o.sourceReferences); + checkUnnamed3342(o.files); + checkUnnamed3343(o.sourceReferences); } buildCounterDeployment--; } @@ -535,14 +535,14 @@ buildCounterLibrary--; } -buildUnnamed3870() { +buildUnnamed3344() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed3870(core.List<api.Instance> o) { +checkUnnamed3344(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -553,7 +553,7 @@ var o = new api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.instances = buildUnnamed3870(); + o.instances = buildUnnamed3344(); o.nextPageToken = "foo"; } buildCounterListInstancesResponse--; @@ -563,20 +563,20 @@ checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed3870(o.instances); + checkUnnamed3344(o.instances); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstancesResponse--; } -buildUnnamed3871() { +buildUnnamed3345() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed3871(core.List<api.Location> o) { +checkUnnamed3345(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -587,7 +587,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed3871(); + o.locations = buildUnnamed3345(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -597,20 +597,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed3871(o.locations); + checkUnnamed3345(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed3872() { +buildUnnamed3346() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3872(core.List<api.Operation> o) { +checkUnnamed3346(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -622,7 +622,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3872(); + o.operations = buildUnnamed3346(); } buildCounterListOperationsResponse--; return o; @@ -632,19 +632,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3872(o.operations); + checkUnnamed3346(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed3873() { +buildUnnamed3347() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed3873(core.List<api.Service> o) { +checkUnnamed3347(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -656,7 +656,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed3873(); + o.services = buildUnnamed3347(); } buildCounterListServicesResponse--; return o; @@ -666,19 +666,19 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3873(o.services); + checkUnnamed3347(o.services); } buildCounterListServicesResponse--; } -buildUnnamed3874() { +buildUnnamed3348() { var o = new core.List<api.Version>(); o.add(buildVersion()); o.add(buildVersion()); return o; } -checkUnnamed3874(core.List<api.Version> o) { +checkUnnamed3348(core.List<api.Version> o) { unittest.expect(o, unittest.hasLength(2)); checkVersion(o[0]); checkVersion(o[1]); @@ -690,7 +690,7 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { o.nextPageToken = "foo"; - o.versions = buildUnnamed3874(); + o.versions = buildUnnamed3348(); } buildCounterListVersionsResponse--; return o; @@ -700,32 +700,32 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3874(o.versions); + checkUnnamed3348(o.versions); } buildCounterListVersionsResponse--; } -buildUnnamed3875() { +buildUnnamed3349() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3875(core.Map<core.String, core.String> o) { +checkUnnamed3349(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3876() { +buildUnnamed3350() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3876(core.Map<core.String, core.Object> o) { +checkUnnamed3350(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -736,9 +736,9 @@ var o = new api.Location(); buildCounterLocation++; if (buildCounterLocation < 3) { - o.labels = buildUnnamed3875(); + o.labels = buildUnnamed3349(); o.locationId = "foo"; - o.metadata = buildUnnamed3876(); + o.metadata = buildUnnamed3350(); o.name = "foo"; } buildCounterLocation--; @@ -748,9 +748,9 @@ checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { - checkUnnamed3875(o.labels); + checkUnnamed3349(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed3876(o.metadata); + checkUnnamed3350(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -796,14 +796,14 @@ buildCounterManualScaling--; } -buildUnnamed3877() { +buildUnnamed3351() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3877(core.List<core.String> o) { +checkUnnamed3351(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -814,7 +814,7 @@ var o = new api.Network(); buildCounterNetwork++; if (buildCounterNetwork < 3) { - o.forwardedPorts = buildUnnamed3877(); + o.forwardedPorts = buildUnnamed3351(); o.instanceTag = "foo"; o.name = "foo"; o.subnetworkName = "foo"; @@ -826,7 +826,7 @@ checkNetwork(api.Network o) { buildCounterNetwork++; if (buildCounterNetwork < 3) { - checkUnnamed3877(o.forwardedPorts); + checkUnnamed3351(o.forwardedPorts); unittest.expect(o.instanceTag, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.subnetworkName, unittest.equals('foo')); @@ -859,27 +859,27 @@ buildCounterNetworkUtilization--; } -buildUnnamed3878() { +buildUnnamed3352() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3878(core.Map<core.String, core.Object> o) { +checkUnnamed3352(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed3879() { +buildUnnamed3353() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3879(core.Map<core.String, core.Object> o) { +checkUnnamed3353(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); @@ -892,9 +892,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3878(); + o.metadata = buildUnnamed3352(); o.name = "foo"; - o.response = buildUnnamed3879(); + o.response = buildUnnamed3353(); } buildCounterOperation--; return o; @@ -905,9 +905,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3878(o.metadata); + checkUnnamed3352(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3879(o.response); + checkUnnamed3353(o.response); } buildCounterOperation--; } @@ -968,14 +968,14 @@ buildCounterOperationMetadataExperimental--; } -buildUnnamed3880() { +buildUnnamed3354() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3880(core.List<core.String> o) { +checkUnnamed3354(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -992,7 +992,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed3880(); + o.warning = buildUnnamed3354(); } buildCounterOperationMetadataV1--; return o; @@ -1007,19 +1007,63 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3880(o.warning); + checkUnnamed3354(o.warning); } buildCounterOperationMetadataV1--; } -buildUnnamed3881() { +buildUnnamed3355() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3881(core.List<core.String> o) { +checkUnnamed3355(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterOperationMetadataV1Alpha = 0; +buildOperationMetadataV1Alpha() { + var o = new api.OperationMetadataV1Alpha(); + buildCounterOperationMetadataV1Alpha++; + if (buildCounterOperationMetadataV1Alpha < 3) { + o.endTime = "foo"; + o.ephemeralMessage = "foo"; + o.insertTime = "foo"; + o.method = "foo"; + o.target = "foo"; + o.user = "foo"; + o.warning = buildUnnamed3355(); + } + buildCounterOperationMetadataV1Alpha--; + return o; +} + +checkOperationMetadataV1Alpha(api.OperationMetadataV1Alpha o) { + buildCounterOperationMetadataV1Alpha++; + if (buildCounterOperationMetadataV1Alpha < 3) { + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.ephemeralMessage, unittest.equals('foo')); + unittest.expect(o.insertTime, unittest.equals('foo')); + unittest.expect(o.method, unittest.equals('foo')); + unittest.expect(o.target, unittest.equals('foo')); + unittest.expect(o.user, unittest.equals('foo')); + checkUnnamed3355(o.warning); + } + buildCounterOperationMetadataV1Alpha--; +} + +buildUnnamed3356() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3356(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1036,7 +1080,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed3881(); + o.warning = buildUnnamed3356(); } buildCounterOperationMetadataV1Beta--; return o; @@ -1051,7 +1095,7 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3881(o.warning); + checkUnnamed3356(o.warning); } buildCounterOperationMetadataV1Beta--; } @@ -1104,14 +1148,14 @@ buildCounterRequestUtilization--; } -buildUnnamed3882() { +buildUnnamed3357() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed3882(core.List<api.Volume> o) { +checkUnnamed3357(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -1125,7 +1169,7 @@ o.cpu = 42.0; o.diskGb = 42.0; o.memoryGb = 42.0; - o.volumes = buildUnnamed3882(); + o.volumes = buildUnnamed3357(); } buildCounterResources--; return o; @@ -1137,7 +1181,7 @@ unittest.expect(o.cpu, unittest.equals(42.0)); unittest.expect(o.diskGb, unittest.equals(42.0)); unittest.expect(o.memoryGb, unittest.equals(42.0)); - checkUnnamed3882(o.volumes); + checkUnnamed3357(o.volumes); } buildCounterResources--; } @@ -1205,14 +1249,14 @@ buildCounterSourceReference--; } -buildUnnamed3883() { +buildUnnamed3358() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3883(core.Map<core.String, core.String> o) { +checkUnnamed3358(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1225,7 +1269,7 @@ if (buildCounterStaticFilesHandler < 3) { o.applicationReadable = true; o.expiration = "foo"; - o.httpHeaders = buildUnnamed3883(); + o.httpHeaders = buildUnnamed3358(); o.mimeType = "foo"; o.path = "foo"; o.requireMatchingFile = true; @@ -1240,7 +1284,7 @@ if (buildCounterStaticFilesHandler < 3) { unittest.expect(o.applicationReadable, unittest.isTrue); unittest.expect(o.expiration, unittest.equals('foo')); - checkUnnamed3883(o.httpHeaders); + checkUnnamed3358(o.httpHeaders); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.requireMatchingFile, unittest.isTrue); @@ -1249,30 +1293,30 @@ buildCounterStaticFilesHandler--; } -buildUnnamed3884() { +buildUnnamed3359() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3884(core.Map<core.String, core.Object> o) { +checkUnnamed3359(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed3885() { +buildUnnamed3360() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3884()); - o.add(buildUnnamed3884()); + o.add(buildUnnamed3359()); + o.add(buildUnnamed3359()); return o; } -checkUnnamed3885(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3360(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3884(o[0]); - checkUnnamed3884(o[1]); + checkUnnamed3359(o[0]); + checkUnnamed3359(o[1]); } core.int buildCounterStatus = 0; @@ -1281,7 +1325,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3885(); + o.details = buildUnnamed3360(); o.message = "foo"; } buildCounterStatus--; @@ -1292,20 +1336,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3885(o.details); + checkUnnamed3360(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed3886() { +buildUnnamed3361() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed3886(core.Map<core.String, core.double> o) { +checkUnnamed3361(core.Map<core.String, core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals(42.0)); unittest.expect(o["y"], unittest.equals(42.0)); @@ -1316,7 +1360,7 @@ var o = new api.TrafficSplit(); buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - o.allocations = buildUnnamed3886(); + o.allocations = buildUnnamed3361(); o.shardBy = "foo"; } buildCounterTrafficSplit--; @@ -1326,7 +1370,7 @@ checkTrafficSplit(api.TrafficSplit o) { buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - checkUnnamed3886(o.allocations); + checkUnnamed3361(o.allocations); unittest.expect(o.shardBy, unittest.equals('foo')); } buildCounterTrafficSplit--; @@ -1388,79 +1432,79 @@ buildCounterUrlMap--; } -buildUnnamed3887() { +buildUnnamed3362() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3887(core.Map<core.String, core.String> o) { +checkUnnamed3362(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3888() { +buildUnnamed3363() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3888(core.Map<core.String, core.String> o) { +checkUnnamed3363(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3889() { +buildUnnamed3364() { var o = new core.List<api.ErrorHandler>(); o.add(buildErrorHandler()); o.add(buildErrorHandler()); return o; } -checkUnnamed3889(core.List<api.ErrorHandler> o) { +checkUnnamed3364(core.List<api.ErrorHandler> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorHandler(o[0]); checkErrorHandler(o[1]); } -buildUnnamed3890() { +buildUnnamed3365() { var o = new core.List<api.UrlMap>(); o.add(buildUrlMap()); o.add(buildUrlMap()); return o; } -checkUnnamed3890(core.List<api.UrlMap> o) { +checkUnnamed3365(core.List<api.UrlMap> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); } -buildUnnamed3891() { +buildUnnamed3366() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3891(core.List<core.String> o) { +checkUnnamed3366(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3892() { +buildUnnamed3367() { var o = new core.List<api.Library>(); o.add(buildLibrary()); o.add(buildLibrary()); return o; } -checkUnnamed3892(core.List<api.Library> o) { +checkUnnamed3367(core.List<api.Library> o) { unittest.expect(o, unittest.hasLength(2)); checkLibrary(o[0]); checkLibrary(o[1]); @@ -1474,7 +1518,7 @@ o.apiConfig = buildApiConfigHandler(); o.automaticScaling = buildAutomaticScaling(); o.basicScaling = buildBasicScaling(); - o.betaSettings = buildUnnamed3887(); + o.betaSettings = buildUnnamed3362(); o.creationTime = "foo"; o.defaultExpiration = "foo"; o.deployer = "foo"; @@ -1482,20 +1526,21 @@ o.diskUsageBytes = "foo"; o.endpointsApiService = buildEndpointsApiService(); o.env = "foo"; - o.envVariables = buildUnnamed3888(); - o.errorHandlers = buildUnnamed3889(); - o.handlers = buildUnnamed3890(); + o.envVariables = buildUnnamed3363(); + o.errorHandlers = buildUnnamed3364(); + o.handlers = buildUnnamed3365(); o.healthCheck = buildHealthCheck(); o.id = "foo"; - o.inboundServices = buildUnnamed3891(); + o.inboundServices = buildUnnamed3366(); o.instanceClass = "foo"; - o.libraries = buildUnnamed3892(); + o.libraries = buildUnnamed3367(); o.manualScaling = buildManualScaling(); o.name = "foo"; o.network = buildNetwork(); o.nobuildFilesRegex = "foo"; o.resources = buildResources(); o.runtime = "foo"; + o.runtimeApiVersion = "foo"; o.servingStatus = "foo"; o.threadsafe = true; o.vm = true; @@ -1510,7 +1555,7 @@ checkApiConfigHandler(o.apiConfig); checkAutomaticScaling(o.automaticScaling); checkBasicScaling(o.basicScaling); - checkUnnamed3887(o.betaSettings); + checkUnnamed3362(o.betaSettings); unittest.expect(o.creationTime, unittest.equals('foo')); unittest.expect(o.defaultExpiration, unittest.equals('foo')); unittest.expect(o.deployer, unittest.equals('foo')); @@ -1518,20 +1563,21 @@ unittest.expect(o.diskUsageBytes, unittest.equals('foo')); checkEndpointsApiService(o.endpointsApiService); unittest.expect(o.env, unittest.equals('foo')); - checkUnnamed3888(o.envVariables); - checkUnnamed3889(o.errorHandlers); - checkUnnamed3890(o.handlers); + checkUnnamed3363(o.envVariables); + checkUnnamed3364(o.errorHandlers); + checkUnnamed3365(o.handlers); checkHealthCheck(o.healthCheck); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3891(o.inboundServices); + checkUnnamed3366(o.inboundServices); unittest.expect(o.instanceClass, unittest.equals('foo')); - checkUnnamed3892(o.libraries); + checkUnnamed3367(o.libraries); checkManualScaling(o.manualScaling); unittest.expect(o.name, unittest.equals('foo')); checkNetwork(o.network); unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); checkResources(o.resources); unittest.expect(o.runtime, unittest.equals('foo')); + unittest.expect(o.runtimeApiVersion, unittest.equals('foo')); unittest.expect(o.servingStatus, unittest.equals('foo')); unittest.expect(o.threadsafe, unittest.isTrue); unittest.expect(o.vm, unittest.isTrue); @@ -1843,6 +1889,15 @@ }); + unittest.group("obj-schema-OperationMetadataV1Alpha", () { + unittest.test("to-json--from-json", () { + var o = buildOperationMetadataV1Alpha(); + var od = new api.OperationMetadataV1Alpha.fromJson(o.toJson()); + checkOperationMetadataV1Alpha(od); + }); + }); + + unittest.group("obj-schema-OperationMetadataV1Beta", () { unittest.test("to-json--from-json", () { var o = buildOperationMetadataV1Beta(); @@ -1975,7 +2030,7 @@ var mock = new HttpServerMock(); api.AppsResourceApi res = new api.AppengineApi(mock).apps; var arg_request = buildApplication(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Application.fromJson(json); checkApplication(obj); @@ -2012,7 +2067,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request).then(unittest.expectAsync(((api.Operation response) { + res.create(arg_request).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2023,7 +2078,7 @@ api.AppsResourceApi res = new api.AppengineApi(mock).apps; var arg_appsId = "foo"; var arg_ensureResourcesExist = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2061,7 +2116,7 @@ var resp = convert.JSON.encode(buildApplication()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, ensureResourcesExist: arg_ensureResourcesExist).then(unittest.expectAsync(((api.Application response) { + res.get(arg_appsId, ensureResourcesExist: arg_ensureResourcesExist).then(unittest.expectAsync1(((api.Application response) { checkApplication(response); }))); }); @@ -2073,7 +2128,7 @@ var arg_request = buildApplication(); var arg_appsId = "foo"; var arg_mask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Application.fromJson(json); checkApplication(obj); @@ -2114,7 +2169,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_appsId, mask: arg_mask).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_appsId, mask: arg_mask).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2129,7 +2184,7 @@ api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locations; var arg_appsId = "foo"; var arg_locationsId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2173,7 +2228,7 @@ var resp = convert.JSON.encode(buildLocation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync(((api.Location response) { + res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync1(((api.Location response) { checkLocation(response); }))); }); @@ -2183,10 +2238,10 @@ var mock = new HttpServerMock(); api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locations; var arg_appsId = "foo"; - var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_filter = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2219,9 +2274,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); var h = { @@ -2230,7 +2285,7 @@ var resp = convert.JSON.encode(buildListLocationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListLocationsResponse response) { + res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListLocationsResponse response) { checkListLocationsResponse(response); }))); }); @@ -2245,7 +2300,7 @@ api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operations; var arg_appsId = "foo"; var arg_operationsId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2289,7 +2344,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2299,10 +2354,10 @@ var mock = new HttpServerMock(); api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operations; var arg_appsId = "foo"; - var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_filter = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2335,9 +2390,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); var h = { @@ -2346,7 +2401,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListOperationsResponse response) { + res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); }); @@ -2361,7 +2416,7 @@ api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services; var arg_appsId = "foo"; var arg_servicesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2405,7 +2460,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_appsId, arg_servicesId).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_appsId, arg_servicesId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2416,7 +2471,7 @@ api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services; var arg_appsId = "foo"; var arg_servicesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2460,7 +2515,7 @@ var resp = convert.JSON.encode(buildService()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, arg_servicesId).then(unittest.expectAsync(((api.Service response) { + res.get(arg_appsId, arg_servicesId).then(unittest.expectAsync1(((api.Service response) { checkService(response); }))); }); @@ -2472,7 +2527,7 @@ var arg_appsId = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2515,7 +2570,7 @@ var resp = convert.JSON.encode(buildListServicesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListServicesResponse response) { + res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListServicesResponse response) { checkListServicesResponse(response); }))); }); @@ -2529,7 +2584,7 @@ var arg_servicesId = "foo"; var arg_migrateTraffic = true; var arg_mask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Service.fromJson(json); checkService(obj); @@ -2578,7 +2633,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_appsId, arg_servicesId, migrateTraffic: arg_migrateTraffic, mask: arg_mask).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_appsId, arg_servicesId, migrateTraffic: arg_migrateTraffic, mask: arg_mask).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2594,7 +2649,7 @@ var arg_request = buildVersion(); var arg_appsId = "foo"; var arg_servicesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Version.fromJson(json); checkVersion(obj); @@ -2645,7 +2700,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_appsId, arg_servicesId).then(unittest.expectAsync(((api.Operation response) { + res.create(arg_request, arg_appsId, arg_servicesId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2657,7 +2712,7 @@ var arg_appsId = "foo"; var arg_servicesId = "foo"; var arg_versionsId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2708,7 +2763,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_appsId, arg_servicesId, arg_versionsId).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_appsId, arg_servicesId, arg_versionsId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2721,7 +2776,7 @@ var arg_servicesId = "foo"; var arg_versionsId = "foo"; var arg_view = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2773,7 +2828,7 @@ var resp = convert.JSON.encode(buildVersion()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, arg_servicesId, arg_versionsId, view: arg_view).then(unittest.expectAsync(((api.Version response) { + res.get(arg_appsId, arg_servicesId, arg_versionsId, view: arg_view).then(unittest.expectAsync1(((api.Version response) { checkVersion(response); }))); }); @@ -2787,7 +2842,7 @@ var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_view = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2838,7 +2893,7 @@ var resp = convert.JSON.encode(buildListVersionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, arg_servicesId, pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view).then(unittest.expectAsync(((api.ListVersionsResponse response) { + res.list(arg_appsId, arg_servicesId, pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view).then(unittest.expectAsync1(((api.ListVersionsResponse response) { checkListVersionsResponse(response); }))); }); @@ -2852,7 +2907,7 @@ var arg_servicesId = "foo"; var arg_versionsId = "foo"; var arg_mask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Version.fromJson(json); checkVersion(obj); @@ -2907,7 +2962,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_appsId, arg_servicesId, arg_versionsId, mask: arg_mask).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_appsId, arg_servicesId, arg_versionsId, mask: arg_mask).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2925,7 +2980,7 @@ var arg_servicesId = "foo"; var arg_versionsId = "foo"; var arg_instancesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DebugInstanceRequest.fromJson(json); checkDebugInstanceRequest(obj); @@ -2990,7 +3045,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.debug(arg_request, arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync(((api.Operation response) { + res.debug(arg_request, arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3003,7 +3058,7 @@ var arg_servicesId = "foo"; var arg_versionsId = "foo"; var arg_instancesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3061,7 +3116,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3074,7 +3129,7 @@ var arg_servicesId = "foo"; var arg_versionsId = "foo"; var arg_instancesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3132,7 +3187,7 @@ var resp = convert.JSON.encode(buildInstance()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync(((api.Instance response) { + res.get(arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync1(((api.Instance response) { checkInstance(response); }))); }); @@ -3146,7 +3201,7 @@ var arg_versionsId = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3203,7 +3258,7 @@ var resp = convert.JSON.encode(buildListInstancesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, arg_servicesId, arg_versionsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListInstancesResponse response) { + res.list(arg_appsId, arg_servicesId, arg_versionsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListInstancesResponse response) { checkListInstancesResponse(response); }))); });
diff --git a/generated/googleapis_beta/test/appengine/v1beta_test.dart b/generated/googleapis_beta/test/appengine/v1beta_test.dart index 2f0b051..80dcd6b 100644 --- a/generated/googleapis_beta/test/appengine/v1beta_test.dart +++ b/generated/googleapis_beta/test/appengine/v1beta_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/appengine/v1beta.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -97,14 +97,14 @@ buildCounterApiEndpointHandler--; } -buildUnnamed3959() { +buildUnnamed3449() { var o = new core.List<api.UrlDispatchRule>(); o.add(buildUrlDispatchRule()); o.add(buildUrlDispatchRule()); return o; } -checkUnnamed3959(core.List<api.UrlDispatchRule> o) { +checkUnnamed3449(core.List<api.UrlDispatchRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlDispatchRule(o[0]); checkUrlDispatchRule(o[1]); @@ -120,7 +120,7 @@ o.defaultBucket = "foo"; o.defaultCookieExpiration = "foo"; o.defaultHostname = "foo"; - o.dispatchRules = buildUnnamed3959(); + o.dispatchRules = buildUnnamed3449(); o.gcrDomain = "foo"; o.iap = buildIdentityAwareProxy(); o.id = "foo"; @@ -140,7 +140,7 @@ unittest.expect(o.defaultBucket, unittest.equals('foo')); unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); unittest.expect(o.defaultHostname, unittest.equals('foo')); - checkUnnamed3959(o.dispatchRules); + checkUnnamed3449(o.dispatchRules); unittest.expect(o.gcrDomain, unittest.equals('foo')); checkIdentityAwareProxy(o.iap); unittest.expect(o.id, unittest.equals('foo')); @@ -151,27 +151,27 @@ buildCounterApplication--; } -buildUnnamed3960() { +buildUnnamed3450() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3960(core.List<core.String> o) { +checkUnnamed3450(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3961() { +buildUnnamed3451() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3961(core.List<core.String> o) { +checkUnnamed3451(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -185,11 +185,11 @@ o.certificateRawData = buildCertificateRawData(); o.displayName = "foo"; o.domainMappingsCount = 42; - o.domainNames = buildUnnamed3960(); + o.domainNames = buildUnnamed3450(); o.expireTime = "foo"; o.id = "foo"; o.name = "foo"; - o.visibleDomainMappings = buildUnnamed3961(); + o.visibleDomainMappings = buildUnnamed3451(); } buildCounterAuthorizedCertificate--; return o; @@ -201,11 +201,11 @@ checkCertificateRawData(o.certificateRawData); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.domainMappingsCount, unittest.equals(42)); - checkUnnamed3960(o.domainNames); + checkUnnamed3450(o.domainNames); unittest.expect(o.expireTime, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3961(o.visibleDomainMappings); + checkUnnamed3451(o.visibleDomainMappings); } buildCounterAuthorizedCertificate--; } @@ -248,6 +248,7 @@ o.minTotalInstances = 42; o.networkUtilization = buildNetworkUtilization(); o.requestUtilization = buildRequestUtilization(); + o.standardSchedulerSettings = buildStandardSchedulerSettings(); } buildCounterAutomaticScaling--; return o; @@ -268,6 +269,7 @@ unittest.expect(o.minTotalInstances, unittest.equals(42)); checkNetworkUtilization(o.networkUtilization); checkRequestUtilization(o.requestUtilization); + checkStandardSchedulerSettings(o.standardSchedulerSettings); } buildCounterAutomaticScaling--; } @@ -293,6 +295,25 @@ buildCounterBasicScaling--; } +core.int buildCounterBuildInfo = 0; +buildBuildInfo() { + var o = new api.BuildInfo(); + buildCounterBuildInfo++; + if (buildCounterBuildInfo < 3) { + o.cloudBuildId = "foo"; + } + buildCounterBuildInfo--; + return o; +} + +checkBuildInfo(api.BuildInfo o) { + buildCounterBuildInfo++; + if (buildCounterBuildInfo < 3) { + unittest.expect(o.cloudBuildId, unittest.equals('foo')); + } + buildCounterBuildInfo--; +} + core.int buildCounterCertificateRawData = 0; buildCertificateRawData() { var o = new api.CertificateRawData(); @@ -373,14 +394,14 @@ buildCounterDebugInstanceRequest--; } -buildUnnamed3962() { +buildUnnamed3452() { var o = new core.Map<core.String, api.FileInfo>(); o["x"] = buildFileInfo(); o["y"] = buildFileInfo(); return o; } -checkUnnamed3962(core.Map<core.String, api.FileInfo> o) { +checkUnnamed3452(core.Map<core.String, api.FileInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkFileInfo(o["x"]); checkFileInfo(o["y"]); @@ -391,8 +412,9 @@ var o = new api.Deployment(); buildCounterDeployment++; if (buildCounterDeployment < 3) { + o.build = buildBuildInfo(); o.container = buildContainerInfo(); - o.files = buildUnnamed3962(); + o.files = buildUnnamed3452(); o.zip = buildZipInfo(); } buildCounterDeployment--; @@ -402,8 +424,9 @@ checkDeployment(api.Deployment o) { buildCounterDeployment++; if (buildCounterDeployment < 3) { + checkBuildInfo(o.build); checkContainerInfo(o.container); - checkUnnamed3962(o.files); + checkUnnamed3452(o.files); checkZipInfo(o.zip); } buildCounterDeployment--; @@ -434,14 +457,14 @@ buildCounterDiskUtilization--; } -buildUnnamed3963() { +buildUnnamed3453() { var o = new core.List<api.ResourceRecord>(); o.add(buildResourceRecord()); o.add(buildResourceRecord()); return o; } -checkUnnamed3963(core.List<api.ResourceRecord> o) { +checkUnnamed3453(core.List<api.ResourceRecord> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecord(o[0]); checkResourceRecord(o[1]); @@ -454,7 +477,7 @@ if (buildCounterDomainMapping < 3) { o.id = "foo"; o.name = "foo"; - o.resourceRecords = buildUnnamed3963(); + o.resourceRecords = buildUnnamed3453(); o.sslSettings = buildSslSettings(); } buildCounterDomainMapping--; @@ -466,7 +489,7 @@ if (buildCounterDomainMapping < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3963(o.resourceRecords); + checkUnnamed3453(o.resourceRecords); checkSslSettings(o.sslSettings); } buildCounterDomainMapping--; @@ -682,14 +705,14 @@ buildCounterLibrary--; } -buildUnnamed3964() { +buildUnnamed3454() { var o = new core.List<api.AuthorizedCertificate>(); o.add(buildAuthorizedCertificate()); o.add(buildAuthorizedCertificate()); return o; } -checkUnnamed3964(core.List<api.AuthorizedCertificate> o) { +checkUnnamed3454(core.List<api.AuthorizedCertificate> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthorizedCertificate(o[0]); checkAuthorizedCertificate(o[1]); @@ -700,7 +723,7 @@ var o = new api.ListAuthorizedCertificatesResponse(); buildCounterListAuthorizedCertificatesResponse++; if (buildCounterListAuthorizedCertificatesResponse < 3) { - o.certificates = buildUnnamed3964(); + o.certificates = buildUnnamed3454(); o.nextPageToken = "foo"; } buildCounterListAuthorizedCertificatesResponse--; @@ -710,20 +733,20 @@ checkListAuthorizedCertificatesResponse(api.ListAuthorizedCertificatesResponse o) { buildCounterListAuthorizedCertificatesResponse++; if (buildCounterListAuthorizedCertificatesResponse < 3) { - checkUnnamed3964(o.certificates); + checkUnnamed3454(o.certificates); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListAuthorizedCertificatesResponse--; } -buildUnnamed3965() { +buildUnnamed3455() { var o = new core.List<api.AuthorizedDomain>(); o.add(buildAuthorizedDomain()); o.add(buildAuthorizedDomain()); return o; } -checkUnnamed3965(core.List<api.AuthorizedDomain> o) { +checkUnnamed3455(core.List<api.AuthorizedDomain> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthorizedDomain(o[0]); checkAuthorizedDomain(o[1]); @@ -734,7 +757,7 @@ var o = new api.ListAuthorizedDomainsResponse(); buildCounterListAuthorizedDomainsResponse++; if (buildCounterListAuthorizedDomainsResponse < 3) { - o.domains = buildUnnamed3965(); + o.domains = buildUnnamed3455(); o.nextPageToken = "foo"; } buildCounterListAuthorizedDomainsResponse--; @@ -744,20 +767,20 @@ checkListAuthorizedDomainsResponse(api.ListAuthorizedDomainsResponse o) { buildCounterListAuthorizedDomainsResponse++; if (buildCounterListAuthorizedDomainsResponse < 3) { - checkUnnamed3965(o.domains); + checkUnnamed3455(o.domains); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListAuthorizedDomainsResponse--; } -buildUnnamed3966() { +buildUnnamed3456() { var o = new core.List<api.DomainMapping>(); o.add(buildDomainMapping()); o.add(buildDomainMapping()); return o; } -checkUnnamed3966(core.List<api.DomainMapping> o) { +checkUnnamed3456(core.List<api.DomainMapping> o) { unittest.expect(o, unittest.hasLength(2)); checkDomainMapping(o[0]); checkDomainMapping(o[1]); @@ -768,7 +791,7 @@ var o = new api.ListDomainMappingsResponse(); buildCounterListDomainMappingsResponse++; if (buildCounterListDomainMappingsResponse < 3) { - o.domainMappings = buildUnnamed3966(); + o.domainMappings = buildUnnamed3456(); o.nextPageToken = "foo"; } buildCounterListDomainMappingsResponse--; @@ -778,20 +801,20 @@ checkListDomainMappingsResponse(api.ListDomainMappingsResponse o) { buildCounterListDomainMappingsResponse++; if (buildCounterListDomainMappingsResponse < 3) { - checkUnnamed3966(o.domainMappings); + checkUnnamed3456(o.domainMappings); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDomainMappingsResponse--; } -buildUnnamed3967() { +buildUnnamed3457() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed3967(core.List<api.Instance> o) { +checkUnnamed3457(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -802,7 +825,7 @@ var o = new api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.instances = buildUnnamed3967(); + o.instances = buildUnnamed3457(); o.nextPageToken = "foo"; } buildCounterListInstancesResponse--; @@ -812,20 +835,20 @@ checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed3967(o.instances); + checkUnnamed3457(o.instances); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstancesResponse--; } -buildUnnamed3968() { +buildUnnamed3458() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed3968(core.List<api.Location> o) { +checkUnnamed3458(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -836,7 +859,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed3968(); + o.locations = buildUnnamed3458(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -846,20 +869,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed3968(o.locations); + checkUnnamed3458(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed3969() { +buildUnnamed3459() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3969(core.List<api.Operation> o) { +checkUnnamed3459(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -871,7 +894,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3969(); + o.operations = buildUnnamed3459(); } buildCounterListOperationsResponse--; return o; @@ -881,19 +904,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3969(o.operations); + checkUnnamed3459(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed3970() { +buildUnnamed3460() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed3970(core.List<api.Service> o) { +checkUnnamed3460(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -905,7 +928,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed3970(); + o.services = buildUnnamed3460(); } buildCounterListServicesResponse--; return o; @@ -915,19 +938,19 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3970(o.services); + checkUnnamed3460(o.services); } buildCounterListServicesResponse--; } -buildUnnamed3971() { +buildUnnamed3461() { var o = new core.List<api.Version>(); o.add(buildVersion()); o.add(buildVersion()); return o; } -checkUnnamed3971(core.List<api.Version> o) { +checkUnnamed3461(core.List<api.Version> o) { unittest.expect(o, unittest.hasLength(2)); checkVersion(o[0]); checkVersion(o[1]); @@ -939,7 +962,7 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { o.nextPageToken = "foo"; - o.versions = buildUnnamed3971(); + o.versions = buildUnnamed3461(); } buildCounterListVersionsResponse--; return o; @@ -949,7 +972,7 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3971(o.versions); + checkUnnamed3461(o.versions); } buildCounterListVersionsResponse--; } @@ -985,27 +1008,27 @@ buildCounterLivenessCheck--; } -buildUnnamed3972() { +buildUnnamed3462() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3972(core.Map<core.String, core.String> o) { +checkUnnamed3462(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3973() { +buildUnnamed3463() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3973(core.Map<core.String, core.Object> o) { +checkUnnamed3463(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -1016,9 +1039,9 @@ var o = new api.Location(); buildCounterLocation++; if (buildCounterLocation < 3) { - o.labels = buildUnnamed3972(); + o.labels = buildUnnamed3462(); o.locationId = "foo"; - o.metadata = buildUnnamed3973(); + o.metadata = buildUnnamed3463(); o.name = "foo"; } buildCounterLocation--; @@ -1028,9 +1051,9 @@ checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { - checkUnnamed3972(o.labels); + checkUnnamed3462(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed3973(o.metadata); + checkUnnamed3463(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -1076,14 +1099,14 @@ buildCounterManualScaling--; } -buildUnnamed3974() { +buildUnnamed3464() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3974(core.List<core.String> o) { +checkUnnamed3464(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1094,7 +1117,7 @@ var o = new api.Network(); buildCounterNetwork++; if (buildCounterNetwork < 3) { - o.forwardedPorts = buildUnnamed3974(); + o.forwardedPorts = buildUnnamed3464(); o.instanceTag = "foo"; o.name = "foo"; o.subnetworkName = "foo"; @@ -1106,7 +1129,7 @@ checkNetwork(api.Network o) { buildCounterNetwork++; if (buildCounterNetwork < 3) { - checkUnnamed3974(o.forwardedPorts); + checkUnnamed3464(o.forwardedPorts); unittest.expect(o.instanceTag, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.subnetworkName, unittest.equals('foo')); @@ -1139,27 +1162,27 @@ buildCounterNetworkUtilization--; } -buildUnnamed3975() { +buildUnnamed3465() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3975(core.Map<core.String, core.Object> o) { +checkUnnamed3465(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed3976() { +buildUnnamed3466() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3976(core.Map<core.String, core.Object> o) { +checkUnnamed3466(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); @@ -1172,9 +1195,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3975(); + o.metadata = buildUnnamed3465(); o.name = "foo"; - o.response = buildUnnamed3976(); + o.response = buildUnnamed3466(); } buildCounterOperation--; return o; @@ -1185,9 +1208,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3975(o.metadata); + checkUnnamed3465(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3976(o.response); + checkUnnamed3466(o.response); } buildCounterOperation--; } @@ -1248,14 +1271,14 @@ buildCounterOperationMetadataExperimental--; } -buildUnnamed3977() { +buildUnnamed3467() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3977(core.List<core.String> o) { +checkUnnamed3467(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1272,7 +1295,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed3977(); + o.warning = buildUnnamed3467(); } buildCounterOperationMetadataV1--; return o; @@ -1287,19 +1310,63 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3977(o.warning); + checkUnnamed3467(o.warning); } buildCounterOperationMetadataV1--; } -buildUnnamed3978() { +buildUnnamed3468() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3978(core.List<core.String> o) { +checkUnnamed3468(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterOperationMetadataV1Alpha = 0; +buildOperationMetadataV1Alpha() { + var o = new api.OperationMetadataV1Alpha(); + buildCounterOperationMetadataV1Alpha++; + if (buildCounterOperationMetadataV1Alpha < 3) { + o.endTime = "foo"; + o.ephemeralMessage = "foo"; + o.insertTime = "foo"; + o.method = "foo"; + o.target = "foo"; + o.user = "foo"; + o.warning = buildUnnamed3468(); + } + buildCounterOperationMetadataV1Alpha--; + return o; +} + +checkOperationMetadataV1Alpha(api.OperationMetadataV1Alpha o) { + buildCounterOperationMetadataV1Alpha++; + if (buildCounterOperationMetadataV1Alpha < 3) { + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.ephemeralMessage, unittest.equals('foo')); + unittest.expect(o.insertTime, unittest.equals('foo')); + unittest.expect(o.method, unittest.equals('foo')); + unittest.expect(o.target, unittest.equals('foo')); + unittest.expect(o.user, unittest.equals('foo')); + checkUnnamed3468(o.warning); + } + buildCounterOperationMetadataV1Alpha--; +} + +buildUnnamed3469() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3469(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1316,7 +1383,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed3978(); + o.warning = buildUnnamed3469(); } buildCounterOperationMetadataV1Beta--; return o; @@ -1331,7 +1398,7 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3978(o.warning); + checkUnnamed3469(o.warning); } buildCounterOperationMetadataV1Beta--; } @@ -1453,14 +1520,14 @@ buildCounterResourceRecord--; } -buildUnnamed3979() { +buildUnnamed3470() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed3979(core.List<api.Volume> o) { +checkUnnamed3470(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -1474,7 +1541,7 @@ o.cpu = 42.0; o.diskGb = 42.0; o.memoryGb = 42.0; - o.volumes = buildUnnamed3979(); + o.volumes = buildUnnamed3470(); } buildCounterResources--; return o; @@ -1486,7 +1553,7 @@ unittest.expect(o.cpu, unittest.equals(42.0)); unittest.expect(o.diskGb, unittest.equals(42.0)); unittest.expect(o.memoryGb, unittest.equals(42.0)); - checkUnnamed3979(o.volumes); + checkUnnamed3470(o.volumes); } buildCounterResources--; } @@ -1552,14 +1619,35 @@ buildCounterSslSettings--; } -buildUnnamed3980() { +core.int buildCounterStandardSchedulerSettings = 0; +buildStandardSchedulerSettings() { + var o = new api.StandardSchedulerSettings(); + buildCounterStandardSchedulerSettings++; + if (buildCounterStandardSchedulerSettings < 3) { + o.targetCpuUtilization = 42.0; + o.targetThroughputUtilization = 42.0; + } + buildCounterStandardSchedulerSettings--; + return o; +} + +checkStandardSchedulerSettings(api.StandardSchedulerSettings o) { + buildCounterStandardSchedulerSettings++; + if (buildCounterStandardSchedulerSettings < 3) { + unittest.expect(o.targetCpuUtilization, unittest.equals(42.0)); + unittest.expect(o.targetThroughputUtilization, unittest.equals(42.0)); + } + buildCounterStandardSchedulerSettings--; +} + +buildUnnamed3471() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3980(core.Map<core.String, core.String> o) { +checkUnnamed3471(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1572,7 +1660,7 @@ if (buildCounterStaticFilesHandler < 3) { o.applicationReadable = true; o.expiration = "foo"; - o.httpHeaders = buildUnnamed3980(); + o.httpHeaders = buildUnnamed3471(); o.mimeType = "foo"; o.path = "foo"; o.requireMatchingFile = true; @@ -1587,7 +1675,7 @@ if (buildCounterStaticFilesHandler < 3) { unittest.expect(o.applicationReadable, unittest.isTrue); unittest.expect(o.expiration, unittest.equals('foo')); - checkUnnamed3980(o.httpHeaders); + checkUnnamed3471(o.httpHeaders); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.requireMatchingFile, unittest.isTrue); @@ -1596,30 +1684,30 @@ buildCounterStaticFilesHandler--; } -buildUnnamed3981() { +buildUnnamed3472() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3981(core.Map<core.String, core.Object> o) { +checkUnnamed3472(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed3982() { +buildUnnamed3473() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3981()); - o.add(buildUnnamed3981()); + o.add(buildUnnamed3472()); + o.add(buildUnnamed3472()); return o; } -checkUnnamed3982(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3473(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3981(o[0]); - checkUnnamed3981(o[1]); + checkUnnamed3472(o[0]); + checkUnnamed3472(o[1]); } core.int buildCounterStatus = 0; @@ -1628,7 +1716,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3982(); + o.details = buildUnnamed3473(); o.message = "foo"; } buildCounterStatus--; @@ -1639,20 +1727,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3982(o.details); + checkUnnamed3473(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed3983() { +buildUnnamed3474() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed3983(core.Map<core.String, core.double> o) { +checkUnnamed3474(core.Map<core.String, core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals(42.0)); unittest.expect(o["y"], unittest.equals(42.0)); @@ -1663,7 +1751,7 @@ var o = new api.TrafficSplit(); buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - o.allocations = buildUnnamed3983(); + o.allocations = buildUnnamed3474(); o.shardBy = "foo"; } buildCounterTrafficSplit--; @@ -1673,7 +1761,7 @@ checkTrafficSplit(api.TrafficSplit o) { buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - checkUnnamed3983(o.allocations); + checkUnnamed3474(o.allocations); unittest.expect(o.shardBy, unittest.equals('foo')); } buildCounterTrafficSplit--; @@ -1735,79 +1823,79 @@ buildCounterUrlMap--; } -buildUnnamed3984() { +buildUnnamed3475() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3984(core.Map<core.String, core.String> o) { +checkUnnamed3475(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3985() { +buildUnnamed3476() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3985(core.Map<core.String, core.String> o) { +checkUnnamed3476(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3986() { +buildUnnamed3477() { var o = new core.List<api.ErrorHandler>(); o.add(buildErrorHandler()); o.add(buildErrorHandler()); return o; } -checkUnnamed3986(core.List<api.ErrorHandler> o) { +checkUnnamed3477(core.List<api.ErrorHandler> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorHandler(o[0]); checkErrorHandler(o[1]); } -buildUnnamed3987() { +buildUnnamed3478() { var o = new core.List<api.UrlMap>(); o.add(buildUrlMap()); o.add(buildUrlMap()); return o; } -checkUnnamed3987(core.List<api.UrlMap> o) { +checkUnnamed3478(core.List<api.UrlMap> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); } -buildUnnamed3988() { +buildUnnamed3479() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3988(core.List<core.String> o) { +checkUnnamed3479(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3989() { +buildUnnamed3480() { var o = new core.List<api.Library>(); o.add(buildLibrary()); o.add(buildLibrary()); return o; } -checkUnnamed3989(core.List<api.Library> o) { +checkUnnamed3480(core.List<api.Library> o) { unittest.expect(o, unittest.hasLength(2)); checkLibrary(o[0]); checkLibrary(o[1]); @@ -1821,7 +1909,7 @@ o.apiConfig = buildApiConfigHandler(); o.automaticScaling = buildAutomaticScaling(); o.basicScaling = buildBasicScaling(); - o.betaSettings = buildUnnamed3984(); + o.betaSettings = buildUnnamed3475(); o.createTime = "foo"; o.createdBy = "foo"; o.defaultExpiration = "foo"; @@ -1829,14 +1917,14 @@ o.diskUsageBytes = "foo"; o.endpointsApiService = buildEndpointsApiService(); o.env = "foo"; - o.envVariables = buildUnnamed3985(); - o.errorHandlers = buildUnnamed3986(); - o.handlers = buildUnnamed3987(); + o.envVariables = buildUnnamed3476(); + o.errorHandlers = buildUnnamed3477(); + o.handlers = buildUnnamed3478(); o.healthCheck = buildHealthCheck(); o.id = "foo"; - o.inboundServices = buildUnnamed3988(); + o.inboundServices = buildUnnamed3479(); o.instanceClass = "foo"; - o.libraries = buildUnnamed3989(); + o.libraries = buildUnnamed3480(); o.livenessCheck = buildLivenessCheck(); o.manualScaling = buildManualScaling(); o.name = "foo"; @@ -1845,6 +1933,7 @@ o.readinessCheck = buildReadinessCheck(); o.resources = buildResources(); o.runtime = "foo"; + o.runtimeApiVersion = "foo"; o.servingStatus = "foo"; o.threadsafe = true; o.versionUrl = "foo"; @@ -1860,7 +1949,7 @@ checkApiConfigHandler(o.apiConfig); checkAutomaticScaling(o.automaticScaling); checkBasicScaling(o.basicScaling); - checkUnnamed3984(o.betaSettings); + checkUnnamed3475(o.betaSettings); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.createdBy, unittest.equals('foo')); unittest.expect(o.defaultExpiration, unittest.equals('foo')); @@ -1868,14 +1957,14 @@ unittest.expect(o.diskUsageBytes, unittest.equals('foo')); checkEndpointsApiService(o.endpointsApiService); unittest.expect(o.env, unittest.equals('foo')); - checkUnnamed3985(o.envVariables); - checkUnnamed3986(o.errorHandlers); - checkUnnamed3987(o.handlers); + checkUnnamed3476(o.envVariables); + checkUnnamed3477(o.errorHandlers); + checkUnnamed3478(o.handlers); checkHealthCheck(o.healthCheck); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3988(o.inboundServices); + checkUnnamed3479(o.inboundServices); unittest.expect(o.instanceClass, unittest.equals('foo')); - checkUnnamed3989(o.libraries); + checkUnnamed3480(o.libraries); checkLivenessCheck(o.livenessCheck); checkManualScaling(o.manualScaling); unittest.expect(o.name, unittest.equals('foo')); @@ -1884,6 +1973,7 @@ checkReadinessCheck(o.readinessCheck); checkResources(o.resources); unittest.expect(o.runtime, unittest.equals('foo')); + unittest.expect(o.runtimeApiVersion, unittest.equals('foo')); unittest.expect(o.servingStatus, unittest.equals('foo')); unittest.expect(o.threadsafe, unittest.isTrue); unittest.expect(o.versionUrl, unittest.equals('foo')); @@ -2001,6 +2091,15 @@ }); + unittest.group("obj-schema-BuildInfo", () { + unittest.test("to-json--from-json", () { + var o = buildBuildInfo(); + var od = new api.BuildInfo.fromJson(o.toJson()); + checkBuildInfo(od); + }); + }); + + unittest.group("obj-schema-CertificateRawData", () { unittest.test("to-json--from-json", () { var o = buildCertificateRawData(); @@ -2298,6 +2397,15 @@ }); + unittest.group("obj-schema-OperationMetadataV1Alpha", () { + unittest.test("to-json--from-json", () { + var o = buildOperationMetadataV1Alpha(); + var od = new api.OperationMetadataV1Alpha.fromJson(o.toJson()); + checkOperationMetadataV1Alpha(od); + }); + }); + + unittest.group("obj-schema-OperationMetadataV1Beta", () { unittest.test("to-json--from-json", () { var o = buildOperationMetadataV1Beta(); @@ -2388,6 +2496,15 @@ }); + unittest.group("obj-schema-StandardSchedulerSettings", () { + unittest.test("to-json--from-json", () { + var o = buildStandardSchedulerSettings(); + var od = new api.StandardSchedulerSettings.fromJson(o.toJson()); + checkStandardSchedulerSettings(od); + }); + }); + + unittest.group("obj-schema-StaticFilesHandler", () { unittest.test("to-json--from-json", () { var o = buildStaticFilesHandler(); @@ -2466,7 +2583,7 @@ var mock = new HttpServerMock(); api.AppsResourceApi res = new api.AppengineApi(mock).apps; var arg_request = buildApplication(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Application.fromJson(json); checkApplication(obj); @@ -2503,7 +2620,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request).then(unittest.expectAsync(((api.Operation response) { + res.create(arg_request).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2513,7 +2630,7 @@ var mock = new HttpServerMock(); api.AppsResourceApi res = new api.AppengineApi(mock).apps; var arg_appsId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2550,7 +2667,7 @@ var resp = convert.JSON.encode(buildApplication()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId).then(unittest.expectAsync(((api.Application response) { + res.get(arg_appsId).then(unittest.expectAsync1(((api.Application response) { checkApplication(response); }))); }); @@ -2562,7 +2679,7 @@ var arg_request = buildApplication(); var arg_appsId = "foo"; var arg_updateMask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Application.fromJson(json); checkApplication(obj); @@ -2603,7 +2720,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_appsId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_appsId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2614,7 +2731,7 @@ api.AppsResourceApi res = new api.AppengineApi(mock).apps; var arg_request = buildRepairApplicationRequest(); var arg_appsId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RepairApplicationRequest.fromJson(json); checkRepairApplicationRequest(obj); @@ -2658,7 +2775,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.repair(arg_request, arg_appsId).then(unittest.expectAsync(((api.Operation response) { + res.repair(arg_request, arg_appsId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2673,7 +2790,7 @@ api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock).apps.authorizedCertificates; var arg_request = buildAuthorizedCertificate(); var arg_appsId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AuthorizedCertificate.fromJson(json); checkAuthorizedCertificate(obj); @@ -2717,7 +2834,7 @@ var resp = convert.JSON.encode(buildAuthorizedCertificate()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_appsId).then(unittest.expectAsync(((api.AuthorizedCertificate response) { + res.create(arg_request, arg_appsId).then(unittest.expectAsync1(((api.AuthorizedCertificate response) { checkAuthorizedCertificate(response); }))); }); @@ -2728,7 +2845,7 @@ api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock).apps.authorizedCertificates; var arg_appsId = "foo"; var arg_authorizedCertificatesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2772,7 +2889,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_appsId, arg_authorizedCertificatesId).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_appsId, arg_authorizedCertificatesId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -2784,7 +2901,7 @@ var arg_appsId = "foo"; var arg_authorizedCertificatesId = "foo"; var arg_view = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2829,7 +2946,7 @@ var resp = convert.JSON.encode(buildAuthorizedCertificate()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, arg_authorizedCertificatesId, view: arg_view).then(unittest.expectAsync(((api.AuthorizedCertificate response) { + res.get(arg_appsId, arg_authorizedCertificatesId, view: arg_view).then(unittest.expectAsync1(((api.AuthorizedCertificate response) { checkAuthorizedCertificate(response); }))); }); @@ -2839,9 +2956,9 @@ var mock = new HttpServerMock(); api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock).apps.authorizedCertificates; var arg_appsId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2874,8 +2991,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -2884,7 +3001,7 @@ var resp = convert.JSON.encode(buildListAuthorizedCertificatesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListAuthorizedCertificatesResponse response) { + res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListAuthorizedCertificatesResponse response) { checkListAuthorizedCertificatesResponse(response); }))); }); @@ -2897,7 +3014,7 @@ var arg_appsId = "foo"; var arg_authorizedCertificatesId = "foo"; var arg_updateMask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AuthorizedCertificate.fromJson(json); checkAuthorizedCertificate(obj); @@ -2945,7 +3062,7 @@ var resp = convert.JSON.encode(buildAuthorizedCertificate()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_appsId, arg_authorizedCertificatesId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.AuthorizedCertificate response) { + res.patch(arg_request, arg_appsId, arg_authorizedCertificatesId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.AuthorizedCertificate response) { checkAuthorizedCertificate(response); }))); }); @@ -2961,7 +3078,7 @@ var arg_appsId = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3004,7 +3121,7 @@ var resp = convert.JSON.encode(buildListAuthorizedDomainsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListAuthorizedDomainsResponse response) { + res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListAuthorizedDomainsResponse response) { checkListAuthorizedDomainsResponse(response); }))); }); @@ -3019,7 +3136,7 @@ api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.domainMappings; var arg_request = buildDomainMapping(); var arg_appsId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DomainMapping.fromJson(json); checkDomainMapping(obj); @@ -3063,7 +3180,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_appsId).then(unittest.expectAsync(((api.Operation response) { + res.create(arg_request, arg_appsId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3074,7 +3191,7 @@ api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.domainMappings; var arg_appsId = "foo"; var arg_domainMappingsId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3118,7 +3235,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_appsId, arg_domainMappingsId).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_appsId, arg_domainMappingsId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3129,7 +3246,7 @@ api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.domainMappings; var arg_appsId = "foo"; var arg_domainMappingsId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3173,7 +3290,7 @@ var resp = convert.JSON.encode(buildDomainMapping()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, arg_domainMappingsId).then(unittest.expectAsync(((api.DomainMapping response) { + res.get(arg_appsId, arg_domainMappingsId).then(unittest.expectAsync1(((api.DomainMapping response) { checkDomainMapping(response); }))); }); @@ -3183,9 +3300,9 @@ var mock = new HttpServerMock(); api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.domainMappings; var arg_appsId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3218,8 +3335,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -3228,7 +3345,7 @@ var resp = convert.JSON.encode(buildListDomainMappingsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListDomainMappingsResponse response) { + res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListDomainMappingsResponse response) { checkListDomainMappingsResponse(response); }))); }); @@ -3241,7 +3358,7 @@ var arg_appsId = "foo"; var arg_domainMappingsId = "foo"; var arg_updateMask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DomainMapping.fromJson(json); checkDomainMapping(obj); @@ -3289,7 +3406,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_appsId, arg_domainMappingsId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_appsId, arg_domainMappingsId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3304,7 +3421,7 @@ api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locations; var arg_appsId = "foo"; var arg_locationsId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3348,7 +3465,7 @@ var resp = convert.JSON.encode(buildLocation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync(((api.Location response) { + res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync1(((api.Location response) { checkLocation(response); }))); }); @@ -3361,7 +3478,7 @@ var arg_pageSize = 42; var arg_filter = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3405,7 +3522,7 @@ var resp = convert.JSON.encode(buildListLocationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListLocationsResponse response) { + res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListLocationsResponse response) { checkListLocationsResponse(response); }))); }); @@ -3420,7 +3537,7 @@ api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operations; var arg_appsId = "foo"; var arg_operationsId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3464,7 +3581,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3474,10 +3591,10 @@ var mock = new HttpServerMock(); api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operations; var arg_appsId = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_pageSize = 42; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3510,9 +3627,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); var h = { @@ -3521,7 +3638,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response) { + res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); }); @@ -3536,7 +3653,7 @@ api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services; var arg_appsId = "foo"; var arg_servicesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3580,7 +3697,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_appsId, arg_servicesId).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_appsId, arg_servicesId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3591,7 +3708,7 @@ api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services; var arg_appsId = "foo"; var arg_servicesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3635,7 +3752,7 @@ var resp = convert.JSON.encode(buildService()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, arg_servicesId).then(unittest.expectAsync(((api.Service response) { + res.get(arg_appsId, arg_servicesId).then(unittest.expectAsync1(((api.Service response) { checkService(response); }))); }); @@ -3645,9 +3762,9 @@ var mock = new HttpServerMock(); api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services; var arg_appsId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3680,8 +3797,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -3690,7 +3807,7 @@ var resp = convert.JSON.encode(buildListServicesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListServicesResponse response) { + res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListServicesResponse response) { checkListServicesResponse(response); }))); }); @@ -3704,7 +3821,7 @@ var arg_servicesId = "foo"; var arg_migrateTraffic = true; var arg_updateMask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Service.fromJson(json); checkService(obj); @@ -3753,7 +3870,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_appsId, arg_servicesId, migrateTraffic: arg_migrateTraffic, updateMask: arg_updateMask).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_appsId, arg_servicesId, migrateTraffic: arg_migrateTraffic, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3769,7 +3886,7 @@ var arg_request = buildVersion(); var arg_appsId = "foo"; var arg_servicesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Version.fromJson(json); checkVersion(obj); @@ -3820,7 +3937,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_appsId, arg_servicesId).then(unittest.expectAsync(((api.Operation response) { + res.create(arg_request, arg_appsId, arg_servicesId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3832,7 +3949,7 @@ var arg_appsId = "foo"; var arg_servicesId = "foo"; var arg_versionsId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3883,7 +4000,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_appsId, arg_servicesId, arg_versionsId).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_appsId, arg_servicesId, arg_versionsId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3896,7 +4013,7 @@ var arg_servicesId = "foo"; var arg_versionsId = "foo"; var arg_view = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3948,7 +4065,7 @@ var resp = convert.JSON.encode(buildVersion()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, arg_servicesId, arg_versionsId, view: arg_view).then(unittest.expectAsync(((api.Version response) { + res.get(arg_appsId, arg_servicesId, arg_versionsId, view: arg_view).then(unittest.expectAsync1(((api.Version response) { checkVersion(response); }))); }); @@ -3959,10 +4076,10 @@ api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps.services.versions; var arg_appsId = "foo"; var arg_servicesId = "foo"; + var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_view = "foo"; - var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4002,9 +4119,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -4013,7 +4130,7 @@ var resp = convert.JSON.encode(buildListVersionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, arg_servicesId, pageSize: arg_pageSize, view: arg_view, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListVersionsResponse response) { + res.list(arg_appsId, arg_servicesId, pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view).then(unittest.expectAsync1(((api.ListVersionsResponse response) { checkListVersionsResponse(response); }))); }); @@ -4027,7 +4144,7 @@ var arg_servicesId = "foo"; var arg_versionsId = "foo"; var arg_updateMask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Version.fromJson(json); checkVersion(obj); @@ -4082,7 +4199,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_appsId, arg_servicesId, arg_versionsId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_appsId, arg_servicesId, arg_versionsId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -4100,7 +4217,7 @@ var arg_servicesId = "foo"; var arg_versionsId = "foo"; var arg_instancesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DebugInstanceRequest.fromJson(json); checkDebugInstanceRequest(obj); @@ -4165,7 +4282,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.debug(arg_request, arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync(((api.Operation response) { + res.debug(arg_request, arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -4178,7 +4295,7 @@ var arg_servicesId = "foo"; var arg_versionsId = "foo"; var arg_instancesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4236,7 +4353,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -4249,7 +4366,7 @@ var arg_servicesId = "foo"; var arg_versionsId = "foo"; var arg_instancesId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4307,7 +4424,7 @@ var resp = convert.JSON.encode(buildInstance()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync(((api.Instance response) { + res.get(arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync1(((api.Instance response) { checkInstance(response); }))); }); @@ -4321,7 +4438,7 @@ var arg_versionsId = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4378,7 +4495,7 @@ var resp = convert.JSON.encode(buildListInstancesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, arg_servicesId, arg_versionsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListInstancesResponse response) { + res.list(arg_appsId, arg_servicesId, arg_versionsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListInstancesResponse response) { checkListInstancesResponse(response); }))); });
diff --git a/generated/googleapis_beta/test/cloudresourcemanager/v1beta1_test.dart b/generated/googleapis_beta/test/cloudresourcemanager/v1beta1_test.dart index 2c61318..862ff91 100644 --- a/generated/googleapis_beta/test/cloudresourcemanager/v1beta1_test.dart +++ b/generated/googleapis_beta/test/cloudresourcemanager/v1beta1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/cloudresourcemanager/v1beta1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -70,14 +70,14 @@ buildCounterAncestor--; } -buildUnnamed3795() { +buildUnnamed3269() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed3795(core.List<api.AuditLogConfig> o) { +checkUnnamed3269(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -88,7 +88,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed3795(); + o.auditLogConfigs = buildUnnamed3269(); o.service = "foo"; } buildCounterAuditConfig--; @@ -98,20 +98,20 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed3795(o.auditLogConfigs); + checkUnnamed3269(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed3796() { +buildUnnamed3270() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3796(core.List<core.String> o) { +checkUnnamed3270(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -122,7 +122,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed3796(); + o.exemptedMembers = buildUnnamed3270(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -132,20 +132,20 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed3796(o.exemptedMembers); + checkUnnamed3270(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed3797() { +buildUnnamed3271() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3797(core.List<core.String> o) { +checkUnnamed3271(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -156,7 +156,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed3797(); + o.members = buildUnnamed3271(); o.role = "foo"; } buildCounterBinding--; @@ -166,7 +166,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed3797(o.members); + checkUnnamed3271(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -250,14 +250,14 @@ buildCounterGetAncestryRequest--; } -buildUnnamed3798() { +buildUnnamed3272() { var o = new core.List<api.Ancestor>(); o.add(buildAncestor()); o.add(buildAncestor()); return o; } -checkUnnamed3798(core.List<api.Ancestor> o) { +checkUnnamed3272(core.List<api.Ancestor> o) { unittest.expect(o, unittest.hasLength(2)); checkAncestor(o[0]); checkAncestor(o[1]); @@ -268,7 +268,7 @@ var o = new api.GetAncestryResponse(); buildCounterGetAncestryResponse++; if (buildCounterGetAncestryResponse < 3) { - o.ancestor = buildUnnamed3798(); + o.ancestor = buildUnnamed3272(); } buildCounterGetAncestryResponse--; return o; @@ -277,7 +277,7 @@ checkGetAncestryResponse(api.GetAncestryResponse o) { buildCounterGetAncestryResponse++; if (buildCounterGetAncestryResponse < 3) { - checkUnnamed3798(o.ancestor); + checkUnnamed3272(o.ancestor); } buildCounterGetAncestryResponse--; } @@ -299,14 +299,14 @@ buildCounterGetIamPolicyRequest--; } -buildUnnamed3799() { +buildUnnamed3273() { var o = new core.List<api.Organization>(); o.add(buildOrganization()); o.add(buildOrganization()); return o; } -checkUnnamed3799(core.List<api.Organization> o) { +checkUnnamed3273(core.List<api.Organization> o) { unittest.expect(o, unittest.hasLength(2)); checkOrganization(o[0]); checkOrganization(o[1]); @@ -318,7 +318,7 @@ buildCounterListOrganizationsResponse++; if (buildCounterListOrganizationsResponse < 3) { o.nextPageToken = "foo"; - o.organizations = buildUnnamed3799(); + o.organizations = buildUnnamed3273(); } buildCounterListOrganizationsResponse--; return o; @@ -328,19 +328,19 @@ buildCounterListOrganizationsResponse++; if (buildCounterListOrganizationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3799(o.organizations); + checkUnnamed3273(o.organizations); } buildCounterListOrganizationsResponse--; } -buildUnnamed3800() { +buildUnnamed3274() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed3800(core.List<api.Project> o) { +checkUnnamed3274(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -352,7 +352,7 @@ buildCounterListProjectsResponse++; if (buildCounterListProjectsResponse < 3) { o.nextPageToken = "foo"; - o.projects = buildUnnamed3800(); + o.projects = buildUnnamed3274(); } buildCounterListProjectsResponse--; return o; @@ -362,7 +362,7 @@ buildCounterListProjectsResponse++; if (buildCounterListProjectsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3800(o.projects); + checkUnnamed3274(o.projects); } buildCounterListProjectsResponse--; } @@ -415,27 +415,27 @@ buildCounterOrganizationOwner--; } -buildUnnamed3801() { +buildUnnamed3275() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed3801(core.List<api.AuditConfig> o) { +checkUnnamed3275(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed3802() { +buildUnnamed3276() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed3802(core.List<api.Binding> o) { +checkUnnamed3276(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -446,8 +446,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed3801(); - o.bindings = buildUnnamed3802(); + o.auditConfigs = buildUnnamed3275(); + o.bindings = buildUnnamed3276(); o.etag = "foo"; o.version = 42; } @@ -458,22 +458,22 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed3801(o.auditConfigs); - checkUnnamed3802(o.bindings); + checkUnnamed3275(o.auditConfigs); + checkUnnamed3276(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed3803() { +buildUnnamed3277() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3803(core.Map<core.String, core.String> o) { +checkUnnamed3277(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -485,7 +485,7 @@ buildCounterProject++; if (buildCounterProject < 3) { o.createTime = "foo"; - o.labels = buildUnnamed3803(); + o.labels = buildUnnamed3277(); o.lifecycleState = "foo"; o.name = "foo"; o.parent = buildResourceId(); @@ -500,7 +500,7 @@ buildCounterProject++; if (buildCounterProject < 3) { unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed3803(o.labels); + checkUnnamed3277(o.labels); unittest.expect(o.lifecycleState, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkResourceId(o.parent); @@ -575,14 +575,14 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed3804() { +buildUnnamed3278() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3804(core.List<core.String> o) { +checkUnnamed3278(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -593,7 +593,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed3804(); + o.permissions = buildUnnamed3278(); } buildCounterTestIamPermissionsRequest--; return o; @@ -602,19 +602,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed3804(o.permissions); + checkUnnamed3278(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed3805() { +buildUnnamed3279() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3805(core.List<core.String> o) { +checkUnnamed3279(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -625,7 +625,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed3805(); + o.permissions = buildUnnamed3279(); } buildCounterTestIamPermissionsResponse--; return o; @@ -634,7 +634,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed3805(o.permissions); + checkUnnamed3279(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -863,7 +863,7 @@ api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; var arg_name = "foo"; var arg_organizationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -899,7 +899,7 @@ var resp = convert.JSON.encode(buildOrganization()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name, organizationId: arg_organizationId).then(unittest.expectAsync(((api.Organization response) { + res.get(arg_name, organizationId: arg_organizationId).then(unittest.expectAsync1(((api.Organization response) { checkOrganization(response); }))); }); @@ -910,7 +910,7 @@ api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; var arg_request = buildGetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GetIamPolicyRequest.fromJson(json); checkGetIamPolicyRequest(obj); @@ -948,7 +948,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -960,7 +960,7 @@ var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -997,7 +997,7 @@ var resp = convert.JSON.encode(buildListOrganizationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListOrganizationsResponse response) { + res.list(filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListOrganizationsResponse response) { checkListOrganizationsResponse(response); }))); }); @@ -1008,7 +1008,7 @@ api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; var arg_request = buildSetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetIamPolicyRequest.fromJson(json); checkSetIamPolicyRequest(obj); @@ -1046,7 +1046,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -1057,7 +1057,7 @@ api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; var arg_request = buildTestIamPermissionsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TestIamPermissionsRequest.fromJson(json); checkTestIamPermissionsRequest(obj); @@ -1095,7 +1095,7 @@ var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { checkTestIamPermissionsResponse(response); }))); }); @@ -1106,7 +1106,7 @@ api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; var arg_request = buildOrganization(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Organization.fromJson(json); checkOrganization(obj); @@ -1144,7 +1144,7 @@ var resp = convert.JSON.encode(buildOrganization()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_name).then(unittest.expectAsync(((api.Organization response) { + res.update(arg_request, arg_name).then(unittest.expectAsync1(((api.Organization response) { checkOrganization(response); }))); }); @@ -1159,7 +1159,7 @@ api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_request = buildProject(); var arg_useLegacyStack = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Project.fromJson(json); checkProject(obj); @@ -1197,7 +1197,7 @@ var resp = convert.JSON.encode(buildProject()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, useLegacyStack: arg_useLegacyStack).then(unittest.expectAsync(((api.Project response) { + res.create(arg_request, useLegacyStack: arg_useLegacyStack).then(unittest.expectAsync1(((api.Project response) { checkProject(response); }))); }); @@ -1207,7 +1207,7 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1244,7 +1244,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_projectId).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_projectId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1254,7 +1254,7 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1291,7 +1291,7 @@ var resp = convert.JSON.encode(buildProject()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_projectId).then(unittest.expectAsync(((api.Project response) { + res.get(arg_projectId).then(unittest.expectAsync1(((api.Project response) { checkProject(response); }))); }); @@ -1302,7 +1302,7 @@ api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_request = buildGetAncestryRequest(); var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GetAncestryRequest.fromJson(json); checkGetAncestryRequest(obj); @@ -1346,7 +1346,7 @@ var resp = convert.JSON.encode(buildGetAncestryResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getAncestry(arg_request, arg_projectId).then(unittest.expectAsync(((api.GetAncestryResponse response) { + res.getAncestry(arg_request, arg_projectId).then(unittest.expectAsync1(((api.GetAncestryResponse response) { checkGetAncestryResponse(response); }))); }); @@ -1357,7 +1357,7 @@ api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_request = buildGetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GetIamPolicyRequest.fromJson(json); checkGetIamPolicyRequest(obj); @@ -1401,7 +1401,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -1410,10 +1410,10 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; - var arg_pageSize = 42; var arg_filter = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_pageSize = 42; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1439,9 +1439,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); var h = { @@ -1450,7 +1450,7 @@ var resp = convert.JSON.encode(buildListProjectsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListProjectsResponse response) { + res.list(filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListProjectsResponse response) { checkListProjectsResponse(response); }))); }); @@ -1461,7 +1461,7 @@ api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_request = buildSetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetIamPolicyRequest.fromJson(json); checkSetIamPolicyRequest(obj); @@ -1505,7 +1505,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -1516,7 +1516,7 @@ api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_request = buildTestIamPermissionsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TestIamPermissionsRequest.fromJson(json); checkTestIamPermissionsRequest(obj); @@ -1560,7 +1560,7 @@ var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { checkTestIamPermissionsResponse(response); }))); }); @@ -1571,7 +1571,7 @@ api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_request = buildUndeleteProjectRequest(); var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.UndeleteProjectRequest.fromJson(json); checkUndeleteProjectRequest(obj); @@ -1615,7 +1615,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.undelete(arg_request, arg_projectId).then(unittest.expectAsync(((api.Empty response) { + res.undelete(arg_request, arg_projectId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1626,7 +1626,7 @@ api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_request = buildProject(); var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Project.fromJson(json); checkProject(obj); @@ -1666,7 +1666,7 @@ var resp = convert.JSON.encode(buildProject()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_projectId).then(unittest.expectAsync(((api.Project response) { + res.update(arg_request, arg_projectId).then(unittest.expectAsync1(((api.Project response) { checkProject(response); }))); });
diff --git a/generated/googleapis_beta/test/clouduseraccounts/beta_test.dart b/generated/googleapis_beta/test/clouduseraccounts/beta_test.dart index c0f7341..18d2880 100644 --- a/generated/googleapis_beta/test/clouduseraccounts/beta_test.dart +++ b/generated/googleapis_beta/test/clouduseraccounts/beta_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/clouduseraccounts/beta.dart' as api; @@ -46,19 +46,19 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3665() { +buildUnnamed3139() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3665(core.List<core.String> o) { +checkUnnamed3139(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -69,7 +69,7 @@ var o = new api.AuthorizedKeysView(); buildCounterAuthorizedKeysView++; if (buildCounterAuthorizedKeysView < 3) { - o.keys = buildUnnamed3665(); + o.keys = buildUnnamed3139(); o.sudoer = true; } buildCounterAuthorizedKeysView--; @@ -79,20 +79,20 @@ checkAuthorizedKeysView(api.AuthorizedKeysView o) { buildCounterAuthorizedKeysView++; if (buildCounterAuthorizedKeysView < 3) { - checkUnnamed3665(o.keys); + checkUnnamed3139(o.keys); unittest.expect(o.sudoer, unittest.isTrue); } buildCounterAuthorizedKeysView--; } -buildUnnamed3666() { +buildUnnamed3140() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3666(core.List<core.String> o) { +checkUnnamed3140(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -107,7 +107,7 @@ o.description = "foo"; o.id = "foo"; o.kind = "foo"; - o.members = buildUnnamed3666(); + o.members = buildUnnamed3140(); o.name = "foo"; o.selfLink = "foo"; } @@ -122,21 +122,21 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3666(o.members); + checkUnnamed3140(o.members); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterGroup--; } -buildUnnamed3667() { +buildUnnamed3141() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed3667(core.List<api.Group> o) { +checkUnnamed3141(core.List<api.Group> o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); @@ -148,7 +148,7 @@ buildCounterGroupList++; if (buildCounterGroupList < 3) { o.id = "foo"; - o.items = buildUnnamed3667(); + o.items = buildUnnamed3141(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -161,7 +161,7 @@ buildCounterGroupList++; if (buildCounterGroupList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3667(o.items); + checkUnnamed3141(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -169,14 +169,14 @@ buildCounterGroupList--; } -buildUnnamed3668() { +buildUnnamed3142() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3668(core.List<core.String> o) { +checkUnnamed3142(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -187,7 +187,7 @@ var o = new api.GroupsAddMemberRequest(); buildCounterGroupsAddMemberRequest++; if (buildCounterGroupsAddMemberRequest < 3) { - o.users = buildUnnamed3668(); + o.users = buildUnnamed3142(); } buildCounterGroupsAddMemberRequest--; return o; @@ -196,19 +196,19 @@ checkGroupsAddMemberRequest(api.GroupsAddMemberRequest o) { buildCounterGroupsAddMemberRequest++; if (buildCounterGroupsAddMemberRequest < 3) { - checkUnnamed3668(o.users); + checkUnnamed3142(o.users); } buildCounterGroupsAddMemberRequest--; } -buildUnnamed3669() { +buildUnnamed3143() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3669(core.List<core.String> o) { +checkUnnamed3143(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -219,7 +219,7 @@ var o = new api.GroupsRemoveMemberRequest(); buildCounterGroupsRemoveMemberRequest++; if (buildCounterGroupsRemoveMemberRequest < 3) { - o.users = buildUnnamed3669(); + o.users = buildUnnamed3143(); } buildCounterGroupsRemoveMemberRequest--; return o; @@ -228,32 +228,32 @@ checkGroupsRemoveMemberRequest(api.GroupsRemoveMemberRequest o) { buildCounterGroupsRemoveMemberRequest++; if (buildCounterGroupsRemoveMemberRequest < 3) { - checkUnnamed3669(o.users); + checkUnnamed3143(o.users); } buildCounterGroupsRemoveMemberRequest--; } -buildUnnamed3670() { +buildUnnamed3144() { var o = new core.List<api.LinuxGroupView>(); o.add(buildLinuxGroupView()); o.add(buildLinuxGroupView()); return o; } -checkUnnamed3670(core.List<api.LinuxGroupView> o) { +checkUnnamed3144(core.List<api.LinuxGroupView> o) { unittest.expect(o, unittest.hasLength(2)); checkLinuxGroupView(o[0]); checkLinuxGroupView(o[1]); } -buildUnnamed3671() { +buildUnnamed3145() { var o = new core.List<api.LinuxUserView>(); o.add(buildLinuxUserView()); o.add(buildLinuxUserView()); return o; } -checkUnnamed3671(core.List<api.LinuxUserView> o) { +checkUnnamed3145(core.List<api.LinuxUserView> o) { unittest.expect(o, unittest.hasLength(2)); checkLinuxUserView(o[0]); checkLinuxUserView(o[1]); @@ -264,9 +264,9 @@ var o = new api.LinuxAccountViews(); buildCounterLinuxAccountViews++; if (buildCounterLinuxAccountViews < 3) { - o.groupViews = buildUnnamed3670(); + o.groupViews = buildUnnamed3144(); o.kind = "foo"; - o.userViews = buildUnnamed3671(); + o.userViews = buildUnnamed3145(); } buildCounterLinuxAccountViews--; return o; @@ -275,9 +275,9 @@ checkLinuxAccountViews(api.LinuxAccountViews o) { buildCounterLinuxAccountViews++; if (buildCounterLinuxAccountViews < 3) { - checkUnnamed3670(o.groupViews); + checkUnnamed3144(o.groupViews); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3671(o.userViews); + checkUnnamed3145(o.userViews); } buildCounterLinuxAccountViews--; } @@ -320,14 +320,14 @@ buildCounterLinuxGetLinuxAccountViewsResponse--; } -buildUnnamed3672() { +buildUnnamed3146() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3672(core.List<core.String> o) { +checkUnnamed3146(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -340,7 +340,7 @@ if (buildCounterLinuxGroupView < 3) { o.gid = 42; o.groupName = "foo"; - o.members = buildUnnamed3672(); + o.members = buildUnnamed3146(); } buildCounterLinuxGroupView--; return o; @@ -351,7 +351,7 @@ if (buildCounterLinuxGroupView < 3) { unittest.expect(o.gid, unittest.equals(42)); unittest.expect(o.groupName, unittest.equals('foo')); - checkUnnamed3672(o.members); + checkUnnamed3146(o.members); } buildCounterLinuxGroupView--; } @@ -408,14 +408,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed3673() { +buildUnnamed3147() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed3673(core.List<api.OperationErrorErrors> o) { +checkUnnamed3147(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -426,7 +426,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed3673(); + o.errors = buildUnnamed3147(); } buildCounterOperationError--; return o; @@ -435,7 +435,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed3673(o.errors); + checkUnnamed3147(o.errors); } buildCounterOperationError--; } @@ -461,14 +461,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed3674() { +buildUnnamed3148() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed3674(core.List<api.OperationWarningsData> o) { +checkUnnamed3148(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -480,7 +480,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed3674(); + o.data = buildUnnamed3148(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -491,20 +491,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed3674(o.data); + checkUnnamed3148(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed3675() { +buildUnnamed3149() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed3675(core.List<api.OperationWarnings> o) { +checkUnnamed3149(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -536,7 +536,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed3675(); + o.warnings = buildUnnamed3149(); o.zone = "foo"; } buildCounterOperation--; @@ -567,20 +567,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3675(o.warnings); + checkUnnamed3149(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed3676() { +buildUnnamed3150() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3676(core.List<api.Operation> o) { +checkUnnamed3150(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -592,7 +592,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { o.id = "foo"; - o.items = buildUnnamed3676(); + o.items = buildUnnamed3150(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -605,7 +605,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3676(o.items); + checkUnnamed3150(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -640,27 +640,27 @@ buildCounterPublicKey--; } -buildUnnamed3677() { +buildUnnamed3151() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3677(core.List<core.String> o) { +checkUnnamed3151(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3678() { +buildUnnamed3152() { var o = new core.List<api.PublicKey>(); o.add(buildPublicKey()); o.add(buildPublicKey()); return o; } -checkUnnamed3678(core.List<api.PublicKey> o) { +checkUnnamed3152(core.List<api.PublicKey> o) { unittest.expect(o, unittest.hasLength(2)); checkPublicKey(o[0]); checkPublicKey(o[1]); @@ -673,12 +673,12 @@ if (buildCounterUser < 3) { o.creationTimestamp = "foo"; o.description = "foo"; - o.groups = buildUnnamed3677(); + o.groups = buildUnnamed3151(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; o.owner = "foo"; - o.publicKeys = buildUnnamed3678(); + o.publicKeys = buildUnnamed3152(); o.selfLink = "foo"; } buildCounterUser--; @@ -690,25 +690,25 @@ if (buildCounterUser < 3) { unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed3677(o.groups); + checkUnnamed3151(o.groups); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.owner, unittest.equals('foo')); - checkUnnamed3678(o.publicKeys); + checkUnnamed3152(o.publicKeys); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterUser--; } -buildUnnamed3679() { +buildUnnamed3153() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed3679(core.List<api.User> o) { +checkUnnamed3153(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -720,7 +720,7 @@ buildCounterUserList++; if (buildCounterUserList < 3) { o.id = "foo"; - o.items = buildUnnamed3679(); + o.items = buildUnnamed3153(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -733,7 +733,7 @@ buildCounterUserList++; if (buildCounterUserList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3679(o.items); + checkUnnamed3153(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -921,7 +921,7 @@ api.GlobalAccountsOperationsResourceApi res = new api.ClouduseraccountsApi(mock).globalAccountsOperations; var arg_project = "foo"; var arg_operation = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -953,7 +953,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_operation).then(unittest.expectAsync((_) {})); + res.delete(arg_project, arg_operation).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -962,7 +962,7 @@ api.GlobalAccountsOperationsResourceApi res = new api.ClouduseraccountsApi(mock).globalAccountsOperations; var arg_project = "foo"; var arg_operation = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -994,7 +994,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_operation).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_project, arg_operation).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1008,7 +1008,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1044,7 +1044,7 @@ var resp = convert.JSON.encode(buildOperationList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.OperationList response) { checkOperationList(response); }))); }); @@ -1060,7 +1060,7 @@ var arg_request = buildGroupsAddMemberRequest(); var arg_project = "foo"; var arg_groupName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GroupsAddMemberRequest.fromJson(json); checkGroupsAddMemberRequest(obj); @@ -1095,7 +1095,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.addMember(arg_request, arg_project, arg_groupName).then(unittest.expectAsync(((api.Operation response) { + res.addMember(arg_request, arg_project, arg_groupName).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1106,7 +1106,7 @@ api.GroupsResourceApi res = new api.ClouduseraccountsApi(mock).groups; var arg_project = "foo"; var arg_groupName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1138,7 +1138,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_groupName).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_groupName).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1149,7 +1149,7 @@ api.GroupsResourceApi res = new api.ClouduseraccountsApi(mock).groups; var arg_project = "foo"; var arg_groupName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1181,7 +1181,7 @@ var resp = convert.JSON.encode(buildGroup()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_groupName).then(unittest.expectAsync(((api.Group response) { + res.get(arg_project, arg_groupName).then(unittest.expectAsync1(((api.Group response) { checkGroup(response); }))); }); @@ -1192,7 +1192,7 @@ api.GroupsResourceApi res = new api.ClouduseraccountsApi(mock).groups; var arg_request = buildGroup(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Group.fromJson(json); checkGroup(obj); @@ -1227,7 +1227,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1241,7 +1241,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1277,7 +1277,7 @@ var resp = convert.JSON.encode(buildGroupList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.GroupList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.GroupList response) { checkGroupList(response); }))); }); @@ -1289,7 +1289,7 @@ var arg_request = buildGroupsRemoveMemberRequest(); var arg_project = "foo"; var arg_groupName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GroupsRemoveMemberRequest.fromJson(json); checkGroupsRemoveMemberRequest(obj); @@ -1324,7 +1324,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.removeMember(arg_request, arg_project, arg_groupName).then(unittest.expectAsync(((api.Operation response) { + res.removeMember(arg_request, arg_project, arg_groupName).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1342,7 +1342,7 @@ var arg_user = "foo"; var arg_instance = "foo"; var arg_login = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1376,7 +1376,7 @@ var resp = convert.JSON.encode(buildLinuxGetAuthorizedKeysViewResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getAuthorizedKeysView(arg_project, arg_zone, arg_user, arg_instance, login: arg_login).then(unittest.expectAsync(((api.LinuxGetAuthorizedKeysViewResponse response) { + res.getAuthorizedKeysView(arg_project, arg_zone, arg_user, arg_instance, login: arg_login).then(unittest.expectAsync1(((api.LinuxGetAuthorizedKeysViewResponse response) { checkLinuxGetAuthorizedKeysViewResponse(response); }))); }); @@ -1392,7 +1392,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1429,7 +1429,7 @@ var resp = convert.JSON.encode(buildLinuxGetLinuxAccountViewsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getLinuxAccountViews(arg_project, arg_zone, arg_instance, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.LinuxGetLinuxAccountViewsResponse response) { + res.getLinuxAccountViews(arg_project, arg_zone, arg_instance, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.LinuxGetLinuxAccountViewsResponse response) { checkLinuxGetLinuxAccountViewsResponse(response); }))); }); @@ -1445,7 +1445,7 @@ var arg_request = buildPublicKey(); var arg_project = "foo"; var arg_user = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.PublicKey.fromJson(json); checkPublicKey(obj); @@ -1480,7 +1480,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.addPublicKey(arg_request, arg_project, arg_user).then(unittest.expectAsync(((api.Operation response) { + res.addPublicKey(arg_request, arg_project, arg_user).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1491,7 +1491,7 @@ api.UsersResourceApi res = new api.ClouduseraccountsApi(mock).users; var arg_project = "foo"; var arg_user = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1523,7 +1523,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_user).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_user).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1534,7 +1534,7 @@ api.UsersResourceApi res = new api.ClouduseraccountsApi(mock).users; var arg_project = "foo"; var arg_user = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1566,7 +1566,7 @@ var resp = convert.JSON.encode(buildUser()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_user).then(unittest.expectAsync(((api.User response) { + res.get(arg_project, arg_user).then(unittest.expectAsync1(((api.User response) { checkUser(response); }))); }); @@ -1577,7 +1577,7 @@ api.UsersResourceApi res = new api.ClouduseraccountsApi(mock).users; var arg_request = buildUser(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.User.fromJson(json); checkUser(obj); @@ -1612,7 +1612,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1626,7 +1626,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1662,7 +1662,7 @@ var resp = convert.JSON.encode(buildUserList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.UserList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.UserList response) { checkUserList(response); }))); }); @@ -1674,7 +1674,7 @@ var arg_project = "foo"; var arg_user = "foo"; var arg_fingerprint = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1707,7 +1707,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.removePublicKey(arg_project, arg_user, arg_fingerprint).then(unittest.expectAsync(((api.Operation response) { + res.removePublicKey(arg_project, arg_user, arg_fingerprint).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); });
diff --git a/generated/googleapis_beta/test/dataflow/v1b3_test.dart b/generated/googleapis_beta/test/dataflow/v1b3_test.dart index 606619f..0d117da 100644 --- a/generated/googleapis_beta/test/dataflow/v1b3_test.dart +++ b/generated/googleapis_beta/test/dataflow/v1b3_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/dataflow/v1b3.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -237,53 +237,53 @@ buildCounterComponentTransform--; } -buildUnnamed3447() { +buildUnnamed2921() { var o = new core.List<api.StreamLocation>(); o.add(buildStreamLocation()); o.add(buildStreamLocation()); return o; } -checkUnnamed3447(core.List<api.StreamLocation> o) { +checkUnnamed2921(core.List<api.StreamLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkStreamLocation(o[0]); checkStreamLocation(o[1]); } -buildUnnamed3448() { +buildUnnamed2922() { var o = new core.List<api.KeyRangeLocation>(); o.add(buildKeyRangeLocation()); o.add(buildKeyRangeLocation()); return o; } -checkUnnamed3448(core.List<api.KeyRangeLocation> o) { +checkUnnamed2922(core.List<api.KeyRangeLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkKeyRangeLocation(o[0]); checkKeyRangeLocation(o[1]); } -buildUnnamed3449() { +buildUnnamed2923() { var o = new core.List<api.StreamLocation>(); o.add(buildStreamLocation()); o.add(buildStreamLocation()); return o; } -checkUnnamed3449(core.List<api.StreamLocation> o) { +checkUnnamed2923(core.List<api.StreamLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkStreamLocation(o[0]); checkStreamLocation(o[1]); } -buildUnnamed3450() { +buildUnnamed2924() { var o = new core.List<api.StateFamilyConfig>(); o.add(buildStateFamilyConfig()); o.add(buildStateFamilyConfig()); return o; } -checkUnnamed3450(core.List<api.StateFamilyConfig> o) { +checkUnnamed2924(core.List<api.StateFamilyConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkStateFamilyConfig(o[0]); checkStateFamilyConfig(o[1]); @@ -295,10 +295,10 @@ buildCounterComputationTopology++; if (buildCounterComputationTopology < 3) { o.computationId = "foo"; - o.inputs = buildUnnamed3447(); - o.keyRanges = buildUnnamed3448(); - o.outputs = buildUnnamed3449(); - o.stateFamilies = buildUnnamed3450(); + o.inputs = buildUnnamed2921(); + o.keyRanges = buildUnnamed2922(); + o.outputs = buildUnnamed2923(); + o.stateFamilies = buildUnnamed2924(); o.systemStageName = "foo"; } buildCounterComputationTopology--; @@ -309,10 +309,10 @@ buildCounterComputationTopology++; if (buildCounterComputationTopology < 3) { unittest.expect(o.computationId, unittest.equals('foo')); - checkUnnamed3447(o.inputs); - checkUnnamed3448(o.keyRanges); - checkUnnamed3449(o.outputs); - checkUnnamed3450(o.stateFamilies); + checkUnnamed2921(o.inputs); + checkUnnamed2922(o.keyRanges); + checkUnnamed2923(o.outputs); + checkUnnamed2924(o.stateFamilies); unittest.expect(o.systemStageName, unittest.equals('foo')); } buildCounterComputationTopology--; @@ -463,14 +463,14 @@ buildCounterCounterUpdate--; } -buildUnnamed3451() { +buildUnnamed2925() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3451(core.Map<core.String, core.String> o) { +checkUnnamed2925(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -485,7 +485,7 @@ o.gcsPath = "foo"; o.jobName = "foo"; o.location = "foo"; - o.parameters = buildUnnamed3451(); + o.parameters = buildUnnamed2925(); } buildCounterCreateJobFromTemplateRequest--; return o; @@ -498,7 +498,7 @@ unittest.expect(o.gcsPath, unittest.equals('foo')); unittest.expect(o.jobName, unittest.equals('foo')); unittest.expect(o.location, unittest.equals('foo')); - checkUnnamed3451(o.parameters); + checkUnnamed2925(o.parameters); } buildCounterCreateJobFromTemplateRequest--; } @@ -522,14 +522,14 @@ buildCounterCustomSourceLocation--; } -buildUnnamed3452() { +buildUnnamed2926() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3452(core.List<core.String> o) { +checkUnnamed2926(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -540,7 +540,7 @@ var o = new api.DataDiskAssignment(); buildCounterDataDiskAssignment++; if (buildCounterDataDiskAssignment < 3) { - o.dataDisks = buildUnnamed3452(); + o.dataDisks = buildUnnamed2926(); o.vmInstance = "foo"; } buildCounterDataDiskAssignment--; @@ -550,7 +550,7 @@ checkDataDiskAssignment(api.DataDiskAssignment o) { buildCounterDataDiskAssignment++; if (buildCounterDataDiskAssignment < 3) { - checkUnnamed3452(o.dataDisks); + checkUnnamed2926(o.dataDisks); unittest.expect(o.vmInstance, unittest.equals('foo')); } buildCounterDataDiskAssignment--; @@ -641,14 +641,14 @@ buildCounterDisplayData--; } -buildUnnamed3453() { +buildUnnamed2927() { var o = new core.List<api.LogBucket>(); o.add(buildLogBucket()); o.add(buildLogBucket()); return o; } -checkUnnamed3453(core.List<api.LogBucket> o) { +checkUnnamed2927(core.List<api.LogBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkLogBucket(o[0]); checkLogBucket(o[1]); @@ -660,7 +660,7 @@ buildCounterDistributionUpdate++; if (buildCounterDistributionUpdate < 3) { o.count = buildSplitInt64(); - o.logBuckets = buildUnnamed3453(); + o.logBuckets = buildUnnamed2927(); o.max = buildSplitInt64(); o.min = buildSplitInt64(); o.sum = buildSplitInt64(); @@ -674,7 +674,7 @@ buildCounterDistributionUpdate++; if (buildCounterDistributionUpdate < 3) { checkSplitInt64(o.count); - checkUnnamed3453(o.logBuckets); + checkUnnamed2927(o.logBuckets); checkSplitInt64(o.max); checkSplitInt64(o.min); checkSplitInt64(o.sum); @@ -704,79 +704,79 @@ buildCounterDynamicSourceSplit--; } -buildUnnamed3454() { +buildUnnamed2928() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3454(core.List<core.String> o) { +checkUnnamed2928(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3455() { +buildUnnamed2929() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3455(core.Map<core.String, core.Object> o) { +checkUnnamed2929(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted2 = (o["x"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); var casted3 = (o["y"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); } -buildUnnamed3456() { +buildUnnamed2930() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3456(core.Map<core.String, core.Object> o) { +checkUnnamed2930(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted4 = (o["x"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); var casted5 = (o["y"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); } -buildUnnamed3457() { +buildUnnamed2931() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3457(core.Map<core.String, core.Object> o) { +checkUnnamed2931(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted6 = (o["x"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); var casted7 = (o["y"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); } -buildUnnamed3458() { +buildUnnamed2932() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3458(core.Map<core.String, core.Object> o) { +checkUnnamed2932(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted8 = (o["x"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); var casted9 = (o["y"]) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo')); } -buildUnnamed3459() { +buildUnnamed2933() { var o = new core.List<api.WorkerPool>(); o.add(buildWorkerPool()); o.add(buildWorkerPool()); return o; } -checkUnnamed3459(core.List<api.WorkerPool> o) { +checkUnnamed2933(core.List<api.WorkerPool> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkerPool(o[0]); checkWorkerPool(o[1]); @@ -789,14 +789,14 @@ if (buildCounterEnvironment < 3) { o.clusterManagerApiService = "foo"; o.dataset = "foo"; - o.experiments = buildUnnamed3454(); - o.internalExperiments = buildUnnamed3455(); - o.sdkPipelineOptions = buildUnnamed3456(); + o.experiments = buildUnnamed2928(); + o.internalExperiments = buildUnnamed2929(); + o.sdkPipelineOptions = buildUnnamed2930(); o.serviceAccountEmail = "foo"; o.tempStoragePrefix = "foo"; - o.userAgent = buildUnnamed3457(); - o.version = buildUnnamed3458(); - o.workerPools = buildUnnamed3459(); + o.userAgent = buildUnnamed2931(); + o.version = buildUnnamed2932(); + o.workerPools = buildUnnamed2933(); } buildCounterEnvironment--; return o; @@ -807,14 +807,14 @@ if (buildCounterEnvironment < 3) { unittest.expect(o.clusterManagerApiService, unittest.equals('foo')); unittest.expect(o.dataset, unittest.equals('foo')); - checkUnnamed3454(o.experiments); - checkUnnamed3455(o.internalExperiments); - checkUnnamed3456(o.sdkPipelineOptions); + checkUnnamed2928(o.experiments); + checkUnnamed2929(o.internalExperiments); + checkUnnamed2930(o.sdkPipelineOptions); unittest.expect(o.serviceAccountEmail, unittest.equals('foo')); unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); - checkUnnamed3457(o.userAgent); - checkUnnamed3458(o.version); - checkUnnamed3459(o.workerPools); + checkUnnamed2931(o.userAgent); + checkUnnamed2932(o.version); + checkUnnamed2933(o.workerPools); } buildCounterEnvironment--; } @@ -842,53 +842,53 @@ buildCounterExecutionStageState--; } -buildUnnamed3460() { +buildUnnamed2934() { var o = new core.List<api.ComponentSource>(); o.add(buildComponentSource()); o.add(buildComponentSource()); return o; } -checkUnnamed3460(core.List<api.ComponentSource> o) { +checkUnnamed2934(core.List<api.ComponentSource> o) { unittest.expect(o, unittest.hasLength(2)); checkComponentSource(o[0]); checkComponentSource(o[1]); } -buildUnnamed3461() { +buildUnnamed2935() { var o = new core.List<api.ComponentTransform>(); o.add(buildComponentTransform()); o.add(buildComponentTransform()); return o; } -checkUnnamed3461(core.List<api.ComponentTransform> o) { +checkUnnamed2935(core.List<api.ComponentTransform> o) { unittest.expect(o, unittest.hasLength(2)); checkComponentTransform(o[0]); checkComponentTransform(o[1]); } -buildUnnamed3462() { +buildUnnamed2936() { var o = new core.List<api.StageSource>(); o.add(buildStageSource()); o.add(buildStageSource()); return o; } -checkUnnamed3462(core.List<api.StageSource> o) { +checkUnnamed2936(core.List<api.StageSource> o) { unittest.expect(o, unittest.hasLength(2)); checkStageSource(o[0]); checkStageSource(o[1]); } -buildUnnamed3463() { +buildUnnamed2937() { var o = new core.List<api.StageSource>(); o.add(buildStageSource()); o.add(buildStageSource()); return o; } -checkUnnamed3463(core.List<api.StageSource> o) { +checkUnnamed2937(core.List<api.StageSource> o) { unittest.expect(o, unittest.hasLength(2)); checkStageSource(o[0]); checkStageSource(o[1]); @@ -899,13 +899,13 @@ var o = new api.ExecutionStageSummary(); buildCounterExecutionStageSummary++; if (buildCounterExecutionStageSummary < 3) { - o.componentSource = buildUnnamed3460(); - o.componentTransform = buildUnnamed3461(); + o.componentSource = buildUnnamed2934(); + o.componentTransform = buildUnnamed2935(); o.id = "foo"; - o.inputSource = buildUnnamed3462(); + o.inputSource = buildUnnamed2936(); o.kind = "foo"; o.name = "foo"; - o.outputSource = buildUnnamed3463(); + o.outputSource = buildUnnamed2937(); } buildCounterExecutionStageSummary--; return o; @@ -914,13 +914,13 @@ checkExecutionStageSummary(api.ExecutionStageSummary o) { buildCounterExecutionStageSummary++; if (buildCounterExecutionStageSummary < 3) { - checkUnnamed3460(o.componentSource); - checkUnnamed3461(o.componentTransform); + checkUnnamed2934(o.componentSource); + checkUnnamed2935(o.componentTransform); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3462(o.inputSource); + checkUnnamed2936(o.inputSource); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3463(o.outputSource); + checkUnnamed2937(o.outputSource); } buildCounterExecutionStageSummary--; } @@ -944,14 +944,14 @@ buildCounterFailedLocation--; } -buildUnnamed3464() { +buildUnnamed2938() { var o = new core.List<api.InstructionInput>(); o.add(buildInstructionInput()); o.add(buildInstructionInput()); return o; } -checkUnnamed3464(core.List<api.InstructionInput> o) { +checkUnnamed2938(core.List<api.InstructionInput> o) { unittest.expect(o, unittest.hasLength(2)); checkInstructionInput(o[0]); checkInstructionInput(o[1]); @@ -962,7 +962,7 @@ var o = new api.FlattenInstruction(); buildCounterFlattenInstruction++; if (buildCounterFlattenInstruction < 3) { - o.inputs = buildUnnamed3464(); + o.inputs = buildUnnamed2938(); } buildCounterFlattenInstruction--; return o; @@ -971,19 +971,19 @@ checkFlattenInstruction(api.FlattenInstruction o) { buildCounterFlattenInstruction++; if (buildCounterFlattenInstruction < 3) { - checkUnnamed3464(o.inputs); + checkUnnamed2938(o.inputs); } buildCounterFlattenInstruction--; } -buildUnnamed3465() { +buildUnnamed2939() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3465(core.List<core.double> o) { +checkUnnamed2939(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); @@ -994,7 +994,7 @@ var o = new api.FloatingPointList(); buildCounterFloatingPointList++; if (buildCounterFloatingPointList < 3) { - o.elements = buildUnnamed3465(); + o.elements = buildUnnamed2939(); } buildCounterFloatingPointList--; return o; @@ -1003,7 +1003,7 @@ checkFloatingPointList(api.FloatingPointList o) { buildCounterFloatingPointList++; if (buildCounterFloatingPointList < 3) { - checkUnnamed3465(o.elements); + checkUnnamed2939(o.elements); } buildCounterFloatingPointList--; } @@ -1113,14 +1113,14 @@ buildCounterInstructionInput--; } -buildUnnamed3466() { +buildUnnamed2940() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3466(core.Map<core.String, core.Object> o) { +checkUnnamed2940(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted10 = (o["x"]) as core.Map; unittest.expect(casted10, unittest.hasLength(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["string"], unittest.equals('foo')); var casted11 = (o["y"]) as core.Map; unittest.expect(casted11, unittest.hasLength(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["string"], unittest.equals('foo')); @@ -1131,7 +1131,7 @@ var o = new api.InstructionOutput(); buildCounterInstructionOutput++; if (buildCounterInstructionOutput < 3) { - o.codec = buildUnnamed3466(); + o.codec = buildUnnamed2940(); o.name = "foo"; o.onlyCountKeyBytes = true; o.onlyCountValueBytes = true; @@ -1145,7 +1145,7 @@ checkInstructionOutput(api.InstructionOutput o) { buildCounterInstructionOutput++; if (buildCounterInstructionOutput < 3) { - checkUnnamed3466(o.codec); + checkUnnamed2940(o.codec); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.onlyCountKeyBytes, unittest.isTrue); unittest.expect(o.onlyCountValueBytes, unittest.isTrue); @@ -1155,14 +1155,14 @@ buildCounterInstructionOutput--; } -buildUnnamed3467() { +buildUnnamed2941() { var o = new core.List<api.SplitInt64>(); o.add(buildSplitInt64()); o.add(buildSplitInt64()); return o; } -checkUnnamed3467(core.List<api.SplitInt64> o) { +checkUnnamed2941(core.List<api.SplitInt64> o) { unittest.expect(o, unittest.hasLength(2)); checkSplitInt64(o[0]); checkSplitInt64(o[1]); @@ -1173,7 +1173,7 @@ var o = new api.IntegerList(); buildCounterIntegerList++; if (buildCounterIntegerList < 3) { - o.elements = buildUnnamed3467(); + o.elements = buildUnnamed2941(); } buildCounterIntegerList--; return o; @@ -1182,7 +1182,7 @@ checkIntegerList(api.IntegerList o) { buildCounterIntegerList++; if (buildCounterIntegerList < 3) { - checkUnnamed3467(o.elements); + checkUnnamed2941(o.elements); } buildCounterIntegerList--; } @@ -1208,66 +1208,66 @@ buildCounterIntegerMean--; } -buildUnnamed3468() { +buildUnnamed2942() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3468(core.Map<core.String, core.String> o) { +checkUnnamed2942(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3469() { +buildUnnamed2943() { var o = new core.List<api.ExecutionStageState>(); o.add(buildExecutionStageState()); o.add(buildExecutionStageState()); return o; } -checkUnnamed3469(core.List<api.ExecutionStageState> o) { +checkUnnamed2943(core.List<api.ExecutionStageState> o) { unittest.expect(o, unittest.hasLength(2)); checkExecutionStageState(o[0]); checkExecutionStageState(o[1]); } -buildUnnamed3470() { +buildUnnamed2944() { var o = new core.List<api.Step>(); o.add(buildStep()); o.add(buildStep()); return o; } -checkUnnamed3470(core.List<api.Step> o) { +checkUnnamed2944(core.List<api.Step> o) { unittest.expect(o, unittest.hasLength(2)); checkStep(o[0]); checkStep(o[1]); } -buildUnnamed3471() { +buildUnnamed2945() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3471(core.List<core.String> o) { +checkUnnamed2945(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3472() { +buildUnnamed2946() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3472(core.Map<core.String, core.String> o) { +checkUnnamed2946(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1285,7 +1285,7 @@ o.environment = buildEnvironment(); o.executionInfo = buildJobExecutionInfo(); o.id = "foo"; - o.labels = buildUnnamed3468(); + o.labels = buildUnnamed2942(); o.location = "foo"; o.name = "foo"; o.pipelineDescription = buildPipelineDescription(); @@ -1293,10 +1293,10 @@ o.replaceJobId = "foo"; o.replacedByJobId = "foo"; o.requestedState = "foo"; - o.stageStates = buildUnnamed3469(); - o.steps = buildUnnamed3470(); - o.tempFiles = buildUnnamed3471(); - o.transformNameMapping = buildUnnamed3472(); + o.stageStates = buildUnnamed2943(); + o.steps = buildUnnamed2944(); + o.tempFiles = buildUnnamed2945(); + o.transformNameMapping = buildUnnamed2946(); o.type = "foo"; } buildCounterJob--; @@ -1313,7 +1313,7 @@ checkEnvironment(o.environment); checkJobExecutionInfo(o.executionInfo); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3468(o.labels); + checkUnnamed2942(o.labels); unittest.expect(o.location, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkPipelineDescription(o.pipelineDescription); @@ -1321,23 +1321,23 @@ unittest.expect(o.replaceJobId, unittest.equals('foo')); unittest.expect(o.replacedByJobId, unittest.equals('foo')); unittest.expect(o.requestedState, unittest.equals('foo')); - checkUnnamed3469(o.stageStates); - checkUnnamed3470(o.steps); - checkUnnamed3471(o.tempFiles); - checkUnnamed3472(o.transformNameMapping); + checkUnnamed2943(o.stageStates); + checkUnnamed2944(o.steps); + checkUnnamed2945(o.tempFiles); + checkUnnamed2946(o.transformNameMapping); unittest.expect(o.type, unittest.equals('foo')); } buildCounterJob--; } -buildUnnamed3473() { +buildUnnamed2947() { var o = new core.Map<core.String, api.JobExecutionStageInfo>(); o["x"] = buildJobExecutionStageInfo(); o["y"] = buildJobExecutionStageInfo(); return o; } -checkUnnamed3473(core.Map<core.String, api.JobExecutionStageInfo> o) { +checkUnnamed2947(core.Map<core.String, api.JobExecutionStageInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkJobExecutionStageInfo(o["x"]); checkJobExecutionStageInfo(o["y"]); @@ -1348,7 +1348,7 @@ var o = new api.JobExecutionInfo(); buildCounterJobExecutionInfo++; if (buildCounterJobExecutionInfo < 3) { - o.stages = buildUnnamed3473(); + o.stages = buildUnnamed2947(); } buildCounterJobExecutionInfo--; return o; @@ -1357,19 +1357,19 @@ checkJobExecutionInfo(api.JobExecutionInfo o) { buildCounterJobExecutionInfo++; if (buildCounterJobExecutionInfo < 3) { - checkUnnamed3473(o.stages); + checkUnnamed2947(o.stages); } buildCounterJobExecutionInfo--; } -buildUnnamed3474() { +buildUnnamed2948() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3474(core.List<core.String> o) { +checkUnnamed2948(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1380,7 +1380,7 @@ var o = new api.JobExecutionStageInfo(); buildCounterJobExecutionStageInfo++; if (buildCounterJobExecutionStageInfo < 3) { - o.stepName = buildUnnamed3474(); + o.stepName = buildUnnamed2948(); } buildCounterJobExecutionStageInfo--; return o; @@ -1389,7 +1389,7 @@ checkJobExecutionStageInfo(api.JobExecutionStageInfo o) { buildCounterJobExecutionStageInfo++; if (buildCounterJobExecutionStageInfo < 3) { - checkUnnamed3474(o.stepName); + checkUnnamed2948(o.stepName); } buildCounterJobExecutionStageInfo--; } @@ -1419,14 +1419,14 @@ buildCounterJobMessage--; } -buildUnnamed3475() { +buildUnnamed2949() { var o = new core.List<api.MetricUpdate>(); o.add(buildMetricUpdate()); o.add(buildMetricUpdate()); return o; } -checkUnnamed3475(core.List<api.MetricUpdate> o) { +checkUnnamed2949(core.List<api.MetricUpdate> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricUpdate(o[0]); checkMetricUpdate(o[1]); @@ -1438,7 +1438,7 @@ buildCounterJobMetrics++; if (buildCounterJobMetrics < 3) { o.metricTime = "foo"; - o.metrics = buildUnnamed3475(); + o.metrics = buildUnnamed2949(); } buildCounterJobMetrics--; return o; @@ -1448,7 +1448,7 @@ buildCounterJobMetrics++; if (buildCounterJobMetrics < 3) { unittest.expect(o.metricTime, unittest.equals('foo')); - checkUnnamed3475(o.metrics); + checkUnnamed2949(o.metrics); } buildCounterJobMetrics--; } @@ -1503,14 +1503,14 @@ buildCounterKeyRangeLocation--; } -buildUnnamed3476() { +buildUnnamed2950() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3476(core.Map<core.String, core.String> o) { +checkUnnamed2950(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1523,7 +1523,7 @@ if (buildCounterLaunchTemplateParameters < 3) { o.environment = buildRuntimeEnvironment(); o.jobName = "foo"; - o.parameters = buildUnnamed3476(); + o.parameters = buildUnnamed2950(); } buildCounterLaunchTemplateParameters--; return o; @@ -1534,7 +1534,7 @@ if (buildCounterLaunchTemplateParameters < 3) { checkRuntimeEnvironment(o.environment); unittest.expect(o.jobName, unittest.equals('foo')); - checkUnnamed3476(o.parameters); + checkUnnamed2950(o.parameters); } buildCounterLaunchTemplateParameters--; } @@ -1558,27 +1558,27 @@ buildCounterLaunchTemplateResponse--; } -buildUnnamed3477() { +buildUnnamed2951() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3477(core.List<core.String> o) { +checkUnnamed2951(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3478() { +buildUnnamed2952() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3478(core.List<core.String> o) { +checkUnnamed2952(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1592,8 +1592,8 @@ o.currentWorkerTime = "foo"; o.location = "foo"; o.requestedLeaseDuration = "foo"; - o.workItemTypes = buildUnnamed3477(); - o.workerCapabilities = buildUnnamed3478(); + o.workItemTypes = buildUnnamed2951(); + o.workerCapabilities = buildUnnamed2952(); o.workerId = "foo"; } buildCounterLeaseWorkItemRequest--; @@ -1606,21 +1606,21 @@ unittest.expect(o.currentWorkerTime, unittest.equals('foo')); unittest.expect(o.location, unittest.equals('foo')); unittest.expect(o.requestedLeaseDuration, unittest.equals('foo')); - checkUnnamed3477(o.workItemTypes); - checkUnnamed3478(o.workerCapabilities); + checkUnnamed2951(o.workItemTypes); + checkUnnamed2952(o.workerCapabilities); unittest.expect(o.workerId, unittest.equals('foo')); } buildCounterLeaseWorkItemRequest--; } -buildUnnamed3479() { +buildUnnamed2953() { var o = new core.List<api.WorkItem>(); o.add(buildWorkItem()); o.add(buildWorkItem()); return o; } -checkUnnamed3479(core.List<api.WorkItem> o) { +checkUnnamed2953(core.List<api.WorkItem> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkItem(o[0]); checkWorkItem(o[1]); @@ -1631,7 +1631,7 @@ var o = new api.LeaseWorkItemResponse(); buildCounterLeaseWorkItemResponse++; if (buildCounterLeaseWorkItemResponse < 3) { - o.workItems = buildUnnamed3479(); + o.workItems = buildUnnamed2953(); } buildCounterLeaseWorkItemResponse--; return o; @@ -1640,32 +1640,32 @@ checkLeaseWorkItemResponse(api.LeaseWorkItemResponse o) { buildCounterLeaseWorkItemResponse++; if (buildCounterLeaseWorkItemResponse < 3) { - checkUnnamed3479(o.workItems); + checkUnnamed2953(o.workItems); } buildCounterLeaseWorkItemResponse--; } -buildUnnamed3480() { +buildUnnamed2954() { var o = new core.List<api.AutoscalingEvent>(); o.add(buildAutoscalingEvent()); o.add(buildAutoscalingEvent()); return o; } -checkUnnamed3480(core.List<api.AutoscalingEvent> o) { +checkUnnamed2954(core.List<api.AutoscalingEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalingEvent(o[0]); checkAutoscalingEvent(o[1]); } -buildUnnamed3481() { +buildUnnamed2955() { var o = new core.List<api.JobMessage>(); o.add(buildJobMessage()); o.add(buildJobMessage()); return o; } -checkUnnamed3481(core.List<api.JobMessage> o) { +checkUnnamed2955(core.List<api.JobMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkJobMessage(o[0]); checkJobMessage(o[1]); @@ -1676,8 +1676,8 @@ var o = new api.ListJobMessagesResponse(); buildCounterListJobMessagesResponse++; if (buildCounterListJobMessagesResponse < 3) { - o.autoscalingEvents = buildUnnamed3480(); - o.jobMessages = buildUnnamed3481(); + o.autoscalingEvents = buildUnnamed2954(); + o.jobMessages = buildUnnamed2955(); o.nextPageToken = "foo"; } buildCounterListJobMessagesResponse--; @@ -1687,34 +1687,34 @@ checkListJobMessagesResponse(api.ListJobMessagesResponse o) { buildCounterListJobMessagesResponse++; if (buildCounterListJobMessagesResponse < 3) { - checkUnnamed3480(o.autoscalingEvents); - checkUnnamed3481(o.jobMessages); + checkUnnamed2954(o.autoscalingEvents); + checkUnnamed2955(o.jobMessages); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListJobMessagesResponse--; } -buildUnnamed3482() { +buildUnnamed2956() { var o = new core.List<api.FailedLocation>(); o.add(buildFailedLocation()); o.add(buildFailedLocation()); return o; } -checkUnnamed3482(core.List<api.FailedLocation> o) { +checkUnnamed2956(core.List<api.FailedLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkFailedLocation(o[0]); checkFailedLocation(o[1]); } -buildUnnamed3483() { +buildUnnamed2957() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed3483(core.List<api.Job> o) { +checkUnnamed2957(core.List<api.Job> o) { unittest.expect(o, unittest.hasLength(2)); checkJob(o[0]); checkJob(o[1]); @@ -1725,8 +1725,8 @@ var o = new api.ListJobsResponse(); buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - o.failedLocation = buildUnnamed3482(); - o.jobs = buildUnnamed3483(); + o.failedLocation = buildUnnamed2956(); + o.jobs = buildUnnamed2957(); o.nextPageToken = "foo"; } buildCounterListJobsResponse--; @@ -1736,8 +1736,8 @@ checkListJobsResponse(api.ListJobsResponse o) { buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - checkUnnamed3482(o.failedLocation); - checkUnnamed3483(o.jobs); + checkUnnamed2956(o.failedLocation); + checkUnnamed2957(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListJobsResponse--; @@ -1764,14 +1764,14 @@ buildCounterLogBucket--; } -buildUnnamed3484() { +buildUnnamed2958() { var o = new core.List<api.ParallelInstruction>(); o.add(buildParallelInstruction()); o.add(buildParallelInstruction()); return o; } -checkUnnamed3484(core.List<api.ParallelInstruction> o) { +checkUnnamed2958(core.List<api.ParallelInstruction> o) { unittest.expect(o, unittest.hasLength(2)); checkParallelInstruction(o[0]); checkParallelInstruction(o[1]); @@ -1782,7 +1782,7 @@ var o = new api.MapTask(); buildCounterMapTask++; if (buildCounterMapTask < 3) { - o.instructions = buildUnnamed3484(); + o.instructions = buildUnnamed2958(); o.stageName = "foo"; o.systemName = "foo"; } @@ -1793,7 +1793,7 @@ checkMapTask(api.MapTask o) { buildCounterMapTask++; if (buildCounterMapTask < 3) { - checkUnnamed3484(o.instructions); + checkUnnamed2958(o.instructions); unittest.expect(o.stageName, unittest.equals('foo')); unittest.expect(o.systemName, unittest.equals('foo')); } @@ -1821,14 +1821,14 @@ buildCounterMetricShortId--; } -buildUnnamed3485() { +buildUnnamed2959() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3485(core.Map<core.String, core.String> o) { +checkUnnamed2959(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1839,7 +1839,7 @@ var o = new api.MetricStructuredName(); buildCounterMetricStructuredName++; if (buildCounterMetricStructuredName < 3) { - o.context = buildUnnamed3485(); + o.context = buildUnnamed2959(); o.name = "foo"; o.origin = "foo"; } @@ -1850,7 +1850,7 @@ checkMetricStructuredName(api.MetricStructuredName o) { buildCounterMetricStructuredName++; if (buildCounterMetricStructuredName < 3) { - checkUnnamed3485(o.context); + checkUnnamed2959(o.context); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.origin, unittest.equals('foo')); } @@ -1974,40 +1974,40 @@ buildCounterPackage--; } -buildUnnamed3486() { +buildUnnamed2960() { var o = new core.List<api.MultiOutputInfo>(); o.add(buildMultiOutputInfo()); o.add(buildMultiOutputInfo()); return o; } -checkUnnamed3486(core.List<api.MultiOutputInfo> o) { +checkUnnamed2960(core.List<api.MultiOutputInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkMultiOutputInfo(o[0]); checkMultiOutputInfo(o[1]); } -buildUnnamed3487() { +buildUnnamed2961() { var o = new core.List<api.SideInputInfo>(); o.add(buildSideInputInfo()); o.add(buildSideInputInfo()); return o; } -checkUnnamed3487(core.List<api.SideInputInfo> o) { +checkUnnamed2961(core.List<api.SideInputInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkSideInputInfo(o[0]); checkSideInputInfo(o[1]); } -buildUnnamed3488() { +buildUnnamed2962() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3488(core.Map<core.String, core.Object> o) { +checkUnnamed2962(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted18 = (o["x"]) as core.Map; unittest.expect(casted18, unittest.hasLength(3)); unittest.expect(casted18["list"], unittest.equals([1, 2, 3])); unittest.expect(casted18["bool"], unittest.equals(true)); unittest.expect(casted18["string"], unittest.equals('foo')); var casted19 = (o["y"]) as core.Map; unittest.expect(casted19, unittest.hasLength(3)); unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); unittest.expect(casted19["bool"], unittest.equals(true)); unittest.expect(casted19["string"], unittest.equals('foo')); @@ -2019,10 +2019,10 @@ buildCounterParDoInstruction++; if (buildCounterParDoInstruction < 3) { o.input = buildInstructionInput(); - o.multiOutputInfos = buildUnnamed3486(); + o.multiOutputInfos = buildUnnamed2960(); o.numOutputs = 42; - o.sideInputs = buildUnnamed3487(); - o.userFn = buildUnnamed3488(); + o.sideInputs = buildUnnamed2961(); + o.userFn = buildUnnamed2962(); } buildCounterParDoInstruction--; return o; @@ -2032,22 +2032,22 @@ buildCounterParDoInstruction++; if (buildCounterParDoInstruction < 3) { checkInstructionInput(o.input); - checkUnnamed3486(o.multiOutputInfos); + checkUnnamed2960(o.multiOutputInfos); unittest.expect(o.numOutputs, unittest.equals(42)); - checkUnnamed3487(o.sideInputs); - checkUnnamed3488(o.userFn); + checkUnnamed2961(o.sideInputs); + checkUnnamed2962(o.userFn); } buildCounterParDoInstruction--; } -buildUnnamed3489() { +buildUnnamed2963() { var o = new core.List<api.InstructionOutput>(); o.add(buildInstructionOutput()); o.add(buildInstructionOutput()); return o; } -checkUnnamed3489(core.List<api.InstructionOutput> o) { +checkUnnamed2963(core.List<api.InstructionOutput> o) { unittest.expect(o, unittest.hasLength(2)); checkInstructionOutput(o[0]); checkInstructionOutput(o[1]); @@ -2061,7 +2061,7 @@ o.flatten = buildFlattenInstruction(); o.name = "foo"; o.originalName = "foo"; - o.outputs = buildUnnamed3489(); + o.outputs = buildUnnamed2963(); o.parDo = buildParDoInstruction(); o.partialGroupByKey = buildPartialGroupByKeyInstruction(); o.read = buildReadInstruction(); @@ -2078,7 +2078,7 @@ checkFlattenInstruction(o.flatten); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.originalName, unittest.equals('foo')); - checkUnnamed3489(o.outputs); + checkUnnamed2963(o.outputs); checkParDoInstruction(o.parDo); checkPartialGroupByKeyInstruction(o.partialGroupByKey); checkReadInstruction(o.read); @@ -2109,14 +2109,14 @@ buildCounterParameter--; } -buildUnnamed3490() { +buildUnnamed2964() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3490(core.List<core.String> o) { +checkUnnamed2964(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2131,7 +2131,7 @@ o.isOptional = true; o.label = "foo"; o.name = "foo"; - o.regexes = buildUnnamed3490(); + o.regexes = buildUnnamed2964(); } buildCounterParameterMetadata--; return o; @@ -2144,45 +2144,45 @@ unittest.expect(o.isOptional, unittest.isTrue); unittest.expect(o.label, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3490(o.regexes); + checkUnnamed2964(o.regexes); } buildCounterParameterMetadata--; } -buildUnnamed3491() { +buildUnnamed2965() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3491(core.Map<core.String, core.Object> o) { +checkUnnamed2965(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted21 = (o["x"]) as core.Map; unittest.expect(casted21, unittest.hasLength(3)); unittest.expect(casted21["list"], unittest.equals([1, 2, 3])); unittest.expect(casted21["bool"], unittest.equals(true)); unittest.expect(casted21["string"], unittest.equals('foo')); var casted22 = (o["y"]) as core.Map; unittest.expect(casted22, unittest.hasLength(3)); unittest.expect(casted22["list"], unittest.equals([1, 2, 3])); unittest.expect(casted22["bool"], unittest.equals(true)); unittest.expect(casted22["string"], unittest.equals('foo')); } -buildUnnamed3492() { +buildUnnamed2966() { var o = new core.List<api.SideInputInfo>(); o.add(buildSideInputInfo()); o.add(buildSideInputInfo()); return o; } -checkUnnamed3492(core.List<api.SideInputInfo> o) { +checkUnnamed2966(core.List<api.SideInputInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkSideInputInfo(o[0]); checkSideInputInfo(o[1]); } -buildUnnamed3493() { +buildUnnamed2967() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3493(core.Map<core.String, core.Object> o) { +checkUnnamed2967(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted23 = (o["x"]) as core.Map; unittest.expect(casted23, unittest.hasLength(3)); unittest.expect(casted23["list"], unittest.equals([1, 2, 3])); unittest.expect(casted23["bool"], unittest.equals(true)); unittest.expect(casted23["string"], unittest.equals('foo')); var casted24 = (o["y"]) as core.Map; unittest.expect(casted24, unittest.hasLength(3)); unittest.expect(casted24["list"], unittest.equals([1, 2, 3])); unittest.expect(casted24["bool"], unittest.equals(true)); unittest.expect(casted24["string"], unittest.equals('foo')); @@ -2194,11 +2194,11 @@ buildCounterPartialGroupByKeyInstruction++; if (buildCounterPartialGroupByKeyInstruction < 3) { o.input = buildInstructionInput(); - o.inputElementCodec = buildUnnamed3491(); + o.inputElementCodec = buildUnnamed2965(); o.originalCombineValuesInputStoreName = "foo"; o.originalCombineValuesStepName = "foo"; - o.sideInputs = buildUnnamed3492(); - o.valueCombiningFn = buildUnnamed3493(); + o.sideInputs = buildUnnamed2966(); + o.valueCombiningFn = buildUnnamed2967(); } buildCounterPartialGroupByKeyInstruction--; return o; @@ -2208,49 +2208,49 @@ buildCounterPartialGroupByKeyInstruction++; if (buildCounterPartialGroupByKeyInstruction < 3) { checkInstructionInput(o.input); - checkUnnamed3491(o.inputElementCodec); + checkUnnamed2965(o.inputElementCodec); unittest.expect(o.originalCombineValuesInputStoreName, unittest.equals('foo')); unittest.expect(o.originalCombineValuesStepName, unittest.equals('foo')); - checkUnnamed3492(o.sideInputs); - checkUnnamed3493(o.valueCombiningFn); + checkUnnamed2966(o.sideInputs); + checkUnnamed2967(o.valueCombiningFn); } buildCounterPartialGroupByKeyInstruction--; } -buildUnnamed3494() { +buildUnnamed2968() { var o = new core.List<api.DisplayData>(); o.add(buildDisplayData()); o.add(buildDisplayData()); return o; } -checkUnnamed3494(core.List<api.DisplayData> o) { +checkUnnamed2968(core.List<api.DisplayData> o) { unittest.expect(o, unittest.hasLength(2)); checkDisplayData(o[0]); checkDisplayData(o[1]); } -buildUnnamed3495() { +buildUnnamed2969() { var o = new core.List<api.ExecutionStageSummary>(); o.add(buildExecutionStageSummary()); o.add(buildExecutionStageSummary()); return o; } -checkUnnamed3495(core.List<api.ExecutionStageSummary> o) { +checkUnnamed2969(core.List<api.ExecutionStageSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkExecutionStageSummary(o[0]); checkExecutionStageSummary(o[1]); } -buildUnnamed3496() { +buildUnnamed2970() { var o = new core.List<api.TransformSummary>(); o.add(buildTransformSummary()); o.add(buildTransformSummary()); return o; } -checkUnnamed3496(core.List<api.TransformSummary> o) { +checkUnnamed2970(core.List<api.TransformSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkTransformSummary(o[0]); checkTransformSummary(o[1]); @@ -2261,9 +2261,9 @@ var o = new api.PipelineDescription(); buildCounterPipelineDescription++; if (buildCounterPipelineDescription < 3) { - o.displayData = buildUnnamed3494(); - o.executionPipelineStage = buildUnnamed3495(); - o.originalPipelineTransform = buildUnnamed3496(); + o.displayData = buildUnnamed2968(); + o.executionPipelineStage = buildUnnamed2969(); + o.originalPipelineTransform = buildUnnamed2970(); } buildCounterPipelineDescription--; return o; @@ -2272,9 +2272,9 @@ checkPipelineDescription(api.PipelineDescription o) { buildCounterPipelineDescription++; if (buildCounterPipelineDescription < 3) { - checkUnnamed3494(o.displayData); - checkUnnamed3495(o.executionPipelineStage); - checkUnnamed3496(o.originalPipelineTransform); + checkUnnamed2968(o.displayData); + checkUnnamed2969(o.executionPipelineStage); + checkUnnamed2970(o.originalPipelineTransform); } buildCounterPipelineDescription--; } @@ -2358,14 +2358,14 @@ buildCounterReadInstruction--; } -buildUnnamed3497() { +buildUnnamed2971() { var o = new core.List<api.WorkItemStatus>(); o.add(buildWorkItemStatus()); o.add(buildWorkItemStatus()); return o; } -checkUnnamed3497(core.List<api.WorkItemStatus> o) { +checkUnnamed2971(core.List<api.WorkItemStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkItemStatus(o[0]); checkWorkItemStatus(o[1]); @@ -2378,7 +2378,7 @@ if (buildCounterReportWorkItemStatusRequest < 3) { o.currentWorkerTime = "foo"; o.location = "foo"; - o.workItemStatuses = buildUnnamed3497(); + o.workItemStatuses = buildUnnamed2971(); o.workerId = "foo"; } buildCounterReportWorkItemStatusRequest--; @@ -2390,20 +2390,20 @@ if (buildCounterReportWorkItemStatusRequest < 3) { unittest.expect(o.currentWorkerTime, unittest.equals('foo')); unittest.expect(o.location, unittest.equals('foo')); - checkUnnamed3497(o.workItemStatuses); + checkUnnamed2971(o.workItemStatuses); unittest.expect(o.workerId, unittest.equals('foo')); } buildCounterReportWorkItemStatusRequest--; } -buildUnnamed3498() { +buildUnnamed2972() { var o = new core.List<api.WorkItemServiceState>(); o.add(buildWorkItemServiceState()); o.add(buildWorkItemServiceState()); return o; } -checkUnnamed3498(core.List<api.WorkItemServiceState> o) { +checkUnnamed2972(core.List<api.WorkItemServiceState> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkItemServiceState(o[0]); checkWorkItemServiceState(o[1]); @@ -2414,7 +2414,7 @@ var o = new api.ReportWorkItemStatusResponse(); buildCounterReportWorkItemStatusResponse++; if (buildCounterReportWorkItemStatusResponse < 3) { - o.workItemServiceStates = buildUnnamed3498(); + o.workItemServiceStates = buildUnnamed2972(); } buildCounterReportWorkItemStatusResponse--; return o; @@ -2423,7 +2423,7 @@ checkReportWorkItemStatusResponse(api.ReportWorkItemStatusResponse o) { buildCounterReportWorkItemStatusResponse++; if (buildCounterReportWorkItemStatusResponse < 3) { - checkUnnamed3498(o.workItemServiceStates); + checkUnnamed2972(o.workItemServiceStates); } buildCounterReportWorkItemStatusResponse--; } @@ -2449,14 +2449,14 @@ buildCounterReportedParallelism--; } -buildUnnamed3499() { +buildUnnamed2973() { var o = new core.List<api.CPUTime>(); o.add(buildCPUTime()); o.add(buildCPUTime()); return o; } -checkUnnamed3499(core.List<api.CPUTime> o) { +checkUnnamed2973(core.List<api.CPUTime> o) { unittest.expect(o, unittest.hasLength(2)); checkCPUTime(o[0]); checkCPUTime(o[1]); @@ -2467,7 +2467,7 @@ var o = new api.ResourceUtilizationReport(); buildCounterResourceUtilizationReport++; if (buildCounterResourceUtilizationReport < 3) { - o.cpuTime = buildUnnamed3499(); + o.cpuTime = buildUnnamed2973(); } buildCounterResourceUtilizationReport--; return o; @@ -2476,7 +2476,7 @@ checkResourceUtilizationReport(api.ResourceUtilizationReport o) { buildCounterResourceUtilizationReport++; if (buildCounterResourceUtilizationReport < 3) { - checkUnnamed3499(o.cpuTime); + checkUnnamed2973(o.cpuTime); } buildCounterResourceUtilizationReport--; } @@ -2569,14 +2569,14 @@ buildCounterSendDebugCaptureResponse--; } -buildUnnamed3500() { +buildUnnamed2974() { var o = new core.List<api.WorkerMessage>(); o.add(buildWorkerMessage()); o.add(buildWorkerMessage()); return o; } -checkUnnamed3500(core.List<api.WorkerMessage> o) { +checkUnnamed2974(core.List<api.WorkerMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkerMessage(o[0]); checkWorkerMessage(o[1]); @@ -2588,7 +2588,7 @@ buildCounterSendWorkerMessagesRequest++; if (buildCounterSendWorkerMessagesRequest < 3) { o.location = "foo"; - o.workerMessages = buildUnnamed3500(); + o.workerMessages = buildUnnamed2974(); } buildCounterSendWorkerMessagesRequest--; return o; @@ -2598,19 +2598,19 @@ buildCounterSendWorkerMessagesRequest++; if (buildCounterSendWorkerMessagesRequest < 3) { unittest.expect(o.location, unittest.equals('foo')); - checkUnnamed3500(o.workerMessages); + checkUnnamed2974(o.workerMessages); } buildCounterSendWorkerMessagesRequest--; } -buildUnnamed3501() { +buildUnnamed2975() { var o = new core.List<api.WorkerMessageResponse>(); o.add(buildWorkerMessageResponse()); o.add(buildWorkerMessageResponse()); return o; } -checkUnnamed3501(core.List<api.WorkerMessageResponse> o) { +checkUnnamed2975(core.List<api.WorkerMessageResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkerMessageResponse(o[0]); checkWorkerMessageResponse(o[1]); @@ -2621,7 +2621,7 @@ var o = new api.SendWorkerMessagesResponse(); buildCounterSendWorkerMessagesResponse++; if (buildCounterSendWorkerMessagesResponse < 3) { - o.workerMessageResponses = buildUnnamed3501(); + o.workerMessageResponses = buildUnnamed2975(); } buildCounterSendWorkerMessagesResponse--; return o; @@ -2630,45 +2630,45 @@ checkSendWorkerMessagesResponse(api.SendWorkerMessagesResponse o) { buildCounterSendWorkerMessagesResponse++; if (buildCounterSendWorkerMessagesResponse < 3) { - checkUnnamed3501(o.workerMessageResponses); + checkUnnamed2975(o.workerMessageResponses); } buildCounterSendWorkerMessagesResponse--; } -buildUnnamed3502() { +buildUnnamed2976() { var o = new core.List<api.SideInputInfo>(); o.add(buildSideInputInfo()); o.add(buildSideInputInfo()); return o; } -checkUnnamed3502(core.List<api.SideInputInfo> o) { +checkUnnamed2976(core.List<api.SideInputInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkSideInputInfo(o[0]); checkSideInputInfo(o[1]); } -buildUnnamed3503() { +buildUnnamed2977() { var o = new core.List<api.SeqMapTaskOutputInfo>(); o.add(buildSeqMapTaskOutputInfo()); o.add(buildSeqMapTaskOutputInfo()); return o; } -checkUnnamed3503(core.List<api.SeqMapTaskOutputInfo> o) { +checkUnnamed2977(core.List<api.SeqMapTaskOutputInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkSeqMapTaskOutputInfo(o[0]); checkSeqMapTaskOutputInfo(o[1]); } -buildUnnamed3504() { +buildUnnamed2978() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3504(core.Map<core.String, core.Object> o) { +checkUnnamed2978(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted25 = (o["x"]) as core.Map; unittest.expect(casted25, unittest.hasLength(3)); unittest.expect(casted25["list"], unittest.equals([1, 2, 3])); unittest.expect(casted25["bool"], unittest.equals(true)); unittest.expect(casted25["string"], unittest.equals('foo')); var casted26 = (o["y"]) as core.Map; unittest.expect(casted26, unittest.hasLength(3)); unittest.expect(casted26["list"], unittest.equals([1, 2, 3])); unittest.expect(casted26["bool"], unittest.equals(true)); unittest.expect(casted26["string"], unittest.equals('foo')); @@ -2679,12 +2679,12 @@ var o = new api.SeqMapTask(); buildCounterSeqMapTask++; if (buildCounterSeqMapTask < 3) { - o.inputs = buildUnnamed3502(); + o.inputs = buildUnnamed2976(); o.name = "foo"; - o.outputInfos = buildUnnamed3503(); + o.outputInfos = buildUnnamed2977(); o.stageName = "foo"; o.systemName = "foo"; - o.userFn = buildUnnamed3504(); + o.userFn = buildUnnamed2978(); } buildCounterSeqMapTask--; return o; @@ -2693,12 +2693,12 @@ checkSeqMapTask(api.SeqMapTask o) { buildCounterSeqMapTask++; if (buildCounterSeqMapTask < 3) { - checkUnnamed3502(o.inputs); + checkUnnamed2976(o.inputs); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3503(o.outputInfos); + checkUnnamed2977(o.outputInfos); unittest.expect(o.stageName, unittest.equals('foo')); unittest.expect(o.systemName, unittest.equals('foo')); - checkUnnamed3504(o.userFn); + checkUnnamed2978(o.userFn); } buildCounterSeqMapTask--; } @@ -2745,27 +2745,27 @@ buildCounterShellTask--; } -buildUnnamed3505() { +buildUnnamed2979() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3505(core.Map<core.String, core.Object> o) { +checkUnnamed2979(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted27 = (o["x"]) as core.Map; unittest.expect(casted27, unittest.hasLength(3)); unittest.expect(casted27["list"], unittest.equals([1, 2, 3])); unittest.expect(casted27["bool"], unittest.equals(true)); unittest.expect(casted27["string"], unittest.equals('foo')); var casted28 = (o["y"]) as core.Map; unittest.expect(casted28, unittest.hasLength(3)); unittest.expect(casted28["list"], unittest.equals([1, 2, 3])); unittest.expect(casted28["bool"], unittest.equals(true)); unittest.expect(casted28["string"], unittest.equals('foo')); } -buildUnnamed3506() { +buildUnnamed2980() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed3506(core.List<api.Source> o) { +checkUnnamed2980(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -2776,8 +2776,8 @@ var o = new api.SideInputInfo(); buildCounterSideInputInfo++; if (buildCounterSideInputInfo < 3) { - o.kind = buildUnnamed3505(); - o.sources = buildUnnamed3506(); + o.kind = buildUnnamed2979(); + o.sources = buildUnnamed2980(); o.tag = "foo"; } buildCounterSideInputInfo--; @@ -2787,34 +2787,34 @@ checkSideInputInfo(api.SideInputInfo o) { buildCounterSideInputInfo++; if (buildCounterSideInputInfo < 3) { - checkUnnamed3505(o.kind); - checkUnnamed3506(o.sources); + checkUnnamed2979(o.kind); + checkUnnamed2980(o.sources); unittest.expect(o.tag, unittest.equals('foo')); } buildCounterSideInputInfo--; } -buildUnnamed3507() { +buildUnnamed2981() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3507(core.Map<core.String, core.Object> o) { +checkUnnamed2981(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted29 = (o["x"]) as core.Map; unittest.expect(casted29, unittest.hasLength(3)); unittest.expect(casted29["list"], unittest.equals([1, 2, 3])); unittest.expect(casted29["bool"], unittest.equals(true)); unittest.expect(casted29["string"], unittest.equals('foo')); var casted30 = (o["y"]) as core.Map; unittest.expect(casted30, unittest.hasLength(3)); unittest.expect(casted30["list"], unittest.equals([1, 2, 3])); unittest.expect(casted30["bool"], unittest.equals(true)); unittest.expect(casted30["string"], unittest.equals('foo')); } -buildUnnamed3508() { +buildUnnamed2982() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3508(core.Map<core.String, core.Object> o) { +checkUnnamed2982(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted31 = (o["x"]) as core.Map; unittest.expect(casted31, unittest.hasLength(3)); unittest.expect(casted31["list"], unittest.equals([1, 2, 3])); unittest.expect(casted31["bool"], unittest.equals(true)); unittest.expect(casted31["string"], unittest.equals('foo')); var casted32 = (o["y"]) as core.Map; unittest.expect(casted32, unittest.hasLength(3)); unittest.expect(casted32["list"], unittest.equals([1, 2, 3])); unittest.expect(casted32["bool"], unittest.equals(true)); unittest.expect(casted32["string"], unittest.equals('foo')); @@ -2825,8 +2825,8 @@ var o = new api.Sink(); buildCounterSink++; if (buildCounterSink < 3) { - o.codec = buildUnnamed3507(); - o.spec = buildUnnamed3508(); + o.codec = buildUnnamed2981(); + o.spec = buildUnnamed2982(); } buildCounterSink--; return o; @@ -2835,59 +2835,59 @@ checkSink(api.Sink o) { buildCounterSink++; if (buildCounterSink < 3) { - checkUnnamed3507(o.codec); - checkUnnamed3508(o.spec); + checkUnnamed2981(o.codec); + checkUnnamed2982(o.spec); } buildCounterSink--; } -buildUnnamed3509() { +buildUnnamed2983() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3509(core.Map<core.String, core.Object> o) { +checkUnnamed2983(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted33 = (o["x"]) as core.Map; unittest.expect(casted33, unittest.hasLength(3)); unittest.expect(casted33["list"], unittest.equals([1, 2, 3])); unittest.expect(casted33["bool"], unittest.equals(true)); unittest.expect(casted33["string"], unittest.equals('foo')); var casted34 = (o["y"]) as core.Map; unittest.expect(casted34, unittest.hasLength(3)); unittest.expect(casted34["list"], unittest.equals([1, 2, 3])); unittest.expect(casted34["bool"], unittest.equals(true)); unittest.expect(casted34["string"], unittest.equals('foo')); } -buildUnnamed3510() { +buildUnnamed2984() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3509()); - o.add(buildUnnamed3509()); + o.add(buildUnnamed2983()); + o.add(buildUnnamed2983()); return o; } -checkUnnamed3510(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2984(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3509(o[0]); - checkUnnamed3509(o[1]); + checkUnnamed2983(o[0]); + checkUnnamed2983(o[1]); } -buildUnnamed3511() { +buildUnnamed2985() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3511(core.Map<core.String, core.Object> o) { +checkUnnamed2985(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted35 = (o["x"]) as core.Map; unittest.expect(casted35, unittest.hasLength(3)); unittest.expect(casted35["list"], unittest.equals([1, 2, 3])); unittest.expect(casted35["bool"], unittest.equals(true)); unittest.expect(casted35["string"], unittest.equals('foo')); var casted36 = (o["y"]) as core.Map; unittest.expect(casted36, unittest.hasLength(3)); unittest.expect(casted36["list"], unittest.equals([1, 2, 3])); unittest.expect(casted36["bool"], unittest.equals(true)); unittest.expect(casted36["string"], unittest.equals('foo')); } -buildUnnamed3512() { +buildUnnamed2986() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3512(core.Map<core.String, core.Object> o) { +checkUnnamed2986(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted37 = (o["x"]) as core.Map; unittest.expect(casted37, unittest.hasLength(3)); unittest.expect(casted37["list"], unittest.equals([1, 2, 3])); unittest.expect(casted37["bool"], unittest.equals(true)); unittest.expect(casted37["string"], unittest.equals('foo')); var casted38 = (o["y"]) as core.Map; unittest.expect(casted38, unittest.hasLength(3)); unittest.expect(casted38["list"], unittest.equals([1, 2, 3])); unittest.expect(casted38["bool"], unittest.equals(true)); unittest.expect(casted38["string"], unittest.equals('foo')); @@ -2898,11 +2898,11 @@ var o = new api.Source(); buildCounterSource++; if (buildCounterSource < 3) { - o.baseSpecs = buildUnnamed3510(); - o.codec = buildUnnamed3511(); + o.baseSpecs = buildUnnamed2984(); + o.codec = buildUnnamed2985(); o.doesNotNeedSplitting = true; o.metadata = buildSourceMetadata(); - o.spec = buildUnnamed3512(); + o.spec = buildUnnamed2986(); } buildCounterSource--; return o; @@ -2911,11 +2911,11 @@ checkSource(api.Source o) { buildCounterSource++; if (buildCounterSource < 3) { - checkUnnamed3510(o.baseSpecs); - checkUnnamed3511(o.codec); + checkUnnamed2984(o.baseSpecs); + checkUnnamed2985(o.codec); unittest.expect(o.doesNotNeedSplitting, unittest.isTrue); checkSourceMetadata(o.metadata); - checkUnnamed3512(o.spec); + checkUnnamed2986(o.spec); } buildCounterSource--; } @@ -3090,27 +3090,27 @@ buildCounterSourceSplitRequest--; } -buildUnnamed3513() { +buildUnnamed2987() { var o = new core.List<api.DerivedSource>(); o.add(buildDerivedSource()); o.add(buildDerivedSource()); return o; } -checkUnnamed3513(core.List<api.DerivedSource> o) { +checkUnnamed2987(core.List<api.DerivedSource> o) { unittest.expect(o, unittest.hasLength(2)); checkDerivedSource(o[0]); checkDerivedSource(o[1]); } -buildUnnamed3514() { +buildUnnamed2988() { var o = new core.List<api.SourceSplitShard>(); o.add(buildSourceSplitShard()); o.add(buildSourceSplitShard()); return o; } -checkUnnamed3514(core.List<api.SourceSplitShard> o) { +checkUnnamed2988(core.List<api.SourceSplitShard> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceSplitShard(o[0]); checkSourceSplitShard(o[1]); @@ -3121,9 +3121,9 @@ var o = new api.SourceSplitResponse(); buildCounterSourceSplitResponse++; if (buildCounterSourceSplitResponse < 3) { - o.bundles = buildUnnamed3513(); + o.bundles = buildUnnamed2987(); o.outcome = "foo"; - o.shards = buildUnnamed3514(); + o.shards = buildUnnamed2988(); } buildCounterSourceSplitResponse--; return o; @@ -3132,9 +3132,9 @@ checkSourceSplitResponse(api.SourceSplitResponse o) { buildCounterSourceSplitResponse++; if (buildCounterSourceSplitResponse < 3) { - checkUnnamed3513(o.bundles); + checkUnnamed2987(o.bundles); unittest.expect(o.outcome, unittest.equals('foo')); - checkUnnamed3514(o.shards); + checkUnnamed2988(o.shards); } buildCounterSourceSplitResponse--; } @@ -3227,30 +3227,30 @@ buildCounterStateFamilyConfig--; } -buildUnnamed3515() { +buildUnnamed2989() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3515(core.Map<core.String, core.Object> o) { +checkUnnamed2989(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted39 = (o["x"]) as core.Map; unittest.expect(casted39, unittest.hasLength(3)); unittest.expect(casted39["list"], unittest.equals([1, 2, 3])); unittest.expect(casted39["bool"], unittest.equals(true)); unittest.expect(casted39["string"], unittest.equals('foo')); var casted40 = (o["y"]) as core.Map; unittest.expect(casted40, unittest.hasLength(3)); unittest.expect(casted40["list"], unittest.equals([1, 2, 3])); unittest.expect(casted40["bool"], unittest.equals(true)); unittest.expect(casted40["string"], unittest.equals('foo')); } -buildUnnamed3516() { +buildUnnamed2990() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3515()); - o.add(buildUnnamed3515()); + o.add(buildUnnamed2989()); + o.add(buildUnnamed2989()); return o; } -checkUnnamed3516(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2990(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3515(o[0]); - checkUnnamed3515(o[1]); + checkUnnamed2989(o[0]); + checkUnnamed2989(o[1]); } core.int buildCounterStatus = 0; @@ -3259,7 +3259,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3516(); + o.details = buildUnnamed2990(); o.message = "foo"; } buildCounterStatus--; @@ -3270,20 +3270,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3516(o.details); + checkUnnamed2990(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed3517() { +buildUnnamed2991() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3517(core.Map<core.String, core.Object> o) { +checkUnnamed2991(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted41 = (o["x"]) as core.Map; unittest.expect(casted41, unittest.hasLength(3)); unittest.expect(casted41["list"], unittest.equals([1, 2, 3])); unittest.expect(casted41["bool"], unittest.equals(true)); unittest.expect(casted41["string"], unittest.equals('foo')); var casted42 = (o["y"]) as core.Map; unittest.expect(casted42, unittest.hasLength(3)); unittest.expect(casted42["list"], unittest.equals([1, 2, 3])); unittest.expect(casted42["bool"], unittest.equals(true)); unittest.expect(casted42["string"], unittest.equals('foo')); @@ -3296,7 +3296,7 @@ if (buildCounterStep < 3) { o.kind = "foo"; o.name = "foo"; - o.properties = buildUnnamed3517(); + o.properties = buildUnnamed2991(); } buildCounterStep--; return o; @@ -3307,7 +3307,7 @@ if (buildCounterStep < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3517(o.properties); + checkUnnamed2991(o.properties); } buildCounterStep--; } @@ -3337,14 +3337,14 @@ buildCounterStreamLocation--; } -buildUnnamed3518() { +buildUnnamed2992() { var o = new core.List<api.ParallelInstruction>(); o.add(buildParallelInstruction()); o.add(buildParallelInstruction()); return o; } -checkUnnamed3518(core.List<api.ParallelInstruction> o) { +checkUnnamed2992(core.List<api.ParallelInstruction> o) { unittest.expect(o, unittest.hasLength(2)); checkParallelInstruction(o[0]); checkParallelInstruction(o[1]); @@ -3356,7 +3356,7 @@ buildCounterStreamingComputationConfig++; if (buildCounterStreamingComputationConfig < 3) { o.computationId = "foo"; - o.instructions = buildUnnamed3518(); + o.instructions = buildUnnamed2992(); o.stageName = "foo"; o.systemName = "foo"; } @@ -3368,21 +3368,21 @@ buildCounterStreamingComputationConfig++; if (buildCounterStreamingComputationConfig < 3) { unittest.expect(o.computationId, unittest.equals('foo')); - checkUnnamed3518(o.instructions); + checkUnnamed2992(o.instructions); unittest.expect(o.stageName, unittest.equals('foo')); unittest.expect(o.systemName, unittest.equals('foo')); } buildCounterStreamingComputationConfig--; } -buildUnnamed3519() { +buildUnnamed2993() { var o = new core.List<api.KeyRangeDataDiskAssignment>(); o.add(buildKeyRangeDataDiskAssignment()); o.add(buildKeyRangeDataDiskAssignment()); return o; } -checkUnnamed3519(core.List<api.KeyRangeDataDiskAssignment> o) { +checkUnnamed2993(core.List<api.KeyRangeDataDiskAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkKeyRangeDataDiskAssignment(o[0]); checkKeyRangeDataDiskAssignment(o[1]); @@ -3394,7 +3394,7 @@ buildCounterStreamingComputationRanges++; if (buildCounterStreamingComputationRanges < 3) { o.computationId = "foo"; - o.rangeAssignments = buildUnnamed3519(); + o.rangeAssignments = buildUnnamed2993(); } buildCounterStreamingComputationRanges--; return o; @@ -3404,32 +3404,32 @@ buildCounterStreamingComputationRanges++; if (buildCounterStreamingComputationRanges < 3) { unittest.expect(o.computationId, unittest.equals('foo')); - checkUnnamed3519(o.rangeAssignments); + checkUnnamed2993(o.rangeAssignments); } buildCounterStreamingComputationRanges--; } -buildUnnamed3520() { +buildUnnamed2994() { var o = new core.List<api.StreamingComputationRanges>(); o.add(buildStreamingComputationRanges()); o.add(buildStreamingComputationRanges()); return o; } -checkUnnamed3520(core.List<api.StreamingComputationRanges> o) { +checkUnnamed2994(core.List<api.StreamingComputationRanges> o) { unittest.expect(o, unittest.hasLength(2)); checkStreamingComputationRanges(o[0]); checkStreamingComputationRanges(o[1]); } -buildUnnamed3521() { +buildUnnamed2995() { var o = new core.List<api.MountedDataDisk>(); o.add(buildMountedDataDisk()); o.add(buildMountedDataDisk()); return o; } -checkUnnamed3521(core.List<api.MountedDataDisk> o) { +checkUnnamed2995(core.List<api.MountedDataDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkMountedDataDisk(o[0]); checkMountedDataDisk(o[1]); @@ -3440,8 +3440,8 @@ var o = new api.StreamingComputationTask(); buildCounterStreamingComputationTask++; if (buildCounterStreamingComputationTask < 3) { - o.computationRanges = buildUnnamed3520(); - o.dataDisks = buildUnnamed3521(); + o.computationRanges = buildUnnamed2994(); + o.dataDisks = buildUnnamed2995(); o.taskType = "foo"; } buildCounterStreamingComputationTask--; @@ -3451,34 +3451,34 @@ checkStreamingComputationTask(api.StreamingComputationTask o) { buildCounterStreamingComputationTask++; if (buildCounterStreamingComputationTask < 3) { - checkUnnamed3520(o.computationRanges); - checkUnnamed3521(o.dataDisks); + checkUnnamed2994(o.computationRanges); + checkUnnamed2995(o.dataDisks); unittest.expect(o.taskType, unittest.equals('foo')); } buildCounterStreamingComputationTask--; } -buildUnnamed3522() { +buildUnnamed2996() { var o = new core.List<api.StreamingComputationConfig>(); o.add(buildStreamingComputationConfig()); o.add(buildStreamingComputationConfig()); return o; } -checkUnnamed3522(core.List<api.StreamingComputationConfig> o) { +checkUnnamed2996(core.List<api.StreamingComputationConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkStreamingComputationConfig(o[0]); checkStreamingComputationConfig(o[1]); } -buildUnnamed3523() { +buildUnnamed2997() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3523(core.Map<core.String, core.String> o) { +checkUnnamed2997(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -3489,8 +3489,8 @@ var o = new api.StreamingConfigTask(); buildCounterStreamingConfigTask++; if (buildCounterStreamingConfigTask < 3) { - o.streamingComputationConfigs = buildUnnamed3522(); - o.userStepToStateFamilyNameMap = buildUnnamed3523(); + o.streamingComputationConfigs = buildUnnamed2996(); + o.userStepToStateFamilyNameMap = buildUnnamed2997(); o.windmillServiceEndpoint = "foo"; o.windmillServicePort = "foo"; } @@ -3501,8 +3501,8 @@ checkStreamingConfigTask(api.StreamingConfigTask o) { buildCounterStreamingConfigTask++; if (buildCounterStreamingConfigTask < 3) { - checkUnnamed3522(o.streamingComputationConfigs); - checkUnnamed3523(o.userStepToStateFamilyNameMap); + checkUnnamed2996(o.streamingComputationConfigs); + checkUnnamed2997(o.userStepToStateFamilyNameMap); unittest.expect(o.windmillServiceEndpoint, unittest.equals('foo')); unittest.expect(o.windmillServicePort, unittest.equals('foo')); } @@ -3574,14 +3574,14 @@ buildCounterStreamingStageLocation--; } -buildUnnamed3524() { +buildUnnamed2998() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3524(core.List<core.String> o) { +checkUnnamed2998(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3592,7 +3592,7 @@ var o = new api.StringList(); buildCounterStringList++; if (buildCounterStringList < 3) { - o.elements = buildUnnamed3524(); + o.elements = buildUnnamed2998(); } buildCounterStringList--; return o; @@ -3601,19 +3601,19 @@ checkStringList(api.StringList o) { buildCounterStringList++; if (buildCounterStringList < 3) { - checkUnnamed3524(o.elements); + checkUnnamed2998(o.elements); } buildCounterStringList--; } -buildUnnamed3525() { +buildUnnamed2999() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed3525(core.List<api.Parameter> o) { +checkUnnamed2999(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -3626,7 +3626,7 @@ if (buildCounterStructuredMessage < 3) { o.messageKey = "foo"; o.messageText = "foo"; - o.parameters = buildUnnamed3525(); + o.parameters = buildUnnamed2999(); } buildCounterStructuredMessage--; return o; @@ -3637,19 +3637,19 @@ if (buildCounterStructuredMessage < 3) { unittest.expect(o.messageKey, unittest.equals('foo')); unittest.expect(o.messageText, unittest.equals('foo')); - checkUnnamed3525(o.parameters); + checkUnnamed2999(o.parameters); } buildCounterStructuredMessage--; } -buildUnnamed3526() { +buildUnnamed3000() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3526(core.List<core.String> o) { +checkUnnamed3000(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3671,7 +3671,7 @@ o.logDir = "foo"; o.logToSerialconsole = true; o.logUploadLocation = "foo"; - o.oauthScopes = buildUnnamed3526(); + o.oauthScopes = buildUnnamed3000(); o.parallelWorkerSettings = buildWorkerSettings(); o.streamingWorkerMainClass = "foo"; o.taskGroup = "foo"; @@ -3698,7 +3698,7 @@ unittest.expect(o.logDir, unittest.equals('foo')); unittest.expect(o.logToSerialconsole, unittest.isTrue); unittest.expect(o.logUploadLocation, unittest.equals('foo')); - checkUnnamed3526(o.oauthScopes); + checkUnnamed3000(o.oauthScopes); checkWorkerSettings(o.parallelWorkerSettings); unittest.expect(o.streamingWorkerMainClass, unittest.equals('foo')); unittest.expect(o.taskGroup, unittest.equals('foo')); @@ -3710,14 +3710,14 @@ buildCounterTaskRunnerSettings--; } -buildUnnamed3527() { +buildUnnamed3001() { var o = new core.List<api.ParameterMetadata>(); o.add(buildParameterMetadata()); o.add(buildParameterMetadata()); return o; } -checkUnnamed3527(core.List<api.ParameterMetadata> o) { +checkUnnamed3001(core.List<api.ParameterMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkParameterMetadata(o[0]); checkParameterMetadata(o[1]); @@ -3728,10 +3728,9 @@ var o = new api.TemplateMetadata(); buildCounterTemplateMetadata++; if (buildCounterTemplateMetadata < 3) { - o.bypassTempDirValidation = true; o.description = "foo"; o.name = "foo"; - o.parameters = buildUnnamed3527(); + o.parameters = buildUnnamed3001(); } buildCounterTemplateMetadata--; return o; @@ -3740,48 +3739,47 @@ checkTemplateMetadata(api.TemplateMetadata o) { buildCounterTemplateMetadata++; if (buildCounterTemplateMetadata < 3) { - unittest.expect(o.bypassTempDirValidation, unittest.isTrue); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3527(o.parameters); + checkUnnamed3001(o.parameters); } buildCounterTemplateMetadata--; } -buildUnnamed3528() { +buildUnnamed3002() { var o = new core.List<api.ComputationTopology>(); o.add(buildComputationTopology()); o.add(buildComputationTopology()); return o; } -checkUnnamed3528(core.List<api.ComputationTopology> o) { +checkUnnamed3002(core.List<api.ComputationTopology> o) { unittest.expect(o, unittest.hasLength(2)); checkComputationTopology(o[0]); checkComputationTopology(o[1]); } -buildUnnamed3529() { +buildUnnamed3003() { var o = new core.List<api.DataDiskAssignment>(); o.add(buildDataDiskAssignment()); o.add(buildDataDiskAssignment()); return o; } -checkUnnamed3529(core.List<api.DataDiskAssignment> o) { +checkUnnamed3003(core.List<api.DataDiskAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkDataDiskAssignment(o[0]); checkDataDiskAssignment(o[1]); } -buildUnnamed3530() { +buildUnnamed3004() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3530(core.Map<core.String, core.String> o) { +checkUnnamed3004(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -3792,11 +3790,11 @@ var o = new api.TopologyConfig(); buildCounterTopologyConfig++; if (buildCounterTopologyConfig < 3) { - o.computations = buildUnnamed3528(); - o.dataDiskAssignments = buildUnnamed3529(); + o.computations = buildUnnamed3002(); + o.dataDiskAssignments = buildUnnamed3003(); o.forwardingKeyBits = 42; o.persistentStateVersion = 42; - o.userStageToComputationNameMap = buildUnnamed3530(); + o.userStageToComputationNameMap = buildUnnamed3004(); } buildCounterTopologyConfig--; return o; @@ -3805,49 +3803,49 @@ checkTopologyConfig(api.TopologyConfig o) { buildCounterTopologyConfig++; if (buildCounterTopologyConfig < 3) { - checkUnnamed3528(o.computations); - checkUnnamed3529(o.dataDiskAssignments); + checkUnnamed3002(o.computations); + checkUnnamed3003(o.dataDiskAssignments); unittest.expect(o.forwardingKeyBits, unittest.equals(42)); unittest.expect(o.persistentStateVersion, unittest.equals(42)); - checkUnnamed3530(o.userStageToComputationNameMap); + checkUnnamed3004(o.userStageToComputationNameMap); } buildCounterTopologyConfig--; } -buildUnnamed3531() { +buildUnnamed3005() { var o = new core.List<api.DisplayData>(); o.add(buildDisplayData()); o.add(buildDisplayData()); return o; } -checkUnnamed3531(core.List<api.DisplayData> o) { +checkUnnamed3005(core.List<api.DisplayData> o) { unittest.expect(o, unittest.hasLength(2)); checkDisplayData(o[0]); checkDisplayData(o[1]); } -buildUnnamed3532() { +buildUnnamed3006() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3532(core.List<core.String> o) { +checkUnnamed3006(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3533() { +buildUnnamed3007() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3533(core.List<core.String> o) { +checkUnnamed3007(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3858,12 +3856,12 @@ var o = new api.TransformSummary(); buildCounterTransformSummary++; if (buildCounterTransformSummary < 3) { - o.displayData = buildUnnamed3531(); + o.displayData = buildUnnamed3005(); o.id = "foo"; - o.inputCollectionName = buildUnnamed3532(); + o.inputCollectionName = buildUnnamed3006(); o.kind = "foo"; o.name = "foo"; - o.outputCollectionName = buildUnnamed3533(); + o.outputCollectionName = buildUnnamed3007(); } buildCounterTransformSummary--; return o; @@ -3872,24 +3870,24 @@ checkTransformSummary(api.TransformSummary o) { buildCounterTransformSummary++; if (buildCounterTransformSummary < 3) { - checkUnnamed3531(o.displayData); + checkUnnamed3005(o.displayData); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3532(o.inputCollectionName); + checkUnnamed3006(o.inputCollectionName); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3533(o.outputCollectionName); + checkUnnamed3007(o.outputCollectionName); } buildCounterTransformSummary--; } -buildUnnamed3534() { +buildUnnamed3008() { var o = new core.List<api.Package>(); o.add(buildPackage()); o.add(buildPackage()); return o; } -checkUnnamed3534(core.List<api.Package> o) { +checkUnnamed3008(core.List<api.Package> o) { unittest.expect(o, unittest.hasLength(2)); checkPackage(o[0]); checkPackage(o[1]); @@ -3906,7 +3904,7 @@ o.jobId = "foo"; o.leaseExpireTime = "foo"; o.mapTask = buildMapTask(); - o.packages = buildUnnamed3534(); + o.packages = buildUnnamed3008(); o.projectId = "foo"; o.reportStatusInterval = "foo"; o.seqMapTask = buildSeqMapTask(); @@ -3929,7 +3927,7 @@ unittest.expect(o.jobId, unittest.equals('foo')); unittest.expect(o.leaseExpireTime, unittest.equals('foo')); checkMapTask(o.mapTask); - checkUnnamed3534(o.packages); + checkUnnamed3008(o.packages); unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.reportStatusInterval, unittest.equals('foo')); checkSeqMapTask(o.seqMapTask); @@ -3942,27 +3940,27 @@ buildCounterWorkItem--; } -buildUnnamed3535() { +buildUnnamed3009() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3535(core.Map<core.String, core.Object> o) { +checkUnnamed3009(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted43 = (o["x"]) as core.Map; unittest.expect(casted43, unittest.hasLength(3)); unittest.expect(casted43["list"], unittest.equals([1, 2, 3])); unittest.expect(casted43["bool"], unittest.equals(true)); unittest.expect(casted43["string"], unittest.equals('foo')); var casted44 = (o["y"]) as core.Map; unittest.expect(casted44, unittest.hasLength(3)); unittest.expect(casted44["list"], unittest.equals([1, 2, 3])); unittest.expect(casted44["bool"], unittest.equals(true)); unittest.expect(casted44["string"], unittest.equals('foo')); } -buildUnnamed3536() { +buildUnnamed3010() { var o = new core.List<api.MetricShortId>(); o.add(buildMetricShortId()); o.add(buildMetricShortId()); return o; } -checkUnnamed3536(core.List<api.MetricShortId> o) { +checkUnnamed3010(core.List<api.MetricShortId> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricShortId(o[0]); checkMetricShortId(o[1]); @@ -3973,9 +3971,9 @@ var o = new api.WorkItemServiceState(); buildCounterWorkItemServiceState++; if (buildCounterWorkItemServiceState < 3) { - o.harnessData = buildUnnamed3535(); + o.harnessData = buildUnnamed3009(); o.leaseExpireTime = "foo"; - o.metricShortId = buildUnnamed3536(); + o.metricShortId = buildUnnamed3010(); o.nextReportIndex = "foo"; o.reportStatusInterval = "foo"; o.splitRequest = buildApproximateSplitRequest(); @@ -3989,9 +3987,9 @@ checkWorkItemServiceState(api.WorkItemServiceState o) { buildCounterWorkItemServiceState++; if (buildCounterWorkItemServiceState < 3) { - checkUnnamed3535(o.harnessData); + checkUnnamed3009(o.harnessData); unittest.expect(o.leaseExpireTime, unittest.equals('foo')); - checkUnnamed3536(o.metricShortId); + checkUnnamed3010(o.metricShortId); unittest.expect(o.nextReportIndex, unittest.equals('foo')); unittest.expect(o.reportStatusInterval, unittest.equals('foo')); checkApproximateSplitRequest(o.splitRequest); @@ -4001,40 +3999,40 @@ buildCounterWorkItemServiceState--; } -buildUnnamed3537() { +buildUnnamed3011() { var o = new core.List<api.CounterUpdate>(); o.add(buildCounterUpdate()); o.add(buildCounterUpdate()); return o; } -checkUnnamed3537(core.List<api.CounterUpdate> o) { +checkUnnamed3011(core.List<api.CounterUpdate> o) { unittest.expect(o, unittest.hasLength(2)); checkCounterUpdate(o[0]); checkCounterUpdate(o[1]); } -buildUnnamed3538() { +buildUnnamed3012() { var o = new core.List<api.Status>(); o.add(buildStatus()); o.add(buildStatus()); return o; } -checkUnnamed3538(core.List<api.Status> o) { +checkUnnamed3012(core.List<api.Status> o) { unittest.expect(o, unittest.hasLength(2)); checkStatus(o[0]); checkStatus(o[1]); } -buildUnnamed3539() { +buildUnnamed3013() { var o = new core.List<api.MetricUpdate>(); o.add(buildMetricUpdate()); o.add(buildMetricUpdate()); return o; } -checkUnnamed3539(core.List<api.MetricUpdate> o) { +checkUnnamed3013(core.List<api.MetricUpdate> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricUpdate(o[0]); checkMetricUpdate(o[1]); @@ -4046,10 +4044,10 @@ buildCounterWorkItemStatus++; if (buildCounterWorkItemStatus < 3) { o.completed = true; - o.counterUpdates = buildUnnamed3537(); + o.counterUpdates = buildUnnamed3011(); o.dynamicSourceSplit = buildDynamicSourceSplit(); - o.errors = buildUnnamed3538(); - o.metricUpdates = buildUnnamed3539(); + o.errors = buildUnnamed3012(); + o.metricUpdates = buildUnnamed3013(); o.progress = buildApproximateProgress(); o.reportIndex = "foo"; o.reportedProgress = buildApproximateReportedProgress(); @@ -4067,10 +4065,10 @@ buildCounterWorkItemStatus++; if (buildCounterWorkItemStatus < 3) { unittest.expect(o.completed, unittest.isTrue); - checkUnnamed3537(o.counterUpdates); + checkUnnamed3011(o.counterUpdates); checkDynamicSourceSplit(o.dynamicSourceSplit); - checkUnnamed3538(o.errors); - checkUnnamed3539(o.metricUpdates); + checkUnnamed3012(o.errors); + checkUnnamed3013(o.metricUpdates); checkApproximateProgress(o.progress); unittest.expect(o.reportIndex, unittest.equals('foo')); checkApproximateReportedProgress(o.reportedProgress); @@ -4083,30 +4081,30 @@ buildCounterWorkItemStatus--; } -buildUnnamed3540() { +buildUnnamed3014() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3540(core.Map<core.String, core.Object> o) { +checkUnnamed3014(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted45 = (o["x"]) as core.Map; unittest.expect(casted45, unittest.hasLength(3)); unittest.expect(casted45["list"], unittest.equals([1, 2, 3])); unittest.expect(casted45["bool"], unittest.equals(true)); unittest.expect(casted45["string"], unittest.equals('foo')); var casted46 = (o["y"]) as core.Map; unittest.expect(casted46, unittest.hasLength(3)); unittest.expect(casted46["list"], unittest.equals([1, 2, 3])); unittest.expect(casted46["bool"], unittest.equals(true)); unittest.expect(casted46["string"], unittest.equals('foo')); } -buildUnnamed3541() { +buildUnnamed3015() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3540()); - o.add(buildUnnamed3540()); + o.add(buildUnnamed3014()); + o.add(buildUnnamed3014()); return o; } -checkUnnamed3541(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3015(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3540(o[0]); - checkUnnamed3540(o[1]); + checkUnnamed3014(o[0]); + checkUnnamed3014(o[1]); } core.int buildCounterWorkerHealthReport = 0; @@ -4114,7 +4112,7 @@ var o = new api.WorkerHealthReport(); buildCounterWorkerHealthReport++; if (buildCounterWorkerHealthReport < 3) { - o.pods = buildUnnamed3541(); + o.pods = buildUnnamed3015(); o.reportInterval = "foo"; o.vmIsHealthy = true; o.vmStartupTime = "foo"; @@ -4126,7 +4124,7 @@ checkWorkerHealthReport(api.WorkerHealthReport o) { buildCounterWorkerHealthReport++; if (buildCounterWorkerHealthReport < 3) { - checkUnnamed3541(o.pods); + checkUnnamed3015(o.pods); unittest.expect(o.reportInterval, unittest.equals('foo')); unittest.expect(o.vmIsHealthy, unittest.isTrue); unittest.expect(o.vmStartupTime, unittest.equals('foo')); @@ -4153,14 +4151,14 @@ buildCounterWorkerHealthReportResponse--; } -buildUnnamed3542() { +buildUnnamed3016() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3542(core.Map<core.String, core.String> o) { +checkUnnamed3016(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -4171,7 +4169,7 @@ var o = new api.WorkerMessage(); buildCounterWorkerMessage++; if (buildCounterWorkerMessage < 3) { - o.labels = buildUnnamed3542(); + o.labels = buildUnnamed3016(); o.time = "foo"; o.workerHealthReport = buildWorkerHealthReport(); o.workerMessageCode = buildWorkerMessageCode(); @@ -4184,7 +4182,7 @@ checkWorkerMessage(api.WorkerMessage o) { buildCounterWorkerMessage++; if (buildCounterWorkerMessage < 3) { - checkUnnamed3542(o.labels); + checkUnnamed3016(o.labels); unittest.expect(o.time, unittest.equals('foo')); checkWorkerHealthReport(o.workerHealthReport); checkWorkerMessageCode(o.workerMessageCode); @@ -4193,14 +4191,14 @@ buildCounterWorkerMessage--; } -buildUnnamed3543() { +buildUnnamed3017() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3543(core.Map<core.String, core.Object> o) { +checkUnnamed3017(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted47 = (o["x"]) as core.Map; unittest.expect(casted47, unittest.hasLength(3)); unittest.expect(casted47["list"], unittest.equals([1, 2, 3])); unittest.expect(casted47["bool"], unittest.equals(true)); unittest.expect(casted47["string"], unittest.equals('foo')); var casted48 = (o["y"]) as core.Map; unittest.expect(casted48, unittest.hasLength(3)); unittest.expect(casted48["list"], unittest.equals([1, 2, 3])); unittest.expect(casted48["bool"], unittest.equals(true)); unittest.expect(casted48["string"], unittest.equals('foo')); @@ -4212,7 +4210,7 @@ buildCounterWorkerMessageCode++; if (buildCounterWorkerMessageCode < 3) { o.code = "foo"; - o.parameters = buildUnnamed3543(); + o.parameters = buildUnnamed3017(); } buildCounterWorkerMessageCode--; return o; @@ -4222,7 +4220,7 @@ buildCounterWorkerMessageCode++; if (buildCounterWorkerMessageCode < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed3543(o.parameters); + checkUnnamed3017(o.parameters); } buildCounterWorkerMessageCode--; } @@ -4248,53 +4246,53 @@ buildCounterWorkerMessageResponse--; } -buildUnnamed3544() { +buildUnnamed3018() { var o = new core.List<api.Disk>(); o.add(buildDisk()); o.add(buildDisk()); return o; } -checkUnnamed3544(core.List<api.Disk> o) { +checkUnnamed3018(core.List<api.Disk> o) { unittest.expect(o, unittest.hasLength(2)); checkDisk(o[0]); checkDisk(o[1]); } -buildUnnamed3545() { +buildUnnamed3019() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3545(core.Map<core.String, core.String> o) { +checkUnnamed3019(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3546() { +buildUnnamed3020() { var o = new core.List<api.Package>(); o.add(buildPackage()); o.add(buildPackage()); return o; } -checkUnnamed3546(core.List<api.Package> o) { +checkUnnamed3020(core.List<api.Package> o) { unittest.expect(o, unittest.hasLength(2)); checkPackage(o[0]); checkPackage(o[1]); } -buildUnnamed3547() { +buildUnnamed3021() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3547(core.Map<core.String, core.Object> o) { +checkUnnamed3021(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted49 = (o["x"]) as core.Map; unittest.expect(casted49, unittest.hasLength(3)); unittest.expect(casted49["list"], unittest.equals([1, 2, 3])); unittest.expect(casted49["bool"], unittest.equals(true)); unittest.expect(casted49["string"], unittest.equals('foo')); var casted50 = (o["y"]) as core.Map; unittest.expect(casted50, unittest.hasLength(3)); unittest.expect(casted50["list"], unittest.equals([1, 2, 3])); unittest.expect(casted50["bool"], unittest.equals(true)); unittest.expect(casted50["string"], unittest.equals('foo')); @@ -4306,7 +4304,7 @@ buildCounterWorkerPool++; if (buildCounterWorkerPool < 3) { o.autoscalingSettings = buildAutoscalingSettings(); - o.dataDisks = buildUnnamed3544(); + o.dataDisks = buildUnnamed3018(); o.defaultPackageSet = "foo"; o.diskSizeGb = 42; o.diskSourceImage = "foo"; @@ -4314,13 +4312,13 @@ o.ipConfiguration = "foo"; o.kind = "foo"; o.machineType = "foo"; - o.metadata = buildUnnamed3545(); + o.metadata = buildUnnamed3019(); o.network = "foo"; o.numThreadsPerWorker = 42; o.numWorkers = 42; o.onHostMaintenance = "foo"; - o.packages = buildUnnamed3546(); - o.poolArgs = buildUnnamed3547(); + o.packages = buildUnnamed3020(); + o.poolArgs = buildUnnamed3021(); o.subnetwork = "foo"; o.taskrunnerSettings = buildTaskRunnerSettings(); o.teardownPolicy = "foo"; @@ -4335,7 +4333,7 @@ buildCounterWorkerPool++; if (buildCounterWorkerPool < 3) { checkAutoscalingSettings(o.autoscalingSettings); - checkUnnamed3544(o.dataDisks); + checkUnnamed3018(o.dataDisks); unittest.expect(o.defaultPackageSet, unittest.equals('foo')); unittest.expect(o.diskSizeGb, unittest.equals(42)); unittest.expect(o.diskSourceImage, unittest.equals('foo')); @@ -4343,13 +4341,13 @@ unittest.expect(o.ipConfiguration, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.machineType, unittest.equals('foo')); - checkUnnamed3545(o.metadata); + checkUnnamed3019(o.metadata); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.numThreadsPerWorker, unittest.equals(42)); unittest.expect(o.numWorkers, unittest.equals(42)); unittest.expect(o.onHostMaintenance, unittest.equals('foo')); - checkUnnamed3546(o.packages); - checkUnnamed3547(o.poolArgs); + checkUnnamed3020(o.packages); + checkUnnamed3021(o.poolArgs); unittest.expect(o.subnetwork, unittest.equals('foo')); checkTaskRunnerSettings(o.taskrunnerSettings); unittest.expect(o.teardownPolicy, unittest.equals('foo')); @@ -5525,7 +5523,7 @@ api.ProjectsResourceApi res = new api.DataflowApi(mock).projects; var arg_request = buildSendWorkerMessagesRequest(); var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SendWorkerMessagesRequest.fromJson(json); checkSendWorkerMessagesRequest(obj); @@ -5569,7 +5567,7 @@ var resp = convert.JSON.encode(buildSendWorkerMessagesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.workerMessages(arg_request, arg_projectId).then(unittest.expectAsync(((api.SendWorkerMessagesResponse response) { + res.workerMessages(arg_request, arg_projectId).then(unittest.expectAsync1(((api.SendWorkerMessagesResponse response) { checkSendWorkerMessagesResponse(response); }))); }); @@ -5587,7 +5585,7 @@ var arg_view = "foo"; var arg_location = "foo"; var arg_replaceJobId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Job.fromJson(json); checkJob(obj); @@ -5634,7 +5632,7 @@ var resp = convert.JSON.encode(buildJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_projectId, view: arg_view, location: arg_location, replaceJobId: arg_replaceJobId).then(unittest.expectAsync(((api.Job response) { + res.create(arg_request, arg_projectId, view: arg_view, location: arg_location, replaceJobId: arg_replaceJobId).then(unittest.expectAsync1(((api.Job response) { checkJob(response); }))); }); @@ -5647,7 +5645,7 @@ var arg_jobId = "foo"; var arg_view = "foo"; var arg_location = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5693,7 +5691,7 @@ var resp = convert.JSON.encode(buildJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_projectId, arg_jobId, view: arg_view, location: arg_location).then(unittest.expectAsync(((api.Job response) { + res.get(arg_projectId, arg_jobId, view: arg_view, location: arg_location).then(unittest.expectAsync1(((api.Job response) { checkJob(response); }))); }); @@ -5704,9 +5702,9 @@ api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; var arg_projectId = "foo"; var arg_jobId = "foo"; - var arg_location = "foo"; var arg_startTime = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_location = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5746,8 +5744,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["location"].first, unittest.equals(arg_location)); unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTime)); + unittest.expect(queryMap["location"].first, unittest.equals(arg_location)); var h = { @@ -5756,7 +5754,7 @@ var resp = convert.JSON.encode(buildJobMetrics()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getMetrics(arg_projectId, arg_jobId, location: arg_location, startTime: arg_startTime).then(unittest.expectAsync(((api.JobMetrics response) { + res.getMetrics(arg_projectId, arg_jobId, startTime: arg_startTime, location: arg_location).then(unittest.expectAsync1(((api.JobMetrics response) { checkJobMetrics(response); }))); }); @@ -5766,12 +5764,12 @@ var mock = new HttpServerMock(); api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; var arg_projectId = "foo"; - var arg_view = "foo"; - var arg_filter = "foo"; var arg_location = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_view = "foo"; + var arg_filter = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -5804,11 +5802,11 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["location"].first, unittest.equals(arg_location)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); var h = { @@ -5817,7 +5815,7 @@ var resp = convert.JSON.encode(buildListJobsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, view: arg_view, filter: arg_filter, location: arg_location, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListJobsResponse response) { + res.list(arg_projectId, location: arg_location, pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view, filter: arg_filter).then(unittest.expectAsync1(((api.ListJobsResponse response) { checkListJobsResponse(response); }))); }); @@ -5830,7 +5828,7 @@ var arg_projectId = "foo"; var arg_jobId = "foo"; var arg_location = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Job.fromJson(json); checkJob(obj); @@ -5878,7 +5876,7 @@ var resp = convert.JSON.encode(buildJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_projectId, arg_jobId, location: arg_location).then(unittest.expectAsync(((api.Job response) { + res.update(arg_request, arg_projectId, arg_jobId, location: arg_location).then(unittest.expectAsync1(((api.Job response) { checkJob(response); }))); }); @@ -5894,7 +5892,7 @@ var arg_request = buildGetDebugConfigRequest(); var arg_projectId = "foo"; var arg_jobId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GetDebugConfigRequest.fromJson(json); checkGetDebugConfigRequest(obj); @@ -5945,7 +5943,7 @@ var resp = convert.JSON.encode(buildGetDebugConfigResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getConfig(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsync(((api.GetDebugConfigResponse response) { + res.getConfig(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsync1(((api.GetDebugConfigResponse response) { checkGetDebugConfigResponse(response); }))); }); @@ -5957,7 +5955,7 @@ var arg_request = buildSendDebugCaptureRequest(); var arg_projectId = "foo"; var arg_jobId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SendDebugCaptureRequest.fromJson(json); checkSendDebugCaptureRequest(obj); @@ -6008,7 +6006,7 @@ var resp = convert.JSON.encode(buildSendDebugCaptureResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.sendCapture(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsync(((api.SendDebugCaptureResponse response) { + res.sendCapture(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsync1(((api.SendDebugCaptureResponse response) { checkSendDebugCaptureResponse(response); }))); }); @@ -6023,13 +6021,13 @@ api.ProjectsJobsMessagesResourceApi res = new api.DataflowApi(mock).projects.jobs.messages; var arg_projectId = "foo"; var arg_jobId = "foo"; - var arg_minimumImportance = "foo"; - var arg_endTime = "foo"; - var arg_location = "foo"; - var arg_pageToken = "foo"; - var arg_startTime = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_minimumImportance = "foo"; + var arg_location = "foo"; + var arg_endTime = "foo"; + var arg_startTime = "foo"; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6069,12 +6067,12 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["minimumImportance"].first, unittest.equals(arg_minimumImportance)); - unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime)); - unittest.expect(queryMap["location"].first, unittest.equals(arg_location)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTime)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["minimumImportance"].first, unittest.equals(arg_minimumImportance)); + unittest.expect(queryMap["location"].first, unittest.equals(arg_location)); + unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime)); + unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTime)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -6083,7 +6081,7 @@ var resp = convert.JSON.encode(buildListJobMessagesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, arg_jobId, minimumImportance: arg_minimumImportance, endTime: arg_endTime, location: arg_location, pageToken: arg_pageToken, startTime: arg_startTime, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListJobMessagesResponse response) { + res.list(arg_projectId, arg_jobId, pageSize: arg_pageSize, minimumImportance: arg_minimumImportance, location: arg_location, endTime: arg_endTime, startTime: arg_startTime, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListJobMessagesResponse response) { checkListJobMessagesResponse(response); }))); }); @@ -6099,7 +6097,7 @@ var arg_request = buildLeaseWorkItemRequest(); var arg_projectId = "foo"; var arg_jobId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LeaseWorkItemRequest.fromJson(json); checkLeaseWorkItemRequest(obj); @@ -6150,7 +6148,7 @@ var resp = convert.JSON.encode(buildLeaseWorkItemResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.lease(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsync(((api.LeaseWorkItemResponse response) { + res.lease(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsync1(((api.LeaseWorkItemResponse response) { checkLeaseWorkItemResponse(response); }))); }); @@ -6162,7 +6160,7 @@ var arg_request = buildReportWorkItemStatusRequest(); var arg_projectId = "foo"; var arg_jobId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ReportWorkItemStatusRequest.fromJson(json); checkReportWorkItemStatusRequest(obj); @@ -6213,7 +6211,7 @@ var resp = convert.JSON.encode(buildReportWorkItemStatusResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.reportStatus(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsync(((api.ReportWorkItemStatusResponse response) { + res.reportStatus(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsync1(((api.ReportWorkItemStatusResponse response) { checkReportWorkItemStatusResponse(response); }))); }); @@ -6229,7 +6227,7 @@ var arg_request = buildSendWorkerMessagesRequest(); var arg_projectId = "foo"; var arg_location = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SendWorkerMessagesRequest.fromJson(json); checkSendWorkerMessagesRequest(obj); @@ -6280,7 +6278,7 @@ var resp = convert.JSON.encode(buildSendWorkerMessagesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.workerMessages(arg_request, arg_projectId, arg_location).then(unittest.expectAsync(((api.SendWorkerMessagesResponse response) { + res.workerMessages(arg_request, arg_projectId, arg_location).then(unittest.expectAsync1(((api.SendWorkerMessagesResponse response) { checkSendWorkerMessagesResponse(response); }))); }); @@ -6298,7 +6296,7 @@ var arg_location = "foo"; var arg_view = "foo"; var arg_replaceJobId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Job.fromJson(json); checkJob(obj); @@ -6351,7 +6349,7 @@ var resp = convert.JSON.encode(buildJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_projectId, arg_location, view: arg_view, replaceJobId: arg_replaceJobId).then(unittest.expectAsync(((api.Job response) { + res.create(arg_request, arg_projectId, arg_location, view: arg_view, replaceJobId: arg_replaceJobId).then(unittest.expectAsync1(((api.Job response) { checkJob(response); }))); }); @@ -6364,7 +6362,7 @@ var arg_location = "foo"; var arg_jobId = "foo"; var arg_view = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6416,7 +6414,7 @@ var resp = convert.JSON.encode(buildJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_projectId, arg_location, arg_jobId, view: arg_view).then(unittest.expectAsync(((api.Job response) { + res.get(arg_projectId, arg_location, arg_jobId, view: arg_view).then(unittest.expectAsync1(((api.Job response) { checkJob(response); }))); }); @@ -6429,7 +6427,7 @@ var arg_location = "foo"; var arg_jobId = "foo"; var arg_startTime = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6485,7 +6483,7 @@ var resp = convert.JSON.encode(buildJobMetrics()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getMetrics(arg_projectId, arg_location, arg_jobId, startTime: arg_startTime).then(unittest.expectAsync(((api.JobMetrics response) { + res.getMetrics(arg_projectId, arg_location, arg_jobId, startTime: arg_startTime).then(unittest.expectAsync1(((api.JobMetrics response) { checkJobMetrics(response); }))); }); @@ -6496,11 +6494,11 @@ api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).projects.locations.jobs; var arg_projectId = "foo"; var arg_location = "foo"; - var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_view = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_filter = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6540,10 +6538,10 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); var h = { @@ -6552,7 +6550,7 @@ var resp = convert.JSON.encode(buildListJobsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, arg_location, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view).then(unittest.expectAsync(((api.ListJobsResponse response) { + res.list(arg_projectId, arg_location, pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view, filter: arg_filter).then(unittest.expectAsync1(((api.ListJobsResponse response) { checkListJobsResponse(response); }))); }); @@ -6565,7 +6563,7 @@ var arg_projectId = "foo"; var arg_location = "foo"; var arg_jobId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Job.fromJson(json); checkJob(obj); @@ -6619,7 +6617,7 @@ var resp = convert.JSON.encode(buildJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_projectId, arg_location, arg_jobId).then(unittest.expectAsync(((api.Job response) { + res.update(arg_request, arg_projectId, arg_location, arg_jobId).then(unittest.expectAsync1(((api.Job response) { checkJob(response); }))); }); @@ -6636,7 +6634,7 @@ var arg_projectId = "foo"; var arg_location = "foo"; var arg_jobId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GetDebugConfigRequest.fromJson(json); checkGetDebugConfigRequest(obj); @@ -6694,7 +6692,7 @@ var resp = convert.JSON.encode(buildGetDebugConfigResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getConfig(arg_request, arg_projectId, arg_location, arg_jobId).then(unittest.expectAsync(((api.GetDebugConfigResponse response) { + res.getConfig(arg_request, arg_projectId, arg_location, arg_jobId).then(unittest.expectAsync1(((api.GetDebugConfigResponse response) { checkGetDebugConfigResponse(response); }))); }); @@ -6707,7 +6705,7 @@ var arg_projectId = "foo"; var arg_location = "foo"; var arg_jobId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SendDebugCaptureRequest.fromJson(json); checkSendDebugCaptureRequest(obj); @@ -6765,7 +6763,7 @@ var resp = convert.JSON.encode(buildSendDebugCaptureResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.sendCapture(arg_request, arg_projectId, arg_location, arg_jobId).then(unittest.expectAsync(((api.SendDebugCaptureResponse response) { + res.sendCapture(arg_request, arg_projectId, arg_location, arg_jobId).then(unittest.expectAsync1(((api.SendDebugCaptureResponse response) { checkSendDebugCaptureResponse(response); }))); }); @@ -6781,12 +6779,12 @@ var arg_projectId = "foo"; var arg_location = "foo"; var arg_jobId = "foo"; - var arg_endTime = "foo"; var arg_startTime = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_minimumImportance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_endTime = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -6833,11 +6831,11 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime)); unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTime)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["minimumImportance"].first, unittest.equals(arg_minimumImportance)); + unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime)); var h = { @@ -6846,7 +6844,7 @@ var resp = convert.JSON.encode(buildListJobMessagesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, arg_location, arg_jobId, endTime: arg_endTime, startTime: arg_startTime, pageToken: arg_pageToken, pageSize: arg_pageSize, minimumImportance: arg_minimumImportance).then(unittest.expectAsync(((api.ListJobMessagesResponse response) { + res.list(arg_projectId, arg_location, arg_jobId, startTime: arg_startTime, pageToken: arg_pageToken, pageSize: arg_pageSize, minimumImportance: arg_minimumImportance, endTime: arg_endTime).then(unittest.expectAsync1(((api.ListJobMessagesResponse response) { checkListJobMessagesResponse(response); }))); }); @@ -6863,7 +6861,7 @@ var arg_projectId = "foo"; var arg_location = "foo"; var arg_jobId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LeaseWorkItemRequest.fromJson(json); checkLeaseWorkItemRequest(obj); @@ -6921,7 +6919,7 @@ var resp = convert.JSON.encode(buildLeaseWorkItemResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.lease(arg_request, arg_projectId, arg_location, arg_jobId).then(unittest.expectAsync(((api.LeaseWorkItemResponse response) { + res.lease(arg_request, arg_projectId, arg_location, arg_jobId).then(unittest.expectAsync1(((api.LeaseWorkItemResponse response) { checkLeaseWorkItemResponse(response); }))); }); @@ -6934,7 +6932,7 @@ var arg_projectId = "foo"; var arg_location = "foo"; var arg_jobId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ReportWorkItemStatusRequest.fromJson(json); checkReportWorkItemStatusRequest(obj); @@ -6992,7 +6990,7 @@ var resp = convert.JSON.encode(buildReportWorkItemStatusResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.reportStatus(arg_request, arg_projectId, arg_location, arg_jobId).then(unittest.expectAsync(((api.ReportWorkItemStatusResponse response) { + res.reportStatus(arg_request, arg_projectId, arg_location, arg_jobId).then(unittest.expectAsync1(((api.ReportWorkItemStatusResponse response) { checkReportWorkItemStatusResponse(response); }))); }); @@ -7008,7 +7006,7 @@ var arg_request = buildCreateJobFromTemplateRequest(); var arg_projectId = "foo"; var arg_location = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CreateJobFromTemplateRequest.fromJson(json); checkCreateJobFromTemplateRequest(obj); @@ -7059,7 +7057,7 @@ var resp = convert.JSON.encode(buildJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_projectId, arg_location).then(unittest.expectAsync(((api.Job response) { + res.create(arg_request, arg_projectId, arg_location).then(unittest.expectAsync1(((api.Job response) { checkJob(response); }))); }); @@ -7072,7 +7070,7 @@ var arg_location = "foo"; var arg_view = "foo"; var arg_gcsPath = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7122,7 +7120,7 @@ var resp = convert.JSON.encode(buildGetTemplateResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_projectId, arg_location, view: arg_view, gcsPath: arg_gcsPath).then(unittest.expectAsync(((api.GetTemplateResponse response) { + res.get(arg_projectId, arg_location, view: arg_view, gcsPath: arg_gcsPath).then(unittest.expectAsync1(((api.GetTemplateResponse response) { checkGetTemplateResponse(response); }))); }); @@ -7134,9 +7132,9 @@ var arg_request = buildLaunchTemplateParameters(); var arg_projectId = "foo"; var arg_location = "foo"; - var arg_validateOnly = true; var arg_gcsPath = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_validateOnly = true; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LaunchTemplateParameters.fromJson(json); checkLaunchTemplateParameters(obj); @@ -7179,8 +7177,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["validateOnly"].first, unittest.equals("$arg_validateOnly")); unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath)); + unittest.expect(queryMap["validateOnly"].first, unittest.equals("$arg_validateOnly")); var h = { @@ -7189,7 +7187,7 @@ var resp = convert.JSON.encode(buildLaunchTemplateResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.launch(arg_request, arg_projectId, arg_location, validateOnly: arg_validateOnly, gcsPath: arg_gcsPath).then(unittest.expectAsync(((api.LaunchTemplateResponse response) { + res.launch(arg_request, arg_projectId, arg_location, gcsPath: arg_gcsPath, validateOnly: arg_validateOnly).then(unittest.expectAsync1(((api.LaunchTemplateResponse response) { checkLaunchTemplateResponse(response); }))); }); @@ -7204,7 +7202,7 @@ api.ProjectsTemplatesResourceApi res = new api.DataflowApi(mock).projects.templates; var arg_request = buildCreateJobFromTemplateRequest(); var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CreateJobFromTemplateRequest.fromJson(json); checkCreateJobFromTemplateRequest(obj); @@ -7248,7 +7246,7 @@ var resp = convert.JSON.encode(buildJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_projectId).then(unittest.expectAsync(((api.Job response) { + res.create(arg_request, arg_projectId).then(unittest.expectAsync1(((api.Job response) { checkJob(response); }))); }); @@ -7258,10 +7256,10 @@ var mock = new HttpServerMock(); api.ProjectsTemplatesResourceApi res = new api.DataflowApi(mock).projects.templates; var arg_projectId = "foo"; + var arg_location = "foo"; var arg_view = "foo"; var arg_gcsPath = "foo"; - var arg_location = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -7294,9 +7292,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["location"].first, unittest.equals(arg_location)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath)); - unittest.expect(queryMap["location"].first, unittest.equals(arg_location)); var h = { @@ -7305,7 +7303,7 @@ var resp = convert.JSON.encode(buildGetTemplateResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_projectId, view: arg_view, gcsPath: arg_gcsPath, location: arg_location).then(unittest.expectAsync(((api.GetTemplateResponse response) { + res.get(arg_projectId, location: arg_location, view: arg_view, gcsPath: arg_gcsPath).then(unittest.expectAsync1(((api.GetTemplateResponse response) { checkGetTemplateResponse(response); }))); }); @@ -7319,7 +7317,7 @@ var arg_location = "foo"; var arg_validateOnly = true; var arg_gcsPath = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LaunchTemplateParameters.fromJson(json); checkLaunchTemplateParameters(obj); @@ -7366,7 +7364,7 @@ var resp = convert.JSON.encode(buildLaunchTemplateResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.launch(arg_request, arg_projectId, location: arg_location, validateOnly: arg_validateOnly, gcsPath: arg_gcsPath).then(unittest.expectAsync(((api.LaunchTemplateResponse response) { + res.launch(arg_request, arg_projectId, location: arg_location, validateOnly: arg_validateOnly, gcsPath: arg_gcsPath).then(unittest.expectAsync1(((api.LaunchTemplateResponse response) { checkLaunchTemplateResponse(response); }))); });
diff --git a/generated/googleapis_beta/test/dataproc/v1beta1_test.dart b/generated/googleapis_beta/test/dataproc/v1beta1_test.dart index e525d27..6f262af 100644 --- a/generated/googleapis_beta/test/dataproc/v1beta1_test.dart +++ b/generated/googleapis_beta/test/dataproc/v1beta1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/dataproc/v1beta1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -106,27 +106,27 @@ buildCounterCancelOperationRequest--; } -buildUnnamed3578() { +buildUnnamed3052() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3578(core.Map<core.String, core.String> o) { +checkUnnamed3052(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3579() { +buildUnnamed3053() { var o = new core.List<api.ClusterStatus>(); o.add(buildClusterStatus()); o.add(buildClusterStatus()); return o; } -checkUnnamed3579(core.List<api.ClusterStatus> o) { +checkUnnamed3053(core.List<api.ClusterStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkClusterStatus(o[0]); checkClusterStatus(o[1]); @@ -140,11 +140,11 @@ o.clusterName = "foo"; o.clusterUuid = "foo"; o.configuration = buildClusterConfiguration(); - o.labels = buildUnnamed3578(); + o.labels = buildUnnamed3052(); o.metrics = buildClusterMetrics(); o.projectId = "foo"; o.status = buildClusterStatus(); - o.statusHistory = buildUnnamed3579(); + o.statusHistory = buildUnnamed3053(); } buildCounterCluster--; return o; @@ -156,23 +156,23 @@ unittest.expect(o.clusterName, unittest.equals('foo')); unittest.expect(o.clusterUuid, unittest.equals('foo')); checkClusterConfiguration(o.configuration); - checkUnnamed3578(o.labels); + checkUnnamed3052(o.labels); checkClusterMetrics(o.metrics); unittest.expect(o.projectId, unittest.equals('foo')); checkClusterStatus(o.status); - checkUnnamed3579(o.statusHistory); + checkUnnamed3053(o.statusHistory); } buildCounterCluster--; } -buildUnnamed3580() { +buildUnnamed3054() { var o = new core.List<api.NodeInitializationAction>(); o.add(buildNodeInitializationAction()); o.add(buildNodeInitializationAction()); return o; } -checkUnnamed3580(core.List<api.NodeInitializationAction> o) { +checkUnnamed3054(core.List<api.NodeInitializationAction> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeInitializationAction(o[0]); checkNodeInitializationAction(o[1]); @@ -185,7 +185,7 @@ if (buildCounterClusterConfiguration < 3) { o.configurationBucket = "foo"; o.gceClusterConfiguration = buildGceClusterConfiguration(); - o.initializationActions = buildUnnamed3580(); + o.initializationActions = buildUnnamed3054(); o.masterConfiguration = buildInstanceGroupConfiguration(); o.secondaryWorkerConfiguration = buildInstanceGroupConfiguration(); o.softwareConfiguration = buildSoftwareConfiguration(); @@ -200,7 +200,7 @@ if (buildCounterClusterConfiguration < 3) { unittest.expect(o.configurationBucket, unittest.equals('foo')); checkGceClusterConfiguration(o.gceClusterConfiguration); - checkUnnamed3580(o.initializationActions); + checkUnnamed3054(o.initializationActions); checkInstanceGroupConfiguration(o.masterConfiguration); checkInstanceGroupConfiguration(o.secondaryWorkerConfiguration); checkSoftwareConfiguration(o.softwareConfiguration); @@ -209,27 +209,27 @@ buildCounterClusterConfiguration--; } -buildUnnamed3581() { +buildUnnamed3055() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3581(core.Map<core.String, core.String> o) { +checkUnnamed3055(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3582() { +buildUnnamed3056() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3582(core.Map<core.String, core.String> o) { +checkUnnamed3056(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -240,8 +240,8 @@ var o = new api.ClusterMetrics(); buildCounterClusterMetrics++; if (buildCounterClusterMetrics < 3) { - o.hdfsMetrics = buildUnnamed3581(); - o.yarnMetrics = buildUnnamed3582(); + o.hdfsMetrics = buildUnnamed3055(); + o.yarnMetrics = buildUnnamed3056(); } buildCounterClusterMetrics--; return o; @@ -250,46 +250,46 @@ checkClusterMetrics(api.ClusterMetrics o) { buildCounterClusterMetrics++; if (buildCounterClusterMetrics < 3) { - checkUnnamed3581(o.hdfsMetrics); - checkUnnamed3582(o.yarnMetrics); + checkUnnamed3055(o.hdfsMetrics); + checkUnnamed3056(o.yarnMetrics); } buildCounterClusterMetrics--; } -buildUnnamed3583() { +buildUnnamed3057() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3583(core.Map<core.String, core.String> o) { +checkUnnamed3057(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3584() { +buildUnnamed3058() { var o = new core.List<api.ClusterOperationStatus>(); o.add(buildClusterOperationStatus()); o.add(buildClusterOperationStatus()); return o; } -checkUnnamed3584(core.List<api.ClusterOperationStatus> o) { +checkUnnamed3058(core.List<api.ClusterOperationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkClusterOperationStatus(o[0]); checkClusterOperationStatus(o[1]); } -buildUnnamed3585() { +buildUnnamed3059() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3585(core.List<core.String> o) { +checkUnnamed3059(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -303,11 +303,11 @@ o.clusterName = "foo"; o.clusterUuid = "foo"; o.description = "foo"; - o.labels = buildUnnamed3583(); + o.labels = buildUnnamed3057(); o.operationType = "foo"; o.status = buildClusterOperationStatus(); - o.statusHistory = buildUnnamed3584(); - o.warnings = buildUnnamed3585(); + o.statusHistory = buildUnnamed3058(); + o.warnings = buildUnnamed3059(); } buildCounterClusterOperationMetadata--; return o; @@ -319,11 +319,11 @@ unittest.expect(o.clusterName, unittest.equals('foo')); unittest.expect(o.clusterUuid, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed3583(o.labels); + checkUnnamed3057(o.labels); unittest.expect(o.operationType, unittest.equals('foo')); checkClusterOperationStatus(o.status); - checkUnnamed3584(o.statusHistory); - checkUnnamed3585(o.warnings); + checkUnnamed3058(o.statusHistory); + checkUnnamed3059(o.warnings); } buildCounterClusterOperationMetadata--; } @@ -471,40 +471,40 @@ buildCounterEmpty--; } -buildUnnamed3586() { +buildUnnamed3060() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3586(core.Map<core.String, core.String> o) { +checkUnnamed3060(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3587() { +buildUnnamed3061() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3587(core.List<core.String> o) { +checkUnnamed3061(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3588() { +buildUnnamed3062() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3588(core.List<core.String> o) { +checkUnnamed3062(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -516,12 +516,12 @@ buildCounterGceClusterConfiguration++; if (buildCounterGceClusterConfiguration < 3) { o.internalIpOnly = true; - o.metadata = buildUnnamed3586(); + o.metadata = buildUnnamed3060(); o.networkUri = "foo"; o.serviceAccount = "foo"; - o.serviceAccountScopes = buildUnnamed3587(); + o.serviceAccountScopes = buildUnnamed3061(); o.subnetworkUri = "foo"; - o.tags = buildUnnamed3588(); + o.tags = buildUnnamed3062(); o.zoneUri = "foo"; } buildCounterGceClusterConfiguration--; @@ -532,77 +532,77 @@ buildCounterGceClusterConfiguration++; if (buildCounterGceClusterConfiguration < 3) { unittest.expect(o.internalIpOnly, unittest.isTrue); - checkUnnamed3586(o.metadata); + checkUnnamed3060(o.metadata); unittest.expect(o.networkUri, unittest.equals('foo')); unittest.expect(o.serviceAccount, unittest.equals('foo')); - checkUnnamed3587(o.serviceAccountScopes); + checkUnnamed3061(o.serviceAccountScopes); unittest.expect(o.subnetworkUri, unittest.equals('foo')); - checkUnnamed3588(o.tags); + checkUnnamed3062(o.tags); unittest.expect(o.zoneUri, unittest.equals('foo')); } buildCounterGceClusterConfiguration--; } -buildUnnamed3589() { +buildUnnamed3063() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3589(core.List<core.String> o) { +checkUnnamed3063(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3590() { +buildUnnamed3064() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3590(core.List<core.String> o) { +checkUnnamed3064(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3591() { +buildUnnamed3065() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3591(core.List<core.String> o) { +checkUnnamed3065(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3592() { +buildUnnamed3066() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3592(core.List<core.String> o) { +checkUnnamed3066(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3593() { +buildUnnamed3067() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3593(core.Map<core.String, core.String> o) { +checkUnnamed3067(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -613,14 +613,14 @@ var o = new api.HadoopJob(); buildCounterHadoopJob++; if (buildCounterHadoopJob < 3) { - o.archiveUris = buildUnnamed3589(); - o.args = buildUnnamed3590(); - o.fileUris = buildUnnamed3591(); - o.jarFileUris = buildUnnamed3592(); + o.archiveUris = buildUnnamed3063(); + o.args = buildUnnamed3064(); + o.fileUris = buildUnnamed3065(); + o.jarFileUris = buildUnnamed3066(); o.loggingConfiguration = buildLoggingConfiguration(); o.mainClass = "foo"; o.mainJarFileUri = "foo"; - o.properties = buildUnnamed3593(); + o.properties = buildUnnamed3067(); } buildCounterHadoopJob--; return o; @@ -629,52 +629,52 @@ checkHadoopJob(api.HadoopJob o) { buildCounterHadoopJob++; if (buildCounterHadoopJob < 3) { - checkUnnamed3589(o.archiveUris); - checkUnnamed3590(o.args); - checkUnnamed3591(o.fileUris); - checkUnnamed3592(o.jarFileUris); + checkUnnamed3063(o.archiveUris); + checkUnnamed3064(o.args); + checkUnnamed3065(o.fileUris); + checkUnnamed3066(o.jarFileUris); checkLoggingConfiguration(o.loggingConfiguration); unittest.expect(o.mainClass, unittest.equals('foo')); unittest.expect(o.mainJarFileUri, unittest.equals('foo')); - checkUnnamed3593(o.properties); + checkUnnamed3067(o.properties); } buildCounterHadoopJob--; } -buildUnnamed3594() { +buildUnnamed3068() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3594(core.List<core.String> o) { +checkUnnamed3068(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3595() { +buildUnnamed3069() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3595(core.Map<core.String, core.String> o) { +checkUnnamed3069(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3596() { +buildUnnamed3070() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3596(core.Map<core.String, core.String> o) { +checkUnnamed3070(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -686,11 +686,11 @@ buildCounterHiveJob++; if (buildCounterHiveJob < 3) { o.continueOnFailure = true; - o.jarFileUris = buildUnnamed3594(); - o.properties = buildUnnamed3595(); + o.jarFileUris = buildUnnamed3068(); + o.properties = buildUnnamed3069(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed3596(); + o.scriptVariables = buildUnnamed3070(); } buildCounterHiveJob--; return o; @@ -700,36 +700,36 @@ buildCounterHiveJob++; if (buildCounterHiveJob < 3) { unittest.expect(o.continueOnFailure, unittest.isTrue); - checkUnnamed3594(o.jarFileUris); - checkUnnamed3595(o.properties); + checkUnnamed3068(o.jarFileUris); + checkUnnamed3069(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed3596(o.scriptVariables); + checkUnnamed3070(o.scriptVariables); } buildCounterHiveJob--; } -buildUnnamed3597() { +buildUnnamed3071() { var o = new core.List<api.AcceleratorConfiguration>(); o.add(buildAcceleratorConfiguration()); o.add(buildAcceleratorConfiguration()); return o; } -checkUnnamed3597(core.List<api.AcceleratorConfiguration> o) { +checkUnnamed3071(core.List<api.AcceleratorConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorConfiguration(o[0]); checkAcceleratorConfiguration(o[1]); } -buildUnnamed3598() { +buildUnnamed3072() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3598(core.List<core.String> o) { +checkUnnamed3072(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -740,10 +740,10 @@ var o = new api.InstanceGroupConfiguration(); buildCounterInstanceGroupConfiguration++; if (buildCounterInstanceGroupConfiguration < 3) { - o.accelerators = buildUnnamed3597(); + o.accelerators = buildUnnamed3071(); o.diskConfiguration = buildDiskConfiguration(); o.imageUri = "foo"; - o.instanceNames = buildUnnamed3598(); + o.instanceNames = buildUnnamed3072(); o.isPreemptible = true; o.machineTypeUri = "foo"; o.managedGroupConfiguration = buildManagedGroupConfiguration(); @@ -756,10 +756,10 @@ checkInstanceGroupConfiguration(api.InstanceGroupConfiguration o) { buildCounterInstanceGroupConfiguration++; if (buildCounterInstanceGroupConfiguration < 3) { - checkUnnamed3597(o.accelerators); + checkUnnamed3071(o.accelerators); checkDiskConfiguration(o.diskConfiguration); unittest.expect(o.imageUri, unittest.equals('foo')); - checkUnnamed3598(o.instanceNames); + checkUnnamed3072(o.instanceNames); unittest.expect(o.isPreemptible, unittest.isTrue); unittest.expect(o.machineTypeUri, unittest.equals('foo')); checkManagedGroupConfiguration(o.managedGroupConfiguration); @@ -768,40 +768,40 @@ buildCounterInstanceGroupConfiguration--; } -buildUnnamed3599() { +buildUnnamed3073() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3599(core.Map<core.String, core.String> o) { +checkUnnamed3073(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3600() { +buildUnnamed3074() { var o = new core.List<api.JobStatus>(); o.add(buildJobStatus()); o.add(buildJobStatus()); return o; } -checkUnnamed3600(core.List<api.JobStatus> o) { +checkUnnamed3074(core.List<api.JobStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkJobStatus(o[0]); checkJobStatus(o[1]); } -buildUnnamed3601() { +buildUnnamed3075() { var o = new core.List<api.YarnApplication>(); o.add(buildYarnApplication()); o.add(buildYarnApplication()); return o; } -checkUnnamed3601(core.List<api.YarnApplication> o) { +checkUnnamed3075(core.List<api.YarnApplication> o) { unittest.expect(o, unittest.hasLength(2)); checkYarnApplication(o[0]); checkYarnApplication(o[1]); @@ -818,7 +818,7 @@ o.hadoopJob = buildHadoopJob(); o.hiveJob = buildHiveJob(); o.interactive = true; - o.labels = buildUnnamed3599(); + o.labels = buildUnnamed3073(); o.pigJob = buildPigJob(); o.placement = buildJobPlacement(); o.pysparkJob = buildPySparkJob(); @@ -827,9 +827,9 @@ o.sparkJob = buildSparkJob(); o.sparkSqlJob = buildSparkSqlJob(); o.status = buildJobStatus(); - o.statusHistory = buildUnnamed3600(); + o.statusHistory = buildUnnamed3074(); o.submittedBy = "foo"; - o.yarnApplications = buildUnnamed3601(); + o.yarnApplications = buildUnnamed3075(); } buildCounterJob--; return o; @@ -844,7 +844,7 @@ checkHadoopJob(o.hadoopJob); checkHiveJob(o.hiveJob); unittest.expect(o.interactive, unittest.isTrue); - checkUnnamed3599(o.labels); + checkUnnamed3073(o.labels); checkPigJob(o.pigJob); checkJobPlacement(o.placement); checkPySparkJob(o.pysparkJob); @@ -853,9 +853,9 @@ checkSparkJob(o.sparkJob); checkSparkSqlJob(o.sparkSqlJob); checkJobStatus(o.status); - checkUnnamed3600(o.statusHistory); + checkUnnamed3074(o.statusHistory); unittest.expect(o.submittedBy, unittest.equals('foo')); - checkUnnamed3601(o.yarnApplications); + checkUnnamed3075(o.yarnApplications); } buildCounterJob--; } @@ -946,14 +946,14 @@ buildCounterJobStatus--; } -buildUnnamed3602() { +buildUnnamed3076() { var o = new core.List<api.Cluster>(); o.add(buildCluster()); o.add(buildCluster()); return o; } -checkUnnamed3602(core.List<api.Cluster> o) { +checkUnnamed3076(core.List<api.Cluster> o) { unittest.expect(o, unittest.hasLength(2)); checkCluster(o[0]); checkCluster(o[1]); @@ -964,7 +964,7 @@ var o = new api.ListClustersResponse(); buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - o.clusters = buildUnnamed3602(); + o.clusters = buildUnnamed3076(); o.nextPageToken = "foo"; } buildCounterListClustersResponse--; @@ -974,20 +974,20 @@ checkListClustersResponse(api.ListClustersResponse o) { buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - checkUnnamed3602(o.clusters); + checkUnnamed3076(o.clusters); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListClustersResponse--; } -buildUnnamed3603() { +buildUnnamed3077() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed3603(core.List<api.Job> o) { +checkUnnamed3077(core.List<api.Job> o) { unittest.expect(o, unittest.hasLength(2)); checkJob(o[0]); checkJob(o[1]); @@ -998,7 +998,7 @@ var o = new api.ListJobsResponse(); buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - o.jobs = buildUnnamed3603(); + o.jobs = buildUnnamed3077(); o.nextPageToken = "foo"; } buildCounterListJobsResponse--; @@ -1008,20 +1008,20 @@ checkListJobsResponse(api.ListJobsResponse o) { buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - checkUnnamed3603(o.jobs); + checkUnnamed3077(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListJobsResponse--; } -buildUnnamed3604() { +buildUnnamed3078() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3604(core.List<api.Operation> o) { +checkUnnamed3078(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1033,7 +1033,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3604(); + o.operations = buildUnnamed3078(); } buildCounterListOperationsResponse--; return o; @@ -1043,19 +1043,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3604(o.operations); + checkUnnamed3078(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed3605() { +buildUnnamed3079() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3605(core.Map<core.String, core.String> o) { +checkUnnamed3079(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1066,7 +1066,7 @@ var o = new api.LoggingConfiguration(); buildCounterLoggingConfiguration++; if (buildCounterLoggingConfiguration < 3) { - o.driverLogLevels = buildUnnamed3605(); + o.driverLogLevels = buildUnnamed3079(); } buildCounterLoggingConfiguration--; return o; @@ -1075,7 +1075,7 @@ checkLoggingConfiguration(api.LoggingConfiguration o) { buildCounterLoggingConfiguration++; if (buildCounterLoggingConfiguration < 3) { - checkUnnamed3605(o.driverLogLevels); + checkUnnamed3079(o.driverLogLevels); } buildCounterLoggingConfiguration--; } @@ -1122,27 +1122,27 @@ buildCounterNodeInitializationAction--; } -buildUnnamed3606() { +buildUnnamed3080() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3606(core.Map<core.String, core.Object> o) { +checkUnnamed3080(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3607() { +buildUnnamed3081() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3607(core.Map<core.String, core.Object> o) { +checkUnnamed3081(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -1155,9 +1155,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3606(); + o.metadata = buildUnnamed3080(); o.name = "foo"; - o.response = buildUnnamed3607(); + o.response = buildUnnamed3081(); } buildCounterOperation--; return o; @@ -1168,34 +1168,34 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3606(o.metadata); + checkUnnamed3080(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3607(o.response); + checkUnnamed3081(o.response); } buildCounterOperation--; } -buildUnnamed3608() { +buildUnnamed3082() { var o = new core.List<api.OperationStatus>(); o.add(buildOperationStatus()); o.add(buildOperationStatus()); return o; } -checkUnnamed3608(core.List<api.OperationStatus> o) { +checkUnnamed3082(core.List<api.OperationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationStatus(o[0]); checkOperationStatus(o[1]); } -buildUnnamed3609() { +buildUnnamed3083() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3609(core.List<core.String> o) { +checkUnnamed3083(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1211,8 +1211,8 @@ o.description = "foo"; o.operationType = "foo"; o.status = buildOperationStatus(); - o.statusHistory = buildUnnamed3608(); - o.warnings = buildUnnamed3609(); + o.statusHistory = buildUnnamed3082(); + o.warnings = buildUnnamed3083(); } buildCounterOperationMetadata--; return o; @@ -1226,8 +1226,8 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.operationType, unittest.equals('foo')); checkOperationStatus(o.status); - checkUnnamed3608(o.statusHistory); - checkUnnamed3609(o.warnings); + checkUnnamed3082(o.statusHistory); + checkUnnamed3083(o.warnings); } buildCounterOperationMetadata--; } @@ -1257,40 +1257,40 @@ buildCounterOperationStatus--; } -buildUnnamed3610() { +buildUnnamed3084() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3610(core.List<core.String> o) { +checkUnnamed3084(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3611() { +buildUnnamed3085() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3611(core.Map<core.String, core.String> o) { +checkUnnamed3085(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3612() { +buildUnnamed3086() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3612(core.Map<core.String, core.String> o) { +checkUnnamed3086(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1302,12 +1302,12 @@ buildCounterPigJob++; if (buildCounterPigJob < 3) { o.continueOnFailure = true; - o.jarFileUris = buildUnnamed3610(); + o.jarFileUris = buildUnnamed3084(); o.loggingConfiguration = buildLoggingConfiguration(); - o.properties = buildUnnamed3611(); + o.properties = buildUnnamed3085(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed3612(); + o.scriptVariables = buildUnnamed3086(); } buildCounterPigJob--; return o; @@ -1317,89 +1317,89 @@ buildCounterPigJob++; if (buildCounterPigJob < 3) { unittest.expect(o.continueOnFailure, unittest.isTrue); - checkUnnamed3610(o.jarFileUris); + checkUnnamed3084(o.jarFileUris); checkLoggingConfiguration(o.loggingConfiguration); - checkUnnamed3611(o.properties); + checkUnnamed3085(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed3612(o.scriptVariables); + checkUnnamed3086(o.scriptVariables); } buildCounterPigJob--; } -buildUnnamed3613() { +buildUnnamed3087() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3613(core.List<core.String> o) { +checkUnnamed3087(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3614() { +buildUnnamed3088() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3614(core.List<core.String> o) { +checkUnnamed3088(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3615() { +buildUnnamed3089() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3615(core.List<core.String> o) { +checkUnnamed3089(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3616() { +buildUnnamed3090() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3616(core.List<core.String> o) { +checkUnnamed3090(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3617() { +buildUnnamed3091() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3617(core.Map<core.String, core.String> o) { +checkUnnamed3091(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3618() { +buildUnnamed3092() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3618(core.List<core.String> o) { +checkUnnamed3092(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1410,14 +1410,14 @@ var o = new api.PySparkJob(); buildCounterPySparkJob++; if (buildCounterPySparkJob < 3) { - o.archiveUris = buildUnnamed3613(); - o.args = buildUnnamed3614(); - o.fileUris = buildUnnamed3615(); - o.jarFileUris = buildUnnamed3616(); + o.archiveUris = buildUnnamed3087(); + o.args = buildUnnamed3088(); + o.fileUris = buildUnnamed3089(); + o.jarFileUris = buildUnnamed3090(); o.loggingConfiguration = buildLoggingConfiguration(); o.mainPythonFileUri = "foo"; - o.properties = buildUnnamed3617(); - o.pythonFileUris = buildUnnamed3618(); + o.properties = buildUnnamed3091(); + o.pythonFileUris = buildUnnamed3092(); } buildCounterPySparkJob--; return o; @@ -1426,26 +1426,26 @@ checkPySparkJob(api.PySparkJob o) { buildCounterPySparkJob++; if (buildCounterPySparkJob < 3) { - checkUnnamed3613(o.archiveUris); - checkUnnamed3614(o.args); - checkUnnamed3615(o.fileUris); - checkUnnamed3616(o.jarFileUris); + checkUnnamed3087(o.archiveUris); + checkUnnamed3088(o.args); + checkUnnamed3089(o.fileUris); + checkUnnamed3090(o.jarFileUris); checkLoggingConfiguration(o.loggingConfiguration); unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); - checkUnnamed3617(o.properties); - checkUnnamed3618(o.pythonFileUris); + checkUnnamed3091(o.properties); + checkUnnamed3092(o.pythonFileUris); } buildCounterPySparkJob--; } -buildUnnamed3619() { +buildUnnamed3093() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3619(core.List<core.String> o) { +checkUnnamed3093(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1456,7 +1456,7 @@ var o = new api.QueryList(); buildCounterQueryList++; if (buildCounterQueryList < 3) { - o.queries = buildUnnamed3619(); + o.queries = buildUnnamed3093(); } buildCounterQueryList--; return o; @@ -1465,19 +1465,19 @@ checkQueryList(api.QueryList o) { buildCounterQueryList++; if (buildCounterQueryList < 3) { - checkUnnamed3619(o.queries); + checkUnnamed3093(o.queries); } buildCounterQueryList--; } -buildUnnamed3620() { +buildUnnamed3094() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3620(core.Map<core.String, core.String> o) { +checkUnnamed3094(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1489,7 +1489,7 @@ buildCounterSoftwareConfiguration++; if (buildCounterSoftwareConfiguration < 3) { o.imageVersion = "foo"; - o.properties = buildUnnamed3620(); + o.properties = buildUnnamed3094(); } buildCounterSoftwareConfiguration--; return o; @@ -1499,71 +1499,71 @@ buildCounterSoftwareConfiguration++; if (buildCounterSoftwareConfiguration < 3) { unittest.expect(o.imageVersion, unittest.equals('foo')); - checkUnnamed3620(o.properties); + checkUnnamed3094(o.properties); } buildCounterSoftwareConfiguration--; } -buildUnnamed3621() { +buildUnnamed3095() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3621(core.List<core.String> o) { +checkUnnamed3095(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3622() { +buildUnnamed3096() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3622(core.List<core.String> o) { +checkUnnamed3096(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3623() { +buildUnnamed3097() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3623(core.List<core.String> o) { +checkUnnamed3097(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3624() { +buildUnnamed3098() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3624(core.List<core.String> o) { +checkUnnamed3098(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3625() { +buildUnnamed3099() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3625(core.Map<core.String, core.String> o) { +checkUnnamed3099(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1574,14 +1574,14 @@ var o = new api.SparkJob(); buildCounterSparkJob++; if (buildCounterSparkJob < 3) { - o.archiveUris = buildUnnamed3621(); - o.args = buildUnnamed3622(); - o.fileUris = buildUnnamed3623(); - o.jarFileUris = buildUnnamed3624(); + o.archiveUris = buildUnnamed3095(); + o.args = buildUnnamed3096(); + o.fileUris = buildUnnamed3097(); + o.jarFileUris = buildUnnamed3098(); o.loggingConfiguration = buildLoggingConfiguration(); o.mainClass = "foo"; o.mainJarFileUri = "foo"; - o.properties = buildUnnamed3625(); + o.properties = buildUnnamed3099(); } buildCounterSparkJob--; return o; @@ -1590,52 +1590,52 @@ checkSparkJob(api.SparkJob o) { buildCounterSparkJob++; if (buildCounterSparkJob < 3) { - checkUnnamed3621(o.archiveUris); - checkUnnamed3622(o.args); - checkUnnamed3623(o.fileUris); - checkUnnamed3624(o.jarFileUris); + checkUnnamed3095(o.archiveUris); + checkUnnamed3096(o.args); + checkUnnamed3097(o.fileUris); + checkUnnamed3098(o.jarFileUris); checkLoggingConfiguration(o.loggingConfiguration); unittest.expect(o.mainClass, unittest.equals('foo')); unittest.expect(o.mainJarFileUri, unittest.equals('foo')); - checkUnnamed3625(o.properties); + checkUnnamed3099(o.properties); } buildCounterSparkJob--; } -buildUnnamed3626() { +buildUnnamed3100() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3626(core.List<core.String> o) { +checkUnnamed3100(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3627() { +buildUnnamed3101() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3627(core.Map<core.String, core.String> o) { +checkUnnamed3101(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3628() { +buildUnnamed3102() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3628(core.Map<core.String, core.String> o) { +checkUnnamed3102(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1646,12 +1646,12 @@ var o = new api.SparkSqlJob(); buildCounterSparkSqlJob++; if (buildCounterSparkSqlJob < 3) { - o.jarFileUris = buildUnnamed3626(); + o.jarFileUris = buildUnnamed3100(); o.loggingConfiguration = buildLoggingConfiguration(); - o.properties = buildUnnamed3627(); + o.properties = buildUnnamed3101(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed3628(); + o.scriptVariables = buildUnnamed3102(); } buildCounterSparkSqlJob--; return o; @@ -1660,40 +1660,40 @@ checkSparkSqlJob(api.SparkSqlJob o) { buildCounterSparkSqlJob++; if (buildCounterSparkSqlJob < 3) { - checkUnnamed3626(o.jarFileUris); + checkUnnamed3100(o.jarFileUris); checkLoggingConfiguration(o.loggingConfiguration); - checkUnnamed3627(o.properties); + checkUnnamed3101(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed3628(o.scriptVariables); + checkUnnamed3102(o.scriptVariables); } buildCounterSparkSqlJob--; } -buildUnnamed3629() { +buildUnnamed3103() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3629(core.Map<core.String, core.Object> o) { +checkUnnamed3103(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed3630() { +buildUnnamed3104() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3629()); - o.add(buildUnnamed3629()); + o.add(buildUnnamed3103()); + o.add(buildUnnamed3103()); return o; } -checkUnnamed3630(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3104(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3629(o[0]); - checkUnnamed3629(o[1]); + checkUnnamed3103(o[0]); + checkUnnamed3103(o[1]); } core.int buildCounterStatus = 0; @@ -1702,7 +1702,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3630(); + o.details = buildUnnamed3104(); o.message = "foo"; } buildCounterStatus--; @@ -1713,7 +1713,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3630(o.details); + checkUnnamed3104(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -2141,7 +2141,7 @@ api.OperationsResourceApi res = new api.DataprocApi(mock).operations; var arg_request = buildCancelOperationRequest(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CancelOperationRequest.fromJson(json); checkCancelOperationRequest(obj); @@ -2179,7 +2179,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.cancel(arg_request, arg_name).then(unittest.expectAsync(((api.Empty response) { + res.cancel(arg_request, arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -2189,7 +2189,7 @@ var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.DataprocApi(mock).operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2224,7 +2224,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -2234,7 +2234,7 @@ var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.DataprocApi(mock).operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2269,7 +2269,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2282,7 +2282,7 @@ var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2320,7 +2320,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListOperationsResponse response) { + res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); }); @@ -2335,7 +2335,7 @@ api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.clusters; var arg_request = buildCluster(); var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Cluster.fromJson(json); checkCluster(obj); @@ -2379,7 +2379,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_projectId).then(unittest.expectAsync(((api.Operation response) { + res.create(arg_request, arg_projectId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2390,7 +2390,7 @@ api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.clusters; var arg_projectId = "foo"; var arg_clusterName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2434,7 +2434,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_projectId, arg_clusterName).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_projectId, arg_clusterName).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2446,7 +2446,7 @@ var arg_request = buildDiagnoseClusterRequest(); var arg_projectId = "foo"; var arg_clusterName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DiagnoseClusterRequest.fromJson(json); checkDiagnoseClusterRequest(obj); @@ -2497,7 +2497,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.diagnose(arg_request, arg_projectId, arg_clusterName).then(unittest.expectAsync(((api.Operation response) { + res.diagnose(arg_request, arg_projectId, arg_clusterName).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2508,7 +2508,7 @@ api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.clusters; var arg_projectId = "foo"; var arg_clusterName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2552,7 +2552,7 @@ var resp = convert.JSON.encode(buildCluster()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_projectId, arg_clusterName).then(unittest.expectAsync(((api.Cluster response) { + res.get(arg_projectId, arg_clusterName).then(unittest.expectAsync1(((api.Cluster response) { checkCluster(response); }))); }); @@ -2565,7 +2565,7 @@ var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2609,7 +2609,7 @@ var resp = convert.JSON.encode(buildListClustersResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListClustersResponse response) { + res.list(arg_projectId, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListClustersResponse response) { checkListClustersResponse(response); }))); }); @@ -2622,7 +2622,7 @@ var arg_projectId = "foo"; var arg_clusterName = "foo"; var arg_updateMask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Cluster.fromJson(json); checkCluster(obj); @@ -2670,7 +2670,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_projectId, arg_clusterName, updateMask: arg_updateMask).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_projectId, arg_clusterName, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2686,7 +2686,7 @@ var arg_request = buildCancelJobRequest(); var arg_projectId = "foo"; var arg_jobId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CancelJobRequest.fromJson(json); checkCancelJobRequest(obj); @@ -2737,7 +2737,7 @@ var resp = convert.JSON.encode(buildJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.cancel(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsync(((api.Job response) { + res.cancel(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsync1(((api.Job response) { checkJob(response); }))); }); @@ -2748,7 +2748,7 @@ api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; var arg_projectId = "foo"; var arg_jobId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2792,7 +2792,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_projectId, arg_jobId).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_projectId, arg_jobId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -2803,7 +2803,7 @@ api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; var arg_projectId = "foo"; var arg_jobId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2847,7 +2847,7 @@ var resp = convert.JSON.encode(buildJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_projectId, arg_jobId).then(unittest.expectAsync(((api.Job response) { + res.get(arg_projectId, arg_jobId).then(unittest.expectAsync1(((api.Job response) { checkJob(response); }))); }); @@ -2862,7 +2862,7 @@ var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_clusterName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2908,7 +2908,7 @@ var resp = convert.JSON.encode(buildListJobsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, filter: arg_filter, jobStateMatcher: arg_jobStateMatcher, pageToken: arg_pageToken, pageSize: arg_pageSize, clusterName: arg_clusterName).then(unittest.expectAsync(((api.ListJobsResponse response) { + res.list(arg_projectId, filter: arg_filter, jobStateMatcher: arg_jobStateMatcher, pageToken: arg_pageToken, pageSize: arg_pageSize, clusterName: arg_clusterName).then(unittest.expectAsync1(((api.ListJobsResponse response) { checkListJobsResponse(response); }))); }); @@ -2921,7 +2921,7 @@ var arg_projectId = "foo"; var arg_jobId = "foo"; var arg_updateMask = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Job.fromJson(json); checkJob(obj); @@ -2969,7 +2969,7 @@ var resp = convert.JSON.encode(buildJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_projectId, arg_jobId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.Job response) { + res.patch(arg_request, arg_projectId, arg_jobId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Job response) { checkJob(response); }))); }); @@ -2980,7 +2980,7 @@ api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; var arg_request = buildSubmitJobRequest(); var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SubmitJobRequest.fromJson(json); checkSubmitJobRequest(obj); @@ -3024,7 +3024,7 @@ var resp = convert.JSON.encode(buildJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.submit(arg_request, arg_projectId).then(unittest.expectAsync(((api.Job response) { + res.submit(arg_request, arg_projectId).then(unittest.expectAsync1(((api.Job response) { checkJob(response); }))); });
diff --git a/generated/googleapis_beta/test/dlp/v2beta1_test.dart b/generated/googleapis_beta/test/dlp/v2beta1_test.dart index 096d956..0054bc4 100644 --- a/generated/googleapis_beta/test/dlp/v2beta1_test.dart +++ b/generated/googleapis_beta/test/dlp/v2beta1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/dlp/v2beta1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -213,14 +213,14 @@ buildCounterDatastoreKey--; } -buildUnnamed3695() { +buildUnnamed3169() { var o = new core.List<api.Projection>(); o.add(buildProjection()); o.add(buildProjection()); return o; } -checkUnnamed3695(core.List<api.Projection> o) { +checkUnnamed3169(core.List<api.Projection> o) { unittest.expect(o, unittest.hasLength(2)); checkProjection(o[0]); checkProjection(o[1]); @@ -233,7 +233,7 @@ if (buildCounterDatastoreOptions < 3) { o.kind = buildKindExpression(); o.partitionId = buildPartitionId(); - o.projection = buildUnnamed3695(); + o.projection = buildUnnamed3169(); } buildCounterDatastoreOptions--; return o; @@ -244,7 +244,7 @@ if (buildCounterDatastoreOptions < 3) { checkKindExpression(o.kind); checkPartitionId(o.partitionId); - checkUnnamed3695(o.projection); + checkUnnamed3169(o.projection); } buildCounterDatastoreOptions--; } @@ -375,14 +375,14 @@ buildCounterInfoType--; } -buildUnnamed3696() { +buildUnnamed3170() { var o = new core.List<api.CategoryDescription>(); o.add(buildCategoryDescription()); o.add(buildCategoryDescription()); return o; } -checkUnnamed3696(core.List<api.CategoryDescription> o) { +checkUnnamed3170(core.List<api.CategoryDescription> o) { unittest.expect(o, unittest.hasLength(2)); checkCategoryDescription(o[0]); checkCategoryDescription(o[1]); @@ -393,7 +393,7 @@ var o = new api.InfoTypeDescription(); buildCounterInfoTypeDescription++; if (buildCounterInfoTypeDescription < 3) { - o.categories = buildUnnamed3696(); + o.categories = buildUnnamed3170(); o.displayName = "foo"; o.name = "foo"; } @@ -404,21 +404,21 @@ checkInfoTypeDescription(api.InfoTypeDescription o) { buildCounterInfoTypeDescription++; if (buildCounterInfoTypeDescription < 3) { - checkUnnamed3696(o.categories); + checkUnnamed3170(o.categories); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } buildCounterInfoTypeDescription--; } -buildUnnamed3697() { +buildUnnamed3171() { var o = new core.List<api.InfoType>(); o.add(buildInfoType()); o.add(buildInfoType()); return o; } -checkUnnamed3697(core.List<api.InfoType> o) { +checkUnnamed3171(core.List<api.InfoType> o) { unittest.expect(o, unittest.hasLength(2)); checkInfoType(o[0]); checkInfoType(o[1]); @@ -431,7 +431,7 @@ if (buildCounterInspectConfig < 3) { o.excludeTypes = true; o.includeQuote = true; - o.infoTypes = buildUnnamed3697(); + o.infoTypes = buildUnnamed3171(); o.maxFindings = 42; o.minLikelihood = "foo"; } @@ -444,21 +444,21 @@ if (buildCounterInspectConfig < 3) { unittest.expect(o.excludeTypes, unittest.isTrue); unittest.expect(o.includeQuote, unittest.isTrue); - checkUnnamed3697(o.infoTypes); + checkUnnamed3171(o.infoTypes); unittest.expect(o.maxFindings, unittest.equals(42)); unittest.expect(o.minLikelihood, unittest.equals('foo')); } buildCounterInspectConfig--; } -buildUnnamed3698() { +buildUnnamed3172() { var o = new core.List<api.ContentItem>(); o.add(buildContentItem()); o.add(buildContentItem()); return o; } -checkUnnamed3698(core.List<api.ContentItem> o) { +checkUnnamed3172(core.List<api.ContentItem> o) { unittest.expect(o, unittest.hasLength(2)); checkContentItem(o[0]); checkContentItem(o[1]); @@ -470,7 +470,7 @@ buildCounterInspectContentRequest++; if (buildCounterInspectContentRequest < 3) { o.inspectConfig = buildInspectConfig(); - o.items = buildUnnamed3698(); + o.items = buildUnnamed3172(); } buildCounterInspectContentRequest--; return o; @@ -480,19 +480,19 @@ buildCounterInspectContentRequest++; if (buildCounterInspectContentRequest < 3) { checkInspectConfig(o.inspectConfig); - checkUnnamed3698(o.items); + checkUnnamed3172(o.items); } buildCounterInspectContentRequest--; } -buildUnnamed3699() { +buildUnnamed3173() { var o = new core.List<api.InspectResult>(); o.add(buildInspectResult()); o.add(buildInspectResult()); return o; } -checkUnnamed3699(core.List<api.InspectResult> o) { +checkUnnamed3173(core.List<api.InspectResult> o) { unittest.expect(o, unittest.hasLength(2)); checkInspectResult(o[0]); checkInspectResult(o[1]); @@ -503,7 +503,7 @@ var o = new api.InspectContentResponse(); buildCounterInspectContentResponse++; if (buildCounterInspectContentResponse < 3) { - o.results = buildUnnamed3699(); + o.results = buildUnnamed3173(); } buildCounterInspectContentResponse--; return o; @@ -512,19 +512,19 @@ checkInspectContentResponse(api.InspectContentResponse o) { buildCounterInspectContentResponse++; if (buildCounterInspectContentResponse < 3) { - checkUnnamed3699(o.results); + checkUnnamed3173(o.results); } buildCounterInspectContentResponse--; } -buildUnnamed3700() { +buildUnnamed3174() { var o = new core.List<api.Finding>(); o.add(buildFinding()); o.add(buildFinding()); return o; } -checkUnnamed3700(core.List<api.Finding> o) { +checkUnnamed3174(core.List<api.Finding> o) { unittest.expect(o, unittest.hasLength(2)); checkFinding(o[0]); checkFinding(o[1]); @@ -535,7 +535,7 @@ var o = new api.InspectResult(); buildCounterInspectResult++; if (buildCounterInspectResult < 3) { - o.findings = buildUnnamed3700(); + o.findings = buildUnnamed3174(); o.findingsTruncated = true; } buildCounterInspectResult--; @@ -545,20 +545,20 @@ checkInspectResult(api.InspectResult o) { buildCounterInspectResult++; if (buildCounterInspectResult < 3) { - checkUnnamed3700(o.findings); + checkUnnamed3174(o.findings); unittest.expect(o.findingsTruncated, unittest.isTrue); } buildCounterInspectResult--; } -buildUnnamed3701() { +buildUnnamed3175() { var o = new core.List<api.PathElement>(); o.add(buildPathElement()); o.add(buildPathElement()); return o; } -checkUnnamed3701(core.List<api.PathElement> o) { +checkUnnamed3175(core.List<api.PathElement> o) { unittest.expect(o, unittest.hasLength(2)); checkPathElement(o[0]); checkPathElement(o[1]); @@ -570,7 +570,7 @@ buildCounterKey++; if (buildCounterKey < 3) { o.partitionId = buildPartitionId(); - o.path = buildUnnamed3701(); + o.path = buildUnnamed3175(); } buildCounterKey--; return o; @@ -580,7 +580,7 @@ buildCounterKey++; if (buildCounterKey < 3) { checkPartitionId(o.partitionId); - checkUnnamed3701(o.path); + checkUnnamed3175(o.path); } buildCounterKey--; } @@ -604,14 +604,14 @@ buildCounterKindExpression--; } -buildUnnamed3702() { +buildUnnamed3176() { var o = new core.List<api.InfoTypeDescription>(); o.add(buildInfoTypeDescription()); o.add(buildInfoTypeDescription()); return o; } -checkUnnamed3702(core.List<api.InfoTypeDescription> o) { +checkUnnamed3176(core.List<api.InfoTypeDescription> o) { unittest.expect(o, unittest.hasLength(2)); checkInfoTypeDescription(o[0]); checkInfoTypeDescription(o[1]); @@ -622,7 +622,7 @@ var o = new api.ListInfoTypesResponse(); buildCounterListInfoTypesResponse++; if (buildCounterListInfoTypesResponse < 3) { - o.infoTypes = buildUnnamed3702(); + o.infoTypes = buildUnnamed3176(); } buildCounterListInfoTypesResponse--; return o; @@ -631,7 +631,7 @@ checkListInfoTypesResponse(api.ListInfoTypesResponse o) { buildCounterListInfoTypesResponse++; if (buildCounterListInfoTypesResponse < 3) { - checkUnnamed3702(o.infoTypes); + checkUnnamed3176(o.infoTypes); } buildCounterListInfoTypesResponse--; } @@ -657,14 +657,14 @@ buildCounterListInspectFindingsResponse--; } -buildUnnamed3703() { +buildUnnamed3177() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3703(core.List<api.Operation> o) { +checkUnnamed3177(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -676,7 +676,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3703(); + o.operations = buildUnnamed3177(); } buildCounterListOperationsResponse--; return o; @@ -686,19 +686,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3703(o.operations); + checkUnnamed3177(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed3704() { +buildUnnamed3178() { var o = new core.List<api.CategoryDescription>(); o.add(buildCategoryDescription()); o.add(buildCategoryDescription()); return o; } -checkUnnamed3704(core.List<api.CategoryDescription> o) { +checkUnnamed3178(core.List<api.CategoryDescription> o) { unittest.expect(o, unittest.hasLength(2)); checkCategoryDescription(o[0]); checkCategoryDescription(o[1]); @@ -709,7 +709,7 @@ var o = new api.ListRootCategoriesResponse(); buildCounterListRootCategoriesResponse++; if (buildCounterListRootCategoriesResponse < 3) { - o.categories = buildUnnamed3704(); + o.categories = buildUnnamed3178(); } buildCounterListRootCategoriesResponse--; return o; @@ -718,19 +718,19 @@ checkListRootCategoriesResponse(api.ListRootCategoriesResponse o) { buildCounterListRootCategoriesResponse++; if (buildCounterListRootCategoriesResponse < 3) { - checkUnnamed3704(o.categories); + checkUnnamed3178(o.categories); } buildCounterListRootCategoriesResponse--; } -buildUnnamed3705() { +buildUnnamed3179() { var o = new core.List<api.ImageLocation>(); o.add(buildImageLocation()); o.add(buildImageLocation()); return o; } -checkUnnamed3705(core.List<api.ImageLocation> o) { +checkUnnamed3179(core.List<api.ImageLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkImageLocation(o[0]); checkImageLocation(o[1]); @@ -744,7 +744,7 @@ o.byteRange = buildRange(); o.codepointRange = buildRange(); o.fieldId = buildFieldId(); - o.imageBoxes = buildUnnamed3705(); + o.imageBoxes = buildUnnamed3179(); o.recordKey = buildRecordKey(); } buildCounterLocation--; @@ -757,33 +757,33 @@ checkRange(o.byteRange); checkRange(o.codepointRange); checkFieldId(o.fieldId); - checkUnnamed3705(o.imageBoxes); + checkUnnamed3179(o.imageBoxes); checkRecordKey(o.recordKey); } buildCounterLocation--; } -buildUnnamed3706() { +buildUnnamed3180() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3706(core.Map<core.String, core.Object> o) { +checkUnnamed3180(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3707() { +buildUnnamed3181() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3707(core.Map<core.String, core.Object> o) { +checkUnnamed3181(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -796,9 +796,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3706(); + o.metadata = buildUnnamed3180(); o.name = "foo"; - o.response = buildUnnamed3707(); + o.response = buildUnnamed3181(); } buildCounterOperation--; return o; @@ -809,9 +809,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3706(o.metadata); + checkUnnamed3180(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3707(o.response); + checkUnnamed3181(o.response); } buildCounterOperation--; } @@ -959,27 +959,27 @@ buildCounterRecordKey--; } -buildUnnamed3708() { +buildUnnamed3182() { var o = new core.List<api.ContentItem>(); o.add(buildContentItem()); o.add(buildContentItem()); return o; } -checkUnnamed3708(core.List<api.ContentItem> o) { +checkUnnamed3182(core.List<api.ContentItem> o) { unittest.expect(o, unittest.hasLength(2)); checkContentItem(o[0]); checkContentItem(o[1]); } -buildUnnamed3709() { +buildUnnamed3183() { var o = new core.List<api.ReplaceConfig>(); o.add(buildReplaceConfig()); o.add(buildReplaceConfig()); return o; } -checkUnnamed3709(core.List<api.ReplaceConfig> o) { +checkUnnamed3183(core.List<api.ReplaceConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkReplaceConfig(o[0]); checkReplaceConfig(o[1]); @@ -991,8 +991,8 @@ buildCounterRedactContentRequest++; if (buildCounterRedactContentRequest < 3) { o.inspectConfig = buildInspectConfig(); - o.items = buildUnnamed3708(); - o.replaceConfigs = buildUnnamed3709(); + o.items = buildUnnamed3182(); + o.replaceConfigs = buildUnnamed3183(); } buildCounterRedactContentRequest--; return o; @@ -1002,20 +1002,20 @@ buildCounterRedactContentRequest++; if (buildCounterRedactContentRequest < 3) { checkInspectConfig(o.inspectConfig); - checkUnnamed3708(o.items); - checkUnnamed3709(o.replaceConfigs); + checkUnnamed3182(o.items); + checkUnnamed3183(o.replaceConfigs); } buildCounterRedactContentRequest--; } -buildUnnamed3710() { +buildUnnamed3184() { var o = new core.List<api.ContentItem>(); o.add(buildContentItem()); o.add(buildContentItem()); return o; } -checkUnnamed3710(core.List<api.ContentItem> o) { +checkUnnamed3184(core.List<api.ContentItem> o) { unittest.expect(o, unittest.hasLength(2)); checkContentItem(o[0]); checkContentItem(o[1]); @@ -1026,7 +1026,7 @@ var o = new api.RedactContentResponse(); buildCounterRedactContentResponse++; if (buildCounterRedactContentResponse < 3) { - o.items = buildUnnamed3710(); + o.items = buildUnnamed3184(); } buildCounterRedactContentResponse--; return o; @@ -1035,7 +1035,7 @@ checkRedactContentResponse(api.RedactContentResponse o) { buildCounterRedactContentResponse++; if (buildCounterRedactContentResponse < 3) { - checkUnnamed3710(o.items); + checkUnnamed3184(o.items); } buildCounterRedactContentResponse--; } @@ -1061,30 +1061,30 @@ buildCounterReplaceConfig--; } -buildUnnamed3711() { +buildUnnamed3185() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3711(core.Map<core.String, core.Object> o) { +checkUnnamed3185(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed3712() { +buildUnnamed3186() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3711()); - o.add(buildUnnamed3711()); + o.add(buildUnnamed3185()); + o.add(buildUnnamed3185()); return o; } -checkUnnamed3712(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3186(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3711(o[0]); - checkUnnamed3711(o[1]); + checkUnnamed3185(o[0]); + checkUnnamed3185(o[1]); } core.int buildCounterStatus = 0; @@ -1093,7 +1093,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3712(); + o.details = buildUnnamed3186(); o.message = "foo"; } buildCounterStatus--; @@ -1104,7 +1104,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3712(o.details); + checkUnnamed3186(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1499,7 +1499,7 @@ var mock = new HttpServerMock(); api.ContentResourceApi res = new api.DlpApi(mock).content; var arg_request = buildInspectContentRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InspectContentRequest.fromJson(json); checkInspectContentRequest(obj); @@ -1536,7 +1536,7 @@ var resp = convert.JSON.encode(buildInspectContentResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.inspect(arg_request).then(unittest.expectAsync(((api.InspectContentResponse response) { + res.inspect(arg_request).then(unittest.expectAsync1(((api.InspectContentResponse response) { checkInspectContentResponse(response); }))); }); @@ -1546,7 +1546,7 @@ var mock = new HttpServerMock(); api.ContentResourceApi res = new api.DlpApi(mock).content; var arg_request = buildRedactContentRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RedactContentRequest.fromJson(json); checkRedactContentRequest(obj); @@ -1583,7 +1583,7 @@ var resp = convert.JSON.encode(buildRedactContentResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.redact(arg_request).then(unittest.expectAsync(((api.RedactContentResponse response) { + res.redact(arg_request).then(unittest.expectAsync1(((api.RedactContentResponse response) { checkRedactContentResponse(response); }))); }); @@ -1598,7 +1598,7 @@ api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operations; var arg_request = buildCancelOperationRequest(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CancelOperationRequest.fromJson(json); checkCancelOperationRequest(obj); @@ -1636,7 +1636,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.cancel(arg_request, arg_name).then(unittest.expectAsync(((api.Empty response) { + res.cancel(arg_request, arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1646,7 +1646,7 @@ var mock = new HttpServerMock(); api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operations; var arg_request = buildCreateInspectOperationRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CreateInspectOperationRequest.fromJson(json); checkCreateInspectOperationRequest(obj); @@ -1683,7 +1683,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request).then(unittest.expectAsync(((api.Operation response) { + res.create(arg_request).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1693,7 +1693,7 @@ var mock = new HttpServerMock(); api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1728,7 +1728,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1738,7 +1738,7 @@ var mock = new HttpServerMock(); api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1773,7 +1773,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1783,10 +1783,10 @@ var mock = new HttpServerMock(); api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operations; var arg_name = "foo"; + var arg_pageSize = 42; var arg_filter = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1813,9 +1813,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); var h = { @@ -1824,7 +1824,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListOperationsResponse response) { + res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); }); @@ -1841,7 +1841,7 @@ var arg_pageSize = 42; var arg_filter = "foo"; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1879,7 +1879,7 @@ var resp = convert.JSON.encode(buildListInspectFindingsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListInspectFindingsResponse response) { + res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListInspectFindingsResponse response) { checkListInspectFindingsResponse(response); }))); }); @@ -1893,7 +1893,7 @@ var mock = new HttpServerMock(); api.RootCategoriesResourceApi res = new api.DlpApi(mock).rootCategories; var arg_languageCode = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1928,7 +1928,7 @@ var resp = convert.JSON.encode(buildListRootCategoriesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(languageCode: arg_languageCode).then(unittest.expectAsync(((api.ListRootCategoriesResponse response) { + res.list(languageCode: arg_languageCode).then(unittest.expectAsync1(((api.ListRootCategoriesResponse response) { checkListRootCategoriesResponse(response); }))); }); @@ -1943,7 +1943,7 @@ api.RootCategoriesInfoTypesResourceApi res = new api.DlpApi(mock).rootCategories.infoTypes; var arg_category = "foo"; var arg_languageCode = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1979,7 +1979,7 @@ var resp = convert.JSON.encode(buildListInfoTypesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_category, languageCode: arg_languageCode).then(unittest.expectAsync(((api.ListInfoTypesResponse response) { + res.list(arg_category, languageCode: arg_languageCode).then(unittest.expectAsync1(((api.ListInfoTypesResponse response) { checkListInfoTypesResponse(response); }))); });
diff --git a/generated/googleapis_beta/test/dns/v2beta1_test.dart b/generated/googleapis_beta/test/dns/v2beta1_test.dart index ffae6d4..3b507bd 100644 --- a/generated/googleapis_beta/test/dns/v2beta1_test.dart +++ b/generated/googleapis_beta/test/dns/v2beta1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/dns/v2beta1.dart' as api; @@ -46,32 +46,32 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3838() { +buildUnnamed3312() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed3838(core.List<api.ResourceRecordSet> o) { +checkUnnamed3312(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); } -buildUnnamed3839() { +buildUnnamed3313() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed3839(core.List<api.ResourceRecordSet> o) { +checkUnnamed3313(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); @@ -82,8 +82,8 @@ var o = new api.Change(); buildCounterChange++; if (buildCounterChange < 3) { - o.additions = buildUnnamed3838(); - o.deletions = buildUnnamed3839(); + o.additions = buildUnnamed3312(); + o.deletions = buildUnnamed3313(); o.id = "foo"; o.isServing = true; o.kind = "foo"; @@ -97,8 +97,8 @@ checkChange(api.Change o) { buildCounterChange++; if (buildCounterChange < 3) { - checkUnnamed3838(o.additions); - checkUnnamed3839(o.deletions); + checkUnnamed3312(o.additions); + checkUnnamed3313(o.deletions); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isServing, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -108,14 +108,14 @@ buildCounterChange--; } -buildUnnamed3840() { +buildUnnamed3314() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed3840(core.List<api.Change> o) { +checkUnnamed3314(core.List<api.Change> o) { unittest.expect(o, unittest.hasLength(2)); checkChange(o[0]); checkChange(o[1]); @@ -126,7 +126,7 @@ var o = new api.ChangesListResponse(); buildCounterChangesListResponse++; if (buildCounterChangesListResponse < 3) { - o.changes = buildUnnamed3840(); + o.changes = buildUnnamed3314(); o.header = buildResponseHeader(); o.kind = "foo"; o.nextPageToken = "foo"; @@ -138,7 +138,7 @@ checkChangesListResponse(api.ChangesListResponse o) { buildCounterChangesListResponse++; if (buildCounterChangesListResponse < 3) { - checkUnnamed3840(o.changes); + checkUnnamed3314(o.changes); checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -146,14 +146,14 @@ buildCounterChangesListResponse--; } -buildUnnamed3841() { +buildUnnamed3315() { var o = new core.List<api.DnsKeyDigest>(); o.add(buildDnsKeyDigest()); o.add(buildDnsKeyDigest()); return o; } -checkUnnamed3841(core.List<api.DnsKeyDigest> o) { +checkUnnamed3315(core.List<api.DnsKeyDigest> o) { unittest.expect(o, unittest.hasLength(2)); checkDnsKeyDigest(o[0]); checkDnsKeyDigest(o[1]); @@ -167,7 +167,7 @@ o.algorithm = "foo"; o.creationTime = "foo"; o.description = "foo"; - o.digests = buildUnnamed3841(); + o.digests = buildUnnamed3315(); o.id = "foo"; o.isActive = true; o.keyLength = 42; @@ -186,7 +186,7 @@ unittest.expect(o.algorithm, unittest.equals('foo')); unittest.expect(o.creationTime, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed3841(o.digests); + checkUnnamed3315(o.digests); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isActive, unittest.isTrue); unittest.expect(o.keyLength, unittest.equals(42)); @@ -244,14 +244,14 @@ buildCounterDnsKeySpec--; } -buildUnnamed3842() { +buildUnnamed3316() { var o = new core.List<api.DnsKey>(); o.add(buildDnsKey()); o.add(buildDnsKey()); return o; } -checkUnnamed3842(core.List<api.DnsKey> o) { +checkUnnamed3316(core.List<api.DnsKey> o) { unittest.expect(o, unittest.hasLength(2)); checkDnsKey(o[0]); checkDnsKey(o[1]); @@ -262,7 +262,7 @@ var o = new api.DnsKeysListResponse(); buildCounterDnsKeysListResponse++; if (buildCounterDnsKeysListResponse < 3) { - o.dnsKeys = buildUnnamed3842(); + o.dnsKeys = buildUnnamed3316(); o.header = buildResponseHeader(); o.kind = "foo"; o.nextPageToken = "foo"; @@ -274,7 +274,7 @@ checkDnsKeysListResponse(api.DnsKeysListResponse o) { buildCounterDnsKeysListResponse++; if (buildCounterDnsKeysListResponse < 3) { - checkUnnamed3842(o.dnsKeys); + checkUnnamed3316(o.dnsKeys); checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -282,14 +282,14 @@ buildCounterDnsKeysListResponse--; } -buildUnnamed3843() { +buildUnnamed3317() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3843(core.List<core.String> o) { +checkUnnamed3317(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -308,7 +308,7 @@ o.kind = "foo"; o.name = "foo"; o.nameServerSet = "foo"; - o.nameServers = buildUnnamed3843(); + o.nameServers = buildUnnamed3317(); } buildCounterManagedZone--; return o; @@ -325,19 +325,19 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.nameServerSet, unittest.equals('foo')); - checkUnnamed3843(o.nameServers); + checkUnnamed3317(o.nameServers); } buildCounterManagedZone--; } -buildUnnamed3844() { +buildUnnamed3318() { var o = new core.List<api.DnsKeySpec>(); o.add(buildDnsKeySpec()); o.add(buildDnsKeySpec()); return o; } -checkUnnamed3844(core.List<api.DnsKeySpec> o) { +checkUnnamed3318(core.List<api.DnsKeySpec> o) { unittest.expect(o, unittest.hasLength(2)); checkDnsKeySpec(o[0]); checkDnsKeySpec(o[1]); @@ -348,7 +348,7 @@ var o = new api.ManagedZoneDnsSecConfig(); buildCounterManagedZoneDnsSecConfig++; if (buildCounterManagedZoneDnsSecConfig < 3) { - o.defaultKeySpecs = buildUnnamed3844(); + o.defaultKeySpecs = buildUnnamed3318(); o.kind = "foo"; o.nonExistence = "foo"; o.state = "foo"; @@ -360,7 +360,7 @@ checkManagedZoneDnsSecConfig(api.ManagedZoneDnsSecConfig o) { buildCounterManagedZoneDnsSecConfig++; if (buildCounterManagedZoneDnsSecConfig < 3) { - checkUnnamed3844(o.defaultKeySpecs); + checkUnnamed3318(o.defaultKeySpecs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nonExistence, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); @@ -368,14 +368,14 @@ buildCounterManagedZoneDnsSecConfig--; } -buildUnnamed3845() { +buildUnnamed3319() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3845(core.List<api.Operation> o) { +checkUnnamed3319(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -389,7 +389,7 @@ o.header = buildResponseHeader(); o.kind = "foo"; o.nextPageToken = "foo"; - o.operations = buildUnnamed3845(); + o.operations = buildUnnamed3319(); } buildCounterManagedZoneOperationsListResponse--; return o; @@ -401,7 +401,7 @@ checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3845(o.operations); + checkUnnamed3319(o.operations); } buildCounterManagedZoneOperationsListResponse--; } @@ -425,14 +425,14 @@ buildCounterManagedZonesDeleteResponse--; } -buildUnnamed3846() { +buildUnnamed3320() { var o = new core.List<api.ManagedZone>(); o.add(buildManagedZone()); o.add(buildManagedZone()); return o; } -checkUnnamed3846(core.List<api.ManagedZone> o) { +checkUnnamed3320(core.List<api.ManagedZone> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedZone(o[0]); checkManagedZone(o[1]); @@ -445,7 +445,7 @@ if (buildCounterManagedZonesListResponse < 3) { o.header = buildResponseHeader(); o.kind = "foo"; - o.managedZones = buildUnnamed3846(); + o.managedZones = buildUnnamed3320(); o.nextPageToken = "foo"; } buildCounterManagedZonesListResponse--; @@ -457,7 +457,7 @@ if (buildCounterManagedZonesListResponse < 3) { checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3846(o.managedZones); + checkUnnamed3320(o.managedZones); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterManagedZonesListResponse--; @@ -563,14 +563,14 @@ buildCounterProject--; } -buildUnnamed3847() { +buildUnnamed3321() { var o = new core.List<api.DnsKeySpec>(); o.add(buildDnsKeySpec()); o.add(buildDnsKeySpec()); return o; } -checkUnnamed3847(core.List<api.DnsKeySpec> o) { +checkUnnamed3321(core.List<api.DnsKeySpec> o) { unittest.expect(o, unittest.hasLength(2)); checkDnsKeySpec(o[0]); checkDnsKeySpec(o[1]); @@ -589,7 +589,7 @@ o.rrsetDeletionsPerChange = 42; o.rrsetsPerManagedZone = 42; o.totalRrdataSizePerChange = 42; - o.whitelistedKeySpecs = buildUnnamed3847(); + o.whitelistedKeySpecs = buildUnnamed3321(); } buildCounterQuota--; return o; @@ -606,32 +606,32 @@ unittest.expect(o.rrsetDeletionsPerChange, unittest.equals(42)); unittest.expect(o.rrsetsPerManagedZone, unittest.equals(42)); unittest.expect(o.totalRrdataSizePerChange, unittest.equals(42)); - checkUnnamed3847(o.whitelistedKeySpecs); + checkUnnamed3321(o.whitelistedKeySpecs); } buildCounterQuota--; } -buildUnnamed3848() { +buildUnnamed3322() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3848(core.List<core.String> o) { +checkUnnamed3322(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3849() { +buildUnnamed3323() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3849(core.List<core.String> o) { +checkUnnamed3323(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -644,8 +644,8 @@ if (buildCounterResourceRecordSet < 3) { o.kind = "foo"; o.name = "foo"; - o.rrdatas = buildUnnamed3848(); - o.signatureRrdatas = buildUnnamed3849(); + o.rrdatas = buildUnnamed3322(); + o.signatureRrdatas = buildUnnamed3323(); o.ttl = 42; o.type = "foo"; } @@ -658,22 +658,22 @@ if (buildCounterResourceRecordSet < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3848(o.rrdatas); - checkUnnamed3849(o.signatureRrdatas); + checkUnnamed3322(o.rrdatas); + checkUnnamed3323(o.signatureRrdatas); unittest.expect(o.ttl, unittest.equals(42)); unittest.expect(o.type, unittest.equals('foo')); } buildCounterResourceRecordSet--; } -buildUnnamed3850() { +buildUnnamed3324() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed3850(core.List<api.ResourceRecordSet> o) { +checkUnnamed3324(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); @@ -687,7 +687,7 @@ o.header = buildResponseHeader(); o.kind = "foo"; o.nextPageToken = "foo"; - o.rrsets = buildUnnamed3850(); + o.rrsets = buildUnnamed3324(); } buildCounterResourceRecordSetsListResponse--; return o; @@ -699,7 +699,7 @@ checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3850(o.rrsets); + checkUnnamed3324(o.rrsets); } buildCounterResourceRecordSetsListResponse--; } @@ -905,7 +905,7 @@ var arg_project = "foo"; var arg_managedZone = "foo"; var arg_clientOperationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Change.fromJson(json); checkChange(obj); @@ -941,7 +941,7 @@ var resp = convert.JSON.encode(buildChange()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_project, arg_managedZone, clientOperationId: arg_clientOperationId).then(unittest.expectAsync(((api.Change response) { + res.create(arg_request, arg_project, arg_managedZone, clientOperationId: arg_clientOperationId).then(unittest.expectAsync1(((api.Change response) { checkChange(response); }))); }); @@ -954,7 +954,7 @@ var arg_managedZone = "foo"; var arg_changeId = "foo"; var arg_clientOperationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -987,7 +987,7 @@ var resp = convert.JSON.encode(buildChange()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_managedZone, arg_changeId, clientOperationId: arg_clientOperationId).then(unittest.expectAsync(((api.Change response) { + res.get(arg_project, arg_managedZone, arg_changeId, clientOperationId: arg_clientOperationId).then(unittest.expectAsync1(((api.Change response) { checkChange(response); }))); }); @@ -1002,7 +1002,7 @@ var arg_pageToken = "foo"; var arg_sortBy = "foo"; var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1038,7 +1038,7 @@ var resp = convert.JSON.encode(buildChangesListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, pageToken: arg_pageToken, sortBy: arg_sortBy, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.ChangesListResponse response) { + res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, pageToken: arg_pageToken, sortBy: arg_sortBy, sortOrder: arg_sortOrder).then(unittest.expectAsync1(((api.ChangesListResponse response) { checkChangesListResponse(response); }))); }); @@ -1056,7 +1056,7 @@ var arg_dnsKeyId = "foo"; var arg_clientOperationId = "foo"; var arg_digestType = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1090,7 +1090,7 @@ var resp = convert.JSON.encode(buildDnsKey()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_managedZone, arg_dnsKeyId, clientOperationId: arg_clientOperationId, digestType: arg_digestType).then(unittest.expectAsync(((api.DnsKey response) { + res.get(arg_project, arg_managedZone, arg_dnsKeyId, clientOperationId: arg_clientOperationId, digestType: arg_digestType).then(unittest.expectAsync1(((api.DnsKey response) { checkDnsKey(response); }))); }); @@ -1104,7 +1104,7 @@ var arg_digestType = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1139,7 +1139,7 @@ var resp = convert.JSON.encode(buildDnsKeysListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_managedZone, digestType: arg_digestType, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DnsKeysListResponse response) { + res.list(arg_project, arg_managedZone, digestType: arg_digestType, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.DnsKeysListResponse response) { checkDnsKeysListResponse(response); }))); }); @@ -1156,7 +1156,7 @@ var arg_managedZone = "foo"; var arg_operation = "foo"; var arg_clientOperationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1189,7 +1189,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_managedZone, arg_operation, clientOperationId: arg_clientOperationId).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_project, arg_managedZone, arg_operation, clientOperationId: arg_clientOperationId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1203,7 +1203,7 @@ var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_sortBy = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1238,7 +1238,7 @@ var resp = convert.JSON.encode(buildManagedZoneOperationsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, pageToken: arg_pageToken, sortBy: arg_sortBy).then(unittest.expectAsync(((api.ManagedZoneOperationsListResponse response) { + res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, pageToken: arg_pageToken, sortBy: arg_sortBy).then(unittest.expectAsync1(((api.ManagedZoneOperationsListResponse response) { checkManagedZoneOperationsListResponse(response); }))); }); @@ -1254,7 +1254,7 @@ var arg_request = buildManagedZone(); var arg_project = "foo"; var arg_clientOperationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ManagedZone.fromJson(json); checkManagedZone(obj); @@ -1290,7 +1290,7 @@ var resp = convert.JSON.encode(buildManagedZone()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_project, clientOperationId: arg_clientOperationId).then(unittest.expectAsync(((api.ManagedZone response) { + res.create(arg_request, arg_project, clientOperationId: arg_clientOperationId).then(unittest.expectAsync1(((api.ManagedZone response) { checkManagedZone(response); }))); }); @@ -1302,7 +1302,7 @@ var arg_project = "foo"; var arg_managedZone = "foo"; var arg_clientOperationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1335,7 +1335,7 @@ var resp = convert.JSON.encode(buildManagedZonesDeleteResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_managedZone, clientOperationId: arg_clientOperationId).then(unittest.expectAsync(((api.ManagedZonesDeleteResponse response) { + res.delete(arg_project, arg_managedZone, clientOperationId: arg_clientOperationId).then(unittest.expectAsync1(((api.ManagedZonesDeleteResponse response) { checkManagedZonesDeleteResponse(response); }))); }); @@ -1347,7 +1347,7 @@ var arg_project = "foo"; var arg_managedZone = "foo"; var arg_clientOperationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1380,7 +1380,7 @@ var resp = convert.JSON.encode(buildManagedZone()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_managedZone, clientOperationId: arg_clientOperationId).then(unittest.expectAsync(((api.ManagedZone response) { + res.get(arg_project, arg_managedZone, clientOperationId: arg_clientOperationId).then(unittest.expectAsync1(((api.ManagedZone response) { checkManagedZone(response); }))); }); @@ -1393,7 +1393,7 @@ var arg_dnsName = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1428,7 +1428,7 @@ var resp = convert.JSON.encode(buildManagedZonesListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, dnsName: arg_dnsName, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ManagedZonesListResponse response) { + res.list(arg_project, dnsName: arg_dnsName, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ManagedZonesListResponse response) { checkManagedZonesListResponse(response); }))); }); @@ -1441,7 +1441,7 @@ var arg_project = "foo"; var arg_managedZone = "foo"; var arg_clientOperationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ManagedZone.fromJson(json); checkManagedZone(obj); @@ -1477,7 +1477,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_project, arg_managedZone, clientOperationId: arg_clientOperationId).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_project, arg_managedZone, clientOperationId: arg_clientOperationId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1490,7 +1490,7 @@ var arg_project = "foo"; var arg_managedZone = "foo"; var arg_clientOperationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ManagedZone.fromJson(json); checkManagedZone(obj); @@ -1526,7 +1526,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_project, arg_managedZone, clientOperationId: arg_clientOperationId).then(unittest.expectAsync(((api.Operation response) { + res.update(arg_request, arg_project, arg_managedZone, clientOperationId: arg_clientOperationId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1541,7 +1541,7 @@ api.ProjectsResourceApi res = new api.DnsApi(mock).projects; var arg_project = "foo"; var arg_clientOperationId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1574,7 +1574,7 @@ var resp = convert.JSON.encode(buildProject()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, clientOperationId: arg_clientOperationId).then(unittest.expectAsync(((api.Project response) { + res.get(arg_project, clientOperationId: arg_clientOperationId).then(unittest.expectAsync1(((api.Project response) { checkProject(response); }))); }); @@ -1593,7 +1593,7 @@ var arg_name = "foo"; var arg_pageToken = "foo"; var arg_type = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1629,7 +1629,7 @@ var resp = convert.JSON.encode(buildResourceRecordSetsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, name: arg_name, pageToken: arg_pageToken, type: arg_type).then(unittest.expectAsync(((api.ResourceRecordSetsListResponse response) { + res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, name: arg_name, pageToken: arg_pageToken, type: arg_type).then(unittest.expectAsync1(((api.ResourceRecordSetsListResponse response) { checkResourceRecordSetsListResponse(response); }))); });
diff --git a/generated/googleapis_beta/test/language/v1beta1_test.dart b/generated/googleapis_beta/test/language/v1beta1_test.dart index 17db3c3..cc20ce6 100644 --- a/generated/googleapis_beta/test/language/v1beta1_test.dart +++ b/generated/googleapis_beta/test/language/v1beta1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/language/v1beta1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -72,14 +72,14 @@ buildCounterAnalyzeEntitiesRequest--; } -buildUnnamed3567() { +buildUnnamed3041() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed3567(core.List<api.Entity> o) { +checkUnnamed3041(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); @@ -90,7 +90,7 @@ var o = new api.AnalyzeEntitiesResponse(); buildCounterAnalyzeEntitiesResponse++; if (buildCounterAnalyzeEntitiesResponse < 3) { - o.entities = buildUnnamed3567(); + o.entities = buildUnnamed3041(); o.language = "foo"; } buildCounterAnalyzeEntitiesResponse--; @@ -100,7 +100,7 @@ checkAnalyzeEntitiesResponse(api.AnalyzeEntitiesResponse o) { buildCounterAnalyzeEntitiesResponse++; if (buildCounterAnalyzeEntitiesResponse < 3) { - checkUnnamed3567(o.entities); + checkUnnamed3041(o.entities); unittest.expect(o.language, unittest.equals('foo')); } buildCounterAnalyzeEntitiesResponse--; @@ -127,14 +127,14 @@ buildCounterAnalyzeSentimentRequest--; } -buildUnnamed3568() { +buildUnnamed3042() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); o.add(buildSentence()); return o; } -checkUnnamed3568(core.List<api.Sentence> o) { +checkUnnamed3042(core.List<api.Sentence> o) { unittest.expect(o, unittest.hasLength(2)); checkSentence(o[0]); checkSentence(o[1]); @@ -147,7 +147,7 @@ if (buildCounterAnalyzeSentimentResponse < 3) { o.documentSentiment = buildSentiment(); o.language = "foo"; - o.sentences = buildUnnamed3568(); + o.sentences = buildUnnamed3042(); } buildCounterAnalyzeSentimentResponse--; return o; @@ -158,7 +158,7 @@ if (buildCounterAnalyzeSentimentResponse < 3) { checkSentiment(o.documentSentiment); unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed3568(o.sentences); + checkUnnamed3042(o.sentences); } buildCounterAnalyzeSentimentResponse--; } @@ -184,27 +184,27 @@ buildCounterAnalyzeSyntaxRequest--; } -buildUnnamed3569() { +buildUnnamed3043() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); o.add(buildSentence()); return o; } -checkUnnamed3569(core.List<api.Sentence> o) { +checkUnnamed3043(core.List<api.Sentence> o) { unittest.expect(o, unittest.hasLength(2)); checkSentence(o[0]); checkSentence(o[1]); } -buildUnnamed3570() { +buildUnnamed3044() { var o = new core.List<api.Token>(); o.add(buildToken()); o.add(buildToken()); return o; } -checkUnnamed3570(core.List<api.Token> o) { +checkUnnamed3044(core.List<api.Token> o) { unittest.expect(o, unittest.hasLength(2)); checkToken(o[0]); checkToken(o[1]); @@ -216,8 +216,8 @@ buildCounterAnalyzeSyntaxResponse++; if (buildCounterAnalyzeSyntaxResponse < 3) { o.language = "foo"; - o.sentences = buildUnnamed3569(); - o.tokens = buildUnnamed3570(); + o.sentences = buildUnnamed3043(); + o.tokens = buildUnnamed3044(); } buildCounterAnalyzeSyntaxResponse--; return o; @@ -227,8 +227,8 @@ buildCounterAnalyzeSyntaxResponse++; if (buildCounterAnalyzeSyntaxResponse < 3) { unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed3569(o.sentences); - checkUnnamed3570(o.tokens); + checkUnnamed3043(o.sentences); + checkUnnamed3044(o.tokens); } buildCounterAnalyzeSyntaxResponse--; } @@ -256,40 +256,40 @@ buildCounterAnnotateTextRequest--; } -buildUnnamed3571() { +buildUnnamed3045() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed3571(core.List<api.Entity> o) { +checkUnnamed3045(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); } -buildUnnamed3572() { +buildUnnamed3046() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); o.add(buildSentence()); return o; } -checkUnnamed3572(core.List<api.Sentence> o) { +checkUnnamed3046(core.List<api.Sentence> o) { unittest.expect(o, unittest.hasLength(2)); checkSentence(o[0]); checkSentence(o[1]); } -buildUnnamed3573() { +buildUnnamed3047() { var o = new core.List<api.Token>(); o.add(buildToken()); o.add(buildToken()); return o; } -checkUnnamed3573(core.List<api.Token> o) { +checkUnnamed3047(core.List<api.Token> o) { unittest.expect(o, unittest.hasLength(2)); checkToken(o[0]); checkToken(o[1]); @@ -301,10 +301,10 @@ buildCounterAnnotateTextResponse++; if (buildCounterAnnotateTextResponse < 3) { o.documentSentiment = buildSentiment(); - o.entities = buildUnnamed3571(); + o.entities = buildUnnamed3045(); o.language = "foo"; - o.sentences = buildUnnamed3572(); - o.tokens = buildUnnamed3573(); + o.sentences = buildUnnamed3046(); + o.tokens = buildUnnamed3047(); } buildCounterAnnotateTextResponse--; return o; @@ -314,10 +314,10 @@ buildCounterAnnotateTextResponse++; if (buildCounterAnnotateTextResponse < 3) { checkSentiment(o.documentSentiment); - checkUnnamed3571(o.entities); + checkUnnamed3045(o.entities); unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed3572(o.sentences); - checkUnnamed3573(o.tokens); + checkUnnamed3046(o.sentences); + checkUnnamed3047(o.tokens); } buildCounterAnnotateTextResponse--; } @@ -368,27 +368,27 @@ buildCounterDocument--; } -buildUnnamed3574() { +buildUnnamed3048() { var o = new core.List<api.EntityMention>(); o.add(buildEntityMention()); o.add(buildEntityMention()); return o; } -checkUnnamed3574(core.List<api.EntityMention> o) { +checkUnnamed3048(core.List<api.EntityMention> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityMention(o[0]); checkEntityMention(o[1]); } -buildUnnamed3575() { +buildUnnamed3049() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3575(core.Map<core.String, core.String> o) { +checkUnnamed3049(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -399,8 +399,8 @@ var o = new api.Entity(); buildCounterEntity++; if (buildCounterEntity < 3) { - o.mentions = buildUnnamed3574(); - o.metadata = buildUnnamed3575(); + o.mentions = buildUnnamed3048(); + o.metadata = buildUnnamed3049(); o.name = "foo"; o.salience = 42.0; o.type = "foo"; @@ -412,8 +412,8 @@ checkEntity(api.Entity o) { buildCounterEntity++; if (buildCounterEntity < 3) { - checkUnnamed3574(o.mentions); - checkUnnamed3575(o.metadata); + checkUnnamed3048(o.mentions); + checkUnnamed3049(o.metadata); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.salience, unittest.equals(42.0)); unittest.expect(o.type, unittest.equals('foo')); @@ -550,30 +550,30 @@ buildCounterSentiment--; } -buildUnnamed3576() { +buildUnnamed3050() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3576(core.Map<core.String, core.Object> o) { +checkUnnamed3050(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3577() { +buildUnnamed3051() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3576()); - o.add(buildUnnamed3576()); + o.add(buildUnnamed3050()); + o.add(buildUnnamed3050()); return o; } -checkUnnamed3577(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3051(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3576(o[0]); - checkUnnamed3576(o[1]); + checkUnnamed3050(o[0]); + checkUnnamed3050(o[1]); } core.int buildCounterStatus = 0; @@ -582,7 +582,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3577(); + o.details = buildUnnamed3051(); o.message = "foo"; } buildCounterStatus--; @@ -593,7 +593,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3577(o.details); + checkUnnamed3051(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -824,7 +824,7 @@ var mock = new HttpServerMock(); api.DocumentsResourceApi res = new api.LanguageApi(mock).documents; var arg_request = buildAnalyzeEntitiesRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AnalyzeEntitiesRequest.fromJson(json); checkAnalyzeEntitiesRequest(obj); @@ -861,7 +861,7 @@ var resp = convert.JSON.encode(buildAnalyzeEntitiesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.analyzeEntities(arg_request).then(unittest.expectAsync(((api.AnalyzeEntitiesResponse response) { + res.analyzeEntities(arg_request).then(unittest.expectAsync1(((api.AnalyzeEntitiesResponse response) { checkAnalyzeEntitiesResponse(response); }))); }); @@ -871,7 +871,7 @@ var mock = new HttpServerMock(); api.DocumentsResourceApi res = new api.LanguageApi(mock).documents; var arg_request = buildAnalyzeSentimentRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AnalyzeSentimentRequest.fromJson(json); checkAnalyzeSentimentRequest(obj); @@ -908,7 +908,7 @@ var resp = convert.JSON.encode(buildAnalyzeSentimentResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.analyzeSentiment(arg_request).then(unittest.expectAsync(((api.AnalyzeSentimentResponse response) { + res.analyzeSentiment(arg_request).then(unittest.expectAsync1(((api.AnalyzeSentimentResponse response) { checkAnalyzeSentimentResponse(response); }))); }); @@ -918,7 +918,7 @@ var mock = new HttpServerMock(); api.DocumentsResourceApi res = new api.LanguageApi(mock).documents; var arg_request = buildAnalyzeSyntaxRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AnalyzeSyntaxRequest.fromJson(json); checkAnalyzeSyntaxRequest(obj); @@ -955,7 +955,7 @@ var resp = convert.JSON.encode(buildAnalyzeSyntaxResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.analyzeSyntax(arg_request).then(unittest.expectAsync(((api.AnalyzeSyntaxResponse response) { + res.analyzeSyntax(arg_request).then(unittest.expectAsync1(((api.AnalyzeSyntaxResponse response) { checkAnalyzeSyntaxResponse(response); }))); }); @@ -965,7 +965,7 @@ var mock = new HttpServerMock(); api.DocumentsResourceApi res = new api.LanguageApi(mock).documents; var arg_request = buildAnnotateTextRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AnnotateTextRequest.fromJson(json); checkAnnotateTextRequest(obj); @@ -1002,7 +1002,7 @@ var resp = convert.JSON.encode(buildAnnotateTextResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.annotateText(arg_request).then(unittest.expectAsync(((api.AnnotateTextResponse response) { + res.annotateText(arg_request).then(unittest.expectAsync1(((api.AnnotateTextResponse response) { checkAnnotateTextResponse(response); }))); });
diff --git a/generated/googleapis_beta/test/language/v1beta2_test.dart b/generated/googleapis_beta/test/language/v1beta2_test.dart index 63dc9ab..624a830 100644 --- a/generated/googleapis_beta/test/language/v1beta2_test.dart +++ b/generated/googleapis_beta/test/language/v1beta2_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/language/v1beta2.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -72,14 +72,14 @@ buildCounterAnalyzeEntitiesRequest--; } -buildUnnamed3743() { +buildUnnamed3217() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed3743(core.List<api.Entity> o) { +checkUnnamed3217(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); @@ -90,7 +90,7 @@ var o = new api.AnalyzeEntitiesResponse(); buildCounterAnalyzeEntitiesResponse++; if (buildCounterAnalyzeEntitiesResponse < 3) { - o.entities = buildUnnamed3743(); + o.entities = buildUnnamed3217(); o.language = "foo"; } buildCounterAnalyzeEntitiesResponse--; @@ -100,7 +100,7 @@ checkAnalyzeEntitiesResponse(api.AnalyzeEntitiesResponse o) { buildCounterAnalyzeEntitiesResponse++; if (buildCounterAnalyzeEntitiesResponse < 3) { - checkUnnamed3743(o.entities); + checkUnnamed3217(o.entities); unittest.expect(o.language, unittest.equals('foo')); } buildCounterAnalyzeEntitiesResponse--; @@ -127,14 +127,14 @@ buildCounterAnalyzeEntitySentimentRequest--; } -buildUnnamed3744() { +buildUnnamed3218() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed3744(core.List<api.Entity> o) { +checkUnnamed3218(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); @@ -145,7 +145,7 @@ var o = new api.AnalyzeEntitySentimentResponse(); buildCounterAnalyzeEntitySentimentResponse++; if (buildCounterAnalyzeEntitySentimentResponse < 3) { - o.entities = buildUnnamed3744(); + o.entities = buildUnnamed3218(); o.language = "foo"; } buildCounterAnalyzeEntitySentimentResponse--; @@ -155,7 +155,7 @@ checkAnalyzeEntitySentimentResponse(api.AnalyzeEntitySentimentResponse o) { buildCounterAnalyzeEntitySentimentResponse++; if (buildCounterAnalyzeEntitySentimentResponse < 3) { - checkUnnamed3744(o.entities); + checkUnnamed3218(o.entities); unittest.expect(o.language, unittest.equals('foo')); } buildCounterAnalyzeEntitySentimentResponse--; @@ -182,14 +182,14 @@ buildCounterAnalyzeSentimentRequest--; } -buildUnnamed3745() { +buildUnnamed3219() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); o.add(buildSentence()); return o; } -checkUnnamed3745(core.List<api.Sentence> o) { +checkUnnamed3219(core.List<api.Sentence> o) { unittest.expect(o, unittest.hasLength(2)); checkSentence(o[0]); checkSentence(o[1]); @@ -202,7 +202,7 @@ if (buildCounterAnalyzeSentimentResponse < 3) { o.documentSentiment = buildSentiment(); o.language = "foo"; - o.sentences = buildUnnamed3745(); + o.sentences = buildUnnamed3219(); } buildCounterAnalyzeSentimentResponse--; return o; @@ -213,7 +213,7 @@ if (buildCounterAnalyzeSentimentResponse < 3) { checkSentiment(o.documentSentiment); unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed3745(o.sentences); + checkUnnamed3219(o.sentences); } buildCounterAnalyzeSentimentResponse--; } @@ -239,27 +239,27 @@ buildCounterAnalyzeSyntaxRequest--; } -buildUnnamed3746() { +buildUnnamed3220() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); o.add(buildSentence()); return o; } -checkUnnamed3746(core.List<api.Sentence> o) { +checkUnnamed3220(core.List<api.Sentence> o) { unittest.expect(o, unittest.hasLength(2)); checkSentence(o[0]); checkSentence(o[1]); } -buildUnnamed3747() { +buildUnnamed3221() { var o = new core.List<api.Token>(); o.add(buildToken()); o.add(buildToken()); return o; } -checkUnnamed3747(core.List<api.Token> o) { +checkUnnamed3221(core.List<api.Token> o) { unittest.expect(o, unittest.hasLength(2)); checkToken(o[0]); checkToken(o[1]); @@ -271,8 +271,8 @@ buildCounterAnalyzeSyntaxResponse++; if (buildCounterAnalyzeSyntaxResponse < 3) { o.language = "foo"; - o.sentences = buildUnnamed3746(); - o.tokens = buildUnnamed3747(); + o.sentences = buildUnnamed3220(); + o.tokens = buildUnnamed3221(); } buildCounterAnalyzeSyntaxResponse--; return o; @@ -282,8 +282,8 @@ buildCounterAnalyzeSyntaxResponse++; if (buildCounterAnalyzeSyntaxResponse < 3) { unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed3746(o.sentences); - checkUnnamed3747(o.tokens); + checkUnnamed3220(o.sentences); + checkUnnamed3221(o.tokens); } buildCounterAnalyzeSyntaxResponse--; } @@ -311,40 +311,40 @@ buildCounterAnnotateTextRequest--; } -buildUnnamed3748() { +buildUnnamed3222() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed3748(core.List<api.Entity> o) { +checkUnnamed3222(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); } -buildUnnamed3749() { +buildUnnamed3223() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); o.add(buildSentence()); return o; } -checkUnnamed3749(core.List<api.Sentence> o) { +checkUnnamed3223(core.List<api.Sentence> o) { unittest.expect(o, unittest.hasLength(2)); checkSentence(o[0]); checkSentence(o[1]); } -buildUnnamed3750() { +buildUnnamed3224() { var o = new core.List<api.Token>(); o.add(buildToken()); o.add(buildToken()); return o; } -checkUnnamed3750(core.List<api.Token> o) { +checkUnnamed3224(core.List<api.Token> o) { unittest.expect(o, unittest.hasLength(2)); checkToken(o[0]); checkToken(o[1]); @@ -356,10 +356,10 @@ buildCounterAnnotateTextResponse++; if (buildCounterAnnotateTextResponse < 3) { o.documentSentiment = buildSentiment(); - o.entities = buildUnnamed3748(); + o.entities = buildUnnamed3222(); o.language = "foo"; - o.sentences = buildUnnamed3749(); - o.tokens = buildUnnamed3750(); + o.sentences = buildUnnamed3223(); + o.tokens = buildUnnamed3224(); } buildCounterAnnotateTextResponse--; return o; @@ -369,10 +369,10 @@ buildCounterAnnotateTextResponse++; if (buildCounterAnnotateTextResponse < 3) { checkSentiment(o.documentSentiment); - checkUnnamed3748(o.entities); + checkUnnamed3222(o.entities); unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed3749(o.sentences); - checkUnnamed3750(o.tokens); + checkUnnamed3223(o.sentences); + checkUnnamed3224(o.tokens); } buildCounterAnnotateTextResponse--; } @@ -423,27 +423,27 @@ buildCounterDocument--; } -buildUnnamed3751() { +buildUnnamed3225() { var o = new core.List<api.EntityMention>(); o.add(buildEntityMention()); o.add(buildEntityMention()); return o; } -checkUnnamed3751(core.List<api.EntityMention> o) { +checkUnnamed3225(core.List<api.EntityMention> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityMention(o[0]); checkEntityMention(o[1]); } -buildUnnamed3752() { +buildUnnamed3226() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3752(core.Map<core.String, core.String> o) { +checkUnnamed3226(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -454,8 +454,8 @@ var o = new api.Entity(); buildCounterEntity++; if (buildCounterEntity < 3) { - o.mentions = buildUnnamed3751(); - o.metadata = buildUnnamed3752(); + o.mentions = buildUnnamed3225(); + o.metadata = buildUnnamed3226(); o.name = "foo"; o.salience = 42.0; o.sentiment = buildSentiment(); @@ -468,8 +468,8 @@ checkEntity(api.Entity o) { buildCounterEntity++; if (buildCounterEntity < 3) { - checkUnnamed3751(o.mentions); - checkUnnamed3752(o.metadata); + checkUnnamed3225(o.mentions); + checkUnnamed3226(o.metadata); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.salience, unittest.equals(42.0)); checkSentiment(o.sentiment); @@ -609,30 +609,30 @@ buildCounterSentiment--; } -buildUnnamed3753() { +buildUnnamed3227() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3753(core.Map<core.String, core.Object> o) { +checkUnnamed3227(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3754() { +buildUnnamed3228() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3753()); - o.add(buildUnnamed3753()); + o.add(buildUnnamed3227()); + o.add(buildUnnamed3227()); return o; } -checkUnnamed3754(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3228(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3753(o[0]); - checkUnnamed3753(o[1]); + checkUnnamed3227(o[0]); + checkUnnamed3227(o[1]); } core.int buildCounterStatus = 0; @@ -641,7 +641,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3754(); + o.details = buildUnnamed3228(); o.message = "foo"; } buildCounterStatus--; @@ -652,7 +652,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3754(o.details); + checkUnnamed3228(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -901,7 +901,7 @@ var mock = new HttpServerMock(); api.DocumentsResourceApi res = new api.LanguageApi(mock).documents; var arg_request = buildAnalyzeEntitiesRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AnalyzeEntitiesRequest.fromJson(json); checkAnalyzeEntitiesRequest(obj); @@ -938,7 +938,7 @@ var resp = convert.JSON.encode(buildAnalyzeEntitiesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.analyzeEntities(arg_request).then(unittest.expectAsync(((api.AnalyzeEntitiesResponse response) { + res.analyzeEntities(arg_request).then(unittest.expectAsync1(((api.AnalyzeEntitiesResponse response) { checkAnalyzeEntitiesResponse(response); }))); }); @@ -948,7 +948,7 @@ var mock = new HttpServerMock(); api.DocumentsResourceApi res = new api.LanguageApi(mock).documents; var arg_request = buildAnalyzeEntitySentimentRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AnalyzeEntitySentimentRequest.fromJson(json); checkAnalyzeEntitySentimentRequest(obj); @@ -985,7 +985,7 @@ var resp = convert.JSON.encode(buildAnalyzeEntitySentimentResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.analyzeEntitySentiment(arg_request).then(unittest.expectAsync(((api.AnalyzeEntitySentimentResponse response) { + res.analyzeEntitySentiment(arg_request).then(unittest.expectAsync1(((api.AnalyzeEntitySentimentResponse response) { checkAnalyzeEntitySentimentResponse(response); }))); }); @@ -995,7 +995,7 @@ var mock = new HttpServerMock(); api.DocumentsResourceApi res = new api.LanguageApi(mock).documents; var arg_request = buildAnalyzeSentimentRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AnalyzeSentimentRequest.fromJson(json); checkAnalyzeSentimentRequest(obj); @@ -1032,7 +1032,7 @@ var resp = convert.JSON.encode(buildAnalyzeSentimentResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.analyzeSentiment(arg_request).then(unittest.expectAsync(((api.AnalyzeSentimentResponse response) { + res.analyzeSentiment(arg_request).then(unittest.expectAsync1(((api.AnalyzeSentimentResponse response) { checkAnalyzeSentimentResponse(response); }))); }); @@ -1042,7 +1042,7 @@ var mock = new HttpServerMock(); api.DocumentsResourceApi res = new api.LanguageApi(mock).documents; var arg_request = buildAnalyzeSyntaxRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AnalyzeSyntaxRequest.fromJson(json); checkAnalyzeSyntaxRequest(obj); @@ -1079,7 +1079,7 @@ var resp = convert.JSON.encode(buildAnalyzeSyntaxResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.analyzeSyntax(arg_request).then(unittest.expectAsync(((api.AnalyzeSyntaxResponse response) { + res.analyzeSyntax(arg_request).then(unittest.expectAsync1(((api.AnalyzeSyntaxResponse response) { checkAnalyzeSyntaxResponse(response); }))); }); @@ -1089,7 +1089,7 @@ var mock = new HttpServerMock(); api.DocumentsResourceApi res = new api.LanguageApi(mock).documents; var arg_request = buildAnnotateTextRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AnnotateTextRequest.fromJson(json); checkAnnotateTextRequest(obj); @@ -1126,7 +1126,7 @@ var resp = convert.JSON.encode(buildAnnotateTextResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.annotateText(arg_request).then(unittest.expectAsync(((api.AnnotateTextResponse response) { + res.annotateText(arg_request).then(unittest.expectAsync1(((api.AnnotateTextResponse response) { checkAnnotateTextResponse(response); }))); });
diff --git a/generated/googleapis_beta/test/logging/v2beta1_test.dart b/generated/googleapis_beta/test/logging/v2beta1_test.dart index 4787dfe..139412e 100644 --- a/generated/googleapis_beta/test/logging/v2beta1_test.dart +++ b/generated/googleapis_beta/test/logging/v2beta1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/logging/v2beta1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -136,27 +136,27 @@ buildCounterLabelDescriptor--; } -buildUnnamed3851() { +buildUnnamed3325() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3851(core.List<core.String> o) { +checkUnnamed3325(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3852() { +buildUnnamed3326() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3852(core.List<core.String> o) { +checkUnnamed3326(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -171,8 +171,8 @@ o.orderBy = "foo"; o.pageSize = 42; o.pageToken = "foo"; - o.projectIds = buildUnnamed3851(); - o.resourceNames = buildUnnamed3852(); + o.projectIds = buildUnnamed3325(); + o.resourceNames = buildUnnamed3326(); } buildCounterListLogEntriesRequest--; return o; @@ -185,20 +185,20 @@ unittest.expect(o.orderBy, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed3851(o.projectIds); - checkUnnamed3852(o.resourceNames); + checkUnnamed3325(o.projectIds); + checkUnnamed3326(o.resourceNames); } buildCounterListLogEntriesRequest--; } -buildUnnamed3853() { +buildUnnamed3327() { var o = new core.List<api.LogEntry>(); o.add(buildLogEntry()); o.add(buildLogEntry()); return o; } -checkUnnamed3853(core.List<api.LogEntry> o) { +checkUnnamed3327(core.List<api.LogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLogEntry(o[0]); checkLogEntry(o[1]); @@ -209,7 +209,7 @@ var o = new api.ListLogEntriesResponse(); buildCounterListLogEntriesResponse++; if (buildCounterListLogEntriesResponse < 3) { - o.entries = buildUnnamed3853(); + o.entries = buildUnnamed3327(); o.nextPageToken = "foo"; } buildCounterListLogEntriesResponse--; @@ -219,20 +219,20 @@ checkListLogEntriesResponse(api.ListLogEntriesResponse o) { buildCounterListLogEntriesResponse++; if (buildCounterListLogEntriesResponse < 3) { - checkUnnamed3853(o.entries); + checkUnnamed3327(o.entries); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLogEntriesResponse--; } -buildUnnamed3854() { +buildUnnamed3328() { var o = new core.List<api.LogMetric>(); o.add(buildLogMetric()); o.add(buildLogMetric()); return o; } -checkUnnamed3854(core.List<api.LogMetric> o) { +checkUnnamed3328(core.List<api.LogMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkLogMetric(o[0]); checkLogMetric(o[1]); @@ -243,7 +243,7 @@ var o = new api.ListLogMetricsResponse(); buildCounterListLogMetricsResponse++; if (buildCounterListLogMetricsResponse < 3) { - o.metrics = buildUnnamed3854(); + o.metrics = buildUnnamed3328(); o.nextPageToken = "foo"; } buildCounterListLogMetricsResponse--; @@ -253,20 +253,20 @@ checkListLogMetricsResponse(api.ListLogMetricsResponse o) { buildCounterListLogMetricsResponse++; if (buildCounterListLogMetricsResponse < 3) { - checkUnnamed3854(o.metrics); + checkUnnamed3328(o.metrics); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLogMetricsResponse--; } -buildUnnamed3855() { +buildUnnamed3329() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3855(core.List<core.String> o) { +checkUnnamed3329(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -277,7 +277,7 @@ var o = new api.ListLogsResponse(); buildCounterListLogsResponse++; if (buildCounterListLogsResponse < 3) { - o.logNames = buildUnnamed3855(); + o.logNames = buildUnnamed3329(); o.nextPageToken = "foo"; } buildCounterListLogsResponse--; @@ -287,20 +287,20 @@ checkListLogsResponse(api.ListLogsResponse o) { buildCounterListLogsResponse++; if (buildCounterListLogsResponse < 3) { - checkUnnamed3855(o.logNames); + checkUnnamed3329(o.logNames); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLogsResponse--; } -buildUnnamed3856() { +buildUnnamed3330() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed3856(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed3330(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); @@ -312,7 +312,7 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { o.nextPageToken = "foo"; - o.resourceDescriptors = buildUnnamed3856(); + o.resourceDescriptors = buildUnnamed3330(); } buildCounterListMonitoredResourceDescriptorsResponse--; return o; @@ -322,19 +322,19 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3856(o.resourceDescriptors); + checkUnnamed3330(o.resourceDescriptors); } buildCounterListMonitoredResourceDescriptorsResponse--; } -buildUnnamed3857() { +buildUnnamed3331() { var o = new core.List<api.LogSink>(); o.add(buildLogSink()); o.add(buildLogSink()); return o; } -checkUnnamed3857(core.List<api.LogSink> o) { +checkUnnamed3331(core.List<api.LogSink> o) { unittest.expect(o, unittest.hasLength(2)); checkLogSink(o[0]); checkLogSink(o[1]); @@ -346,7 +346,7 @@ buildCounterListSinksResponse++; if (buildCounterListSinksResponse < 3) { o.nextPageToken = "foo"; - o.sinks = buildUnnamed3857(); + o.sinks = buildUnnamed3331(); } buildCounterListSinksResponse--; return o; @@ -356,45 +356,45 @@ buildCounterListSinksResponse++; if (buildCounterListSinksResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3857(o.sinks); + checkUnnamed3331(o.sinks); } buildCounterListSinksResponse--; } -buildUnnamed3858() { +buildUnnamed3332() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3858(core.Map<core.String, core.Object> o) { +checkUnnamed3332(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3859() { +buildUnnamed3333() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3859(core.Map<core.String, core.String> o) { +checkUnnamed3333(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3860() { +buildUnnamed3334() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3860(core.Map<core.String, core.Object> o) { +checkUnnamed3334(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -407,11 +407,11 @@ if (buildCounterLogEntry < 3) { o.httpRequest = buildHttpRequest(); o.insertId = "foo"; - o.jsonPayload = buildUnnamed3858(); - o.labels = buildUnnamed3859(); + o.jsonPayload = buildUnnamed3332(); + o.labels = buildUnnamed3333(); o.logName = "foo"; o.operation = buildLogEntryOperation(); - o.protoPayload = buildUnnamed3860(); + o.protoPayload = buildUnnamed3334(); o.receiveTimestamp = "foo"; o.resource = buildMonitoredResource(); o.severity = "foo"; @@ -429,11 +429,11 @@ if (buildCounterLogEntry < 3) { checkHttpRequest(o.httpRequest); unittest.expect(o.insertId, unittest.equals('foo')); - checkUnnamed3858(o.jsonPayload); - checkUnnamed3859(o.labels); + checkUnnamed3332(o.jsonPayload); + checkUnnamed3333(o.labels); unittest.expect(o.logName, unittest.equals('foo')); checkLogEntryOperation(o.operation); - checkUnnamed3860(o.protoPayload); + checkUnnamed3334(o.protoPayload); unittest.expect(o.receiveTimestamp, unittest.equals('foo')); checkMonitoredResource(o.resource); unittest.expect(o.severity, unittest.equals('foo')); @@ -576,14 +576,14 @@ buildCounterLogSink--; } -buildUnnamed3861() { +buildUnnamed3335() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3861(core.Map<core.String, core.String> o) { +checkUnnamed3335(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -594,7 +594,7 @@ var o = new api.MonitoredResource(); buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - o.labels = buildUnnamed3861(); + o.labels = buildUnnamed3335(); o.type = "foo"; } buildCounterMonitoredResource--; @@ -604,20 +604,20 @@ checkMonitoredResource(api.MonitoredResource o) { buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - checkUnnamed3861(o.labels); + checkUnnamed3335(o.labels); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResource--; } -buildUnnamed3862() { +buildUnnamed3336() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed3862(core.List<api.LabelDescriptor> o) { +checkUnnamed3336(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -630,7 +630,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed3862(); + o.labels = buildUnnamed3336(); o.name = "foo"; o.type = "foo"; } @@ -643,34 +643,34 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed3862(o.labels); + checkUnnamed3336(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResourceDescriptor--; } -buildUnnamed3863() { +buildUnnamed3337() { var o = new core.List<api.LogLine>(); o.add(buildLogLine()); o.add(buildLogLine()); return o; } -checkUnnamed3863(core.List<api.LogLine> o) { +checkUnnamed3337(core.List<api.LogLine> o) { unittest.expect(o, unittest.hasLength(2)); checkLogLine(o[0]); checkLogLine(o[1]); } -buildUnnamed3864() { +buildUnnamed3338() { var o = new core.List<api.SourceReference>(); o.add(buildSourceReference()); o.add(buildSourceReference()); return o; } -checkUnnamed3864(core.List<api.SourceReference> o) { +checkUnnamed3338(core.List<api.SourceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceReference(o[0]); checkSourceReference(o[1]); @@ -693,7 +693,7 @@ o.instanceIndex = 42; o.ip = "foo"; o.latency = "foo"; - o.line = buildUnnamed3863(); + o.line = buildUnnamed3337(); o.megaCycles = "foo"; o.method = "foo"; o.moduleId = "foo"; @@ -703,7 +703,7 @@ o.requestId = "foo"; o.resource = "foo"; o.responseSize = "foo"; - o.sourceReference = buildUnnamed3864(); + o.sourceReference = buildUnnamed3338(); o.startTime = "foo"; o.status = 42; o.taskName = "foo"; @@ -733,7 +733,7 @@ unittest.expect(o.instanceIndex, unittest.equals(42)); unittest.expect(o.ip, unittest.equals('foo')); unittest.expect(o.latency, unittest.equals('foo')); - checkUnnamed3863(o.line); + checkUnnamed3337(o.line); unittest.expect(o.megaCycles, unittest.equals('foo')); unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.moduleId, unittest.equals('foo')); @@ -743,7 +743,7 @@ unittest.expect(o.requestId, unittest.equals('foo')); unittest.expect(o.resource, unittest.equals('foo')); unittest.expect(o.responseSize, unittest.equals('foo')); - checkUnnamed3864(o.sourceReference); + checkUnnamed3338(o.sourceReference); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.status, unittest.equals(42)); unittest.expect(o.taskName, unittest.equals('foo')); @@ -801,27 +801,27 @@ buildCounterSourceReference--; } -buildUnnamed3865() { +buildUnnamed3339() { var o = new core.List<api.LogEntry>(); o.add(buildLogEntry()); o.add(buildLogEntry()); return o; } -checkUnnamed3865(core.List<api.LogEntry> o) { +checkUnnamed3339(core.List<api.LogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLogEntry(o[0]); checkLogEntry(o[1]); } -buildUnnamed3866() { +buildUnnamed3340() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3866(core.Map<core.String, core.String> o) { +checkUnnamed3340(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -832,8 +832,8 @@ var o = new api.WriteLogEntriesRequest(); buildCounterWriteLogEntriesRequest++; if (buildCounterWriteLogEntriesRequest < 3) { - o.entries = buildUnnamed3865(); - o.labels = buildUnnamed3866(); + o.entries = buildUnnamed3339(); + o.labels = buildUnnamed3340(); o.logName = "foo"; o.partialSuccess = true; o.resource = buildMonitoredResource(); @@ -845,8 +845,8 @@ checkWriteLogEntriesRequest(api.WriteLogEntriesRequest o) { buildCounterWriteLogEntriesRequest++; if (buildCounterWriteLogEntriesRequest < 3) { - checkUnnamed3865(o.entries); - checkUnnamed3866(o.labels); + checkUnnamed3339(o.entries); + checkUnnamed3340(o.labels); unittest.expect(o.logName, unittest.equals('foo')); unittest.expect(o.partialSuccess, unittest.isTrue); checkMonitoredResource(o.resource); @@ -1077,7 +1077,7 @@ var mock = new HttpServerMock(); api.BillingAccountsLogsResourceApi res = new api.LoggingApi(mock).billingAccounts.logs; var arg_logName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1112,7 +1112,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_logName).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_logName).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1124,7 +1124,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1161,7 +1161,7 @@ var resp = convert.JSON.encode(buildListLogsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListLogsResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListLogsResponse response) { checkListLogsResponse(response); }))); }); @@ -1175,7 +1175,7 @@ var mock = new HttpServerMock(); api.EntriesResourceApi res = new api.LoggingApi(mock).entries; var arg_request = buildListLogEntriesRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ListLogEntriesRequest.fromJson(json); checkListLogEntriesRequest(obj); @@ -1212,7 +1212,7 @@ var resp = convert.JSON.encode(buildListLogEntriesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_request).then(unittest.expectAsync(((api.ListLogEntriesResponse response) { + res.list(arg_request).then(unittest.expectAsync1(((api.ListLogEntriesResponse response) { checkListLogEntriesResponse(response); }))); }); @@ -1222,7 +1222,7 @@ var mock = new HttpServerMock(); api.EntriesResourceApi res = new api.LoggingApi(mock).entries; var arg_request = buildWriteLogEntriesRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.WriteLogEntriesRequest.fromJson(json); checkWriteLogEntriesRequest(obj); @@ -1259,7 +1259,7 @@ var resp = convert.JSON.encode(buildWriteLogEntriesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.write(arg_request).then(unittest.expectAsync(((api.WriteLogEntriesResponse response) { + res.write(arg_request).then(unittest.expectAsync1(((api.WriteLogEntriesResponse response) { checkWriteLogEntriesResponse(response); }))); }); @@ -1274,7 +1274,7 @@ api.MonitoredResourceDescriptorsResourceApi res = new api.LoggingApi(mock).monitoredResourceDescriptors; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1310,7 +1310,7 @@ var resp = convert.JSON.encode(buildListMonitoredResourceDescriptorsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListMonitoredResourceDescriptorsResponse response) { + res.list(pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListMonitoredResourceDescriptorsResponse response) { checkListMonitoredResourceDescriptorsResponse(response); }))); }); @@ -1324,7 +1324,7 @@ var mock = new HttpServerMock(); api.OrganizationsLogsResourceApi res = new api.LoggingApi(mock).organizations.logs; var arg_logName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1359,7 +1359,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_logName).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_logName).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1371,7 +1371,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1408,7 +1408,7 @@ var resp = convert.JSON.encode(buildListLogsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListLogsResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListLogsResponse response) { checkListLogsResponse(response); }))); }); @@ -1422,7 +1422,7 @@ var mock = new HttpServerMock(); api.ProjectsLogsResourceApi res = new api.LoggingApi(mock).projects.logs; var arg_logName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1457,7 +1457,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_logName).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_logName).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1469,7 +1469,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1506,7 +1506,7 @@ var resp = convert.JSON.encode(buildListLogsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListLogsResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListLogsResponse response) { checkListLogsResponse(response); }))); }); @@ -1521,7 +1521,7 @@ api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.metrics; var arg_request = buildLogMetric(); var arg_parent = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LogMetric.fromJson(json); checkLogMetric(obj); @@ -1559,7 +1559,7 @@ var resp = convert.JSON.encode(buildLogMetric()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_parent).then(unittest.expectAsync(((api.LogMetric response) { + res.create(arg_request, arg_parent).then(unittest.expectAsync1(((api.LogMetric response) { checkLogMetric(response); }))); }); @@ -1569,7 +1569,7 @@ var mock = new HttpServerMock(); api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.metrics; var arg_metricName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1604,7 +1604,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_metricName).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_metricName).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1614,7 +1614,7 @@ var mock = new HttpServerMock(); api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.metrics; var arg_metricName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1649,7 +1649,7 @@ var resp = convert.JSON.encode(buildLogMetric()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_metricName).then(unittest.expectAsync(((api.LogMetric response) { + res.get(arg_metricName).then(unittest.expectAsync1(((api.LogMetric response) { checkLogMetric(response); }))); }); @@ -1661,7 +1661,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1698,7 +1698,7 @@ var resp = convert.JSON.encode(buildListLogMetricsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListLogMetricsResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListLogMetricsResponse response) { checkListLogMetricsResponse(response); }))); }); @@ -1709,7 +1709,7 @@ api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.metrics; var arg_request = buildLogMetric(); var arg_metricName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LogMetric.fromJson(json); checkLogMetric(obj); @@ -1747,7 +1747,7 @@ var resp = convert.JSON.encode(buildLogMetric()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_metricName).then(unittest.expectAsync(((api.LogMetric response) { + res.update(arg_request, arg_metricName).then(unittest.expectAsync1(((api.LogMetric response) { checkLogMetric(response); }))); }); @@ -1763,7 +1763,7 @@ var arg_request = buildLogSink(); var arg_parent = "foo"; var arg_uniqueWriterIdentity = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LogSink.fromJson(json); checkLogSink(obj); @@ -1802,7 +1802,7 @@ var resp = convert.JSON.encode(buildLogSink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_parent, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync(((api.LogSink response) { + res.create(arg_request, arg_parent, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync1(((api.LogSink response) { checkLogSink(response); }))); }); @@ -1812,7 +1812,7 @@ var mock = new HttpServerMock(); api.ProjectsSinksResourceApi res = new api.LoggingApi(mock).projects.sinks; var arg_sinkName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1847,7 +1847,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_sinkName).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_sinkName).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1857,7 +1857,7 @@ var mock = new HttpServerMock(); api.ProjectsSinksResourceApi res = new api.LoggingApi(mock).projects.sinks; var arg_sinkName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1892,7 +1892,7 @@ var resp = convert.JSON.encode(buildLogSink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_sinkName).then(unittest.expectAsync(((api.LogSink response) { + res.get(arg_sinkName).then(unittest.expectAsync1(((api.LogSink response) { checkLogSink(response); }))); }); @@ -1904,7 +1904,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1941,7 +1941,7 @@ var resp = convert.JSON.encode(buildListSinksResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListSinksResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListSinksResponse response) { checkListSinksResponse(response); }))); }); @@ -1953,7 +1953,7 @@ var arg_request = buildLogSink(); var arg_sinkName = "foo"; var arg_uniqueWriterIdentity = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LogSink.fromJson(json); checkLogSink(obj); @@ -1992,7 +1992,7 @@ var resp = convert.JSON.encode(buildLogSink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_sinkName, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync(((api.LogSink response) { + res.update(arg_request, arg_sinkName, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync1(((api.LogSink response) { checkLogSink(response); }))); });
diff --git a/generated/googleapis_beta/test/proximitybeacon/v1beta1_test.dart b/generated/googleapis_beta/test/proximitybeacon/v1beta1_test.dart index 3e53426..0b6ab63 100644 --- a/generated/googleapis_beta/test/proximitybeacon/v1beta1_test.dart +++ b/generated/googleapis_beta/test/proximitybeacon/v1beta1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/proximitybeacon/v1beta1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -93,14 +93,14 @@ buildCounterAttachmentInfo--; } -buildUnnamed3828() { +buildUnnamed3302() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3828(core.Map<core.String, core.String> o) { +checkUnnamed3302(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -119,7 +119,7 @@ o.indoorLevel = buildIndoorLevel(); o.latLng = buildLatLng(); o.placeId = "foo"; - o.properties = buildUnnamed3828(); + o.properties = buildUnnamed3302(); o.provisioningKey = "foo"; o.status = "foo"; } @@ -138,7 +138,7 @@ checkIndoorLevel(o.indoorLevel); checkLatLng(o.latLng); unittest.expect(o.placeId, unittest.equals('foo')); - checkUnnamed3828(o.properties); + checkUnnamed3302(o.properties); unittest.expect(o.provisioningKey, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); } @@ -170,14 +170,14 @@ buildCounterBeaconAttachment--; } -buildUnnamed3829() { +buildUnnamed3303() { var o = new core.List<api.AttachmentInfo>(); o.add(buildAttachmentInfo()); o.add(buildAttachmentInfo()); return o; } -checkUnnamed3829(core.List<api.AttachmentInfo> o) { +checkUnnamed3303(core.List<api.AttachmentInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachmentInfo(o[0]); checkAttachmentInfo(o[1]); @@ -189,7 +189,7 @@ buildCounterBeaconInfo++; if (buildCounterBeaconInfo < 3) { o.advertisedId = buildAdvertisedId(); - o.attachments = buildUnnamed3829(); + o.attachments = buildUnnamed3303(); o.beaconName = "foo"; } buildCounterBeaconInfo--; @@ -200,7 +200,7 @@ buildCounterBeaconInfo++; if (buildCounterBeaconInfo < 3) { checkAdvertisedId(o.advertisedId); - checkUnnamed3829(o.attachments); + checkUnnamed3303(o.attachments); unittest.expect(o.beaconName, unittest.equals('foo')); } buildCounterBeaconInfo--; @@ -248,14 +248,14 @@ buildCounterDeleteAttachmentsResponse--; } -buildUnnamed3830() { +buildUnnamed3304() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3830(core.List<core.String> o) { +checkUnnamed3304(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -266,7 +266,7 @@ var o = new api.Diagnostics(); buildCounterDiagnostics++; if (buildCounterDiagnostics < 3) { - o.alerts = buildUnnamed3830(); + o.alerts = buildUnnamed3304(); o.beaconName = "foo"; o.estimatedLowBatteryDate = buildDate(); } @@ -277,7 +277,7 @@ checkDiagnostics(api.Diagnostics o) { buildCounterDiagnostics++; if (buildCounterDiagnostics < 3) { - checkUnnamed3830(o.alerts); + checkUnnamed3304(o.alerts); unittest.expect(o.beaconName, unittest.equals('foo')); checkDate(o.estimatedLowBatteryDate); } @@ -353,27 +353,27 @@ buildCounterEphemeralIdRegistrationParams--; } -buildUnnamed3831() { +buildUnnamed3305() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3831(core.List<core.String> o) { +checkUnnamed3305(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3832() { +buildUnnamed3306() { var o = new core.List<api.Observation>(); o.add(buildObservation()); o.add(buildObservation()); return o; } -checkUnnamed3832(core.List<api.Observation> o) { +checkUnnamed3306(core.List<api.Observation> o) { unittest.expect(o, unittest.hasLength(2)); checkObservation(o[0]); checkObservation(o[1]); @@ -384,8 +384,8 @@ var o = new api.GetInfoForObservedBeaconsRequest(); buildCounterGetInfoForObservedBeaconsRequest++; if (buildCounterGetInfoForObservedBeaconsRequest < 3) { - o.namespacedTypes = buildUnnamed3831(); - o.observations = buildUnnamed3832(); + o.namespacedTypes = buildUnnamed3305(); + o.observations = buildUnnamed3306(); } buildCounterGetInfoForObservedBeaconsRequest--; return o; @@ -394,20 +394,20 @@ checkGetInfoForObservedBeaconsRequest(api.GetInfoForObservedBeaconsRequest o) { buildCounterGetInfoForObservedBeaconsRequest++; if (buildCounterGetInfoForObservedBeaconsRequest < 3) { - checkUnnamed3831(o.namespacedTypes); - checkUnnamed3832(o.observations); + checkUnnamed3305(o.namespacedTypes); + checkUnnamed3306(o.observations); } buildCounterGetInfoForObservedBeaconsRequest--; } -buildUnnamed3833() { +buildUnnamed3307() { var o = new core.List<api.BeaconInfo>(); o.add(buildBeaconInfo()); o.add(buildBeaconInfo()); return o; } -checkUnnamed3833(core.List<api.BeaconInfo> o) { +checkUnnamed3307(core.List<api.BeaconInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkBeaconInfo(o[0]); checkBeaconInfo(o[1]); @@ -418,7 +418,7 @@ var o = new api.GetInfoForObservedBeaconsResponse(); buildCounterGetInfoForObservedBeaconsResponse++; if (buildCounterGetInfoForObservedBeaconsResponse < 3) { - o.beacons = buildUnnamed3833(); + o.beacons = buildUnnamed3307(); } buildCounterGetInfoForObservedBeaconsResponse--; return o; @@ -427,7 +427,7 @@ checkGetInfoForObservedBeaconsResponse(api.GetInfoForObservedBeaconsResponse o) { buildCounterGetInfoForObservedBeaconsResponse++; if (buildCounterGetInfoForObservedBeaconsResponse < 3) { - checkUnnamed3833(o.beacons); + checkUnnamed3307(o.beacons); } buildCounterGetInfoForObservedBeaconsResponse--; } @@ -472,14 +472,14 @@ buildCounterLatLng--; } -buildUnnamed3834() { +buildUnnamed3308() { var o = new core.List<api.BeaconAttachment>(); o.add(buildBeaconAttachment()); o.add(buildBeaconAttachment()); return o; } -checkUnnamed3834(core.List<api.BeaconAttachment> o) { +checkUnnamed3308(core.List<api.BeaconAttachment> o) { unittest.expect(o, unittest.hasLength(2)); checkBeaconAttachment(o[0]); checkBeaconAttachment(o[1]); @@ -490,7 +490,7 @@ var o = new api.ListBeaconAttachmentsResponse(); buildCounterListBeaconAttachmentsResponse++; if (buildCounterListBeaconAttachmentsResponse < 3) { - o.attachments = buildUnnamed3834(); + o.attachments = buildUnnamed3308(); } buildCounterListBeaconAttachmentsResponse--; return o; @@ -499,19 +499,19 @@ checkListBeaconAttachmentsResponse(api.ListBeaconAttachmentsResponse o) { buildCounterListBeaconAttachmentsResponse++; if (buildCounterListBeaconAttachmentsResponse < 3) { - checkUnnamed3834(o.attachments); + checkUnnamed3308(o.attachments); } buildCounterListBeaconAttachmentsResponse--; } -buildUnnamed3835() { +buildUnnamed3309() { var o = new core.List<api.Beacon>(); o.add(buildBeacon()); o.add(buildBeacon()); return o; } -checkUnnamed3835(core.List<api.Beacon> o) { +checkUnnamed3309(core.List<api.Beacon> o) { unittest.expect(o, unittest.hasLength(2)); checkBeacon(o[0]); checkBeacon(o[1]); @@ -522,7 +522,7 @@ var o = new api.ListBeaconsResponse(); buildCounterListBeaconsResponse++; if (buildCounterListBeaconsResponse < 3) { - o.beacons = buildUnnamed3835(); + o.beacons = buildUnnamed3309(); o.nextPageToken = "foo"; o.totalCount = "foo"; } @@ -533,21 +533,21 @@ checkListBeaconsResponse(api.ListBeaconsResponse o) { buildCounterListBeaconsResponse++; if (buildCounterListBeaconsResponse < 3) { - checkUnnamed3835(o.beacons); + checkUnnamed3309(o.beacons); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalCount, unittest.equals('foo')); } buildCounterListBeaconsResponse--; } -buildUnnamed3836() { +buildUnnamed3310() { var o = new core.List<api.Diagnostics>(); o.add(buildDiagnostics()); o.add(buildDiagnostics()); return o; } -checkUnnamed3836(core.List<api.Diagnostics> o) { +checkUnnamed3310(core.List<api.Diagnostics> o) { unittest.expect(o, unittest.hasLength(2)); checkDiagnostics(o[0]); checkDiagnostics(o[1]); @@ -558,7 +558,7 @@ var o = new api.ListDiagnosticsResponse(); buildCounterListDiagnosticsResponse++; if (buildCounterListDiagnosticsResponse < 3) { - o.diagnostics = buildUnnamed3836(); + o.diagnostics = buildUnnamed3310(); o.nextPageToken = "foo"; } buildCounterListDiagnosticsResponse--; @@ -568,20 +568,20 @@ checkListDiagnosticsResponse(api.ListDiagnosticsResponse o) { buildCounterListDiagnosticsResponse++; if (buildCounterListDiagnosticsResponse < 3) { - checkUnnamed3836(o.diagnostics); + checkUnnamed3310(o.diagnostics); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDiagnosticsResponse--; } -buildUnnamed3837() { +buildUnnamed3311() { var o = new core.List<api.Namespace>(); o.add(buildNamespace()); o.add(buildNamespace()); return o; } -checkUnnamed3837(core.List<api.Namespace> o) { +checkUnnamed3311(core.List<api.Namespace> o) { unittest.expect(o, unittest.hasLength(2)); checkNamespace(o[0]); checkNamespace(o[1]); @@ -592,7 +592,7 @@ var o = new api.ListNamespacesResponse(); buildCounterListNamespacesResponse++; if (buildCounterListNamespacesResponse < 3) { - o.namespaces = buildUnnamed3837(); + o.namespaces = buildUnnamed3311(); } buildCounterListNamespacesResponse--; return o; @@ -601,7 +601,7 @@ checkListNamespacesResponse(api.ListNamespacesResponse o) { buildCounterListNamespacesResponse++; if (buildCounterListNamespacesResponse < 3) { - checkUnnamed3837(o.namespaces); + checkUnnamed3311(o.namespaces); } buildCounterListNamespacesResponse--; } @@ -847,7 +847,7 @@ var mock = new HttpServerMock(); api.BeaconinfoResourceApi res = new api.ProximitybeaconApi(mock).beaconinfo; var arg_request = buildGetInfoForObservedBeaconsRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GetInfoForObservedBeaconsRequest.fromJson(json); checkGetInfoForObservedBeaconsRequest(obj); @@ -884,7 +884,7 @@ var resp = convert.JSON.encode(buildGetInfoForObservedBeaconsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getforobserved(arg_request).then(unittest.expectAsync(((api.GetInfoForObservedBeaconsResponse response) { + res.getforobserved(arg_request).then(unittest.expectAsync1(((api.GetInfoForObservedBeaconsResponse response) { checkGetInfoForObservedBeaconsResponse(response); }))); }); @@ -899,7 +899,7 @@ api.BeaconsResourceApi res = new api.ProximitybeaconApi(mock).beacons; var arg_beaconName = "foo"; var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -935,7 +935,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.activate(arg_beaconName, projectId: arg_projectId).then(unittest.expectAsync(((api.Empty response) { + res.activate(arg_beaconName, projectId: arg_projectId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -946,7 +946,7 @@ api.BeaconsResourceApi res = new api.ProximitybeaconApi(mock).beacons; var arg_beaconName = "foo"; var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -982,7 +982,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.deactivate(arg_beaconName, projectId: arg_projectId).then(unittest.expectAsync(((api.Empty response) { + res.deactivate(arg_beaconName, projectId: arg_projectId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -993,7 +993,7 @@ api.BeaconsResourceApi res = new api.ProximitybeaconApi(mock).beacons; var arg_beaconName = "foo"; var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1029,7 +1029,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.decommission(arg_beaconName, projectId: arg_projectId).then(unittest.expectAsync(((api.Empty response) { + res.decommission(arg_beaconName, projectId: arg_projectId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1040,7 +1040,7 @@ api.BeaconsResourceApi res = new api.ProximitybeaconApi(mock).beacons; var arg_beaconName = "foo"; var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1076,7 +1076,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_beaconName, projectId: arg_projectId).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_beaconName, projectId: arg_projectId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1087,7 +1087,7 @@ api.BeaconsResourceApi res = new api.ProximitybeaconApi(mock).beacons; var arg_beaconName = "foo"; var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1123,7 +1123,7 @@ var resp = convert.JSON.encode(buildBeacon()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_beaconName, projectId: arg_projectId).then(unittest.expectAsync(((api.Beacon response) { + res.get(arg_beaconName, projectId: arg_projectId).then(unittest.expectAsync1(((api.Beacon response) { checkBeacon(response); }))); }); @@ -1136,7 +1136,7 @@ var arg_q = "foo"; var arg_pageSize = 42; var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1174,7 +1174,7 @@ var resp = convert.JSON.encode(buildListBeaconsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(pageToken: arg_pageToken, q: arg_q, pageSize: arg_pageSize, projectId: arg_projectId).then(unittest.expectAsync(((api.ListBeaconsResponse response) { + res.list(pageToken: arg_pageToken, q: arg_q, pageSize: arg_pageSize, projectId: arg_projectId).then(unittest.expectAsync1(((api.ListBeaconsResponse response) { checkListBeaconsResponse(response); }))); }); @@ -1185,7 +1185,7 @@ api.BeaconsResourceApi res = new api.ProximitybeaconApi(mock).beacons; var arg_request = buildBeacon(); var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Beacon.fromJson(json); checkBeacon(obj); @@ -1223,7 +1223,7 @@ var resp = convert.JSON.encode(buildBeacon()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.register(arg_request, projectId: arg_projectId).then(unittest.expectAsync(((api.Beacon response) { + res.register(arg_request, projectId: arg_projectId).then(unittest.expectAsync1(((api.Beacon response) { checkBeacon(response); }))); }); @@ -1235,7 +1235,7 @@ var arg_request = buildBeacon(); var arg_beaconName = "foo"; var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Beacon.fromJson(json); checkBeacon(obj); @@ -1274,7 +1274,7 @@ var resp = convert.JSON.encode(buildBeacon()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_beaconName, projectId: arg_projectId).then(unittest.expectAsync(((api.Beacon response) { + res.update(arg_request, arg_beaconName, projectId: arg_projectId).then(unittest.expectAsync1(((api.Beacon response) { checkBeacon(response); }))); }); @@ -1290,7 +1290,7 @@ var arg_beaconName = "foo"; var arg_namespacedType = "foo"; var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1327,7 +1327,7 @@ var resp = convert.JSON.encode(buildDeleteAttachmentsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.batchDelete(arg_beaconName, namespacedType: arg_namespacedType, projectId: arg_projectId).then(unittest.expectAsync(((api.DeleteAttachmentsResponse response) { + res.batchDelete(arg_beaconName, namespacedType: arg_namespacedType, projectId: arg_projectId).then(unittest.expectAsync1(((api.DeleteAttachmentsResponse response) { checkDeleteAttachmentsResponse(response); }))); }); @@ -1339,7 +1339,7 @@ var arg_request = buildBeaconAttachment(); var arg_beaconName = "foo"; var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.BeaconAttachment.fromJson(json); checkBeaconAttachment(obj); @@ -1378,7 +1378,7 @@ var resp = convert.JSON.encode(buildBeaconAttachment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_beaconName, projectId: arg_projectId).then(unittest.expectAsync(((api.BeaconAttachment response) { + res.create(arg_request, arg_beaconName, projectId: arg_projectId).then(unittest.expectAsync1(((api.BeaconAttachment response) { checkBeaconAttachment(response); }))); }); @@ -1389,7 +1389,7 @@ api.BeaconsAttachmentsResourceApi res = new api.ProximitybeaconApi(mock).beacons.attachments; var arg_attachmentName = "foo"; var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1425,7 +1425,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_attachmentName, projectId: arg_projectId).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_attachmentName, projectId: arg_projectId).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1435,9 +1435,9 @@ var mock = new HttpServerMock(); api.BeaconsAttachmentsResourceApi res = new api.ProximitybeaconApi(mock).beacons.attachments; var arg_beaconName = "foo"; - var arg_namespacedType = "foo"; var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_namespacedType = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1464,8 +1464,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["namespacedType"].first, unittest.equals(arg_namespacedType)); unittest.expect(queryMap["projectId"].first, unittest.equals(arg_projectId)); + unittest.expect(queryMap["namespacedType"].first, unittest.equals(arg_namespacedType)); var h = { @@ -1474,7 +1474,7 @@ var resp = convert.JSON.encode(buildListBeaconAttachmentsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_beaconName, namespacedType: arg_namespacedType, projectId: arg_projectId).then(unittest.expectAsync(((api.ListBeaconAttachmentsResponse response) { + res.list(arg_beaconName, projectId: arg_projectId, namespacedType: arg_namespacedType).then(unittest.expectAsync1(((api.ListBeaconAttachmentsResponse response) { checkListBeaconAttachmentsResponse(response); }))); }); @@ -1488,11 +1488,11 @@ var mock = new HttpServerMock(); api.BeaconsDiagnosticsResourceApi res = new api.ProximitybeaconApi(mock).beacons.diagnostics; var arg_beaconName = "foo"; + var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_alertFilter = "foo"; var arg_projectId = "foo"; - var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1519,10 +1519,10 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["alertFilter"].first, unittest.equals(arg_alertFilter)); unittest.expect(queryMap["projectId"].first, unittest.equals(arg_projectId)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -1531,7 +1531,7 @@ var resp = convert.JSON.encode(buildListDiagnosticsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_beaconName, pageSize: arg_pageSize, alertFilter: arg_alertFilter, projectId: arg_projectId, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListDiagnosticsResponse response) { + res.list(arg_beaconName, pageToken: arg_pageToken, pageSize: arg_pageSize, alertFilter: arg_alertFilter, projectId: arg_projectId).then(unittest.expectAsync1(((api.ListDiagnosticsResponse response) { checkListDiagnosticsResponse(response); }))); }); @@ -1545,7 +1545,7 @@ var mock = new HttpServerMock(); api.NamespacesResourceApi res = new api.ProximitybeaconApi(mock).namespaces; var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1580,7 +1580,7 @@ var resp = convert.JSON.encode(buildListNamespacesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(projectId: arg_projectId).then(unittest.expectAsync(((api.ListNamespacesResponse response) { + res.list(projectId: arg_projectId).then(unittest.expectAsync1(((api.ListNamespacesResponse response) { checkListNamespacesResponse(response); }))); }); @@ -1592,7 +1592,7 @@ var arg_request = buildNamespace(); var arg_namespaceName = "foo"; var arg_projectId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Namespace.fromJson(json); checkNamespace(obj); @@ -1631,7 +1631,7 @@ var resp = convert.JSON.encode(buildNamespace()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_namespaceName, projectId: arg_projectId).then(unittest.expectAsync(((api.Namespace response) { + res.update(arg_request, arg_namespaceName, projectId: arg_projectId).then(unittest.expectAsync1(((api.Namespace response) { checkNamespace(response); }))); }); @@ -1644,7 +1644,7 @@ var mock = new HttpServerMock(); api.V1beta1ResourceApi res = new api.ProximitybeaconApi(mock).v1beta1; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1678,7 +1678,7 @@ var resp = convert.JSON.encode(buildEphemeralIdRegistrationParams()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getEidparams().then(unittest.expectAsync(((api.EphemeralIdRegistrationParams response) { + res.getEidparams().then(unittest.expectAsync1(((api.EphemeralIdRegistrationParams response) { checkEphemeralIdRegistrationParams(response); }))); });
diff --git a/generated/googleapis_beta/test/pubsub/v1beta2_test.dart b/generated/googleapis_beta/test/pubsub/v1beta2_test.dart index 7720b54..9503b8c 100644 --- a/generated/googleapis_beta/test/pubsub/v1beta2_test.dart +++ b/generated/googleapis_beta/test/pubsub/v1beta2_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/pubsub/v1beta2.dart' as api; @@ -46,19 +46,19 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3718() { +buildUnnamed3192() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3718(core.List<core.String> o) { +checkUnnamed3192(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -69,7 +69,7 @@ var o = new api.AcknowledgeRequest(); buildCounterAcknowledgeRequest++; if (buildCounterAcknowledgeRequest < 3) { - o.ackIds = buildUnnamed3718(); + o.ackIds = buildUnnamed3192(); } buildCounterAcknowledgeRequest--; return o; @@ -78,19 +78,19 @@ checkAcknowledgeRequest(api.AcknowledgeRequest o) { buildCounterAcknowledgeRequest++; if (buildCounterAcknowledgeRequest < 3) { - checkUnnamed3718(o.ackIds); + checkUnnamed3192(o.ackIds); } buildCounterAcknowledgeRequest--; } -buildUnnamed3719() { +buildUnnamed3193() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3719(core.List<core.String> o) { +checkUnnamed3193(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -101,7 +101,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed3719(); + o.members = buildUnnamed3193(); o.role = "foo"; } buildCounterBinding--; @@ -111,7 +111,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed3719(o.members); + checkUnnamed3193(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -134,14 +134,14 @@ buildCounterEmpty--; } -buildUnnamed3720() { +buildUnnamed3194() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed3720(core.List<api.Subscription> o) { +checkUnnamed3194(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -153,7 +153,7 @@ buildCounterListSubscriptionsResponse++; if (buildCounterListSubscriptionsResponse < 3) { o.nextPageToken = "foo"; - o.subscriptions = buildUnnamed3720(); + o.subscriptions = buildUnnamed3194(); } buildCounterListSubscriptionsResponse--; return o; @@ -163,19 +163,19 @@ buildCounterListSubscriptionsResponse++; if (buildCounterListSubscriptionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3720(o.subscriptions); + checkUnnamed3194(o.subscriptions); } buildCounterListSubscriptionsResponse--; } -buildUnnamed3721() { +buildUnnamed3195() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3721(core.List<core.String> o) { +checkUnnamed3195(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -187,7 +187,7 @@ buildCounterListTopicSubscriptionsResponse++; if (buildCounterListTopicSubscriptionsResponse < 3) { o.nextPageToken = "foo"; - o.subscriptions = buildUnnamed3721(); + o.subscriptions = buildUnnamed3195(); } buildCounterListTopicSubscriptionsResponse--; return o; @@ -197,19 +197,19 @@ buildCounterListTopicSubscriptionsResponse++; if (buildCounterListTopicSubscriptionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3721(o.subscriptions); + checkUnnamed3195(o.subscriptions); } buildCounterListTopicSubscriptionsResponse--; } -buildUnnamed3722() { +buildUnnamed3196() { var o = new core.List<api.Topic>(); o.add(buildTopic()); o.add(buildTopic()); return o; } -checkUnnamed3722(core.List<api.Topic> o) { +checkUnnamed3196(core.List<api.Topic> o) { unittest.expect(o, unittest.hasLength(2)); checkTopic(o[0]); checkTopic(o[1]); @@ -221,7 +221,7 @@ buildCounterListTopicsResponse++; if (buildCounterListTopicsResponse < 3) { o.nextPageToken = "foo"; - o.topics = buildUnnamed3722(); + o.topics = buildUnnamed3196(); } buildCounterListTopicsResponse--; return o; @@ -231,19 +231,19 @@ buildCounterListTopicsResponse++; if (buildCounterListTopicsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3722(o.topics); + checkUnnamed3196(o.topics); } buildCounterListTopicsResponse--; } -buildUnnamed3723() { +buildUnnamed3197() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3723(core.List<core.String> o) { +checkUnnamed3197(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -256,7 +256,7 @@ if (buildCounterModifyAckDeadlineRequest < 3) { o.ackDeadlineSeconds = 42; o.ackId = "foo"; - o.ackIds = buildUnnamed3723(); + o.ackIds = buildUnnamed3197(); } buildCounterModifyAckDeadlineRequest--; return o; @@ -267,7 +267,7 @@ if (buildCounterModifyAckDeadlineRequest < 3) { unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); unittest.expect(o.ackId, unittest.equals('foo')); - checkUnnamed3723(o.ackIds); + checkUnnamed3197(o.ackIds); } buildCounterModifyAckDeadlineRequest--; } @@ -291,14 +291,14 @@ buildCounterModifyPushConfigRequest--; } -buildUnnamed3724() { +buildUnnamed3198() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed3724(core.List<api.Binding> o) { +checkUnnamed3198(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -309,7 +309,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed3724(); + o.bindings = buildUnnamed3198(); o.etag = "foo"; o.version = 42; } @@ -320,21 +320,21 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed3724(o.bindings); + checkUnnamed3198(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed3725() { +buildUnnamed3199() { var o = new core.List<api.PubsubMessage>(); o.add(buildPubsubMessage()); o.add(buildPubsubMessage()); return o; } -checkUnnamed3725(core.List<api.PubsubMessage> o) { +checkUnnamed3199(core.List<api.PubsubMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkPubsubMessage(o[0]); checkPubsubMessage(o[1]); @@ -345,7 +345,7 @@ var o = new api.PublishRequest(); buildCounterPublishRequest++; if (buildCounterPublishRequest < 3) { - o.messages = buildUnnamed3725(); + o.messages = buildUnnamed3199(); } buildCounterPublishRequest--; return o; @@ -354,19 +354,19 @@ checkPublishRequest(api.PublishRequest o) { buildCounterPublishRequest++; if (buildCounterPublishRequest < 3) { - checkUnnamed3725(o.messages); + checkUnnamed3199(o.messages); } buildCounterPublishRequest--; } -buildUnnamed3726() { +buildUnnamed3200() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3726(core.List<core.String> o) { +checkUnnamed3200(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -377,7 +377,7 @@ var o = new api.PublishResponse(); buildCounterPublishResponse++; if (buildCounterPublishResponse < 3) { - o.messageIds = buildUnnamed3726(); + o.messageIds = buildUnnamed3200(); } buildCounterPublishResponse--; return o; @@ -386,19 +386,19 @@ checkPublishResponse(api.PublishResponse o) { buildCounterPublishResponse++; if (buildCounterPublishResponse < 3) { - checkUnnamed3726(o.messageIds); + checkUnnamed3200(o.messageIds); } buildCounterPublishResponse--; } -buildUnnamed3727() { +buildUnnamed3201() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3727(core.Map<core.String, core.String> o) { +checkUnnamed3201(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -409,7 +409,7 @@ var o = new api.PubsubMessage(); buildCounterPubsubMessage++; if (buildCounterPubsubMessage < 3) { - o.attributes = buildUnnamed3727(); + o.attributes = buildUnnamed3201(); o.data = "foo"; o.messageId = "foo"; o.publishTime = "foo"; @@ -421,7 +421,7 @@ checkPubsubMessage(api.PubsubMessage o) { buildCounterPubsubMessage++; if (buildCounterPubsubMessage < 3) { - checkUnnamed3727(o.attributes); + checkUnnamed3201(o.attributes); unittest.expect(o.data, unittest.equals('foo')); unittest.expect(o.messageId, unittest.equals('foo')); unittest.expect(o.publishTime, unittest.equals('foo')); @@ -450,14 +450,14 @@ buildCounterPullRequest--; } -buildUnnamed3728() { +buildUnnamed3202() { var o = new core.List<api.ReceivedMessage>(); o.add(buildReceivedMessage()); o.add(buildReceivedMessage()); return o; } -checkUnnamed3728(core.List<api.ReceivedMessage> o) { +checkUnnamed3202(core.List<api.ReceivedMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkReceivedMessage(o[0]); checkReceivedMessage(o[1]); @@ -468,7 +468,7 @@ var o = new api.PullResponse(); buildCounterPullResponse++; if (buildCounterPullResponse < 3) { - o.receivedMessages = buildUnnamed3728(); + o.receivedMessages = buildUnnamed3202(); } buildCounterPullResponse--; return o; @@ -477,19 +477,19 @@ checkPullResponse(api.PullResponse o) { buildCounterPullResponse++; if (buildCounterPullResponse < 3) { - checkUnnamed3728(o.receivedMessages); + checkUnnamed3202(o.receivedMessages); } buildCounterPullResponse--; } -buildUnnamed3729() { +buildUnnamed3203() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3729(core.Map<core.String, core.String> o) { +checkUnnamed3203(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -500,7 +500,7 @@ var o = new api.PushConfig(); buildCounterPushConfig++; if (buildCounterPushConfig < 3) { - o.attributes = buildUnnamed3729(); + o.attributes = buildUnnamed3203(); o.pushEndpoint = "foo"; } buildCounterPushConfig--; @@ -510,7 +510,7 @@ checkPushConfig(api.PushConfig o) { buildCounterPushConfig++; if (buildCounterPushConfig < 3) { - checkUnnamed3729(o.attributes); + checkUnnamed3203(o.attributes); unittest.expect(o.pushEndpoint, unittest.equals('foo')); } buildCounterPushConfig--; @@ -581,14 +581,14 @@ buildCounterSubscription--; } -buildUnnamed3730() { +buildUnnamed3204() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3730(core.List<core.String> o) { +checkUnnamed3204(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -599,7 +599,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed3730(); + o.permissions = buildUnnamed3204(); } buildCounterTestIamPermissionsRequest--; return o; @@ -608,19 +608,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed3730(o.permissions); + checkUnnamed3204(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed3731() { +buildUnnamed3205() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3731(core.List<core.String> o) { +checkUnnamed3205(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -631,7 +631,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed3731(); + o.permissions = buildUnnamed3205(); } buildCounterTestIamPermissionsResponse--; return o; @@ -640,7 +640,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed3731(o.permissions); + checkUnnamed3205(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -862,7 +862,7 @@ api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_request = buildAcknowledgeRequest(); var arg_subscription = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AcknowledgeRequest.fromJson(json); checkAcknowledgeRequest(obj); @@ -900,7 +900,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.acknowledge(arg_request, arg_subscription).then(unittest.expectAsync(((api.Empty response) { + res.acknowledge(arg_request, arg_subscription).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -911,7 +911,7 @@ api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_request = buildSubscription(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Subscription.fromJson(json); checkSubscription(obj); @@ -949,7 +949,7 @@ var resp = convert.JSON.encode(buildSubscription()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_name).then(unittest.expectAsync(((api.Subscription response) { + res.create(arg_request, arg_name).then(unittest.expectAsync1(((api.Subscription response) { checkSubscription(response); }))); }); @@ -959,7 +959,7 @@ var mock = new HttpServerMock(); api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_subscription = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -994,7 +994,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_subscription).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_subscription).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1004,7 +1004,7 @@ var mock = new HttpServerMock(); api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_subscription = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1039,7 +1039,7 @@ var resp = convert.JSON.encode(buildSubscription()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_subscription).then(unittest.expectAsync(((api.Subscription response) { + res.get(arg_subscription).then(unittest.expectAsync1(((api.Subscription response) { checkSubscription(response); }))); }); @@ -1049,7 +1049,7 @@ var mock = new HttpServerMock(); api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1084,7 +1084,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getIamPolicy(arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.getIamPolicy(arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -1094,9 +1094,9 @@ var mock = new HttpServerMock(); api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_project = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_pageSize = 42; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1123,8 +1123,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); var h = { @@ -1133,7 +1133,7 @@ var resp = convert.JSON.encode(buildListSubscriptionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListSubscriptionsResponse response) { + res.list(arg_project, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListSubscriptionsResponse response) { checkListSubscriptionsResponse(response); }))); }); @@ -1144,7 +1144,7 @@ api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_request = buildModifyAckDeadlineRequest(); var arg_subscription = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ModifyAckDeadlineRequest.fromJson(json); checkModifyAckDeadlineRequest(obj); @@ -1182,7 +1182,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.modifyAckDeadline(arg_request, arg_subscription).then(unittest.expectAsync(((api.Empty response) { + res.modifyAckDeadline(arg_request, arg_subscription).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1193,7 +1193,7 @@ api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_request = buildModifyPushConfigRequest(); var arg_subscription = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ModifyPushConfigRequest.fromJson(json); checkModifyPushConfigRequest(obj); @@ -1231,7 +1231,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.modifyPushConfig(arg_request, arg_subscription).then(unittest.expectAsync(((api.Empty response) { + res.modifyPushConfig(arg_request, arg_subscription).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1242,7 +1242,7 @@ api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_request = buildPullRequest(); var arg_subscription = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.PullRequest.fromJson(json); checkPullRequest(obj); @@ -1280,7 +1280,7 @@ var resp = convert.JSON.encode(buildPullResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.pull(arg_request, arg_subscription).then(unittest.expectAsync(((api.PullResponse response) { + res.pull(arg_request, arg_subscription).then(unittest.expectAsync1(((api.PullResponse response) { checkPullResponse(response); }))); }); @@ -1291,7 +1291,7 @@ api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_request = buildSetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetIamPolicyRequest.fromJson(json); checkSetIamPolicyRequest(obj); @@ -1329,7 +1329,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -1340,7 +1340,7 @@ api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_request = buildTestIamPermissionsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TestIamPermissionsRequest.fromJson(json); checkTestIamPermissionsRequest(obj); @@ -1378,7 +1378,7 @@ var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { checkTestIamPermissionsResponse(response); }))); }); @@ -1393,7 +1393,7 @@ api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topics; var arg_request = buildTopic(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Topic.fromJson(json); checkTopic(obj); @@ -1431,7 +1431,7 @@ var resp = convert.JSON.encode(buildTopic()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_name).then(unittest.expectAsync(((api.Topic response) { + res.create(arg_request, arg_name).then(unittest.expectAsync1(((api.Topic response) { checkTopic(response); }))); }); @@ -1441,7 +1441,7 @@ var mock = new HttpServerMock(); api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topics; var arg_topic = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1476,7 +1476,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_topic).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_topic).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1486,7 +1486,7 @@ var mock = new HttpServerMock(); api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topics; var arg_topic = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1521,7 +1521,7 @@ var resp = convert.JSON.encode(buildTopic()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_topic).then(unittest.expectAsync(((api.Topic response) { + res.get(arg_topic).then(unittest.expectAsync1(((api.Topic response) { checkTopic(response); }))); }); @@ -1531,7 +1531,7 @@ var mock = new HttpServerMock(); api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topics; var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1566,7 +1566,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getIamPolicy(arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.getIamPolicy(arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -1576,9 +1576,9 @@ var mock = new HttpServerMock(); api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topics; var arg_project = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var arg_pageSize = 42; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1605,8 +1605,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); var h = { @@ -1615,7 +1615,7 @@ var resp = convert.JSON.encode(buildListTopicsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListTopicsResponse response) { + res.list(arg_project, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListTopicsResponse response) { checkListTopicsResponse(response); }))); }); @@ -1626,7 +1626,7 @@ api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topics; var arg_request = buildPublishRequest(); var arg_topic = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.PublishRequest.fromJson(json); checkPublishRequest(obj); @@ -1664,7 +1664,7 @@ var resp = convert.JSON.encode(buildPublishResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.publish(arg_request, arg_topic).then(unittest.expectAsync(((api.PublishResponse response) { + res.publish(arg_request, arg_topic).then(unittest.expectAsync1(((api.PublishResponse response) { checkPublishResponse(response); }))); }); @@ -1675,7 +1675,7 @@ api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topics; var arg_request = buildSetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetIamPolicyRequest.fromJson(json); checkSetIamPolicyRequest(obj); @@ -1713,7 +1713,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -1724,7 +1724,7 @@ api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topics; var arg_request = buildTestIamPermissionsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TestIamPermissionsRequest.fromJson(json); checkTestIamPermissionsRequest(obj); @@ -1762,7 +1762,7 @@ var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { checkTestIamPermissionsResponse(response); }))); }); @@ -1778,7 +1778,7 @@ var arg_topic = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1815,7 +1815,7 @@ var resp = convert.JSON.encode(buildListTopicSubscriptionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_topic, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListTopicSubscriptionsResponse response) { + res.list(arg_topic, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListTopicSubscriptionsResponse response) { checkListTopicSubscriptionsResponse(response); }))); });
diff --git a/generated/googleapis_beta/test/replicapool/v1beta2_test.dart b/generated/googleapis_beta/test/replicapool/v1beta2_test.dart index 00ffdd6..132339e 100644 --- a/generated/googleapis_beta/test/replicapool/v1beta2_test.dart +++ b/generated/googleapis_beta/test/replicapool/v1beta2_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/replicapool/v1beta2.dart' as api; @@ -46,32 +46,32 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3817() { +buildUnnamed3291() { var o = new core.List<api.ReplicaPoolAutoHealingPolicy>(); o.add(buildReplicaPoolAutoHealingPolicy()); o.add(buildReplicaPoolAutoHealingPolicy()); return o; } -checkUnnamed3817(core.List<api.ReplicaPoolAutoHealingPolicy> o) { +checkUnnamed3291(core.List<api.ReplicaPoolAutoHealingPolicy> o) { unittest.expect(o, unittest.hasLength(2)); checkReplicaPoolAutoHealingPolicy(o[0]); checkReplicaPoolAutoHealingPolicy(o[1]); } -buildUnnamed3818() { +buildUnnamed3292() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3818(core.List<core.String> o) { +checkUnnamed3292(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -82,7 +82,7 @@ var o = new api.InstanceGroupManager(); buildCounterInstanceGroupManager++; if (buildCounterInstanceGroupManager < 3) { - o.autoHealingPolicies = buildUnnamed3817(); + o.autoHealingPolicies = buildUnnamed3291(); o.baseInstanceName = "foo"; o.creationTimestamp = "foo"; o.currentSize = 42; @@ -94,7 +94,7 @@ o.kind = "foo"; o.name = "foo"; o.selfLink = "foo"; - o.targetPools = buildUnnamed3818(); + o.targetPools = buildUnnamed3292(); o.targetSize = 42; } buildCounterInstanceGroupManager--; @@ -104,7 +104,7 @@ checkInstanceGroupManager(api.InstanceGroupManager o) { buildCounterInstanceGroupManager++; if (buildCounterInstanceGroupManager < 3) { - checkUnnamed3817(o.autoHealingPolicies); + checkUnnamed3291(o.autoHealingPolicies); unittest.expect(o.baseInstanceName, unittest.equals('foo')); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.currentSize, unittest.equals(42)); @@ -116,20 +116,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed3818(o.targetPools); + checkUnnamed3292(o.targetPools); unittest.expect(o.targetSize, unittest.equals(42)); } buildCounterInstanceGroupManager--; } -buildUnnamed3819() { +buildUnnamed3293() { var o = new core.List<api.InstanceGroupManager>(); o.add(buildInstanceGroupManager()); o.add(buildInstanceGroupManager()); return o; } -checkUnnamed3819(core.List<api.InstanceGroupManager> o) { +checkUnnamed3293(core.List<api.InstanceGroupManager> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManager(o[0]); checkInstanceGroupManager(o[1]); @@ -141,7 +141,7 @@ buildCounterInstanceGroupManagerList++; if (buildCounterInstanceGroupManagerList < 3) { o.id = "foo"; - o.items = buildUnnamed3819(); + o.items = buildUnnamed3293(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -154,7 +154,7 @@ buildCounterInstanceGroupManagerList++; if (buildCounterInstanceGroupManagerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3819(o.items); + checkUnnamed3293(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -162,14 +162,14 @@ buildCounterInstanceGroupManagerList--; } -buildUnnamed3820() { +buildUnnamed3294() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3820(core.List<core.String> o) { +checkUnnamed3294(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -180,7 +180,7 @@ var o = new api.InstanceGroupManagersAbandonInstancesRequest(); buildCounterInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { - o.instances = buildUnnamed3820(); + o.instances = buildUnnamed3294(); } buildCounterInstanceGroupManagersAbandonInstancesRequest--; return o; @@ -189,19 +189,19 @@ checkInstanceGroupManagersAbandonInstancesRequest(api.InstanceGroupManagersAbandonInstancesRequest o) { buildCounterInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { - checkUnnamed3820(o.instances); + checkUnnamed3294(o.instances); } buildCounterInstanceGroupManagersAbandonInstancesRequest--; } -buildUnnamed3821() { +buildUnnamed3295() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3821(core.List<core.String> o) { +checkUnnamed3295(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -212,7 +212,7 @@ var o = new api.InstanceGroupManagersDeleteInstancesRequest(); buildCounterInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { - o.instances = buildUnnamed3821(); + o.instances = buildUnnamed3295(); } buildCounterInstanceGroupManagersDeleteInstancesRequest--; return o; @@ -221,19 +221,19 @@ checkInstanceGroupManagersDeleteInstancesRequest(api.InstanceGroupManagersDeleteInstancesRequest o) { buildCounterInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { - checkUnnamed3821(o.instances); + checkUnnamed3295(o.instances); } buildCounterInstanceGroupManagersDeleteInstancesRequest--; } -buildUnnamed3822() { +buildUnnamed3296() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3822(core.List<core.String> o) { +checkUnnamed3296(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -244,7 +244,7 @@ var o = new api.InstanceGroupManagersRecreateInstancesRequest(); buildCounterInstanceGroupManagersRecreateInstancesRequest++; if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { - o.instances = buildUnnamed3822(); + o.instances = buildUnnamed3296(); } buildCounterInstanceGroupManagersRecreateInstancesRequest--; return o; @@ -253,7 +253,7 @@ checkInstanceGroupManagersRecreateInstancesRequest(api.InstanceGroupManagersRecreateInstancesRequest o) { buildCounterInstanceGroupManagersRecreateInstancesRequest++; if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { - checkUnnamed3822(o.instances); + checkUnnamed3296(o.instances); } buildCounterInstanceGroupManagersRecreateInstancesRequest--; } @@ -277,14 +277,14 @@ buildCounterInstanceGroupManagersSetInstanceTemplateRequest--; } -buildUnnamed3823() { +buildUnnamed3297() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3823(core.List<core.String> o) { +checkUnnamed3297(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -296,7 +296,7 @@ buildCounterInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { o.fingerprint = "foo"; - o.targetPools = buildUnnamed3823(); + o.targetPools = buildUnnamed3297(); } buildCounterInstanceGroupManagersSetTargetPoolsRequest--; return o; @@ -306,7 +306,7 @@ buildCounterInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed3823(o.targetPools); + checkUnnamed3297(o.targetPools); } buildCounterInstanceGroupManagersSetTargetPoolsRequest--; } @@ -334,14 +334,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed3824() { +buildUnnamed3298() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed3824(core.List<api.OperationErrorErrors> o) { +checkUnnamed3298(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -352,7 +352,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed3824(); + o.errors = buildUnnamed3298(); } buildCounterOperationError--; return o; @@ -361,7 +361,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed3824(o.errors); + checkUnnamed3298(o.errors); } buildCounterOperationError--; } @@ -387,14 +387,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed3825() { +buildUnnamed3299() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed3825(core.List<api.OperationWarningsData> o) { +checkUnnamed3299(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -406,7 +406,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed3825(); + o.data = buildUnnamed3299(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -417,20 +417,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed3825(o.data); + checkUnnamed3299(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed3826() { +buildUnnamed3300() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed3826(core.List<api.OperationWarnings> o) { +checkUnnamed3300(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -461,7 +461,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed3826(); + o.warnings = buildUnnamed3300(); o.zone = "foo"; } buildCounterOperation--; @@ -491,20 +491,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3826(o.warnings); + checkUnnamed3300(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed3827() { +buildUnnamed3301() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3827(core.List<api.Operation> o) { +checkUnnamed3301(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -516,7 +516,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { o.id = "foo"; - o.items = buildUnnamed3827(); + o.items = buildUnnamed3301(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -529,7 +529,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3827(o.items); + checkUnnamed3301(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -695,7 +695,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instanceGroupManager = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstanceGroupManagersAbandonInstancesRequest.fromJson(json); checkInstanceGroupManagersAbandonInstancesRequest(obj); @@ -730,7 +730,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.abandonInstances(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + res.abandonInstances(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -742,7 +742,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instanceGroupManager = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -774,7 +774,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -787,7 +787,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instanceGroupManager = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstanceGroupManagersDeleteInstancesRequest.fromJson(json); checkInstanceGroupManagersDeleteInstancesRequest(obj); @@ -822,7 +822,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.deleteInstances(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + res.deleteInstances(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -834,7 +834,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instanceGroupManager = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -866,7 +866,7 @@ var resp = convert.JSON.encode(buildInstanceGroupManager()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.InstanceGroupManager response) { + res.get(arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync1(((api.InstanceGroupManager response) { checkInstanceGroupManager(response); }))); }); @@ -879,7 +879,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_size = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstanceGroupManager.fromJson(json); checkInstanceGroupManager(obj); @@ -915,7 +915,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_zone, arg_size).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project, arg_zone, arg_size).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -929,7 +929,7 @@ var arg_filter = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -964,7 +964,7 @@ var resp = convert.JSON.encode(buildInstanceGroupManagerList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupManagerList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.InstanceGroupManagerList response) { checkInstanceGroupManagerList(response); }))); }); @@ -977,7 +977,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instanceGroupManager = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstanceGroupManagersRecreateInstancesRequest.fromJson(json); checkInstanceGroupManagersRecreateInstancesRequest(obj); @@ -1012,7 +1012,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.recreateInstances(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + res.recreateInstances(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1025,7 +1025,7 @@ var arg_zone = "foo"; var arg_instanceGroupManager = "foo"; var arg_size = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1058,7 +1058,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resize(arg_project, arg_zone, arg_instanceGroupManager, arg_size).then(unittest.expectAsync(((api.Operation response) { + res.resize(arg_project, arg_zone, arg_instanceGroupManager, arg_size).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1071,7 +1071,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instanceGroupManager = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstanceGroupManagersSetInstanceTemplateRequest.fromJson(json); checkInstanceGroupManagersSetInstanceTemplateRequest(obj); @@ -1106,7 +1106,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setInstanceTemplate(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + res.setInstanceTemplate(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1119,7 +1119,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instanceGroupManager = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstanceGroupManagersSetTargetPoolsRequest.fromJson(json); checkInstanceGroupManagersSetTargetPoolsRequest(obj); @@ -1154,7 +1154,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setTargetPools(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + res.setTargetPools(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1170,7 +1170,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_operation = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1202,7 +1202,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_zone, arg_operation).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_project, arg_zone, arg_operation).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1216,7 +1216,7 @@ var arg_filter = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1251,7 +1251,7 @@ var resp = convert.JSON.encode(buildOperationList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.OperationList response) { checkOperationList(response); }))); });
diff --git a/generated/googleapis_beta/test/replicapoolupdater/v1beta1_test.dart b/generated/googleapis_beta/test/replicapoolupdater/v1beta1_test.dart index ab7f701..fe33bdd 100644 --- a/generated/googleapis_beta/test/replicapoolupdater/v1beta1_test.dart +++ b/generated/googleapis_beta/test/replicapoolupdater/v1beta1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/replicapoolupdater/v1beta1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -74,14 +74,14 @@ buildCounterInstanceUpdateErrorErrors--; } -buildUnnamed3680() { +buildUnnamed3154() { var o = new core.List<api.InstanceUpdateErrorErrors>(); o.add(buildInstanceUpdateErrorErrors()); o.add(buildInstanceUpdateErrorErrors()); return o; } -checkUnnamed3680(core.List<api.InstanceUpdateErrorErrors> o) { +checkUnnamed3154(core.List<api.InstanceUpdateErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceUpdateErrorErrors(o[0]); checkInstanceUpdateErrorErrors(o[1]); @@ -92,7 +92,7 @@ var o = new api.InstanceUpdateError(); buildCounterInstanceUpdateError++; if (buildCounterInstanceUpdateError < 3) { - o.errors = buildUnnamed3680(); + o.errors = buildUnnamed3154(); } buildCounterInstanceUpdateError--; return o; @@ -101,7 +101,7 @@ checkInstanceUpdateError(api.InstanceUpdateError o) { buildCounterInstanceUpdateError++; if (buildCounterInstanceUpdateError < 3) { - checkUnnamed3680(o.errors); + checkUnnamed3154(o.errors); } buildCounterInstanceUpdateError--; } @@ -129,14 +129,14 @@ buildCounterInstanceUpdate--; } -buildUnnamed3681() { +buildUnnamed3155() { var o = new core.List<api.InstanceUpdate>(); o.add(buildInstanceUpdate()); o.add(buildInstanceUpdate()); return o; } -checkUnnamed3681(core.List<api.InstanceUpdate> o) { +checkUnnamed3155(core.List<api.InstanceUpdate> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceUpdate(o[0]); checkInstanceUpdate(o[1]); @@ -147,7 +147,7 @@ var o = new api.InstanceUpdateList(); buildCounterInstanceUpdateList++; if (buildCounterInstanceUpdateList < 3) { - o.items = buildUnnamed3681(); + o.items = buildUnnamed3155(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -159,7 +159,7 @@ checkInstanceUpdateList(api.InstanceUpdateList o) { buildCounterInstanceUpdateList++; if (buildCounterInstanceUpdateList < 3) { - checkUnnamed3681(o.items); + checkUnnamed3155(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -190,14 +190,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed3682() { +buildUnnamed3156() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed3682(core.List<api.OperationErrorErrors> o) { +checkUnnamed3156(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -208,7 +208,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed3682(); + o.errors = buildUnnamed3156(); } buildCounterOperationError--; return o; @@ -217,7 +217,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed3682(o.errors); + checkUnnamed3156(o.errors); } buildCounterOperationError--; } @@ -243,14 +243,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed3683() { +buildUnnamed3157() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed3683(core.List<api.OperationWarningsData> o) { +checkUnnamed3157(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -262,7 +262,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed3683(); + o.data = buildUnnamed3157(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -273,20 +273,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed3683(o.data); + checkUnnamed3157(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed3684() { +buildUnnamed3158() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed3684(core.List<api.OperationWarnings> o) { +checkUnnamed3158(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -317,7 +317,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed3684(); + o.warnings = buildUnnamed3158(); o.zone = "foo"; } buildCounterOperation--; @@ -347,20 +347,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3684(o.warnings); + checkUnnamed3158(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed3685() { +buildUnnamed3159() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3685(core.List<api.Operation> o) { +checkUnnamed3159(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -372,7 +372,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { o.id = "foo"; - o.items = buildUnnamed3685(); + o.items = buildUnnamed3159(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -385,7 +385,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3685(o.items); + checkUnnamed3159(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -416,14 +416,14 @@ buildCounterRollingUpdateErrorErrors--; } -buildUnnamed3686() { +buildUnnamed3160() { var o = new core.List<api.RollingUpdateErrorErrors>(); o.add(buildRollingUpdateErrorErrors()); o.add(buildRollingUpdateErrorErrors()); return o; } -checkUnnamed3686(core.List<api.RollingUpdateErrorErrors> o) { +checkUnnamed3160(core.List<api.RollingUpdateErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkRollingUpdateErrorErrors(o[0]); checkRollingUpdateErrorErrors(o[1]); @@ -434,7 +434,7 @@ var o = new api.RollingUpdateError(); buildCounterRollingUpdateError++; if (buildCounterRollingUpdateError < 3) { - o.errors = buildUnnamed3686(); + o.errors = buildUnnamed3160(); } buildCounterRollingUpdateError--; return o; @@ -443,7 +443,7 @@ checkRollingUpdateError(api.RollingUpdateError o) { buildCounterRollingUpdateError++; if (buildCounterRollingUpdateError < 3) { - checkUnnamed3686(o.errors); + checkUnnamed3160(o.errors); } buildCounterRollingUpdateError--; } @@ -524,14 +524,14 @@ buildCounterRollingUpdate--; } -buildUnnamed3687() { +buildUnnamed3161() { var o = new core.List<api.RollingUpdate>(); o.add(buildRollingUpdate()); o.add(buildRollingUpdate()); return o; } -checkUnnamed3687(core.List<api.RollingUpdate> o) { +checkUnnamed3161(core.List<api.RollingUpdate> o) { unittest.expect(o, unittest.hasLength(2)); checkRollingUpdate(o[0]); checkRollingUpdate(o[1]); @@ -542,7 +542,7 @@ var o = new api.RollingUpdateList(); buildCounterRollingUpdateList++; if (buildCounterRollingUpdateList < 3) { - o.items = buildUnnamed3687(); + o.items = buildUnnamed3161(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -554,7 +554,7 @@ checkRollingUpdateList(api.RollingUpdateList o) { buildCounterRollingUpdateList++; if (buildCounterRollingUpdateList < 3) { - checkUnnamed3687(o.items); + checkUnnamed3161(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -707,7 +707,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_rollingUpdate = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -739,7 +739,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.cancel(arg_project, arg_zone, arg_rollingUpdate).then(unittest.expectAsync(((api.Operation response) { + res.cancel(arg_project, arg_zone, arg_rollingUpdate).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -751,7 +751,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_rollingUpdate = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -783,7 +783,7 @@ var resp = convert.JSON.encode(buildRollingUpdate()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_zone, arg_rollingUpdate).then(unittest.expectAsync(((api.RollingUpdate response) { + res.get(arg_project, arg_zone, arg_rollingUpdate).then(unittest.expectAsync1(((api.RollingUpdate response) { checkRollingUpdate(response); }))); }); @@ -795,7 +795,7 @@ var arg_request = buildRollingUpdate(); var arg_project = "foo"; var arg_zone = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RollingUpdate.fromJson(json); checkRollingUpdate(obj); @@ -830,7 +830,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -844,7 +844,7 @@ var arg_filter = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -879,7 +879,7 @@ var resp = convert.JSON.encode(buildRollingUpdateList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RollingUpdateList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.RollingUpdateList response) { checkRollingUpdateList(response); }))); }); @@ -894,7 +894,7 @@ var arg_filter = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -929,7 +929,7 @@ var resp = convert.JSON.encode(buildInstanceUpdateList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listInstanceUpdates(arg_project, arg_zone, arg_rollingUpdate, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceUpdateList response) { + res.listInstanceUpdates(arg_project, arg_zone, arg_rollingUpdate, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.InstanceUpdateList response) { checkInstanceUpdateList(response); }))); }); @@ -941,7 +941,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_rollingUpdate = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -973,7 +973,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.pause(arg_project, arg_zone, arg_rollingUpdate).then(unittest.expectAsync(((api.Operation response) { + res.pause(arg_project, arg_zone, arg_rollingUpdate).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -985,7 +985,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_rollingUpdate = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1017,7 +1017,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resume(arg_project, arg_zone, arg_rollingUpdate).then(unittest.expectAsync(((api.Operation response) { + res.resume(arg_project, arg_zone, arg_rollingUpdate).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1029,7 +1029,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_rollingUpdate = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1061,7 +1061,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.rollback(arg_project, arg_zone, arg_rollingUpdate).then(unittest.expectAsync(((api.Operation response) { + res.rollback(arg_project, arg_zone, arg_rollingUpdate).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1077,7 +1077,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_operation = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1109,7 +1109,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_zone, arg_operation).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_project, arg_zone, arg_operation).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1123,7 +1123,7 @@ var arg_filter = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1158,7 +1158,7 @@ var resp = convert.JSON.encode(buildOperationList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.OperationList response) { checkOperationList(response); }))); });
diff --git a/generated/googleapis_beta/test/resourceviews/v1beta1_test.dart b/generated/googleapis_beta/test/resourceviews/v1beta1_test.dart index 7ab0d51..38166cb 100644 --- a/generated/googleapis_beta/test/resourceviews/v1beta1_test.dart +++ b/generated/googleapis_beta/test/resourceviews/v1beta1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/resourceviews/v1beta1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -72,14 +72,14 @@ buildCounterLabel--; } -buildUnnamed3755() { +buildUnnamed3229() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3755(core.List<core.String> o) { +checkUnnamed3229(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -90,7 +90,7 @@ var o = new api.RegionViewsAddResourcesRequest(); buildCounterRegionViewsAddResourcesRequest++; if (buildCounterRegionViewsAddResourcesRequest < 3) { - o.resources = buildUnnamed3755(); + o.resources = buildUnnamed3229(); } buildCounterRegionViewsAddResourcesRequest--; return o; @@ -99,7 +99,7 @@ checkRegionViewsAddResourcesRequest(api.RegionViewsAddResourcesRequest o) { buildCounterRegionViewsAddResourcesRequest++; if (buildCounterRegionViewsAddResourcesRequest < 3) { - checkUnnamed3755(o.resources); + checkUnnamed3229(o.resources); } buildCounterRegionViewsAddResourcesRequest--; } @@ -123,14 +123,14 @@ buildCounterRegionViewsInsertResponse--; } -buildUnnamed3756() { +buildUnnamed3230() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3756(core.List<core.String> o) { +checkUnnamed3230(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -141,7 +141,7 @@ var o = new api.RegionViewsListResourcesResponse(); buildCounterRegionViewsListResourcesResponse++; if (buildCounterRegionViewsListResourcesResponse < 3) { - o.members = buildUnnamed3756(); + o.members = buildUnnamed3230(); o.nextPageToken = "foo"; } buildCounterRegionViewsListResourcesResponse--; @@ -151,20 +151,20 @@ checkRegionViewsListResourcesResponse(api.RegionViewsListResourcesResponse o) { buildCounterRegionViewsListResourcesResponse++; if (buildCounterRegionViewsListResourcesResponse < 3) { - checkUnnamed3756(o.members); + checkUnnamed3230(o.members); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterRegionViewsListResourcesResponse--; } -buildUnnamed3757() { +buildUnnamed3231() { var o = new core.List<api.ResourceView>(); o.add(buildResourceView()); o.add(buildResourceView()); return o; } -checkUnnamed3757(core.List<api.ResourceView> o) { +checkUnnamed3231(core.List<api.ResourceView> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceView(o[0]); checkResourceView(o[1]); @@ -176,7 +176,7 @@ buildCounterRegionViewsListResponse++; if (buildCounterRegionViewsListResponse < 3) { o.nextPageToken = "foo"; - o.resourceViews = buildUnnamed3757(); + o.resourceViews = buildUnnamed3231(); } buildCounterRegionViewsListResponse--; return o; @@ -186,19 +186,19 @@ buildCounterRegionViewsListResponse++; if (buildCounterRegionViewsListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3757(o.resourceViews); + checkUnnamed3231(o.resourceViews); } buildCounterRegionViewsListResponse--; } -buildUnnamed3758() { +buildUnnamed3232() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3758(core.List<core.String> o) { +checkUnnamed3232(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -209,7 +209,7 @@ var o = new api.RegionViewsRemoveResourcesRequest(); buildCounterRegionViewsRemoveResourcesRequest++; if (buildCounterRegionViewsRemoveResourcesRequest < 3) { - o.resources = buildUnnamed3758(); + o.resources = buildUnnamed3232(); } buildCounterRegionViewsRemoveResourcesRequest--; return o; @@ -218,32 +218,32 @@ checkRegionViewsRemoveResourcesRequest(api.RegionViewsRemoveResourcesRequest o) { buildCounterRegionViewsRemoveResourcesRequest++; if (buildCounterRegionViewsRemoveResourcesRequest < 3) { - checkUnnamed3758(o.resources); + checkUnnamed3232(o.resources); } buildCounterRegionViewsRemoveResourcesRequest--; } -buildUnnamed3759() { +buildUnnamed3233() { var o = new core.List<api.Label>(); o.add(buildLabel()); o.add(buildLabel()); return o; } -checkUnnamed3759(core.List<api.Label> o) { +checkUnnamed3233(core.List<api.Label> o) { unittest.expect(o, unittest.hasLength(2)); checkLabel(o[0]); checkLabel(o[1]); } -buildUnnamed3760() { +buildUnnamed3234() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3760(core.List<core.String> o) { +checkUnnamed3234(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -258,9 +258,9 @@ o.description = "foo"; o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed3759(); + o.labels = buildUnnamed3233(); o.lastModified = "foo"; - o.members = buildUnnamed3760(); + o.members = buildUnnamed3234(); o.name = "foo"; o.numMembers = 42; o.selfLink = "foo"; @@ -276,9 +276,9 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3759(o.labels); + checkUnnamed3233(o.labels); unittest.expect(o.lastModified, unittest.equals('foo')); - checkUnnamed3760(o.members); + checkUnnamed3234(o.members); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.numMembers, unittest.equals(42)); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -286,14 +286,14 @@ buildCounterResourceView--; } -buildUnnamed3761() { +buildUnnamed3235() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3761(core.List<core.String> o) { +checkUnnamed3235(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -304,7 +304,7 @@ var o = new api.ZoneViewsAddResourcesRequest(); buildCounterZoneViewsAddResourcesRequest++; if (buildCounterZoneViewsAddResourcesRequest < 3) { - o.resources = buildUnnamed3761(); + o.resources = buildUnnamed3235(); } buildCounterZoneViewsAddResourcesRequest--; return o; @@ -313,7 +313,7 @@ checkZoneViewsAddResourcesRequest(api.ZoneViewsAddResourcesRequest o) { buildCounterZoneViewsAddResourcesRequest++; if (buildCounterZoneViewsAddResourcesRequest < 3) { - checkUnnamed3761(o.resources); + checkUnnamed3235(o.resources); } buildCounterZoneViewsAddResourcesRequest--; } @@ -337,14 +337,14 @@ buildCounterZoneViewsInsertResponse--; } -buildUnnamed3762() { +buildUnnamed3236() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3762(core.List<core.String> o) { +checkUnnamed3236(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -355,7 +355,7 @@ var o = new api.ZoneViewsListResourcesResponse(); buildCounterZoneViewsListResourcesResponse++; if (buildCounterZoneViewsListResourcesResponse < 3) { - o.members = buildUnnamed3762(); + o.members = buildUnnamed3236(); o.nextPageToken = "foo"; } buildCounterZoneViewsListResourcesResponse--; @@ -365,20 +365,20 @@ checkZoneViewsListResourcesResponse(api.ZoneViewsListResourcesResponse o) { buildCounterZoneViewsListResourcesResponse++; if (buildCounterZoneViewsListResourcesResponse < 3) { - checkUnnamed3762(o.members); + checkUnnamed3236(o.members); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterZoneViewsListResourcesResponse--; } -buildUnnamed3763() { +buildUnnamed3237() { var o = new core.List<api.ResourceView>(); o.add(buildResourceView()); o.add(buildResourceView()); return o; } -checkUnnamed3763(core.List<api.ResourceView> o) { +checkUnnamed3237(core.List<api.ResourceView> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceView(o[0]); checkResourceView(o[1]); @@ -390,7 +390,7 @@ buildCounterZoneViewsListResponse++; if (buildCounterZoneViewsListResponse < 3) { o.nextPageToken = "foo"; - o.resourceViews = buildUnnamed3763(); + o.resourceViews = buildUnnamed3237(); } buildCounterZoneViewsListResponse--; return o; @@ -400,19 +400,19 @@ buildCounterZoneViewsListResponse++; if (buildCounterZoneViewsListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3763(o.resourceViews); + checkUnnamed3237(o.resourceViews); } buildCounterZoneViewsListResponse--; } -buildUnnamed3764() { +buildUnnamed3238() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3764(core.List<core.String> o) { +checkUnnamed3238(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -423,7 +423,7 @@ var o = new api.ZoneViewsRemoveResourcesRequest(); buildCounterZoneViewsRemoveResourcesRequest++; if (buildCounterZoneViewsRemoveResourcesRequest < 3) { - o.resources = buildUnnamed3764(); + o.resources = buildUnnamed3238(); } buildCounterZoneViewsRemoveResourcesRequest--; return o; @@ -432,7 +432,7 @@ checkZoneViewsRemoveResourcesRequest(api.ZoneViewsRemoveResourcesRequest o) { buildCounterZoneViewsRemoveResourcesRequest++; if (buildCounterZoneViewsRemoveResourcesRequest < 3) { - checkUnnamed3764(o.resources); + checkUnnamed3238(o.resources); } buildCounterZoneViewsRemoveResourcesRequest--; } @@ -556,7 +556,7 @@ var arg_projectName = "foo"; var arg_region = "foo"; var arg_resourceViewName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RegionViewsAddResourcesRequest.fromJson(json); checkRegionViewsAddResourcesRequest(obj); @@ -591,7 +591,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.addresources(arg_request, arg_projectName, arg_region, arg_resourceViewName).then(unittest.expectAsync((_) {})); + res.addresources(arg_request, arg_projectName, arg_region, arg_resourceViewName).then(unittest.expectAsync1((_) {})); }); unittest.test("method--delete", () { @@ -601,7 +601,7 @@ var arg_projectName = "foo"; var arg_region = "foo"; var arg_resourceViewName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -633,7 +633,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_projectName, arg_region, arg_resourceViewName).then(unittest.expectAsync((_) {})); + res.delete(arg_projectName, arg_region, arg_resourceViewName).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -643,7 +643,7 @@ var arg_projectName = "foo"; var arg_region = "foo"; var arg_resourceViewName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -675,7 +675,7 @@ var resp = convert.JSON.encode(buildResourceView()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_projectName, arg_region, arg_resourceViewName).then(unittest.expectAsync(((api.ResourceView response) { + res.get(arg_projectName, arg_region, arg_resourceViewName).then(unittest.expectAsync1(((api.ResourceView response) { checkResourceView(response); }))); }); @@ -687,7 +687,7 @@ var arg_request = buildResourceView(); var arg_projectName = "foo"; var arg_region = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ResourceView.fromJson(json); checkResourceView(obj); @@ -722,7 +722,7 @@ var resp = convert.JSON.encode(buildRegionViewsInsertResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_projectName, arg_region).then(unittest.expectAsync(((api.RegionViewsInsertResponse response) { + res.insert(arg_request, arg_projectName, arg_region).then(unittest.expectAsync1(((api.RegionViewsInsertResponse response) { checkRegionViewsInsertResponse(response); }))); }); @@ -735,7 +735,7 @@ var arg_region = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -769,7 +769,7 @@ var resp = convert.JSON.encode(buildRegionViewsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectName, arg_region, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RegionViewsListResponse response) { + res.list(arg_projectName, arg_region, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.RegionViewsListResponse response) { checkRegionViewsListResponse(response); }))); }); @@ -783,7 +783,7 @@ var arg_resourceViewName = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -817,7 +817,7 @@ var resp = convert.JSON.encode(buildRegionViewsListResourcesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listresources(arg_projectName, arg_region, arg_resourceViewName, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RegionViewsListResourcesResponse response) { + res.listresources(arg_projectName, arg_region, arg_resourceViewName, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.RegionViewsListResourcesResponse response) { checkRegionViewsListResourcesResponse(response); }))); }); @@ -830,7 +830,7 @@ var arg_projectName = "foo"; var arg_region = "foo"; var arg_resourceViewName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RegionViewsRemoveResourcesRequest.fromJson(json); checkRegionViewsRemoveResourcesRequest(obj); @@ -865,7 +865,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.removeresources(arg_request, arg_projectName, arg_region, arg_resourceViewName).then(unittest.expectAsync((_) {})); + res.removeresources(arg_request, arg_projectName, arg_region, arg_resourceViewName).then(unittest.expectAsync1((_) {})); }); }); @@ -880,7 +880,7 @@ var arg_projectName = "foo"; var arg_zone = "foo"; var arg_resourceViewName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ZoneViewsAddResourcesRequest.fromJson(json); checkZoneViewsAddResourcesRequest(obj); @@ -915,7 +915,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.addresources(arg_request, arg_projectName, arg_zone, arg_resourceViewName).then(unittest.expectAsync((_) {})); + res.addresources(arg_request, arg_projectName, arg_zone, arg_resourceViewName).then(unittest.expectAsync1((_) {})); }); unittest.test("method--delete", () { @@ -925,7 +925,7 @@ var arg_projectName = "foo"; var arg_zone = "foo"; var arg_resourceViewName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -957,7 +957,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_projectName, arg_zone, arg_resourceViewName).then(unittest.expectAsync((_) {})); + res.delete(arg_projectName, arg_zone, arg_resourceViewName).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -967,7 +967,7 @@ var arg_projectName = "foo"; var arg_zone = "foo"; var arg_resourceViewName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -999,7 +999,7 @@ var resp = convert.JSON.encode(buildResourceView()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_projectName, arg_zone, arg_resourceViewName).then(unittest.expectAsync(((api.ResourceView response) { + res.get(arg_projectName, arg_zone, arg_resourceViewName).then(unittest.expectAsync1(((api.ResourceView response) { checkResourceView(response); }))); }); @@ -1011,7 +1011,7 @@ var arg_request = buildResourceView(); var arg_projectName = "foo"; var arg_zone = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ResourceView.fromJson(json); checkResourceView(obj); @@ -1046,7 +1046,7 @@ var resp = convert.JSON.encode(buildZoneViewsInsertResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_projectName, arg_zone).then(unittest.expectAsync(((api.ZoneViewsInsertResponse response) { + res.insert(arg_request, arg_projectName, arg_zone).then(unittest.expectAsync1(((api.ZoneViewsInsertResponse response) { checkZoneViewsInsertResponse(response); }))); }); @@ -1059,7 +1059,7 @@ var arg_zone = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1093,7 +1093,7 @@ var resp = convert.JSON.encode(buildZoneViewsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectName, arg_zone, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ZoneViewsListResponse response) { + res.list(arg_projectName, arg_zone, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ZoneViewsListResponse response) { checkZoneViewsListResponse(response); }))); }); @@ -1107,7 +1107,7 @@ var arg_resourceViewName = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1141,7 +1141,7 @@ var resp = convert.JSON.encode(buildZoneViewsListResourcesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listresources(arg_projectName, arg_zone, arg_resourceViewName, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ZoneViewsListResourcesResponse response) { + res.listresources(arg_projectName, arg_zone, arg_resourceViewName, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ZoneViewsListResourcesResponse response) { checkZoneViewsListResourcesResponse(response); }))); }); @@ -1154,7 +1154,7 @@ var arg_projectName = "foo"; var arg_zone = "foo"; var arg_resourceViewName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ZoneViewsRemoveResourcesRequest.fromJson(json); checkZoneViewsRemoveResourcesRequest(obj); @@ -1189,7 +1189,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.removeresources(arg_request, arg_projectName, arg_zone, arg_resourceViewName).then(unittest.expectAsync((_) {})); + res.removeresources(arg_request, arg_projectName, arg_zone, arg_resourceViewName).then(unittest.expectAsync1((_) {})); }); });
diff --git a/generated/googleapis_beta/test/resourceviews/v1beta2_test.dart b/generated/googleapis_beta/test/resourceviews/v1beta2_test.dart index 52fcbdf..f1de7e3 100644 --- a/generated/googleapis_beta/test/resourceviews/v1beta2_test.dart +++ b/generated/googleapis_beta/test/resourceviews/v1beta2_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/resourceviews/v1beta2.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -72,30 +72,30 @@ buildCounterLabel--; } -buildUnnamed3650() { +buildUnnamed3124() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3650(core.List<core.int> o) { +checkUnnamed3124(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed3651() { +buildUnnamed3125() { var o = new core.Map<core.String, core.List<core.int>>(); - o["x"] = buildUnnamed3650(); - o["y"] = buildUnnamed3650(); + o["x"] = buildUnnamed3124(); + o["y"] = buildUnnamed3124(); return o; } -checkUnnamed3651(core.Map<core.String, core.List<core.int>> o) { +checkUnnamed3125(core.Map<core.String, core.List<core.int>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3650(o["x"]); - checkUnnamed3650(o["y"]); + checkUnnamed3124(o["x"]); + checkUnnamed3124(o["y"]); } core.int buildCounterListResourceResponseItem = 0; @@ -103,7 +103,7 @@ var o = new api.ListResourceResponseItem(); buildCounterListResourceResponseItem++; if (buildCounterListResourceResponseItem < 3) { - o.endpoints = buildUnnamed3651(); + o.endpoints = buildUnnamed3125(); o.resource = "foo"; } buildCounterListResourceResponseItem--; @@ -113,7 +113,7 @@ checkListResourceResponseItem(api.ListResourceResponseItem o) { buildCounterListResourceResponseItem++; if (buildCounterListResourceResponseItem < 3) { - checkUnnamed3651(o.endpoints); + checkUnnamed3125(o.endpoints); unittest.expect(o.resource, unittest.equals('foo')); } buildCounterListResourceResponseItem--; @@ -142,14 +142,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed3652() { +buildUnnamed3126() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed3652(core.List<api.OperationErrorErrors> o) { +checkUnnamed3126(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -160,7 +160,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed3652(); + o.errors = buildUnnamed3126(); } buildCounterOperationError--; return o; @@ -169,7 +169,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed3652(o.errors); + checkUnnamed3126(o.errors); } buildCounterOperationError--; } @@ -195,14 +195,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed3653() { +buildUnnamed3127() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed3653(core.List<api.OperationWarningsData> o) { +checkUnnamed3127(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -214,7 +214,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed3653(); + o.data = buildUnnamed3127(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -225,20 +225,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed3653(o.data); + checkUnnamed3127(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed3654() { +buildUnnamed3128() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed3654(core.List<api.OperationWarnings> o) { +checkUnnamed3128(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -269,7 +269,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed3654(); + o.warnings = buildUnnamed3128(); o.zone = "foo"; } buildCounterOperation--; @@ -299,20 +299,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3654(o.warnings); + checkUnnamed3128(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed3655() { +buildUnnamed3129() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3655(core.List<api.Operation> o) { +checkUnnamed3129(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -324,7 +324,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { o.id = "foo"; - o.items = buildUnnamed3655(); + o.items = buildUnnamed3129(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -337,7 +337,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3655(o.items); + checkUnnamed3129(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -345,40 +345,40 @@ buildCounterOperationList--; } -buildUnnamed3656() { +buildUnnamed3130() { var o = new core.List<api.ServiceEndpoint>(); o.add(buildServiceEndpoint()); o.add(buildServiceEndpoint()); return o; } -checkUnnamed3656(core.List<api.ServiceEndpoint> o) { +checkUnnamed3130(core.List<api.ServiceEndpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceEndpoint(o[0]); checkServiceEndpoint(o[1]); } -buildUnnamed3657() { +buildUnnamed3131() { var o = new core.List<api.Label>(); o.add(buildLabel()); o.add(buildLabel()); return o; } -checkUnnamed3657(core.List<api.Label> o) { +checkUnnamed3131(core.List<api.Label> o) { unittest.expect(o, unittest.hasLength(2)); checkLabel(o[0]); checkLabel(o[1]); } -buildUnnamed3658() { +buildUnnamed3132() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3658(core.List<core.String> o) { +checkUnnamed3132(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -391,14 +391,14 @@ if (buildCounterResourceView < 3) { o.creationTimestamp = "foo"; o.description = "foo"; - o.endpoints = buildUnnamed3656(); + o.endpoints = buildUnnamed3130(); o.fingerprint = "foo"; o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed3657(); + o.labels = buildUnnamed3131(); o.name = "foo"; o.network = "foo"; - o.resources = buildUnnamed3658(); + o.resources = buildUnnamed3132(); o.selfLink = "foo"; o.size = 42; } @@ -411,14 +411,14 @@ if (buildCounterResourceView < 3) { unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed3656(o.endpoints); + checkUnnamed3130(o.endpoints); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3657(o.labels); + checkUnnamed3131(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); - checkUnnamed3658(o.resources); + checkUnnamed3132(o.resources); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.size, unittest.equals(42)); } @@ -446,14 +446,14 @@ buildCounterServiceEndpoint--; } -buildUnnamed3659() { +buildUnnamed3133() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3659(core.List<core.String> o) { +checkUnnamed3133(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -464,7 +464,7 @@ var o = new api.ZoneViewsAddResourcesRequest(); buildCounterZoneViewsAddResourcesRequest++; if (buildCounterZoneViewsAddResourcesRequest < 3) { - o.resources = buildUnnamed3659(); + o.resources = buildUnnamed3133(); } buildCounterZoneViewsAddResourcesRequest--; return o; @@ -473,19 +473,19 @@ checkZoneViewsAddResourcesRequest(api.ZoneViewsAddResourcesRequest o) { buildCounterZoneViewsAddResourcesRequest++; if (buildCounterZoneViewsAddResourcesRequest < 3) { - checkUnnamed3659(o.resources); + checkUnnamed3133(o.resources); } buildCounterZoneViewsAddResourcesRequest--; } -buildUnnamed3660() { +buildUnnamed3134() { var o = new core.List<api.ServiceEndpoint>(); o.add(buildServiceEndpoint()); o.add(buildServiceEndpoint()); return o; } -checkUnnamed3660(core.List<api.ServiceEndpoint> o) { +checkUnnamed3134(core.List<api.ServiceEndpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceEndpoint(o[0]); checkServiceEndpoint(o[1]); @@ -496,7 +496,7 @@ var o = new api.ZoneViewsGetServiceResponse(); buildCounterZoneViewsGetServiceResponse++; if (buildCounterZoneViewsGetServiceResponse < 3) { - o.endpoints = buildUnnamed3660(); + o.endpoints = buildUnnamed3134(); o.fingerprint = "foo"; } buildCounterZoneViewsGetServiceResponse--; @@ -506,20 +506,20 @@ checkZoneViewsGetServiceResponse(api.ZoneViewsGetServiceResponse o) { buildCounterZoneViewsGetServiceResponse++; if (buildCounterZoneViewsGetServiceResponse < 3) { - checkUnnamed3660(o.endpoints); + checkUnnamed3134(o.endpoints); unittest.expect(o.fingerprint, unittest.equals('foo')); } buildCounterZoneViewsGetServiceResponse--; } -buildUnnamed3661() { +buildUnnamed3135() { var o = new core.List<api.ResourceView>(); o.add(buildResourceView()); o.add(buildResourceView()); return o; } -checkUnnamed3661(core.List<api.ResourceView> o) { +checkUnnamed3135(core.List<api.ResourceView> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceView(o[0]); checkResourceView(o[1]); @@ -530,7 +530,7 @@ var o = new api.ZoneViewsList(); buildCounterZoneViewsList++; if (buildCounterZoneViewsList < 3) { - o.items = buildUnnamed3661(); + o.items = buildUnnamed3135(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -542,7 +542,7 @@ checkZoneViewsList(api.ZoneViewsList o) { buildCounterZoneViewsList++; if (buildCounterZoneViewsList < 3) { - checkUnnamed3661(o.items); + checkUnnamed3135(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -550,14 +550,14 @@ buildCounterZoneViewsList--; } -buildUnnamed3662() { +buildUnnamed3136() { var o = new core.List<api.ListResourceResponseItem>(); o.add(buildListResourceResponseItem()); o.add(buildListResourceResponseItem()); return o; } -checkUnnamed3662(core.List<api.ListResourceResponseItem> o) { +checkUnnamed3136(core.List<api.ListResourceResponseItem> o) { unittest.expect(o, unittest.hasLength(2)); checkListResourceResponseItem(o[0]); checkListResourceResponseItem(o[1]); @@ -568,7 +568,7 @@ var o = new api.ZoneViewsListResourcesResponse(); buildCounterZoneViewsListResourcesResponse++; if (buildCounterZoneViewsListResourcesResponse < 3) { - o.items = buildUnnamed3662(); + o.items = buildUnnamed3136(); o.network = "foo"; o.nextPageToken = "foo"; } @@ -579,21 +579,21 @@ checkZoneViewsListResourcesResponse(api.ZoneViewsListResourcesResponse o) { buildCounterZoneViewsListResourcesResponse++; if (buildCounterZoneViewsListResourcesResponse < 3) { - checkUnnamed3662(o.items); + checkUnnamed3136(o.items); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterZoneViewsListResourcesResponse--; } -buildUnnamed3663() { +buildUnnamed3137() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3663(core.List<core.String> o) { +checkUnnamed3137(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -604,7 +604,7 @@ var o = new api.ZoneViewsRemoveResourcesRequest(); buildCounterZoneViewsRemoveResourcesRequest++; if (buildCounterZoneViewsRemoveResourcesRequest < 3) { - o.resources = buildUnnamed3663(); + o.resources = buildUnnamed3137(); } buildCounterZoneViewsRemoveResourcesRequest--; return o; @@ -613,19 +613,19 @@ checkZoneViewsRemoveResourcesRequest(api.ZoneViewsRemoveResourcesRequest o) { buildCounterZoneViewsRemoveResourcesRequest++; if (buildCounterZoneViewsRemoveResourcesRequest < 3) { - checkUnnamed3663(o.resources); + checkUnnamed3137(o.resources); } buildCounterZoneViewsRemoveResourcesRequest--; } -buildUnnamed3664() { +buildUnnamed3138() { var o = new core.List<api.ServiceEndpoint>(); o.add(buildServiceEndpoint()); o.add(buildServiceEndpoint()); return o; } -checkUnnamed3664(core.List<api.ServiceEndpoint> o) { +checkUnnamed3138(core.List<api.ServiceEndpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceEndpoint(o[0]); checkServiceEndpoint(o[1]); @@ -636,7 +636,7 @@ var o = new api.ZoneViewsSetServiceRequest(); buildCounterZoneViewsSetServiceRequest++; if (buildCounterZoneViewsSetServiceRequest < 3) { - o.endpoints = buildUnnamed3664(); + o.endpoints = buildUnnamed3138(); o.fingerprint = "foo"; o.resourceName = "foo"; } @@ -647,7 +647,7 @@ checkZoneViewsSetServiceRequest(api.ZoneViewsSetServiceRequest o) { buildCounterZoneViewsSetServiceRequest++; if (buildCounterZoneViewsSetServiceRequest < 3) { - checkUnnamed3664(o.endpoints); + checkUnnamed3138(o.endpoints); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.resourceName, unittest.equals('foo')); } @@ -808,7 +808,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_operation = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -840,7 +840,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_zone, arg_operation).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_project, arg_zone, arg_operation).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -854,7 +854,7 @@ var arg_filter = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -889,7 +889,7 @@ var resp = convert.JSON.encode(buildOperationList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.OperationList response) { checkOperationList(response); }))); }); @@ -906,7 +906,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_resourceView = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ZoneViewsAddResourcesRequest.fromJson(json); checkZoneViewsAddResourcesRequest(obj); @@ -941,7 +941,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.addResources(arg_request, arg_project, arg_zone, arg_resourceView).then(unittest.expectAsync(((api.Operation response) { + res.addResources(arg_request, arg_project, arg_zone, arg_resourceView).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -953,7 +953,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_resourceView = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -985,7 +985,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_zone, arg_resourceView).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_zone, arg_resourceView).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -997,7 +997,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_resourceView = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1029,7 +1029,7 @@ var resp = convert.JSON.encode(buildResourceView()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_zone, arg_resourceView).then(unittest.expectAsync(((api.ResourceView response) { + res.get(arg_project, arg_zone, arg_resourceView).then(unittest.expectAsync1(((api.ResourceView response) { checkResourceView(response); }))); }); @@ -1042,7 +1042,7 @@ var arg_zone = "foo"; var arg_resourceView = "foo"; var arg_resourceName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1075,7 +1075,7 @@ var resp = convert.JSON.encode(buildZoneViewsGetServiceResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getService(arg_project, arg_zone, arg_resourceView, resourceName: arg_resourceName).then(unittest.expectAsync(((api.ZoneViewsGetServiceResponse response) { + res.getService(arg_project, arg_zone, arg_resourceView, resourceName: arg_resourceName).then(unittest.expectAsync1(((api.ZoneViewsGetServiceResponse response) { checkZoneViewsGetServiceResponse(response); }))); }); @@ -1087,7 +1087,7 @@ var arg_request = buildResourceView(); var arg_project = "foo"; var arg_zone = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ResourceView.fromJson(json); checkResourceView(obj); @@ -1122,7 +1122,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1135,7 +1135,7 @@ var arg_zone = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1169,7 +1169,7 @@ var resp = convert.JSON.encode(buildZoneViewsList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ZoneViewsList response) { + res.list(arg_project, arg_zone, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ZoneViewsList response) { checkZoneViewsList(response); }))); }); @@ -1186,7 +1186,7 @@ var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_serviceName = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1223,7 +1223,7 @@ var resp = convert.JSON.encode(buildZoneViewsListResourcesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listResources(arg_project, arg_zone, arg_resourceView, format: arg_format, listState: arg_listState, maxResults: arg_maxResults, pageToken: arg_pageToken, serviceName: arg_serviceName).then(unittest.expectAsync(((api.ZoneViewsListResourcesResponse response) { + res.listResources(arg_project, arg_zone, arg_resourceView, format: arg_format, listState: arg_listState, maxResults: arg_maxResults, pageToken: arg_pageToken, serviceName: arg_serviceName).then(unittest.expectAsync1(((api.ZoneViewsListResourcesResponse response) { checkZoneViewsListResourcesResponse(response); }))); }); @@ -1236,7 +1236,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_resourceView = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ZoneViewsRemoveResourcesRequest.fromJson(json); checkZoneViewsRemoveResourcesRequest(obj); @@ -1271,7 +1271,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.removeResources(arg_request, arg_project, arg_zone, arg_resourceView).then(unittest.expectAsync(((api.Operation response) { + res.removeResources(arg_request, arg_project, arg_zone, arg_resourceView).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1284,7 +1284,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_resourceView = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ZoneViewsSetServiceRequest.fromJson(json); checkZoneViewsSetServiceRequest(obj); @@ -1319,7 +1319,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setService(arg_request, arg_project, arg_zone, arg_resourceView).then(unittest.expectAsync(((api.Operation response) { + res.setService(arg_request, arg_project, arg_zone, arg_resourceView).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); });
diff --git a/generated/googleapis_beta/test/runtimeconfig/v1beta1_test.dart b/generated/googleapis_beta/test/runtimeconfig/v1beta1_test.dart index 99111bb..8e313a5 100644 --- a/generated/googleapis_beta/test/runtimeconfig/v1beta1_test.dart +++ b/generated/googleapis_beta/test/runtimeconfig/v1beta1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/runtimeconfig/v1beta1.dart' as api; @@ -46,19 +46,19 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3920() { +buildUnnamed3396() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3920(core.List<core.String> o) { +checkUnnamed3396(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -69,7 +69,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed3920(); + o.members = buildUnnamed3396(); o.role = "foo"; } buildCounterBinding--; @@ -79,7 +79,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed3920(o.members); + checkUnnamed3396(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -142,14 +142,14 @@ buildCounterEndCondition--; } -buildUnnamed3921() { +buildUnnamed3397() { var o = new core.List<api.RuntimeConfig>(); o.add(buildRuntimeConfig()); o.add(buildRuntimeConfig()); return o; } -checkUnnamed3921(core.List<api.RuntimeConfig> o) { +checkUnnamed3397(core.List<api.RuntimeConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkRuntimeConfig(o[0]); checkRuntimeConfig(o[1]); @@ -160,7 +160,7 @@ var o = new api.ListConfigsResponse(); buildCounterListConfigsResponse++; if (buildCounterListConfigsResponse < 3) { - o.configs = buildUnnamed3921(); + o.configs = buildUnnamed3397(); o.nextPageToken = "foo"; } buildCounterListConfigsResponse--; @@ -170,20 +170,20 @@ checkListConfigsResponse(api.ListConfigsResponse o) { buildCounterListConfigsResponse++; if (buildCounterListConfigsResponse < 3) { - checkUnnamed3921(o.configs); + checkUnnamed3397(o.configs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListConfigsResponse--; } -buildUnnamed3922() { +buildUnnamed3398() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed3922(core.List<api.Variable> o) { +checkUnnamed3398(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -195,7 +195,7 @@ buildCounterListVariablesResponse++; if (buildCounterListVariablesResponse < 3) { o.nextPageToken = "foo"; - o.variables = buildUnnamed3922(); + o.variables = buildUnnamed3398(); } buildCounterListVariablesResponse--; return o; @@ -205,19 +205,19 @@ buildCounterListVariablesResponse++; if (buildCounterListVariablesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3922(o.variables); + checkUnnamed3398(o.variables); } buildCounterListVariablesResponse--; } -buildUnnamed3923() { +buildUnnamed3399() { var o = new core.List<api.Waiter>(); o.add(buildWaiter()); o.add(buildWaiter()); return o; } -checkUnnamed3923(core.List<api.Waiter> o) { +checkUnnamed3399(core.List<api.Waiter> o) { unittest.expect(o, unittest.hasLength(2)); checkWaiter(o[0]); checkWaiter(o[1]); @@ -229,7 +229,7 @@ buildCounterListWaitersResponse++; if (buildCounterListWaitersResponse < 3) { o.nextPageToken = "foo"; - o.waiters = buildUnnamed3923(); + o.waiters = buildUnnamed3399(); } buildCounterListWaitersResponse--; return o; @@ -239,32 +239,32 @@ buildCounterListWaitersResponse++; if (buildCounterListWaitersResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3923(o.waiters); + checkUnnamed3399(o.waiters); } buildCounterListWaitersResponse--; } -buildUnnamed3924() { +buildUnnamed3400() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3924(core.Map<core.String, core.Object> o) { +checkUnnamed3400(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3925() { +buildUnnamed3401() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3925(core.Map<core.String, core.Object> o) { +checkUnnamed3401(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -277,9 +277,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3924(); + o.metadata = buildUnnamed3400(); o.name = "foo"; - o.response = buildUnnamed3925(); + o.response = buildUnnamed3401(); } buildCounterOperation--; return o; @@ -290,21 +290,21 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3924(o.metadata); + checkUnnamed3400(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3925(o.response); + checkUnnamed3401(o.response); } buildCounterOperation--; } -buildUnnamed3926() { +buildUnnamed3402() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed3926(core.List<api.Binding> o) { +checkUnnamed3402(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -315,7 +315,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed3926(); + o.bindings = buildUnnamed3402(); o.etag = "foo"; o.version = 42; } @@ -326,7 +326,7 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed3926(o.bindings); + checkUnnamed3402(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -373,30 +373,30 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed3927() { +buildUnnamed3403() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3927(core.Map<core.String, core.Object> o) { +checkUnnamed3403(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed3928() { +buildUnnamed3404() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3927()); - o.add(buildUnnamed3927()); + o.add(buildUnnamed3403()); + o.add(buildUnnamed3403()); return o; } -checkUnnamed3928(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3404(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3927(o[0]); - checkUnnamed3927(o[1]); + checkUnnamed3403(o[0]); + checkUnnamed3403(o[1]); } core.int buildCounterStatus = 0; @@ -405,7 +405,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3928(); + o.details = buildUnnamed3404(); o.message = "foo"; } buildCounterStatus--; @@ -416,20 +416,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3928(o.details); + checkUnnamed3404(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed3929() { +buildUnnamed3405() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3929(core.List<core.String> o) { +checkUnnamed3405(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -440,7 +440,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed3929(); + o.permissions = buildUnnamed3405(); } buildCounterTestIamPermissionsRequest--; return o; @@ -449,19 +449,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed3929(o.permissions); + checkUnnamed3405(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed3930() { +buildUnnamed3406() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3930(core.List<core.String> o) { +checkUnnamed3406(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -472,7 +472,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed3930(); + o.permissions = buildUnnamed3406(); } buildCounterTestIamPermissionsResponse--; return o; @@ -481,7 +481,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed3930(o.permissions); + checkUnnamed3406(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -726,7 +726,7 @@ var arg_request = buildRuntimeConfig(); var arg_parent = "foo"; var arg_requestId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RuntimeConfig.fromJson(json); checkRuntimeConfig(obj); @@ -765,7 +765,7 @@ var resp = convert.JSON.encode(buildRuntimeConfig()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_parent, requestId: arg_requestId).then(unittest.expectAsync(((api.RuntimeConfig response) { + res.create(arg_request, arg_parent, requestId: arg_requestId).then(unittest.expectAsync1(((api.RuntimeConfig response) { checkRuntimeConfig(response); }))); }); @@ -775,7 +775,7 @@ var mock = new HttpServerMock(); api.ProjectsConfigsResourceApi res = new api.RuntimeconfigApi(mock).projects.configs; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -810,7 +810,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -820,7 +820,7 @@ var mock = new HttpServerMock(); api.ProjectsConfigsResourceApi res = new api.RuntimeconfigApi(mock).projects.configs; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -855,7 +855,7 @@ var resp = convert.JSON.encode(buildRuntimeConfig()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.RuntimeConfig response) { + res.get(arg_name).then(unittest.expectAsync1(((api.RuntimeConfig response) { checkRuntimeConfig(response); }))); }); @@ -865,7 +865,7 @@ var mock = new HttpServerMock(); api.ProjectsConfigsResourceApi res = new api.RuntimeconfigApi(mock).projects.configs; var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -900,7 +900,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getIamPolicy(arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.getIamPolicy(arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -912,7 +912,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -949,7 +949,7 @@ var resp = convert.JSON.encode(buildListConfigsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListConfigsResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListConfigsResponse response) { checkListConfigsResponse(response); }))); }); @@ -960,7 +960,7 @@ api.ProjectsConfigsResourceApi res = new api.RuntimeconfigApi(mock).projects.configs; var arg_request = buildSetIamPolicyRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SetIamPolicyRequest.fromJson(json); checkSetIamPolicyRequest(obj); @@ -998,7 +998,7 @@ var resp = convert.JSON.encode(buildPolicy()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { checkPolicy(response); }))); }); @@ -1009,7 +1009,7 @@ api.ProjectsConfigsResourceApi res = new api.RuntimeconfigApi(mock).projects.configs; var arg_request = buildTestIamPermissionsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TestIamPermissionsRequest.fromJson(json); checkTestIamPermissionsRequest(obj); @@ -1047,7 +1047,7 @@ var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { checkTestIamPermissionsResponse(response); }))); }); @@ -1058,7 +1058,7 @@ api.ProjectsConfigsResourceApi res = new api.RuntimeconfigApi(mock).projects.configs; var arg_request = buildRuntimeConfig(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RuntimeConfig.fromJson(json); checkRuntimeConfig(obj); @@ -1096,7 +1096,7 @@ var resp = convert.JSON.encode(buildRuntimeConfig()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_name).then(unittest.expectAsync(((api.RuntimeConfig response) { + res.update(arg_request, arg_name).then(unittest.expectAsync1(((api.RuntimeConfig response) { checkRuntimeConfig(response); }))); }); @@ -1110,7 +1110,7 @@ var mock = new HttpServerMock(); api.ProjectsConfigsOperationsResourceApi res = new api.RuntimeconfigApi(mock).projects.configs.operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1145,7 +1145,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1156,7 +1156,7 @@ api.ProjectsConfigsOperationsResourceApi res = new api.RuntimeconfigApi(mock).projects.configs.operations; var arg_request = buildTestIamPermissionsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TestIamPermissionsRequest.fromJson(json); checkTestIamPermissionsRequest(obj); @@ -1194,7 +1194,7 @@ var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { checkTestIamPermissionsResponse(response); }))); }); @@ -1210,7 +1210,7 @@ var arg_request = buildVariable(); var arg_parent = "foo"; var arg_requestId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Variable.fromJson(json); checkVariable(obj); @@ -1249,7 +1249,7 @@ var resp = convert.JSON.encode(buildVariable()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_parent, requestId: arg_requestId).then(unittest.expectAsync(((api.Variable response) { + res.create(arg_request, arg_parent, requestId: arg_requestId).then(unittest.expectAsync1(((api.Variable response) { checkVariable(response); }))); }); @@ -1260,7 +1260,7 @@ api.ProjectsConfigsVariablesResourceApi res = new api.RuntimeconfigApi(mock).projects.configs.variables; var arg_name = "foo"; var arg_recursive = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1296,7 +1296,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_name, recursive: arg_recursive).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_name, recursive: arg_recursive).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1306,7 +1306,7 @@ var mock = new HttpServerMock(); api.ProjectsConfigsVariablesResourceApi res = new api.RuntimeconfigApi(mock).projects.configs.variables; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1341,7 +1341,7 @@ var resp = convert.JSON.encode(buildVariable()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.Variable response) { + res.get(arg_name).then(unittest.expectAsync1(((api.Variable response) { checkVariable(response); }))); }); @@ -1355,7 +1355,7 @@ var arg_returnValues = true; var arg_pageSize = 42; var arg_filter = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1394,7 +1394,7 @@ var resp = convert.JSON.encode(buildListVariablesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, returnValues: arg_returnValues, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListVariablesResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, returnValues: arg_returnValues, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListVariablesResponse response) { checkListVariablesResponse(response); }))); }); @@ -1405,7 +1405,7 @@ api.ProjectsConfigsVariablesResourceApi res = new api.RuntimeconfigApi(mock).projects.configs.variables; var arg_request = buildTestIamPermissionsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TestIamPermissionsRequest.fromJson(json); checkTestIamPermissionsRequest(obj); @@ -1443,7 +1443,7 @@ var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { checkTestIamPermissionsResponse(response); }))); }); @@ -1454,7 +1454,7 @@ api.ProjectsConfigsVariablesResourceApi res = new api.RuntimeconfigApi(mock).projects.configs.variables; var arg_request = buildVariable(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Variable.fromJson(json); checkVariable(obj); @@ -1492,7 +1492,7 @@ var resp = convert.JSON.encode(buildVariable()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_name).then(unittest.expectAsync(((api.Variable response) { + res.update(arg_request, arg_name).then(unittest.expectAsync1(((api.Variable response) { checkVariable(response); }))); }); @@ -1503,7 +1503,7 @@ api.ProjectsConfigsVariablesResourceApi res = new api.RuntimeconfigApi(mock).projects.configs.variables; var arg_request = buildWatchVariableRequest(); var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.WatchVariableRequest.fromJson(json); checkWatchVariableRequest(obj); @@ -1541,7 +1541,7 @@ var resp = convert.JSON.encode(buildVariable()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.watch(arg_request, arg_name).then(unittest.expectAsync(((api.Variable response) { + res.watch(arg_request, arg_name).then(unittest.expectAsync1(((api.Variable response) { checkVariable(response); }))); }); @@ -1557,7 +1557,7 @@ var arg_request = buildWaiter(); var arg_parent = "foo"; var arg_requestId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Waiter.fromJson(json); checkWaiter(obj); @@ -1596,7 +1596,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_parent, requestId: arg_requestId).then(unittest.expectAsync(((api.Operation response) { + res.create(arg_request, arg_parent, requestId: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -1606,7 +1606,7 @@ var mock = new HttpServerMock(); api.ProjectsConfigsWaitersResourceApi res = new api.RuntimeconfigApi(mock).projects.configs.waiters; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1641,7 +1641,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -1651,7 +1651,7 @@ var mock = new HttpServerMock(); api.ProjectsConfigsWaitersResourceApi res = new api.RuntimeconfigApi(mock).projects.configs.waiters; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1686,7 +1686,7 @@ var resp = convert.JSON.encode(buildWaiter()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.Waiter response) { + res.get(arg_name).then(unittest.expectAsync1(((api.Waiter response) { checkWaiter(response); }))); }); @@ -1698,7 +1698,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1735,7 +1735,7 @@ var resp = convert.JSON.encode(buildListWaitersResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListWaitersResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListWaitersResponse response) { checkListWaitersResponse(response); }))); }); @@ -1746,7 +1746,7 @@ api.ProjectsConfigsWaitersResourceApi res = new api.RuntimeconfigApi(mock).projects.configs.waiters; var arg_request = buildTestIamPermissionsRequest(); var arg_resource = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TestIamPermissionsRequest.fromJson(json); checkTestIamPermissionsRequest(obj); @@ -1784,7 +1784,7 @@ var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { checkTestIamPermissionsResponse(response); }))); });
diff --git a/generated/googleapis_beta/test/speech/v1beta1_test.dart b/generated/googleapis_beta/test/speech/v1beta1_test.dart index d1196fa..a599722 100644 --- a/generated/googleapis_beta/test/speech/v1beta1_test.dart +++ b/generated/googleapis_beta/test/speech/v1beta1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/speech/v1beta1.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -89,14 +89,14 @@ buildCounterEmpty--; } -buildUnnamed3787() { +buildUnnamed3261() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3787(core.List<api.Operation> o) { +checkUnnamed3261(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -108,7 +108,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3787(); + o.operations = buildUnnamed3261(); } buildCounterListOperationsResponse--; return o; @@ -118,32 +118,32 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3787(o.operations); + checkUnnamed3261(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed3788() { +buildUnnamed3262() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3788(core.Map<core.String, core.Object> o) { +checkUnnamed3262(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3789() { +buildUnnamed3263() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3789(core.Map<core.String, core.Object> o) { +checkUnnamed3263(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -156,9 +156,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3788(); + o.metadata = buildUnnamed3262(); o.name = "foo"; - o.response = buildUnnamed3789(); + o.response = buildUnnamed3263(); } buildCounterOperation--; return o; @@ -169,9 +169,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3788(o.metadata); + checkUnnamed3262(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3789(o.response); + checkUnnamed3263(o.response); } buildCounterOperation--; } @@ -226,14 +226,14 @@ buildCounterRecognitionConfig--; } -buildUnnamed3790() { +buildUnnamed3264() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3790(core.List<core.String> o) { +checkUnnamed3264(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -244,7 +244,7 @@ var o = new api.SpeechContext(); buildCounterSpeechContext++; if (buildCounterSpeechContext < 3) { - o.phrases = buildUnnamed3790(); + o.phrases = buildUnnamed3264(); } buildCounterSpeechContext--; return o; @@ -253,7 +253,7 @@ checkSpeechContext(api.SpeechContext o) { buildCounterSpeechContext++; if (buildCounterSpeechContext < 3) { - checkUnnamed3790(o.phrases); + checkUnnamed3264(o.phrases); } buildCounterSpeechContext--; } @@ -279,14 +279,14 @@ buildCounterSpeechRecognitionAlternative--; } -buildUnnamed3791() { +buildUnnamed3265() { var o = new core.List<api.SpeechRecognitionAlternative>(); o.add(buildSpeechRecognitionAlternative()); o.add(buildSpeechRecognitionAlternative()); return o; } -checkUnnamed3791(core.List<api.SpeechRecognitionAlternative> o) { +checkUnnamed3265(core.List<api.SpeechRecognitionAlternative> o) { unittest.expect(o, unittest.hasLength(2)); checkSpeechRecognitionAlternative(o[0]); checkSpeechRecognitionAlternative(o[1]); @@ -297,7 +297,7 @@ var o = new api.SpeechRecognitionResult(); buildCounterSpeechRecognitionResult++; if (buildCounterSpeechRecognitionResult < 3) { - o.alternatives = buildUnnamed3791(); + o.alternatives = buildUnnamed3265(); } buildCounterSpeechRecognitionResult--; return o; @@ -306,35 +306,35 @@ checkSpeechRecognitionResult(api.SpeechRecognitionResult o) { buildCounterSpeechRecognitionResult++; if (buildCounterSpeechRecognitionResult < 3) { - checkUnnamed3791(o.alternatives); + checkUnnamed3265(o.alternatives); } buildCounterSpeechRecognitionResult--; } -buildUnnamed3792() { +buildUnnamed3266() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3792(core.Map<core.String, core.Object> o) { +checkUnnamed3266(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed3793() { +buildUnnamed3267() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3792()); - o.add(buildUnnamed3792()); + o.add(buildUnnamed3266()); + o.add(buildUnnamed3266()); return o; } -checkUnnamed3793(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3267(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3792(o[0]); - checkUnnamed3792(o[1]); + checkUnnamed3266(o[0]); + checkUnnamed3266(o[1]); } core.int buildCounterStatus = 0; @@ -343,7 +343,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3793(); + o.details = buildUnnamed3267(); o.message = "foo"; } buildCounterStatus--; @@ -354,7 +354,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3793(o.details); + checkUnnamed3267(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -381,14 +381,14 @@ buildCounterSyncRecognizeRequest--; } -buildUnnamed3794() { +buildUnnamed3268() { var o = new core.List<api.SpeechRecognitionResult>(); o.add(buildSpeechRecognitionResult()); o.add(buildSpeechRecognitionResult()); return o; } -checkUnnamed3794(core.List<api.SpeechRecognitionResult> o) { +checkUnnamed3268(core.List<api.SpeechRecognitionResult> o) { unittest.expect(o, unittest.hasLength(2)); checkSpeechRecognitionResult(o[0]); checkSpeechRecognitionResult(o[1]); @@ -399,7 +399,7 @@ var o = new api.SyncRecognizeResponse(); buildCounterSyncRecognizeResponse++; if (buildCounterSyncRecognizeResponse < 3) { - o.results = buildUnnamed3794(); + o.results = buildUnnamed3268(); } buildCounterSyncRecognizeResponse--; return o; @@ -408,7 +408,7 @@ checkSyncRecognizeResponse(api.SyncRecognizeResponse o) { buildCounterSyncRecognizeResponse++; if (buildCounterSyncRecognizeResponse < 3) { - checkUnnamed3794(o.results); + checkUnnamed3268(o.results); } buildCounterSyncRecognizeResponse--; } @@ -529,7 +529,7 @@ var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.SpeechApi(mock).operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -564,7 +564,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.cancel(arg_name).then(unittest.expectAsync(((api.Empty response) { + res.cancel(arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -574,7 +574,7 @@ var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.SpeechApi(mock).operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -609,7 +609,7 @@ var resp = convert.JSON.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { + res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { checkEmpty(response); }))); }); @@ -619,7 +619,7 @@ var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.SpeechApi(mock).operations; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -654,7 +654,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -663,11 +663,11 @@ var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.SpeechApi(mock).operations; + var arg_filter = "foo"; var arg_name = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -693,10 +693,10 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); var h = { @@ -705,7 +705,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(name: arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListOperationsResponse response) { + res.list(filter: arg_filter, name: arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); }); @@ -719,7 +719,7 @@ var mock = new HttpServerMock(); api.SpeechResourceApi res = new api.SpeechApi(mock).speech; var arg_request = buildAsyncRecognizeRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AsyncRecognizeRequest.fromJson(json); checkAsyncRecognizeRequest(obj); @@ -756,7 +756,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.asyncrecognize(arg_request).then(unittest.expectAsync(((api.Operation response) { + res.asyncrecognize(arg_request).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -766,7 +766,7 @@ var mock = new HttpServerMock(); api.SpeechResourceApi res = new api.SpeechApi(mock).speech; var arg_request = buildSyncRecognizeRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SyncRecognizeRequest.fromJson(json); checkSyncRecognizeRequest(obj); @@ -803,7 +803,7 @@ var resp = convert.JSON.encode(buildSyncRecognizeResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.syncrecognize(arg_request).then(unittest.expectAsync(((api.SyncRecognizeResponse response) { + res.syncrecognize(arg_request).then(unittest.expectAsync1(((api.SyncRecognizeResponse response) { checkSyncRecognizeResponse(response); }))); });
diff --git a/generated/googleapis_beta/test/sqladmin/v1beta3_test.dart b/generated/googleapis_beta/test/sqladmin/v1beta3_test.dart index 7dd6851..8af2778 100644 --- a/generated/googleapis_beta/test/sqladmin/v1beta3_test.dart +++ b/generated/googleapis_beta/test/sqladmin/v1beta3_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/sqladmin/v1beta3.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -113,14 +113,14 @@ buildCounterBackupRun--; } -buildUnnamed3548() { +buildUnnamed3022() { var o = new core.List<api.BackupRun>(); o.add(buildBackupRun()); o.add(buildBackupRun()); return o; } -checkUnnamed3548(core.List<api.BackupRun> o) { +checkUnnamed3022(core.List<api.BackupRun> o) { unittest.expect(o, unittest.hasLength(2)); checkBackupRun(o[0]); checkBackupRun(o[1]); @@ -131,7 +131,7 @@ var o = new api.BackupRunsListResponse(); buildCounterBackupRunsListResponse++; if (buildCounterBackupRunsListResponse < 3) { - o.items = buildUnnamed3548(); + o.items = buildUnnamed3022(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -142,7 +142,7 @@ checkBackupRunsListResponse(api.BackupRunsListResponse o) { buildCounterBackupRunsListResponse++; if (buildCounterBackupRunsListResponse < 3) { - checkUnnamed3548(o.items); + checkUnnamed3022(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -218,27 +218,27 @@ buildCounterDatabaseFlags--; } -buildUnnamed3549() { +buildUnnamed3023() { var o = new core.List<api.IpMapping>(); o.add(buildIpMapping()); o.add(buildIpMapping()); return o; } -checkUnnamed3549(core.List<api.IpMapping> o) { +checkUnnamed3023(core.List<api.IpMapping> o) { unittest.expect(o, unittest.hasLength(2)); checkIpMapping(o[0]); checkIpMapping(o[1]); } -buildUnnamed3550() { +buildUnnamed3024() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3550(core.List<core.String> o) { +checkUnnamed3024(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -255,14 +255,14 @@ o.etag = "foo"; o.instance = "foo"; o.instanceType = "foo"; - o.ipAddresses = buildUnnamed3549(); + o.ipAddresses = buildUnnamed3023(); o.ipv6Address = "foo"; o.kind = "foo"; o.masterInstanceName = "foo"; o.maxDiskSize = "foo"; o.project = "foo"; o.region = "foo"; - o.replicaNames = buildUnnamed3550(); + o.replicaNames = buildUnnamed3024(); o.serverCaCert = buildSslCert(); o.serviceAccountEmailAddress = "foo"; o.settings = buildSettings(); @@ -281,14 +281,14 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.instance, unittest.equals('foo')); unittest.expect(o.instanceType, unittest.equals('foo')); - checkUnnamed3549(o.ipAddresses); + checkUnnamed3023(o.ipAddresses); unittest.expect(o.ipv6Address, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.masterInstanceName, unittest.equals('foo')); unittest.expect(o.maxDiskSize, unittest.equals('foo')); unittest.expect(o.project, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed3550(o.replicaNames); + checkUnnamed3024(o.replicaNames); checkSslCert(o.serverCaCert); unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo')); checkSettings(o.settings); @@ -297,27 +297,27 @@ buildCounterDatabaseInstance--; } -buildUnnamed3551() { +buildUnnamed3025() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3551(core.List<core.String> o) { +checkUnnamed3025(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3552() { +buildUnnamed3026() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3552(core.List<core.String> o) { +checkUnnamed3026(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -328,9 +328,9 @@ var o = new api.ExportContext(); buildCounterExportContext++; if (buildCounterExportContext < 3) { - o.database = buildUnnamed3551(); + o.database = buildUnnamed3025(); o.kind = "foo"; - o.table = buildUnnamed3552(); + o.table = buildUnnamed3026(); o.uri = "foo"; } buildCounterExportContext--; @@ -340,35 +340,35 @@ checkExportContext(api.ExportContext o) { buildCounterExportContext++; if (buildCounterExportContext < 3) { - checkUnnamed3551(o.database); + checkUnnamed3025(o.database); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3552(o.table); + checkUnnamed3026(o.table); unittest.expect(o.uri, unittest.equals('foo')); } buildCounterExportContext--; } -buildUnnamed3553() { +buildUnnamed3027() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3553(core.List<core.String> o) { +checkUnnamed3027(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3554() { +buildUnnamed3028() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3554(core.List<core.String> o) { +checkUnnamed3028(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -379,8 +379,8 @@ var o = new api.Flag(); buildCounterFlag++; if (buildCounterFlag < 3) { - o.allowedStringValues = buildUnnamed3553(); - o.appliesTo = buildUnnamed3554(); + o.allowedStringValues = buildUnnamed3027(); + o.appliesTo = buildUnnamed3028(); o.kind = "foo"; o.maxValue = "foo"; o.minValue = "foo"; @@ -394,8 +394,8 @@ checkFlag(api.Flag o) { buildCounterFlag++; if (buildCounterFlag < 3) { - checkUnnamed3553(o.allowedStringValues); - checkUnnamed3554(o.appliesTo); + checkUnnamed3027(o.allowedStringValues); + checkUnnamed3028(o.appliesTo); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.maxValue, unittest.equals('foo')); unittest.expect(o.minValue, unittest.equals('foo')); @@ -405,14 +405,14 @@ buildCounterFlag--; } -buildUnnamed3555() { +buildUnnamed3029() { var o = new core.List<api.Flag>(); o.add(buildFlag()); o.add(buildFlag()); return o; } -checkUnnamed3555(core.List<api.Flag> o) { +checkUnnamed3029(core.List<api.Flag> o) { unittest.expect(o, unittest.hasLength(2)); checkFlag(o[0]); checkFlag(o[1]); @@ -423,7 +423,7 @@ var o = new api.FlagsListResponse(); buildCounterFlagsListResponse++; if (buildCounterFlagsListResponse < 3) { - o.items = buildUnnamed3555(); + o.items = buildUnnamed3029(); o.kind = "foo"; } buildCounterFlagsListResponse--; @@ -433,20 +433,20 @@ checkFlagsListResponse(api.FlagsListResponse o) { buildCounterFlagsListResponse++; if (buildCounterFlagsListResponse < 3) { - checkUnnamed3555(o.items); + checkUnnamed3029(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterFlagsListResponse--; } -buildUnnamed3556() { +buildUnnamed3030() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3556(core.List<core.String> o) { +checkUnnamed3030(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -459,7 +459,7 @@ if (buildCounterImportContext < 3) { o.database = "foo"; o.kind = "foo"; - o.uri = buildUnnamed3556(); + o.uri = buildUnnamed3030(); } buildCounterImportContext--; return o; @@ -470,19 +470,19 @@ if (buildCounterImportContext < 3) { unittest.expect(o.database, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3556(o.uri); + checkUnnamed3030(o.uri); } buildCounterImportContext--; } -buildUnnamed3557() { +buildUnnamed3031() { var o = new core.List<api.OperationError>(); o.add(buildOperationError()); o.add(buildOperationError()); return o; } -checkUnnamed3557(core.List<api.OperationError> o) { +checkUnnamed3031(core.List<api.OperationError> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationError(o[0]); checkOperationError(o[1]); @@ -495,7 +495,7 @@ if (buildCounterInstanceOperation < 3) { o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); o.enqueuedTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.error = buildUnnamed3557(); + o.error = buildUnnamed3031(); o.exportContext = buildExportContext(); o.importContext = buildImportContext(); o.instance = "foo"; @@ -515,7 +515,7 @@ if (buildCounterInstanceOperation < 3) { unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.enqueuedTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed3557(o.error); + checkUnnamed3031(o.error); checkExportContext(o.exportContext); checkImportContext(o.importContext); unittest.expect(o.instance, unittest.equals('foo')); @@ -710,14 +710,14 @@ buildCounterInstancesInsertResponse--; } -buildUnnamed3558() { +buildUnnamed3032() { var o = new core.List<api.DatabaseInstance>(); o.add(buildDatabaseInstance()); o.add(buildDatabaseInstance()); return o; } -checkUnnamed3558(core.List<api.DatabaseInstance> o) { +checkUnnamed3032(core.List<api.DatabaseInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkDatabaseInstance(o[0]); checkDatabaseInstance(o[1]); @@ -728,7 +728,7 @@ var o = new api.InstancesListResponse(); buildCounterInstancesListResponse++; if (buildCounterInstancesListResponse < 3) { - o.items = buildUnnamed3558(); + o.items = buildUnnamed3032(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -739,7 +739,7 @@ checkInstancesListResponse(api.InstancesListResponse o) { buildCounterInstancesListResponse++; if (buildCounterInstancesListResponse < 3) { - checkUnnamed3558(o.items); + checkUnnamed3032(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -872,14 +872,14 @@ buildCounterInstancesUpdateResponse--; } -buildUnnamed3559() { +buildUnnamed3033() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3559(core.List<core.String> o) { +checkUnnamed3033(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -890,7 +890,7 @@ var o = new api.IpConfiguration(); buildCounterIpConfiguration++; if (buildCounterIpConfiguration < 3) { - o.authorizedNetworks = buildUnnamed3559(); + o.authorizedNetworks = buildUnnamed3033(); o.enabled = true; o.kind = "foo"; o.requireSsl = true; @@ -902,7 +902,7 @@ checkIpConfiguration(api.IpConfiguration o) { buildCounterIpConfiguration++; if (buildCounterIpConfiguration < 3) { - checkUnnamed3559(o.authorizedNetworks); + checkUnnamed3033(o.authorizedNetworks); unittest.expect(o.enabled, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.requireSsl, unittest.isTrue); @@ -975,14 +975,14 @@ buildCounterOperationError--; } -buildUnnamed3560() { +buildUnnamed3034() { var o = new core.List<api.InstanceOperation>(); o.add(buildInstanceOperation()); o.add(buildInstanceOperation()); return o; } -checkUnnamed3560(core.List<api.InstanceOperation> o) { +checkUnnamed3034(core.List<api.InstanceOperation> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceOperation(o[0]); checkInstanceOperation(o[1]); @@ -993,7 +993,7 @@ var o = new api.OperationsListResponse(); buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { - o.items = buildUnnamed3560(); + o.items = buildUnnamed3034(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1004,7 +1004,7 @@ checkOperationsListResponse(api.OperationsListResponse o) { buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { - checkUnnamed3560(o.items); + checkUnnamed3034(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1032,40 +1032,40 @@ buildCounterSetRootPasswordContext--; } -buildUnnamed3561() { +buildUnnamed3035() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3561(core.List<core.String> o) { +checkUnnamed3035(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3562() { +buildUnnamed3036() { var o = new core.List<api.BackupConfiguration>(); o.add(buildBackupConfiguration()); o.add(buildBackupConfiguration()); return o; } -checkUnnamed3562(core.List<api.BackupConfiguration> o) { +checkUnnamed3036(core.List<api.BackupConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkBackupConfiguration(o[0]); checkBackupConfiguration(o[1]); } -buildUnnamed3563() { +buildUnnamed3037() { var o = new core.List<api.DatabaseFlags>(); o.add(buildDatabaseFlags()); o.add(buildDatabaseFlags()); return o; } -checkUnnamed3563(core.List<api.DatabaseFlags> o) { +checkUnnamed3037(core.List<api.DatabaseFlags> o) { unittest.expect(o, unittest.hasLength(2)); checkDatabaseFlags(o[0]); checkDatabaseFlags(o[1]); @@ -1077,9 +1077,9 @@ buildCounterSettings++; if (buildCounterSettings < 3) { o.activationPolicy = "foo"; - o.authorizedGaeApplications = buildUnnamed3561(); - o.backupConfiguration = buildUnnamed3562(); - o.databaseFlags = buildUnnamed3563(); + o.authorizedGaeApplications = buildUnnamed3035(); + o.backupConfiguration = buildUnnamed3036(); + o.databaseFlags = buildUnnamed3037(); o.databaseReplicationEnabled = true; o.ipConfiguration = buildIpConfiguration(); o.kind = "foo"; @@ -1097,9 +1097,9 @@ buildCounterSettings++; if (buildCounterSettings < 3) { unittest.expect(o.activationPolicy, unittest.equals('foo')); - checkUnnamed3561(o.authorizedGaeApplications); - checkUnnamed3562(o.backupConfiguration); - checkUnnamed3563(o.databaseFlags); + checkUnnamed3035(o.authorizedGaeApplications); + checkUnnamed3036(o.backupConfiguration); + checkUnnamed3037(o.databaseFlags); unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); checkIpConfiguration(o.ipConfiguration); unittest.expect(o.kind, unittest.equals('foo')); @@ -1229,14 +1229,14 @@ buildCounterSslCertsInsertResponse--; } -buildUnnamed3564() { +buildUnnamed3038() { var o = new core.List<api.SslCert>(); o.add(buildSslCert()); o.add(buildSslCert()); return o; } -checkUnnamed3564(core.List<api.SslCert> o) { +checkUnnamed3038(core.List<api.SslCert> o) { unittest.expect(o, unittest.hasLength(2)); checkSslCert(o[0]); checkSslCert(o[1]); @@ -1247,7 +1247,7 @@ var o = new api.SslCertsListResponse(); buildCounterSslCertsListResponse++; if (buildCounterSslCertsListResponse < 3) { - o.items = buildUnnamed3564(); + o.items = buildUnnamed3038(); o.kind = "foo"; } buildCounterSslCertsListResponse--; @@ -1257,20 +1257,20 @@ checkSslCertsListResponse(api.SslCertsListResponse o) { buildCounterSslCertsListResponse++; if (buildCounterSslCertsListResponse < 3) { - checkUnnamed3564(o.items); + checkUnnamed3038(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterSslCertsListResponse--; } -buildUnnamed3565() { +buildUnnamed3039() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3565(core.List<core.String> o) { +checkUnnamed3039(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1284,7 +1284,7 @@ o.DiskQuota = "foo"; o.RAM = "foo"; o.kind = "foo"; - o.region = buildUnnamed3565(); + o.region = buildUnnamed3039(); o.tier = "foo"; } buildCounterTier--; @@ -1297,20 +1297,20 @@ unittest.expect(o.DiskQuota, unittest.equals('foo')); unittest.expect(o.RAM, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3565(o.region); + checkUnnamed3039(o.region); unittest.expect(o.tier, unittest.equals('foo')); } buildCounterTier--; } -buildUnnamed3566() { +buildUnnamed3040() { var o = new core.List<api.Tier>(); o.add(buildTier()); o.add(buildTier()); return o; } -checkUnnamed3566(core.List<api.Tier> o) { +checkUnnamed3040(core.List<api.Tier> o) { unittest.expect(o, unittest.hasLength(2)); checkTier(o[0]); checkTier(o[1]); @@ -1321,7 +1321,7 @@ var o = new api.TiersListResponse(); buildCounterTiersListResponse++; if (buildCounterTiersListResponse < 3) { - o.items = buildUnnamed3566(); + o.items = buildUnnamed3040(); o.kind = "foo"; } buildCounterTiersListResponse--; @@ -1331,7 +1331,7 @@ checkTiersListResponse(api.TiersListResponse o) { buildCounterTiersListResponse++; if (buildCounterTiersListResponse < 3) { - checkUnnamed3566(o.items); + checkUnnamed3040(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTiersListResponse--; @@ -1735,7 +1735,7 @@ var arg_instance = "foo"; var arg_backupConfiguration = "foo"; var arg_dueTime = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1789,7 +1789,7 @@ var resp = convert.JSON.encode(buildBackupRun()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_instance, arg_backupConfiguration, arg_dueTime).then(unittest.expectAsync(((api.BackupRun response) { + res.get(arg_project, arg_instance, arg_backupConfiguration, arg_dueTime).then(unittest.expectAsync1(((api.BackupRun response) { checkBackupRun(response); }))); }); @@ -1803,7 +1803,7 @@ var arg_backupConfiguration = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1856,7 +1856,7 @@ var resp = convert.JSON.encode(buildBackupRunsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_instance, arg_backupConfiguration, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.BackupRunsListResponse response) { + res.list(arg_project, arg_instance, arg_backupConfiguration, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.BackupRunsListResponse response) { checkBackupRunsListResponse(response); }))); }); @@ -1869,7 +1869,7 @@ var mock = new HttpServerMock(); api.FlagsResourceApi res = new api.SqladminApi(mock).flags; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -1905,7 +1905,7 @@ var resp = convert.JSON.encode(buildFlagsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list().then(unittest.expectAsync(((api.FlagsListResponse response) { + res.list().then(unittest.expectAsync1(((api.FlagsListResponse response) { checkFlagsListResponse(response); }))); }); @@ -1920,7 +1920,7 @@ api.InstancesResourceApi res = new api.SqladminApi(mock).instances; var arg_request = buildInstancesCloneRequest(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstancesCloneRequest.fromJson(json); checkInstancesCloneRequest(obj); @@ -1966,7 +1966,7 @@ var resp = convert.JSON.encode(buildInstancesCloneResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.clone(arg_request, arg_project).then(unittest.expectAsync(((api.InstancesCloneResponse response) { + res.clone(arg_request, arg_project).then(unittest.expectAsync1(((api.InstancesCloneResponse response) { checkInstancesCloneResponse(response); }))); }); @@ -1977,7 +1977,7 @@ api.InstancesResourceApi res = new api.SqladminApi(mock).instances; var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2023,7 +2023,7 @@ var resp = convert.JSON.encode(buildInstancesDeleteResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_instance).then(unittest.expectAsync(((api.InstancesDeleteResponse response) { + res.delete(arg_project, arg_instance).then(unittest.expectAsync1(((api.InstancesDeleteResponse response) { checkInstancesDeleteResponse(response); }))); }); @@ -2035,7 +2035,7 @@ var arg_request = buildInstancesExportRequest(); var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstancesExportRequest.fromJson(json); checkInstancesExportRequest(obj); @@ -2088,7 +2088,7 @@ var resp = convert.JSON.encode(buildInstancesExportResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.export(arg_request, arg_project, arg_instance).then(unittest.expectAsync(((api.InstancesExportResponse response) { + res.export(arg_request, arg_project, arg_instance).then(unittest.expectAsync1(((api.InstancesExportResponse response) { checkInstancesExportResponse(response); }))); }); @@ -2099,7 +2099,7 @@ api.InstancesResourceApi res = new api.SqladminApi(mock).instances; var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2145,7 +2145,7 @@ var resp = convert.JSON.encode(buildDatabaseInstance()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_instance).then(unittest.expectAsync(((api.DatabaseInstance response) { + res.get(arg_project, arg_instance).then(unittest.expectAsync1(((api.DatabaseInstance response) { checkDatabaseInstance(response); }))); }); @@ -2157,7 +2157,7 @@ var arg_request = buildInstancesImportRequest(); var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstancesImportRequest.fromJson(json); checkInstancesImportRequest(obj); @@ -2210,7 +2210,7 @@ var resp = convert.JSON.encode(buildInstancesImportResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.import(arg_request, arg_project, arg_instance).then(unittest.expectAsync(((api.InstancesImportResponse response) { + res.import(arg_request, arg_project, arg_instance).then(unittest.expectAsync1(((api.InstancesImportResponse response) { checkInstancesImportResponse(response); }))); }); @@ -2221,7 +2221,7 @@ api.InstancesResourceApi res = new api.SqladminApi(mock).instances; var arg_request = buildDatabaseInstance(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DatabaseInstance.fromJson(json); checkDatabaseInstance(obj); @@ -2267,7 +2267,7 @@ var resp = convert.JSON.encode(buildInstancesInsertResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.InstancesInsertResponse response) { + res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.InstancesInsertResponse response) { checkInstancesInsertResponse(response); }))); }); @@ -2279,7 +2279,7 @@ var arg_project = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2324,7 +2324,7 @@ var resp = convert.JSON.encode(buildInstancesListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstancesListResponse response) { + res.list(arg_project, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.InstancesListResponse response) { checkInstancesListResponse(response); }))); }); @@ -2336,7 +2336,7 @@ var arg_request = buildDatabaseInstance(); var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DatabaseInstance.fromJson(json); checkDatabaseInstance(obj); @@ -2385,7 +2385,7 @@ var resp = convert.JSON.encode(buildInstancesUpdateResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_project, arg_instance).then(unittest.expectAsync(((api.InstancesUpdateResponse response) { + res.patch(arg_request, arg_project, arg_instance).then(unittest.expectAsync1(((api.InstancesUpdateResponse response) { checkInstancesUpdateResponse(response); }))); }); @@ -2396,7 +2396,7 @@ api.InstancesResourceApi res = new api.SqladminApi(mock).instances; var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2446,7 +2446,7 @@ var resp = convert.JSON.encode(buildInstancesPromoteReplicaResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.promoteReplica(arg_project, arg_instance).then(unittest.expectAsync(((api.InstancesPromoteReplicaResponse response) { + res.promoteReplica(arg_project, arg_instance).then(unittest.expectAsync1(((api.InstancesPromoteReplicaResponse response) { checkInstancesPromoteReplicaResponse(response); }))); }); @@ -2457,7 +2457,7 @@ api.InstancesResourceApi res = new api.SqladminApi(mock).instances; var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2507,7 +2507,7 @@ var resp = convert.JSON.encode(buildInstancesResetSslConfigResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resetSslConfig(arg_project, arg_instance).then(unittest.expectAsync(((api.InstancesResetSslConfigResponse response) { + res.resetSslConfig(arg_project, arg_instance).then(unittest.expectAsync1(((api.InstancesResetSslConfigResponse response) { checkInstancesResetSslConfigResponse(response); }))); }); @@ -2518,7 +2518,7 @@ api.InstancesResourceApi res = new api.SqladminApi(mock).instances; var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2568,7 +2568,7 @@ var resp = convert.JSON.encode(buildInstancesRestartResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.restart(arg_project, arg_instance).then(unittest.expectAsync(((api.InstancesRestartResponse response) { + res.restart(arg_project, arg_instance).then(unittest.expectAsync1(((api.InstancesRestartResponse response) { checkInstancesRestartResponse(response); }))); }); @@ -2581,7 +2581,7 @@ var arg_instance = "foo"; var arg_backupConfiguration = "foo"; var arg_dueTime = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2633,7 +2633,7 @@ var resp = convert.JSON.encode(buildInstancesRestoreBackupResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.restoreBackup(arg_project, arg_instance, arg_backupConfiguration, arg_dueTime).then(unittest.expectAsync(((api.InstancesRestoreBackupResponse response) { + res.restoreBackup(arg_project, arg_instance, arg_backupConfiguration, arg_dueTime).then(unittest.expectAsync1(((api.InstancesRestoreBackupResponse response) { checkInstancesRestoreBackupResponse(response); }))); }); @@ -2645,7 +2645,7 @@ var arg_request = buildInstanceSetRootPasswordRequest(); var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstanceSetRootPasswordRequest.fromJson(json); checkInstanceSetRootPasswordRequest(obj); @@ -2698,7 +2698,7 @@ var resp = convert.JSON.encode(buildInstancesSetRootPasswordResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.setRootPassword(arg_request, arg_project, arg_instance).then(unittest.expectAsync(((api.InstancesSetRootPasswordResponse response) { + res.setRootPassword(arg_request, arg_project, arg_instance).then(unittest.expectAsync1(((api.InstancesSetRootPasswordResponse response) { checkInstancesSetRootPasswordResponse(response); }))); }); @@ -2710,7 +2710,7 @@ var arg_request = buildDatabaseInstance(); var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DatabaseInstance.fromJson(json); checkDatabaseInstance(obj); @@ -2759,7 +2759,7 @@ var resp = convert.JSON.encode(buildInstancesUpdateResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_project, arg_instance).then(unittest.expectAsync(((api.InstancesUpdateResponse response) { + res.update(arg_request, arg_project, arg_instance).then(unittest.expectAsync1(((api.InstancesUpdateResponse response) { checkInstancesUpdateResponse(response); }))); }); @@ -2775,7 +2775,7 @@ var arg_project = "foo"; var arg_instance = "foo"; var arg_operation = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2828,7 +2828,7 @@ var resp = convert.JSON.encode(buildInstanceOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_instance, arg_operation).then(unittest.expectAsync(((api.InstanceOperation response) { + res.get(arg_project, arg_instance, arg_operation).then(unittest.expectAsync1(((api.InstanceOperation response) { checkInstanceOperation(response); }))); }); @@ -2841,7 +2841,7 @@ var arg_instance = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2893,7 +2893,7 @@ var resp = convert.JSON.encode(buildOperationsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_instance, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationsListResponse response) { + res.list(arg_project, arg_instance, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.OperationsListResponse response) { checkOperationsListResponse(response); }))); }); @@ -2909,7 +2909,7 @@ var arg_project = "foo"; var arg_instance = "foo"; var arg_sha1Fingerprint = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2962,7 +2962,7 @@ var resp = convert.JSON.encode(buildSslCertsDeleteResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_instance, arg_sha1Fingerprint).then(unittest.expectAsync(((api.SslCertsDeleteResponse response) { + res.delete(arg_project, arg_instance, arg_sha1Fingerprint).then(unittest.expectAsync1(((api.SslCertsDeleteResponse response) { checkSslCertsDeleteResponse(response); }))); }); @@ -2974,7 +2974,7 @@ var arg_project = "foo"; var arg_instance = "foo"; var arg_sha1Fingerprint = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3027,7 +3027,7 @@ var resp = convert.JSON.encode(buildSslCert()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_instance, arg_sha1Fingerprint).then(unittest.expectAsync(((api.SslCert response) { + res.get(arg_project, arg_instance, arg_sha1Fingerprint).then(unittest.expectAsync1(((api.SslCert response) { checkSslCert(response); }))); }); @@ -3039,7 +3039,7 @@ var arg_request = buildSslCertsInsertRequest(); var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SslCertsInsertRequest.fromJson(json); checkSslCertsInsertRequest(obj); @@ -3092,7 +3092,7 @@ var resp = convert.JSON.encode(buildSslCertsInsertResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_instance).then(unittest.expectAsync(((api.SslCertsInsertResponse response) { + res.insert(arg_request, arg_project, arg_instance).then(unittest.expectAsync1(((api.SslCertsInsertResponse response) { checkSslCertsInsertResponse(response); }))); }); @@ -3103,7 +3103,7 @@ api.SslCertsResourceApi res = new api.SqladminApi(mock).sslCerts; var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3153,7 +3153,7 @@ var resp = convert.JSON.encode(buildSslCertsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_instance).then(unittest.expectAsync(((api.SslCertsListResponse response) { + res.list(arg_project, arg_instance).then(unittest.expectAsync1(((api.SslCertsListResponse response) { checkSslCertsListResponse(response); }))); }); @@ -3167,7 +3167,7 @@ var mock = new HttpServerMock(); api.TiersResourceApi res = new api.SqladminApi(mock).tiers; var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3210,7 +3210,7 @@ var resp = convert.JSON.encode(buildTiersListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project).then(unittest.expectAsync(((api.TiersListResponse response) { + res.list(arg_project).then(unittest.expectAsync1(((api.TiersListResponse response) { checkTiersListResponse(response); }))); });
diff --git a/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart b/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart index 49ef64d..b290472 100644 --- a/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart +++ b/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/sqladmin/v1beta4.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -142,14 +142,14 @@ buildCounterBackupRun--; } -buildUnnamed3765() { +buildUnnamed3239() { var o = new core.List<api.BackupRun>(); o.add(buildBackupRun()); o.add(buildBackupRun()); return o; } -checkUnnamed3765(core.List<api.BackupRun> o) { +checkUnnamed3239(core.List<api.BackupRun> o) { unittest.expect(o, unittest.hasLength(2)); checkBackupRun(o[0]); checkBackupRun(o[1]); @@ -160,7 +160,7 @@ var o = new api.BackupRunsListResponse(); buildCounterBackupRunsListResponse++; if (buildCounterBackupRunsListResponse < 3) { - o.items = buildUnnamed3765(); + o.items = buildUnnamed3239(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -171,7 +171,7 @@ checkBackupRunsListResponse(api.BackupRunsListResponse o) { buildCounterBackupRunsListResponse++; if (buildCounterBackupRunsListResponse < 3) { - checkUnnamed3765(o.items); + checkUnnamed3239(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -299,40 +299,40 @@ buildCounterDatabaseInstanceFailoverReplica--; } -buildUnnamed3766() { +buildUnnamed3240() { var o = new core.List<api.IpMapping>(); o.add(buildIpMapping()); o.add(buildIpMapping()); return o; } -checkUnnamed3766(core.List<api.IpMapping> o) { +checkUnnamed3240(core.List<api.IpMapping> o) { unittest.expect(o, unittest.hasLength(2)); checkIpMapping(o[0]); checkIpMapping(o[1]); } -buildUnnamed3767() { +buildUnnamed3241() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3767(core.List<core.String> o) { +checkUnnamed3241(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3768() { +buildUnnamed3242() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3768(core.List<core.String> o) { +checkUnnamed3242(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -350,7 +350,7 @@ o.etag = "foo"; o.failoverReplica = buildDatabaseInstanceFailoverReplica(); o.instanceType = "foo"; - o.ipAddresses = buildUnnamed3766(); + o.ipAddresses = buildUnnamed3240(); o.ipv6Address = "foo"; o.kind = "foo"; o.masterInstanceName = "foo"; @@ -360,13 +360,13 @@ o.project = "foo"; o.region = "foo"; o.replicaConfiguration = buildReplicaConfiguration(); - o.replicaNames = buildUnnamed3767(); + o.replicaNames = buildUnnamed3241(); o.selfLink = "foo"; o.serverCaCert = buildSslCert(); o.serviceAccountEmailAddress = "foo"; o.settings = buildSettings(); o.state = "foo"; - o.suspensionReason = buildUnnamed3768(); + o.suspensionReason = buildUnnamed3242(); } buildCounterDatabaseInstance--; return o; @@ -382,7 +382,7 @@ unittest.expect(o.etag, unittest.equals('foo')); checkDatabaseInstanceFailoverReplica(o.failoverReplica); unittest.expect(o.instanceType, unittest.equals('foo')); - checkUnnamed3766(o.ipAddresses); + checkUnnamed3240(o.ipAddresses); unittest.expect(o.ipv6Address, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.masterInstanceName, unittest.equals('foo')); @@ -392,25 +392,25 @@ unittest.expect(o.project, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); checkReplicaConfiguration(o.replicaConfiguration); - checkUnnamed3767(o.replicaNames); + checkUnnamed3241(o.replicaNames); unittest.expect(o.selfLink, unittest.equals('foo')); checkSslCert(o.serverCaCert); unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo')); checkSettings(o.settings); unittest.expect(o.state, unittest.equals('foo')); - checkUnnamed3768(o.suspensionReason); + checkUnnamed3242(o.suspensionReason); } buildCounterDatabaseInstance--; } -buildUnnamed3769() { +buildUnnamed3243() { var o = new core.List<api.Database>(); o.add(buildDatabase()); o.add(buildDatabase()); return o; } -checkUnnamed3769(core.List<api.Database> o) { +checkUnnamed3243(core.List<api.Database> o) { unittest.expect(o, unittest.hasLength(2)); checkDatabase(o[0]); checkDatabase(o[1]); @@ -421,7 +421,7 @@ var o = new api.DatabasesListResponse(); buildCounterDatabasesListResponse++; if (buildCounterDatabasesListResponse < 3) { - o.items = buildUnnamed3769(); + o.items = buildUnnamed3243(); o.kind = "foo"; } buildCounterDatabasesListResponse--; @@ -431,7 +431,7 @@ checkDatabasesListResponse(api.DatabasesListResponse o) { buildCounterDatabasesListResponse++; if (buildCounterDatabasesListResponse < 3) { - checkUnnamed3769(o.items); + checkUnnamed3243(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDatabasesListResponse--; @@ -456,27 +456,27 @@ buildCounterExportContextCsvExportOptions--; } -buildUnnamed3770() { +buildUnnamed3244() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3770(core.List<core.String> o) { +checkUnnamed3244(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3771() { +buildUnnamed3245() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3771(core.List<core.String> o) { +checkUnnamed3245(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -488,7 +488,7 @@ buildCounterExportContextSqlExportOptions++; if (buildCounterExportContextSqlExportOptions < 3) { o.schemaOnly = true; - o.tables = buildUnnamed3771(); + o.tables = buildUnnamed3245(); } buildCounterExportContextSqlExportOptions--; return o; @@ -498,7 +498,7 @@ buildCounterExportContextSqlExportOptions++; if (buildCounterExportContextSqlExportOptions < 3) { unittest.expect(o.schemaOnly, unittest.isTrue); - checkUnnamed3771(o.tables); + checkUnnamed3245(o.tables); } buildCounterExportContextSqlExportOptions--; } @@ -509,7 +509,7 @@ buildCounterExportContext++; if (buildCounterExportContext < 3) { o.csvExportOptions = buildExportContextCsvExportOptions(); - o.databases = buildUnnamed3770(); + o.databases = buildUnnamed3244(); o.fileType = "foo"; o.kind = "foo"; o.sqlExportOptions = buildExportContextSqlExportOptions(); @@ -523,7 +523,7 @@ buildCounterExportContext++; if (buildCounterExportContext < 3) { checkExportContextCsvExportOptions(o.csvExportOptions); - checkUnnamed3770(o.databases); + checkUnnamed3244(o.databases); unittest.expect(o.fileType, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkExportContextSqlExportOptions(o.sqlExportOptions); @@ -553,27 +553,27 @@ buildCounterFailoverContext--; } -buildUnnamed3772() { +buildUnnamed3246() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3772(core.List<core.String> o) { +checkUnnamed3246(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3773() { +buildUnnamed3247() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3773(core.List<core.String> o) { +checkUnnamed3247(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -584,8 +584,8 @@ var o = new api.Flag(); buildCounterFlag++; if (buildCounterFlag < 3) { - o.allowedStringValues = buildUnnamed3772(); - o.appliesTo = buildUnnamed3773(); + o.allowedStringValues = buildUnnamed3246(); + o.appliesTo = buildUnnamed3247(); o.kind = "foo"; o.maxValue = "foo"; o.minValue = "foo"; @@ -600,8 +600,8 @@ checkFlag(api.Flag o) { buildCounterFlag++; if (buildCounterFlag < 3) { - checkUnnamed3772(o.allowedStringValues); - checkUnnamed3773(o.appliesTo); + checkUnnamed3246(o.allowedStringValues); + checkUnnamed3247(o.appliesTo); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.maxValue, unittest.equals('foo')); unittest.expect(o.minValue, unittest.equals('foo')); @@ -612,14 +612,14 @@ buildCounterFlag--; } -buildUnnamed3774() { +buildUnnamed3248() { var o = new core.List<api.Flag>(); o.add(buildFlag()); o.add(buildFlag()); return o; } -checkUnnamed3774(core.List<api.Flag> o) { +checkUnnamed3248(core.List<api.Flag> o) { unittest.expect(o, unittest.hasLength(2)); checkFlag(o[0]); checkFlag(o[1]); @@ -630,7 +630,7 @@ var o = new api.FlagsListResponse(); buildCounterFlagsListResponse++; if (buildCounterFlagsListResponse < 3) { - o.items = buildUnnamed3774(); + o.items = buildUnnamed3248(); o.kind = "foo"; } buildCounterFlagsListResponse--; @@ -640,20 +640,20 @@ checkFlagsListResponse(api.FlagsListResponse o) { buildCounterFlagsListResponse++; if (buildCounterFlagsListResponse < 3) { - checkUnnamed3774(o.items); + checkUnnamed3248(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterFlagsListResponse--; } -buildUnnamed3775() { +buildUnnamed3249() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3775(core.List<core.String> o) { +checkUnnamed3249(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -664,7 +664,7 @@ var o = new api.ImportContextCsvImportOptions(); buildCounterImportContextCsvImportOptions++; if (buildCounterImportContextCsvImportOptions < 3) { - o.columns = buildUnnamed3775(); + o.columns = buildUnnamed3249(); o.table = "foo"; } buildCounterImportContextCsvImportOptions--; @@ -674,7 +674,7 @@ checkImportContextCsvImportOptions(api.ImportContextCsvImportOptions o) { buildCounterImportContextCsvImportOptions++; if (buildCounterImportContextCsvImportOptions < 3) { - checkUnnamed3775(o.columns); + checkUnnamed3249(o.columns); unittest.expect(o.table, unittest.equals('foo')); } buildCounterImportContextCsvImportOptions--; @@ -785,14 +785,14 @@ buildCounterInstancesImportRequest--; } -buildUnnamed3776() { +buildUnnamed3250() { var o = new core.List<api.DatabaseInstance>(); o.add(buildDatabaseInstance()); o.add(buildDatabaseInstance()); return o; } -checkUnnamed3776(core.List<api.DatabaseInstance> o) { +checkUnnamed3250(core.List<api.DatabaseInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkDatabaseInstance(o[0]); checkDatabaseInstance(o[1]); @@ -803,7 +803,7 @@ var o = new api.InstancesListResponse(); buildCounterInstancesListResponse++; if (buildCounterInstancesListResponse < 3) { - o.items = buildUnnamed3776(); + o.items = buildUnnamed3250(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -814,7 +814,7 @@ checkInstancesListResponse(api.InstancesListResponse o) { buildCounterInstancesListResponse++; if (buildCounterInstancesListResponse < 3) { - checkUnnamed3776(o.items); + checkUnnamed3250(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -859,14 +859,14 @@ buildCounterInstancesTruncateLogRequest--; } -buildUnnamed3777() { +buildUnnamed3251() { var o = new core.List<api.AclEntry>(); o.add(buildAclEntry()); o.add(buildAclEntry()); return o; } -checkUnnamed3777(core.List<api.AclEntry> o) { +checkUnnamed3251(core.List<api.AclEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAclEntry(o[0]); checkAclEntry(o[1]); @@ -877,7 +877,7 @@ var o = new api.IpConfiguration(); buildCounterIpConfiguration++; if (buildCounterIpConfiguration < 3) { - o.authorizedNetworks = buildUnnamed3777(); + o.authorizedNetworks = buildUnnamed3251(); o.ipv4Enabled = true; o.requireSsl = true; } @@ -888,7 +888,7 @@ checkIpConfiguration(api.IpConfiguration o) { buildCounterIpConfiguration++; if (buildCounterIpConfiguration < 3) { - checkUnnamed3777(o.authorizedNetworks); + checkUnnamed3251(o.authorizedNetworks); unittest.expect(o.ipv4Enabled, unittest.isTrue); unittest.expect(o.requireSsl, unittest.isTrue); } @@ -918,27 +918,6 @@ buildCounterIpMapping--; } -core.int buildCounterLabels = 0; -buildLabels() { - var o = new api.Labels(); - buildCounterLabels++; - if (buildCounterLabels < 3) { - o.key = "foo"; - o.value = "foo"; - } - buildCounterLabels--; - return o; -} - -checkLabels(api.Labels o) { - buildCounterLabels++; - if (buildCounterLabels < 3) { - unittest.expect(o.key, unittest.equals('foo')); - unittest.expect(o.value, unittest.equals('foo')); - } - buildCounterLabels--; -} - core.int buildCounterLocationPreference = 0; buildLocationPreference() { var o = new api.LocationPreference(); @@ -1117,14 +1096,14 @@ buildCounterOperationError--; } -buildUnnamed3778() { +buildUnnamed3252() { var o = new core.List<api.OperationError>(); o.add(buildOperationError()); o.add(buildOperationError()); return o; } -checkUnnamed3778(core.List<api.OperationError> o) { +checkUnnamed3252(core.List<api.OperationError> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationError(o[0]); checkOperationError(o[1]); @@ -1135,7 +1114,7 @@ var o = new api.OperationErrors(); buildCounterOperationErrors++; if (buildCounterOperationErrors < 3) { - o.errors = buildUnnamed3778(); + o.errors = buildUnnamed3252(); o.kind = "foo"; } buildCounterOperationErrors--; @@ -1145,20 +1124,20 @@ checkOperationErrors(api.OperationErrors o) { buildCounterOperationErrors++; if (buildCounterOperationErrors < 3) { - checkUnnamed3778(o.errors); + checkUnnamed3252(o.errors); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterOperationErrors--; } -buildUnnamed3779() { +buildUnnamed3253() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3779(core.List<api.Operation> o) { +checkUnnamed3253(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1169,7 +1148,7 @@ var o = new api.OperationsListResponse(); buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { - o.items = buildUnnamed3779(); + o.items = buildUnnamed3253(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1180,7 +1159,7 @@ checkOperationsListResponse(api.OperationsListResponse o) { buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { - checkUnnamed3779(o.items); + checkUnnamed3253(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1233,43 +1212,43 @@ buildCounterRestoreBackupContext--; } -buildUnnamed3780() { +buildUnnamed3254() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3780(core.List<core.String> o) { +checkUnnamed3254(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3781() { +buildUnnamed3255() { var o = new core.List<api.DatabaseFlags>(); o.add(buildDatabaseFlags()); o.add(buildDatabaseFlags()); return o; } -checkUnnamed3781(core.List<api.DatabaseFlags> o) { +checkUnnamed3255(core.List<api.DatabaseFlags> o) { unittest.expect(o, unittest.hasLength(2)); checkDatabaseFlags(o[0]); checkDatabaseFlags(o[1]); } -buildUnnamed3782() { - var o = new core.List<api.Labels>(); - o.add(buildLabels()); - o.add(buildLabels()); +buildUnnamed3256() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; return o; } -checkUnnamed3782(core.List<api.Labels> o) { +checkUnnamed3256(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); - checkLabels(o[0]); - checkLabels(o[1]); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); } core.int buildCounterSettings = 0; @@ -1278,17 +1257,16 @@ buildCounterSettings++; if (buildCounterSettings < 3) { o.activationPolicy = "foo"; - o.authorizedGaeApplications = buildUnnamed3780(); + o.authorizedGaeApplications = buildUnnamed3254(); o.availabilityType = "foo"; o.backupConfiguration = buildBackupConfiguration(); o.crashSafeReplicationEnabled = true; o.dataDiskSizeGb = "foo"; o.dataDiskType = "foo"; - o.databaseFlags = buildUnnamed3781(); + o.databaseFlags = buildUnnamed3255(); o.databaseReplicationEnabled = true; o.ipConfiguration = buildIpConfiguration(); o.kind = "foo"; - o.labels = buildUnnamed3782(); o.locationPreference = buildLocationPreference(); o.maintenanceWindow = buildMaintenanceWindow(); o.pricingPlan = "foo"; @@ -1297,6 +1275,7 @@ o.storageAutoResize = true; o.storageAutoResizeLimit = "foo"; o.tier = "foo"; + o.userLabels = buildUnnamed3256(); } buildCounterSettings--; return o; @@ -1306,17 +1285,16 @@ buildCounterSettings++; if (buildCounterSettings < 3) { unittest.expect(o.activationPolicy, unittest.equals('foo')); - checkUnnamed3780(o.authorizedGaeApplications); + checkUnnamed3254(o.authorizedGaeApplications); unittest.expect(o.availabilityType, unittest.equals('foo')); checkBackupConfiguration(o.backupConfiguration); unittest.expect(o.crashSafeReplicationEnabled, unittest.isTrue); unittest.expect(o.dataDiskSizeGb, unittest.equals('foo')); unittest.expect(o.dataDiskType, unittest.equals('foo')); - checkUnnamed3781(o.databaseFlags); + checkUnnamed3255(o.databaseFlags); unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); checkIpConfiguration(o.ipConfiguration); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3782(o.labels); checkLocationPreference(o.locationPreference); checkMaintenanceWindow(o.maintenanceWindow); unittest.expect(o.pricingPlan, unittest.equals('foo')); @@ -1325,6 +1303,7 @@ unittest.expect(o.storageAutoResize, unittest.isTrue); unittest.expect(o.storageAutoResizeLimit, unittest.equals('foo')); unittest.expect(o.tier, unittest.equals('foo')); + checkUnnamed3256(o.userLabels); } buildCounterSettings--; } @@ -1448,14 +1427,14 @@ buildCounterSslCertsInsertResponse--; } -buildUnnamed3783() { +buildUnnamed3257() { var o = new core.List<api.SslCert>(); o.add(buildSslCert()); o.add(buildSslCert()); return o; } -checkUnnamed3783(core.List<api.SslCert> o) { +checkUnnamed3257(core.List<api.SslCert> o) { unittest.expect(o, unittest.hasLength(2)); checkSslCert(o[0]); checkSslCert(o[1]); @@ -1466,7 +1445,7 @@ var o = new api.SslCertsListResponse(); buildCounterSslCertsListResponse++; if (buildCounterSslCertsListResponse < 3) { - o.items = buildUnnamed3783(); + o.items = buildUnnamed3257(); o.kind = "foo"; } buildCounterSslCertsListResponse--; @@ -1476,20 +1455,20 @@ checkSslCertsListResponse(api.SslCertsListResponse o) { buildCounterSslCertsListResponse++; if (buildCounterSslCertsListResponse < 3) { - checkUnnamed3783(o.items); + checkUnnamed3257(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterSslCertsListResponse--; } -buildUnnamed3784() { +buildUnnamed3258() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3784(core.List<core.String> o) { +checkUnnamed3258(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1503,7 +1482,7 @@ o.DiskQuota = "foo"; o.RAM = "foo"; o.kind = "foo"; - o.region = buildUnnamed3784(); + o.region = buildUnnamed3258(); o.tier = "foo"; } buildCounterTier--; @@ -1516,20 +1495,20 @@ unittest.expect(o.DiskQuota, unittest.equals('foo')); unittest.expect(o.RAM, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3784(o.region); + checkUnnamed3258(o.region); unittest.expect(o.tier, unittest.equals('foo')); } buildCounterTier--; } -buildUnnamed3785() { +buildUnnamed3259() { var o = new core.List<api.Tier>(); o.add(buildTier()); o.add(buildTier()); return o; } -checkUnnamed3785(core.List<api.Tier> o) { +checkUnnamed3259(core.List<api.Tier> o) { unittest.expect(o, unittest.hasLength(2)); checkTier(o[0]); checkTier(o[1]); @@ -1540,7 +1519,7 @@ var o = new api.TiersListResponse(); buildCounterTiersListResponse++; if (buildCounterTiersListResponse < 3) { - o.items = buildUnnamed3785(); + o.items = buildUnnamed3259(); o.kind = "foo"; } buildCounterTiersListResponse--; @@ -1550,7 +1529,7 @@ checkTiersListResponse(api.TiersListResponse o) { buildCounterTiersListResponse++; if (buildCounterTiersListResponse < 3) { - checkUnnamed3785(o.items); + checkUnnamed3259(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTiersListResponse--; @@ -1608,14 +1587,14 @@ buildCounterUser--; } -buildUnnamed3786() { +buildUnnamed3260() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed3786(core.List<api.User> o) { +checkUnnamed3260(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -1626,7 +1605,7 @@ var o = new api.UsersListResponse(); buildCounterUsersListResponse++; if (buildCounterUsersListResponse < 3) { - o.items = buildUnnamed3786(); + o.items = buildUnnamed3260(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1637,7 +1616,7 @@ checkUsersListResponse(api.UsersListResponse o) { buildCounterUsersListResponse++; if (buildCounterUsersListResponse < 3) { - checkUnnamed3786(o.items); + checkUnnamed3260(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1898,15 +1877,6 @@ }); - unittest.group("obj-schema-Labels", () { - unittest.test("to-json--from-json", () { - var o = buildLabels(); - var od = new api.Labels.fromJson(o.toJson()); - checkLabels(od); - }); - }); - - unittest.group("obj-schema-LocationPreference", () { unittest.test("to-json--from-json", () { var o = buildLocationPreference(); @@ -2113,7 +2083,7 @@ var arg_project = "foo"; var arg_instance = "foo"; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2166,7 +2136,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_instance, arg_id).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_instance, arg_id).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2178,7 +2148,7 @@ var arg_project = "foo"; var arg_instance = "foo"; var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2231,7 +2201,7 @@ var resp = convert.JSON.encode(buildBackupRun()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_instance, arg_id).then(unittest.expectAsync(((api.BackupRun response) { + res.get(arg_project, arg_instance, arg_id).then(unittest.expectAsync1(((api.BackupRun response) { checkBackupRun(response); }))); }); @@ -2243,7 +2213,7 @@ var arg_request = buildBackupRun(); var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.BackupRun.fromJson(json); checkBackupRun(obj); @@ -2296,7 +2266,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2309,7 +2279,7 @@ var arg_instance = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2361,7 +2331,7 @@ var resp = convert.JSON.encode(buildBackupRunsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_instance, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.BackupRunsListResponse response) { + res.list(arg_project, arg_instance, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.BackupRunsListResponse response) { checkBackupRunsListResponse(response); }))); }); @@ -2377,7 +2347,7 @@ var arg_project = "foo"; var arg_instance = "foo"; var arg_database = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2430,7 +2400,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_instance, arg_database).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_instance, arg_database).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2442,7 +2412,7 @@ var arg_project = "foo"; var arg_instance = "foo"; var arg_database = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2495,7 +2465,7 @@ var resp = convert.JSON.encode(buildDatabase()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_instance, arg_database).then(unittest.expectAsync(((api.Database response) { + res.get(arg_project, arg_instance, arg_database).then(unittest.expectAsync1(((api.Database response) { checkDatabase(response); }))); }); @@ -2507,7 +2477,7 @@ var arg_request = buildDatabase(); var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Database.fromJson(json); checkDatabase(obj); @@ -2560,7 +2530,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2571,7 +2541,7 @@ api.DatabasesResourceApi res = new api.SqladminApi(mock).databases; var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2621,7 +2591,7 @@ var resp = convert.JSON.encode(buildDatabasesListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_instance).then(unittest.expectAsync(((api.DatabasesListResponse response) { + res.list(arg_project, arg_instance).then(unittest.expectAsync1(((api.DatabasesListResponse response) { checkDatabasesListResponse(response); }))); }); @@ -2634,7 +2604,7 @@ var arg_project = "foo"; var arg_instance = "foo"; var arg_database = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Database.fromJson(json); checkDatabase(obj); @@ -2690,7 +2660,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_project, arg_instance, arg_database).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_project, arg_instance, arg_database).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2703,7 +2673,7 @@ var arg_project = "foo"; var arg_instance = "foo"; var arg_database = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Database.fromJson(json); checkDatabase(obj); @@ -2759,7 +2729,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_project, arg_instance, arg_database).then(unittest.expectAsync(((api.Operation response) { + res.update(arg_request, arg_project, arg_instance, arg_database).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2773,7 +2743,7 @@ var mock = new HttpServerMock(); api.FlagsResourceApi res = new api.SqladminApi(mock).flags; var arg_databaseVersion = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2810,7 +2780,7 @@ var resp = convert.JSON.encode(buildFlagsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(databaseVersion: arg_databaseVersion).then(unittest.expectAsync(((api.FlagsListResponse response) { + res.list(databaseVersion: arg_databaseVersion).then(unittest.expectAsync1(((api.FlagsListResponse response) { checkFlagsListResponse(response); }))); }); @@ -2826,7 +2796,7 @@ var arg_request = buildInstancesCloneRequest(); var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstancesCloneRequest.fromJson(json); checkInstancesCloneRequest(obj); @@ -2879,7 +2849,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.clone(arg_request, arg_project, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.clone(arg_request, arg_project, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2890,7 +2860,7 @@ api.InstancesResourceApi res = new api.SqladminApi(mock).instances; var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -2936,7 +2906,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2948,7 +2918,7 @@ var arg_request = buildInstancesExportRequest(); var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstancesExportRequest.fromJson(json); checkInstancesExportRequest(obj); @@ -3001,7 +2971,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.export(arg_request, arg_project, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.export(arg_request, arg_project, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3013,7 +2983,7 @@ var arg_request = buildInstancesFailoverRequest(); var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstancesFailoverRequest.fromJson(json); checkInstancesFailoverRequest(obj); @@ -3066,7 +3036,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.failover(arg_request, arg_project, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.failover(arg_request, arg_project, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3077,7 +3047,7 @@ api.InstancesResourceApi res = new api.SqladminApi(mock).instances; var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3123,7 +3093,7 @@ var resp = convert.JSON.encode(buildDatabaseInstance()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_instance).then(unittest.expectAsync(((api.DatabaseInstance response) { + res.get(arg_project, arg_instance).then(unittest.expectAsync1(((api.DatabaseInstance response) { checkDatabaseInstance(response); }))); }); @@ -3135,7 +3105,7 @@ var arg_request = buildInstancesImportRequest(); var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstancesImportRequest.fromJson(json); checkInstancesImportRequest(obj); @@ -3188,7 +3158,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.import(arg_request, arg_project, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.import(arg_request, arg_project, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3199,7 +3169,7 @@ api.InstancesResourceApi res = new api.SqladminApi(mock).instances; var arg_request = buildDatabaseInstance(); var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DatabaseInstance.fromJson(json); checkDatabaseInstance(obj); @@ -3245,7 +3215,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3258,7 +3228,7 @@ var arg_filter = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3304,7 +3274,7 @@ var resp = convert.JSON.encode(buildInstancesListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstancesListResponse response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.InstancesListResponse response) { checkInstancesListResponse(response); }))); }); @@ -3316,7 +3286,7 @@ var arg_request = buildDatabaseInstance(); var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DatabaseInstance.fromJson(json); checkDatabaseInstance(obj); @@ -3365,7 +3335,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_project, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.patch(arg_request, arg_project, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3376,7 +3346,7 @@ api.InstancesResourceApi res = new api.SqladminApi(mock).instances; var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3426,7 +3396,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.promoteReplica(arg_project, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.promoteReplica(arg_project, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3437,7 +3407,7 @@ api.InstancesResourceApi res = new api.SqladminApi(mock).instances; var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3487,7 +3457,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.resetSslConfig(arg_project, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.resetSslConfig(arg_project, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3498,7 +3468,7 @@ api.InstancesResourceApi res = new api.SqladminApi(mock).instances; var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3548,7 +3518,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.restart(arg_project, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.restart(arg_project, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3560,7 +3530,7 @@ var arg_request = buildInstancesRestoreBackupRequest(); var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstancesRestoreBackupRequest.fromJson(json); checkInstancesRestoreBackupRequest(obj); @@ -3613,7 +3583,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.restoreBackup(arg_request, arg_project, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.restoreBackup(arg_request, arg_project, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3624,7 +3594,7 @@ api.InstancesResourceApi res = new api.SqladminApi(mock).instances; var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3674,7 +3644,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.startReplica(arg_project, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.startReplica(arg_project, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3685,7 +3655,7 @@ api.InstancesResourceApi res = new api.SqladminApi(mock).instances; var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3735,7 +3705,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.stopReplica(arg_project, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.stopReplica(arg_project, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3747,7 +3717,7 @@ var arg_request = buildInstancesTruncateLogRequest(); var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstancesTruncateLogRequest.fromJson(json); checkInstancesTruncateLogRequest(obj); @@ -3800,7 +3770,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.truncateLog(arg_request, arg_project, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.truncateLog(arg_request, arg_project, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3812,7 +3782,7 @@ var arg_request = buildDatabaseInstance(); var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DatabaseInstance.fromJson(json); checkDatabaseInstance(obj); @@ -3861,7 +3831,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_project, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.update(arg_request, arg_project, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3876,7 +3846,7 @@ api.OperationsResourceApi res = new api.SqladminApi(mock).operations; var arg_project = "foo"; var arg_operation = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3922,7 +3892,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_operation).then(unittest.expectAsync(((api.Operation response) { + res.get(arg_project, arg_operation).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -3935,7 +3905,7 @@ var arg_instance = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -3981,7 +3951,7 @@ var resp = convert.JSON.encode(buildOperationsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_instance, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationsListResponse response) { + res.list(arg_project, arg_instance, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.OperationsListResponse response) { checkOperationsListResponse(response); }))); }); @@ -3997,7 +3967,7 @@ var arg_request = buildSslCertsCreateEphemeralRequest(); var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SslCertsCreateEphemeralRequest.fromJson(json); checkSslCertsCreateEphemeralRequest(obj); @@ -4050,7 +4020,7 @@ var resp = convert.JSON.encode(buildSslCert()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.createEphemeral(arg_request, arg_project, arg_instance).then(unittest.expectAsync(((api.SslCert response) { + res.createEphemeral(arg_request, arg_project, arg_instance).then(unittest.expectAsync1(((api.SslCert response) { checkSslCert(response); }))); }); @@ -4062,7 +4032,7 @@ var arg_project = "foo"; var arg_instance = "foo"; var arg_sha1Fingerprint = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4115,7 +4085,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_instance, arg_sha1Fingerprint).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_instance, arg_sha1Fingerprint).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -4127,7 +4097,7 @@ var arg_project = "foo"; var arg_instance = "foo"; var arg_sha1Fingerprint = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4180,7 +4150,7 @@ var resp = convert.JSON.encode(buildSslCert()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_instance, arg_sha1Fingerprint).then(unittest.expectAsync(((api.SslCert response) { + res.get(arg_project, arg_instance, arg_sha1Fingerprint).then(unittest.expectAsync1(((api.SslCert response) { checkSslCert(response); }))); }); @@ -4192,7 +4162,7 @@ var arg_request = buildSslCertsInsertRequest(); var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SslCertsInsertRequest.fromJson(json); checkSslCertsInsertRequest(obj); @@ -4245,7 +4215,7 @@ var resp = convert.JSON.encode(buildSslCertsInsertResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_instance).then(unittest.expectAsync(((api.SslCertsInsertResponse response) { + res.insert(arg_request, arg_project, arg_instance).then(unittest.expectAsync1(((api.SslCertsInsertResponse response) { checkSslCertsInsertResponse(response); }))); }); @@ -4256,7 +4226,7 @@ api.SslCertsResourceApi res = new api.SqladminApi(mock).sslCerts; var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4306,7 +4276,7 @@ var resp = convert.JSON.encode(buildSslCertsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_instance).then(unittest.expectAsync(((api.SslCertsListResponse response) { + res.list(arg_project, arg_instance).then(unittest.expectAsync1(((api.SslCertsListResponse response) { checkSslCertsListResponse(response); }))); }); @@ -4320,7 +4290,7 @@ var mock = new HttpServerMock(); api.TiersResourceApi res = new api.SqladminApi(mock).tiers; var arg_project = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4363,7 +4333,7 @@ var resp = convert.JSON.encode(buildTiersListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project).then(unittest.expectAsync(((api.TiersListResponse response) { + res.list(arg_project).then(unittest.expectAsync1(((api.TiersListResponse response) { checkTiersListResponse(response); }))); }); @@ -4380,7 +4350,7 @@ var arg_instance = "foo"; var arg_host = "foo"; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4432,7 +4402,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_instance, arg_host, arg_name).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_instance, arg_host, arg_name).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -4444,7 +4414,7 @@ var arg_request = buildUser(); var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.User.fromJson(json); checkUser(obj); @@ -4497,7 +4467,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_instance).then(unittest.expectAsync(((api.Operation response) { + res.insert(arg_request, arg_project, arg_instance).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -4508,7 +4478,7 @@ api.UsersResourceApi res = new api.SqladminApi(mock).users; var arg_project = "foo"; var arg_instance = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -4558,7 +4528,7 @@ var resp = convert.JSON.encode(buildUsersListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_instance).then(unittest.expectAsync(((api.UsersListResponse response) { + res.list(arg_project, arg_instance).then(unittest.expectAsync1(((api.UsersListResponse response) { checkUsersListResponse(response); }))); }); @@ -4572,7 +4542,7 @@ var arg_instance = "foo"; var arg_host = "foo"; var arg_name = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.User.fromJson(json); checkUser(obj); @@ -4627,7 +4597,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_project, arg_instance, arg_host, arg_name).then(unittest.expectAsync(((api.Operation response) { + res.update(arg_request, arg_project, arg_instance, arg_host, arg_name).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); });
diff --git a/generated/googleapis_beta/test/taskqueue/v1beta2_test.dart b/generated/googleapis_beta/test/taskqueue/v1beta2_test.dart index 8c5e27c..40382fc 100644 --- a/generated/googleapis_beta/test/taskqueue/v1beta2_test.dart +++ b/generated/googleapis_beta/test/taskqueue/v1beta2_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/taskqueue/v1beta2.dart' as api; @@ -46,7 +46,7 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } @@ -84,40 +84,40 @@ buildCounterTask--; } -buildUnnamed3713() { +buildUnnamed3187() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3713(core.List<core.String> o) { +checkUnnamed3187(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3714() { +buildUnnamed3188() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3714(core.List<core.String> o) { +checkUnnamed3188(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3715() { +buildUnnamed3189() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3715(core.List<core.String> o) { +checkUnnamed3189(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -128,9 +128,9 @@ var o = new api.TaskQueueAcl(); buildCounterTaskQueueAcl++; if (buildCounterTaskQueueAcl < 3) { - o.adminEmails = buildUnnamed3713(); - o.consumerEmails = buildUnnamed3714(); - o.producerEmails = buildUnnamed3715(); + o.adminEmails = buildUnnamed3187(); + o.consumerEmails = buildUnnamed3188(); + o.producerEmails = buildUnnamed3189(); } buildCounterTaskQueueAcl--; return o; @@ -139,9 +139,9 @@ checkTaskQueueAcl(api.TaskQueueAcl o) { buildCounterTaskQueueAcl++; if (buildCounterTaskQueueAcl < 3) { - checkUnnamed3713(o.adminEmails); - checkUnnamed3714(o.consumerEmails); - checkUnnamed3715(o.producerEmails); + checkUnnamed3187(o.adminEmails); + checkUnnamed3188(o.consumerEmails); + checkUnnamed3189(o.producerEmails); } buildCounterTaskQueueAcl--; } @@ -198,14 +198,14 @@ buildCounterTaskQueue--; } -buildUnnamed3716() { +buildUnnamed3190() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed3716(core.List<api.Task> o) { +checkUnnamed3190(core.List<api.Task> o) { unittest.expect(o, unittest.hasLength(2)); checkTask(o[0]); checkTask(o[1]); @@ -216,7 +216,7 @@ var o = new api.Tasks(); buildCounterTasks++; if (buildCounterTasks < 3) { - o.items = buildUnnamed3716(); + o.items = buildUnnamed3190(); o.kind = "foo"; } buildCounterTasks--; @@ -226,20 +226,20 @@ checkTasks(api.Tasks o) { buildCounterTasks++; if (buildCounterTasks < 3) { - checkUnnamed3716(o.items); + checkUnnamed3190(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTasks--; } -buildUnnamed3717() { +buildUnnamed3191() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed3717(core.List<api.Task> o) { +checkUnnamed3191(core.List<api.Task> o) { unittest.expect(o, unittest.hasLength(2)); checkTask(o[0]); checkTask(o[1]); @@ -250,7 +250,7 @@ var o = new api.Tasks2(); buildCounterTasks2++; if (buildCounterTasks2 < 3) { - o.items = buildUnnamed3717(); + o.items = buildUnnamed3191(); o.kind = "foo"; } buildCounterTasks2--; @@ -260,7 +260,7 @@ checkTasks2(api.Tasks2 o) { buildCounterTasks2++; if (buildCounterTasks2 < 3) { - checkUnnamed3717(o.items); + checkUnnamed3191(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTasks2--; @@ -330,7 +330,7 @@ var arg_project = "foo"; var arg_taskqueue = "foo"; var arg_getStats = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -363,7 +363,7 @@ var resp = convert.JSON.encode(buildTaskQueue()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_taskqueue, getStats: arg_getStats).then(unittest.expectAsync(((api.TaskQueue response) { + res.get(arg_project, arg_taskqueue, getStats: arg_getStats).then(unittest.expectAsync1(((api.TaskQueue response) { checkTaskQueue(response); }))); }); @@ -379,7 +379,7 @@ var arg_project = "foo"; var arg_taskqueue = "foo"; var arg_task = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -411,7 +411,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_taskqueue, arg_task).then(unittest.expectAsync((_) {})); + res.delete(arg_project, arg_taskqueue, arg_task).then(unittest.expectAsync1((_) {})); }); unittest.test("method--get", () { @@ -421,7 +421,7 @@ var arg_project = "foo"; var arg_taskqueue = "foo"; var arg_task = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -453,7 +453,7 @@ var resp = convert.JSON.encode(buildTask()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_project, arg_taskqueue, arg_task).then(unittest.expectAsync(((api.Task response) { + res.get(arg_project, arg_taskqueue, arg_task).then(unittest.expectAsync1(((api.Task response) { checkTask(response); }))); }); @@ -465,7 +465,7 @@ var arg_request = buildTask(); var arg_project = "foo"; var arg_taskqueue = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Task.fromJson(json); checkTask(obj); @@ -500,7 +500,7 @@ var resp = convert.JSON.encode(buildTask()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_project, arg_taskqueue).then(unittest.expectAsync(((api.Task response) { + res.insert(arg_request, arg_project, arg_taskqueue).then(unittest.expectAsync1(((api.Task response) { checkTask(response); }))); }); @@ -515,7 +515,7 @@ var arg_leaseSecs = 42; var arg_groupByTag = true; var arg_tag = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -551,7 +551,7 @@ var resp = convert.JSON.encode(buildTasks()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.lease(arg_project, arg_taskqueue, arg_numTasks, arg_leaseSecs, groupByTag: arg_groupByTag, tag: arg_tag).then(unittest.expectAsync(((api.Tasks response) { + res.lease(arg_project, arg_taskqueue, arg_numTasks, arg_leaseSecs, groupByTag: arg_groupByTag, tag: arg_tag).then(unittest.expectAsync1(((api.Tasks response) { checkTasks(response); }))); }); @@ -562,7 +562,7 @@ api.TasksResourceApi res = new api.TaskqueueApi(mock).tasks; var arg_project = "foo"; var arg_taskqueue = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; var index; @@ -594,7 +594,7 @@ var resp = convert.JSON.encode(buildTasks2()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_taskqueue).then(unittest.expectAsync(((api.Tasks2 response) { + res.list(arg_project, arg_taskqueue).then(unittest.expectAsync1(((api.Tasks2 response) { checkTasks2(response); }))); }); @@ -608,7 +608,7 @@ var arg_taskqueue = "foo"; var arg_task = "foo"; var arg_newLeaseSeconds = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Task.fromJson(json); checkTask(obj); @@ -644,7 +644,7 @@ var resp = convert.JSON.encode(buildTask()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_project, arg_taskqueue, arg_task, arg_newLeaseSeconds).then(unittest.expectAsync(((api.Task response) { + res.patch(arg_request, arg_project, arg_taskqueue, arg_task, arg_newLeaseSeconds).then(unittest.expectAsync1(((api.Task response) { checkTask(response); }))); }); @@ -658,7 +658,7 @@ var arg_taskqueue = "foo"; var arg_task = "foo"; var arg_newLeaseSeconds = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Task.fromJson(json); checkTask(obj); @@ -694,7 +694,7 @@ var resp = convert.JSON.encode(buildTask()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_project, arg_taskqueue, arg_task, arg_newLeaseSeconds).then(unittest.expectAsync(((api.Task response) { + res.update(arg_request, arg_project, arg_taskqueue, arg_task, arg_newLeaseSeconds).then(unittest.expectAsync1(((api.Task response) { checkTask(response); }))); });
diff --git a/generated/googleapis_beta/test/videointelligence/v1beta1_test.dart b/generated/googleapis_beta/test/videointelligence/v1beta1_test.dart index 63adcab..323b389 100644 --- a/generated/googleapis_beta/test/videointelligence/v1beta1_test.dart +++ b/generated/googleapis_beta/test/videointelligence/v1beta1_test.dart
@@ -7,7 +7,7 @@ import 'package:http/http.dart' as http; import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; +import 'package:test/test.dart' as unittest; import 'package:googleapis_beta/videointelligence/v1beta1.dart' as api; @@ -46,19 +46,19 @@ } http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { + core.int status, core.Map<core.String, core.String> headers, core.String body) { var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3732() { +buildUnnamed3206() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress>(); o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress()); o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress()); return o; } -checkUnnamed3732(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress> o) { +checkUnnamed3206(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(o[0]); checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(o[1]); @@ -69,7 +69,7 @@ var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(); buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress++; if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress < 3) { - o.annotationProgress = buildUnnamed3732(); + o.annotationProgress = buildUnnamed3206(); } buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress--; return o; @@ -78,19 +78,19 @@ checkGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(api.GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress o) { buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress++; if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress < 3) { - checkUnnamed3732(o.annotationProgress); + checkUnnamed3206(o.annotationProgress); } buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress--; } -buildUnnamed3733() { +buildUnnamed3207() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3733(core.List<core.String> o) { +checkUnnamed3207(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -101,7 +101,7 @@ var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(); buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest++; if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest < 3) { - o.features = buildUnnamed3733(); + o.features = buildUnnamed3207(); o.inputContent = "foo"; o.inputUri = "foo"; o.locationId = "foo"; @@ -115,7 +115,7 @@ checkGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(api.GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest o) { buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest++; if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest < 3) { - checkUnnamed3733(o.features); + checkUnnamed3207(o.features); unittest.expect(o.inputContent, unittest.equals('foo')); unittest.expect(o.inputUri, unittest.equals('foo')); unittest.expect(o.locationId, unittest.equals('foo')); @@ -125,14 +125,14 @@ buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest--; } -buildUnnamed3734() { +buildUnnamed3208() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults>(); o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults()); o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults()); return o; } -checkUnnamed3734(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults> o) { +checkUnnamed3208(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(o[0]); checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(o[1]); @@ -143,7 +143,7 @@ var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(); buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse++; if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse < 3) { - o.annotationResults = buildUnnamed3734(); + o.annotationResults = buildUnnamed3208(); } buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse--; return o; @@ -152,19 +152,19 @@ checkGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(api.GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse o) { buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse++; if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse < 3) { - checkUnnamed3734(o.annotationResults); + checkUnnamed3208(o.annotationResults); } buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse--; } -buildUnnamed3735() { +buildUnnamed3209() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation>(); o.add(buildGoogleCloudVideointelligenceV1beta1LabelLocation()); o.add(buildGoogleCloudVideointelligenceV1beta1LabelLocation()); return o; } -checkUnnamed3735(core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation> o) { +checkUnnamed3209(core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta1LabelLocation(o[0]); checkGoogleCloudVideointelligenceV1beta1LabelLocation(o[1]); @@ -177,7 +177,7 @@ if (buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation < 3) { o.description = "foo"; o.languageCode = "foo"; - o.locations = buildUnnamed3735(); + o.locations = buildUnnamed3209(); } buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation--; return o; @@ -188,7 +188,7 @@ if (buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.languageCode, unittest.equals('foo')); - checkUnnamed3735(o.locations); + checkUnnamed3209(o.locations); } buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation--; } @@ -241,27 +241,27 @@ buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress--; } -buildUnnamed3736() { +buildUnnamed3210() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation()); o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation()); return o; } -checkUnnamed3736(core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotation> o) { +checkUnnamed3210(core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[1]); } -buildUnnamed3737() { +buildUnnamed3211() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>(); o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); return o; } -checkUnnamed3737(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) { +checkUnnamed3211(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]); checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]); @@ -274,8 +274,8 @@ if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < 3) { o.error = buildGoogleRpcStatus(); o.inputUri = "foo"; - o.labelAnnotations = buildUnnamed3736(); - o.shotAnnotations = buildUnnamed3737(); + o.labelAnnotations = buildUnnamed3210(); + o.shotAnnotations = buildUnnamed3211(); } buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--; return o; @@ -286,20 +286,20 @@ if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < 3) { checkGoogleRpcStatus(o.error); unittest.expect(o.inputUri, unittest.equals('foo')); - checkUnnamed3736(o.labelAnnotations); - checkUnnamed3737(o.shotAnnotations); + checkUnnamed3210(o.labelAnnotations); + checkUnnamed3211(o.shotAnnotations); } buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--; } -buildUnnamed3738() { +buildUnnamed3212() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>(); o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); return o; } -checkUnnamed3738(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) { +checkUnnamed3212(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]); checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]); @@ -312,7 +312,7 @@ if (buildCounterGoogleCloudVideointelligenceV1beta1VideoContext < 3) { o.labelDetectionMode = "foo"; o.labelDetectionModel = "foo"; - o.segments = buildUnnamed3738(); + o.segments = buildUnnamed3212(); o.shotChangeDetectionModel = "foo"; } buildCounterGoogleCloudVideointelligenceV1beta1VideoContext--; @@ -324,7 +324,7 @@ if (buildCounterGoogleCloudVideointelligenceV1beta1VideoContext < 3) { unittest.expect(o.labelDetectionMode, unittest.equals('foo')); unittest.expect(o.labelDetectionModel, unittest.equals('foo')); - checkUnnamed3738(o.segments); + checkUnnamed3212(o.segments); unittest.expect(o.shotChangeDetectionModel, unittest.equals('foo')); } buildCounterGoogleCloudVideointelligenceV1beta1VideoContext--; @@ -351,27 +351,27 @@ buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment--; } -buildUnnamed3739() { +buildUnnamed3213() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3739(core.Map<core.String, core.Object> o) { +checkUnnamed3213(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3740() { +buildUnnamed3214() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3740(core.Map<core.String, core.Object> o) { +checkUnnamed3214(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -384,9 +384,9 @@ if (buildCounterGoogleLongrunningOperation < 3) { o.done = true; o.error = buildGoogleRpcStatus(); - o.metadata = buildUnnamed3739(); + o.metadata = buildUnnamed3213(); o.name = "foo"; - o.response = buildUnnamed3740(); + o.response = buildUnnamed3214(); } buildCounterGoogleLongrunningOperation--; return o; @@ -397,37 +397,37 @@ if (buildCounterGoogleLongrunningOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkGoogleRpcStatus(o.error); - checkUnnamed3739(o.metadata); + checkUnnamed3213(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3740(o.response); + checkUnnamed3214(o.response); } buildCounterGoogleLongrunningOperation--; } -buildUnnamed3741() { +buildUnnamed3215() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3741(core.Map<core.String, core.Object> o) { +checkUnnamed3215(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed3742() { +buildUnnamed3216() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3741()); - o.add(buildUnnamed3741()); + o.add(buildUnnamed3215()); + o.add(buildUnnamed3215()); return o; } -checkUnnamed3742(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3216(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3741(o[0]); - checkUnnamed3741(o[1]); + checkUnnamed3215(o[0]); + checkUnnamed3215(o[1]); } core.int buildCounterGoogleRpcStatus = 0; @@ -436,7 +436,7 @@ buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { o.code = 42; - o.details = buildUnnamed3742(); + o.details = buildUnnamed3216(); o.message = "foo"; } buildCounterGoogleRpcStatus--; @@ -447,7 +447,7 @@ buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3742(o.details); + checkUnnamed3216(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterGoogleRpcStatus--; @@ -560,7 +560,7 @@ var mock = new HttpServerMock(); api.VideosResourceApi res = new api.VideointelligenceApi(mock).videos; var arg_request = buildGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest.fromJson(json); checkGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(obj); @@ -597,7 +597,7 @@ var resp = convert.JSON.encode(buildGoogleLongrunningOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.annotate(arg_request).then(unittest.expectAsync(((api.GoogleLongrunningOperation response) { + res.annotate(arg_request).then(unittest.expectAsync1(((api.GoogleLongrunningOperation response) { checkGoogleLongrunningOperation(response); }))); });